mb/amd,google/zork: Move init_tables() call
The semantics of pirq_setup() from previous platforms was to only setup the global pointers for PIC and APIC tables, not to create or modify the tables themselves. Change-Id: Iaa7c31eed21432dc2b3fe6b32803bd2658fd5e2d Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/50717 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
This commit is contained in:
parent
2c7842407a
commit
32b99169a5
|
@ -75,7 +75,6 @@ static void init_tables(void)
|
||||||
|
|
||||||
static void pirq_setup(void)
|
static void pirq_setup(void)
|
||||||
{
|
{
|
||||||
init_tables();
|
|
||||||
intr_data_ptr = fch_apic_routing;
|
intr_data_ptr = fch_apic_routing;
|
||||||
picr_data_ptr = fch_pic_routing;
|
picr_data_ptr = fch_pic_routing;
|
||||||
}
|
}
|
||||||
|
@ -100,6 +99,7 @@ static void bilby_enable(struct device *dev)
|
||||||
{
|
{
|
||||||
printk(BIOS_INFO, "Mainboard " CONFIG_MAINBOARD_PART_NUMBER " Enable.\n");
|
printk(BIOS_INFO, "Mainboard " CONFIG_MAINBOARD_PART_NUMBER " Enable.\n");
|
||||||
|
|
||||||
|
init_tables();
|
||||||
/* Initialize the PIRQ data structures for consumption */
|
/* Initialize the PIRQ data structures for consumption */
|
||||||
pirq_setup();
|
pirq_setup();
|
||||||
}
|
}
|
||||||
|
|
|
@ -81,7 +81,6 @@ static void init_tables(void)
|
||||||
|
|
||||||
static void pirq_setup(void)
|
static void pirq_setup(void)
|
||||||
{
|
{
|
||||||
init_tables();
|
|
||||||
intr_data_ptr = fch_apic_routing;
|
intr_data_ptr = fch_apic_routing;
|
||||||
picr_data_ptr = fch_pic_routing;
|
picr_data_ptr = fch_pic_routing;
|
||||||
}
|
}
|
||||||
|
@ -94,6 +93,7 @@ static void majolica_enable(struct device *dev)
|
||||||
{
|
{
|
||||||
printk(BIOS_INFO, "Mainboard " CONFIG_MAINBOARD_PART_NUMBER " Enable.\n");
|
printk(BIOS_INFO, "Mainboard " CONFIG_MAINBOARD_PART_NUMBER " Enable.\n");
|
||||||
|
|
||||||
|
init_tables();
|
||||||
/* Initialize the PIRQ data structures for consumption */
|
/* Initialize the PIRQ data structures for consumption */
|
||||||
pirq_setup();
|
pirq_setup();
|
||||||
}
|
}
|
||||||
|
|
|
@ -75,7 +75,6 @@ static void init_tables(void)
|
||||||
|
|
||||||
static void pirq_setup(void)
|
static void pirq_setup(void)
|
||||||
{
|
{
|
||||||
init_tables();
|
|
||||||
intr_data_ptr = fch_apic_routing;
|
intr_data_ptr = fch_apic_routing;
|
||||||
picr_data_ptr = fch_pic_routing;
|
picr_data_ptr = fch_pic_routing;
|
||||||
}
|
}
|
||||||
|
@ -100,6 +99,7 @@ static void mandolin_enable(struct device *dev)
|
||||||
{
|
{
|
||||||
printk(BIOS_INFO, "Mainboard " CONFIG_MAINBOARD_PART_NUMBER " Enable.\n");
|
printk(BIOS_INFO, "Mainboard " CONFIG_MAINBOARD_PART_NUMBER " Enable.\n");
|
||||||
|
|
||||||
|
init_tables();
|
||||||
/* Initialize the PIRQ data structures for consumption */
|
/* Initialize the PIRQ data structures for consumption */
|
||||||
pirq_setup();
|
pirq_setup();
|
||||||
}
|
}
|
||||||
|
|
|
@ -104,7 +104,6 @@ static void init_tables(void)
|
||||||
/* PIRQ Setup */
|
/* PIRQ Setup */
|
||||||
static void pirq_setup(void)
|
static void pirq_setup(void)
|
||||||
{
|
{
|
||||||
init_tables();
|
|
||||||
intr_data_ptr = fch_apic_routing;
|
intr_data_ptr = fch_apic_routing;
|
||||||
picr_data_ptr = fch_pic_routing;
|
picr_data_ptr = fch_pic_routing;
|
||||||
}
|
}
|
||||||
|
@ -202,6 +201,7 @@ static void zork_enable(struct device *dev)
|
||||||
{
|
{
|
||||||
printk(BIOS_INFO, "Mainboard " CONFIG_MAINBOARD_PART_NUMBER " Enable.\n");
|
printk(BIOS_INFO, "Mainboard " CONFIG_MAINBOARD_PART_NUMBER " Enable.\n");
|
||||||
|
|
||||||
|
init_tables();
|
||||||
/* Initialize the PIRQ data structures for consumption */
|
/* Initialize the PIRQ data structures for consumption */
|
||||||
pirq_setup();
|
pirq_setup();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue