mb/superio: Rename global control devices as SUPERIO_DEV
Use SUPERIO_DEV for global control device instead of DUMMY_DEV. Change-Id: If3555906d359695b2eae51209cd97fbaaace7e61 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/25852 Reviewed-by: Werner Zeh <werner.zeh@siemens.com> Reviewed-by: Felix Held <felix-coreboot@felixheld.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
committed by
Martin Roth
parent
64b759e201
commit
f5f1b383b1
@@ -31,7 +31,7 @@
|
|||||||
#define IT8772F_BASE 0x2e
|
#define IT8772F_BASE 0x2e
|
||||||
#define IT8772F_SERIAL_DEV PNP_DEV(IT8772F_BASE, IT8772F_SP1)
|
#define IT8772F_SERIAL_DEV PNP_DEV(IT8772F_BASE, IT8772F_SP1)
|
||||||
#define IT8772F_GPIO_DEV PNP_DEV(IT8772F_BASE, IT8772F_GPIO)
|
#define IT8772F_GPIO_DEV PNP_DEV(IT8772F_BASE, IT8772F_GPIO)
|
||||||
#define IT8772F_DUMMY_DEV PNP_DEV(IT8772F_BASE, 0)
|
#define IT8772F_SUPERIO_DEV PNP_DEV(IT8772F_BASE, 0)
|
||||||
|
|
||||||
#ifndef __ACPI__
|
#ifndef __ACPI__
|
||||||
void lan_init(void);
|
void lan_init(void);
|
||||||
|
@@ -137,7 +137,7 @@ void mainboard_romstage_entry(unsigned long bist)
|
|||||||
|
|
||||||
/* Early SuperIO setup */
|
/* Early SuperIO setup */
|
||||||
ite_kill_watchdog(IT8772F_GPIO_DEV);
|
ite_kill_watchdog(IT8772F_GPIO_DEV);
|
||||||
it8772f_ac_resume_southbridge(IT8772F_DUMMY_DEV);
|
it8772f_ac_resume_southbridge(IT8772F_SUPERIO_DEV);
|
||||||
pch_enable_lpc();
|
pch_enable_lpc();
|
||||||
ite_enable_serial(IT8772F_SERIAL_DEV, CONFIG_TTYS0_BASE);
|
ite_enable_serial(IT8772F_SERIAL_DEV, CONFIG_TTYS0_BASE);
|
||||||
|
|
||||||
|
@@ -50,6 +50,6 @@ enum {
|
|||||||
#define IT8772F_BASE 0x2e
|
#define IT8772F_BASE 0x2e
|
||||||
#define IT8772F_SERIAL_DEV PNP_DEV(IT8772F_BASE, IT8772F_SP1)
|
#define IT8772F_SERIAL_DEV PNP_DEV(IT8772F_BASE, IT8772F_SP1)
|
||||||
#define IT8772F_GPIO_DEV PNP_DEV(IT8772F_BASE, IT8772F_GPIO)
|
#define IT8772F_GPIO_DEV PNP_DEV(IT8772F_BASE, IT8772F_GPIO)
|
||||||
#define IT8772F_DUMMY_DEV PNP_DEV(IT8772F_BASE, 0)
|
#define IT8772F_SUPERIO_DEV PNP_DEV(IT8772F_BASE, 0)
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -54,7 +54,7 @@ void mainboard_romstage_entry(struct romstage_params *rp)
|
|||||||
void mainboard_pre_console_init(void)
|
void mainboard_pre_console_init(void)
|
||||||
{
|
{
|
||||||
/* Early SuperIO setup */
|
/* Early SuperIO setup */
|
||||||
it8772f_ac_resume_southbridge(IT8772F_DUMMY_DEV);
|
it8772f_ac_resume_southbridge(IT8772F_SUPERIO_DEV);
|
||||||
ite_kill_watchdog(IT8772F_GPIO_DEV);
|
ite_kill_watchdog(IT8772F_GPIO_DEV);
|
||||||
ite_enable_serial(IT8772F_SERIAL_DEV, CONFIG_TTYS0_BASE);
|
ite_enable_serial(IT8772F_SERIAL_DEV, CONFIG_TTYS0_BASE);
|
||||||
|
|
||||||
|
@@ -37,7 +37,7 @@
|
|||||||
#include <southbridge/intel/i82801gx/i82801gx.h>
|
#include <southbridge/intel/i82801gx/i82801gx.h>
|
||||||
|
|
||||||
#define SERIAL_DEV PNP_DEV(0x4e, W83627EHG_SP1)
|
#define SERIAL_DEV PNP_DEV(0x4e, W83627EHG_SP1)
|
||||||
#define DUMMY_DEV PNP_DEV(0x4e, 0)
|
#define SUPERIO_DEV PNP_DEV(0x4e, 0)
|
||||||
|
|
||||||
static void ich7_enable_lpc(void)
|
static void ich7_enable_lpc(void)
|
||||||
{
|
{
|
||||||
@@ -63,7 +63,7 @@ static void early_superio_config_w83627ehg(void)
|
|||||||
{
|
{
|
||||||
pnp_devfn_t dev;
|
pnp_devfn_t dev;
|
||||||
|
|
||||||
dev = DUMMY_DEV;
|
dev = SUPERIO_DEV;
|
||||||
pnp_enter_conf_state(dev);
|
pnp_enter_conf_state(dev);
|
||||||
|
|
||||||
pnp_write_config(dev, 0x24, 0xc4); // PNPCVS
|
pnp_write_config(dev, 0x24, 0xc4); // PNPCVS
|
||||||
|
@@ -52,7 +52,7 @@
|
|||||||
#endif
|
#endif
|
||||||
#define USB_RESET_DISABLE_MAGIC (0xdd) /* Disable if set to this */
|
#define USB_RESET_DISABLE_MAGIC (0xdd) /* Disable if set to this */
|
||||||
|
|
||||||
#define DUMMY_DEV PNP_DEV(0x2e, 0)
|
#define SUPERIO_DEV PNP_DEV(0x2e, 0)
|
||||||
#define SERIAL_DEV PNP_DEV(0x2e, IT8772F_SP1)
|
#define SERIAL_DEV PNP_DEV(0x2e, IT8772F_SP1)
|
||||||
#define GPIO_DEV PNP_DEV(0x2e, IT8772F_GPIO)
|
#define GPIO_DEV PNP_DEV(0x2e, IT8772F_GPIO)
|
||||||
|
|
||||||
@@ -123,17 +123,17 @@ static void setup_sio_gpios(void)
|
|||||||
* GPIO10 as USBPWRON12#
|
* GPIO10 as USBPWRON12#
|
||||||
* GPIO12 as USBPWRON13#
|
* GPIO12 as USBPWRON13#
|
||||||
*/
|
*/
|
||||||
it8772f_gpio_setup(DUMMY_DEV, 1, 0x05, 0x05, 0x00, 0x05, 0x05);
|
it8772f_gpio_setup(SUPERIO_DEV, 1, 0x05, 0x05, 0x00, 0x05, 0x05);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* GPIO22 as wake SCI#
|
* GPIO22 as wake SCI#
|
||||||
*/
|
*/
|
||||||
it8772f_gpio_setup(DUMMY_DEV, 2, 0x04, 0x04, 0x00, 0x04, 0x04);
|
it8772f_gpio_setup(SUPERIO_DEV, 2, 0x04, 0x04, 0x00, 0x04, 0x04);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* GPIO32 as EXTSMI#
|
* GPIO32 as EXTSMI#
|
||||||
*/
|
*/
|
||||||
it8772f_gpio_setup(DUMMY_DEV, 3, 0x04, 0x04, 0x00, 0x04, 0x04);
|
it8772f_gpio_setup(SUPERIO_DEV, 3, 0x04, 0x04, 0x00, 0x04, 0x04);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* GPIO45 as LED_POWER#
|
* GPIO45 as LED_POWER#
|
||||||
@@ -147,8 +147,8 @@ static void setup_sio_gpios(void)
|
|||||||
* GPIO51 as USBPWRON8#
|
* GPIO51 as USBPWRON8#
|
||||||
* GPIO52 as USBPWRON1#
|
* GPIO52 as USBPWRON1#
|
||||||
*/
|
*/
|
||||||
it8772f_gpio_setup(DUMMY_DEV, 5, 0x06, 0x06, 0x00, 0x06, 0x06);
|
it8772f_gpio_setup(SUPERIO_DEV, 5, 0x06, 0x06, 0x00, 0x06, 0x06);
|
||||||
it8772f_gpio_setup(DUMMY_DEV, 6, 0x00, 0x00, 0x00, 0x00, 0x00);
|
it8772f_gpio_setup(SUPERIO_DEV, 6, 0x00, 0x00, 0x00, 0x00, 0x00);
|
||||||
}
|
}
|
||||||
|
|
||||||
void mainboard_fill_pei_data(struct pei_data *pei_data)
|
void mainboard_fill_pei_data(struct pei_data *pei_data)
|
||||||
@@ -258,7 +258,7 @@ void mainboard_config_superio(void)
|
|||||||
setup_sio_gpios();
|
setup_sio_gpios();
|
||||||
|
|
||||||
/* Early SuperIO setup */
|
/* Early SuperIO setup */
|
||||||
it8772f_ac_resume_southbridge(DUMMY_DEV);
|
it8772f_ac_resume_southbridge(SUPERIO_DEV);
|
||||||
ite_kill_watchdog(GPIO_DEV);
|
ite_kill_watchdog(GPIO_DEV);
|
||||||
ite_enable_serial(SERIAL_DEV, CONFIG_TTYS0_BASE);
|
ite_enable_serial(SERIAL_DEV, CONFIG_TTYS0_BASE);
|
||||||
}
|
}
|
||||||
|
@@ -25,7 +25,7 @@
|
|||||||
|
|
||||||
/* Include for SIO helper functions */
|
/* Include for SIO helper functions */
|
||||||
#include <superio/ite/it8772f/it8772f.h>
|
#include <superio/ite/it8772f/it8772f.h>
|
||||||
#define DUMMY_DEV PNP_DEV(0x2e, 0)
|
#define SUPERIO_DEV PNP_DEV(0x2e, 0)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Change LED_POWER# (SIO GPIO 45) state based on sleep type.
|
* Change LED_POWER# (SIO GPIO 45) state based on sleep type.
|
||||||
@@ -36,14 +36,14 @@ void mainboard_smi_sleep(u8 slp_typ)
|
|||||||
switch (slp_typ) {
|
switch (slp_typ) {
|
||||||
case ACPI_S3:
|
case ACPI_S3:
|
||||||
case ACPI_S4:
|
case ACPI_S4:
|
||||||
it8772f_gpio_led(DUMMY_DEV, 4 /* set */, (0x1 << 5) /* select */,
|
it8772f_gpio_led(SUPERIO_DEV, 4 /* set */, (0x1 << 5) /* select */,
|
||||||
(0x1 << 5) /* polarity */, (0x1 << 5) /* 1 = pullup */,
|
(0x1 << 5) /* polarity */, (0x1 << 5) /* 1 = pullup */,
|
||||||
(0x1 << 5) /* output */, 0x00, /* 0 = Alternate function */
|
(0x1 << 5) /* output */, 0x00, /* 0 = Alternate function */
|
||||||
SIO_GPIO_BLINK_GPIO45, IT8772F_GPIO_BLINK_FREQUENCY_1_HZ);
|
SIO_GPIO_BLINK_GPIO45, IT8772F_GPIO_BLINK_FREQUENCY_1_HZ);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ACPI_S5:
|
case ACPI_S5:
|
||||||
it8772f_gpio_led(DUMMY_DEV, 4 /* set */, (0x1 << 5) /* select */,
|
it8772f_gpio_led(SUPERIO_DEV, 4 /* set */, (0x1 << 5) /* select */,
|
||||||
0x00 /* polarity: non-inverting */, 0x00 /* 0 = pulldown */,
|
0x00 /* polarity: non-inverting */, 0x00 /* 0 = pulldown */,
|
||||||
(0x1 << 5) /* output */, (0x1 << 5) /* 1 = Simple IO function */,
|
(0x1 << 5) /* output */, (0x1 << 5) /* 1 = Simple IO function */,
|
||||||
SIO_GPIO_BLINK_GPIO45, IT8772F_GPIO_BLINK_FREQUENCY_1_HZ);
|
SIO_GPIO_BLINK_GPIO45, IT8772F_GPIO_BLINK_FREQUENCY_1_HZ);
|
||||||
|
@@ -36,7 +36,7 @@
|
|||||||
#include "northbridge/amd/amdk8/setup_resource_map.c"
|
#include "northbridge/amd/amdk8/setup_resource_map.c"
|
||||||
|
|
||||||
#define SERIAL_DEV PNP_DEV(0x2e, W83627HF_SP1)
|
#define SERIAL_DEV PNP_DEV(0x2e, W83627HF_SP1)
|
||||||
#define DUMMY_DEV PNP_DEV(0x2e, 0)
|
#define SUPERIO_DEV PNP_DEV(0x2e, 0)
|
||||||
|
|
||||||
unsigned get_sbdn(unsigned bus);
|
unsigned get_sbdn(unsigned bus);
|
||||||
|
|
||||||
@@ -140,7 +140,7 @@ void cache_as_ram_main(unsigned long bist, unsigned long cpu_init_detectedx)
|
|||||||
if (bist == 0)
|
if (bist == 0)
|
||||||
bsp_apicid = init_cpus(cpu_init_detectedx, sysinfo);
|
bsp_apicid = init_cpus(cpu_init_detectedx, sysinfo);
|
||||||
|
|
||||||
winbond_set_clksel_48(DUMMY_DEV);
|
winbond_set_clksel_48(SUPERIO_DEV);
|
||||||
winbond_enable_serial(SERIAL_DEV, CONFIG_TTYS0_BASE);
|
winbond_enable_serial(SERIAL_DEV, CONFIG_TTYS0_BASE);
|
||||||
|
|
||||||
console_init();
|
console_init();
|
||||||
|
@@ -39,7 +39,7 @@
|
|||||||
#include "northbridge/amd/amdk8/setup_resource_map.c"
|
#include "northbridge/amd/amdk8/setup_resource_map.c"
|
||||||
|
|
||||||
#define SERIAL_DEV PNP_DEV(0x2e, W83627HF_SP1)
|
#define SERIAL_DEV PNP_DEV(0x2e, W83627HF_SP1)
|
||||||
#define DUMMY_DEV PNP_DEV(0x2e, 0)
|
#define SUPERIO_DEV PNP_DEV(0x2e, 0)
|
||||||
|
|
||||||
unsigned get_sbdn(unsigned bus);
|
unsigned get_sbdn(unsigned bus);
|
||||||
|
|
||||||
@@ -120,7 +120,7 @@ void cache_as_ram_main(unsigned long bist, unsigned long cpu_init_detectedx)
|
|||||||
if (bist == 0)
|
if (bist == 0)
|
||||||
bsp_apicid = init_cpus(cpu_init_detectedx, sysinfo);
|
bsp_apicid = init_cpus(cpu_init_detectedx, sysinfo);
|
||||||
|
|
||||||
winbond_set_clksel_48(DUMMY_DEV);
|
winbond_set_clksel_48(SUPERIO_DEV);
|
||||||
winbond_enable_serial(SERIAL_DEV, CONFIG_TTYS0_BASE);
|
winbond_enable_serial(SERIAL_DEV, CONFIG_TTYS0_BASE);
|
||||||
|
|
||||||
console_init();
|
console_init();
|
||||||
|
@@ -50,7 +50,7 @@
|
|||||||
#include "southbridge/nvidia/mcp55/early_setup_car.c"
|
#include "southbridge/nvidia/mcp55/early_setup_car.c"
|
||||||
|
|
||||||
#define SERIAL_DEV PNP_DEV(0x2e, W83627HF_SP1)
|
#define SERIAL_DEV PNP_DEV(0x2e, W83627HF_SP1)
|
||||||
#define DUMMY_DEV PNP_DEV(0x2e, 0)
|
#define SUPERIO_DEV PNP_DEV(0x2e, 0)
|
||||||
|
|
||||||
void activate_spd_rom(const struct mem_controller *ctrl);
|
void activate_spd_rom(const struct mem_controller *ctrl);
|
||||||
int spd_read_byte(unsigned device, unsigned address);
|
int spd_read_byte(unsigned device, unsigned address);
|
||||||
@@ -130,7 +130,7 @@ void cache_as_ram_main(unsigned long bist, unsigned long cpu_init_detectedx)
|
|||||||
|
|
||||||
post_code(0x32);
|
post_code(0x32);
|
||||||
|
|
||||||
winbond_set_clksel_48(DUMMY_DEV);
|
winbond_set_clksel_48(SUPERIO_DEV);
|
||||||
winbond_enable_serial(SERIAL_DEV, CONFIG_TTYS0_BASE);
|
winbond_enable_serial(SERIAL_DEV, CONFIG_TTYS0_BASE);
|
||||||
|
|
||||||
console_init();
|
console_init();
|
||||||
|
@@ -49,7 +49,7 @@
|
|||||||
#include "southbridge/nvidia/mcp55/early_setup_car.c"
|
#include "southbridge/nvidia/mcp55/early_setup_car.c"
|
||||||
|
|
||||||
#define SERIAL_DEV PNP_DEV(0x2e, W83627HF_SP1)
|
#define SERIAL_DEV PNP_DEV(0x2e, W83627HF_SP1)
|
||||||
#define DUMMY_DEV PNP_DEV(0x2e, 0)
|
#define SUPERIO_DEV PNP_DEV(0x2e, 0)
|
||||||
|
|
||||||
#define SMBUS_SWITCH1 0x70
|
#define SMBUS_SWITCH1 0x70
|
||||||
#define SMBUS_SWITCH2 0x72
|
#define SMBUS_SWITCH2 0x72
|
||||||
@@ -195,7 +195,7 @@ void cache_as_ram_main(unsigned long bist, unsigned long cpu_init_detectedx)
|
|||||||
|
|
||||||
post_code(0x32);
|
post_code(0x32);
|
||||||
|
|
||||||
winbond_set_clksel_48(DUMMY_DEV);
|
winbond_set_clksel_48(SUPERIO_DEV);
|
||||||
winbond_enable_serial(SERIAL_DEV, CONFIG_TTYS0_BASE);
|
winbond_enable_serial(SERIAL_DEV, CONFIG_TTYS0_BASE);
|
||||||
|
|
||||||
console_init();
|
console_init();
|
||||||
|
@@ -41,7 +41,7 @@
|
|||||||
#include <superio/winbond/w83697hf/w83697hf.h>
|
#include <superio/winbond/w83697hf/w83697hf.h>
|
||||||
|
|
||||||
#define SERIAL_DEV PNP_DEV(0x2e, W83697HF_SP1)
|
#define SERIAL_DEV PNP_DEV(0x2e, W83697HF_SP1)
|
||||||
#define DUMMY_DEV PNP_DEV(0x2e, 0)
|
#define SUPERIO_DEV PNP_DEV(0x2e, 0)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This acpi_is_wakeup_early_via_VX800 is from Rudolf's patch on the list:
|
* This acpi_is_wakeup_early_via_VX800 is from Rudolf's patch on the list:
|
||||||
@@ -378,7 +378,7 @@ void main(unsigned long bist)
|
|||||||
*/
|
*/
|
||||||
pci_write_config8(PCI_DEV(0, 0, 0), 0x4f, 0x01);
|
pci_write_config8(PCI_DEV(0, 0, 0), 0x4f, 0x01);
|
||||||
/* EmbedComInit(); */
|
/* EmbedComInit(); */
|
||||||
winbond_set_clksel_48(DUMMY_DEV);
|
winbond_set_clksel_48(SUPERIO_DEV);
|
||||||
winbond_enable_serial(SERIAL_DEV, CONFIG_TTYS0_BASE);
|
winbond_enable_serial(SERIAL_DEV, CONFIG_TTYS0_BASE);
|
||||||
/* enable_vx800_serial(); */
|
/* enable_vx800_serial(); */
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user