mb/*/bootblock.c: Fix set but unused variable over inb loop
Change-Id: Iba80c4a5960c6fb59f542b33e8e769576ccfed59 Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/63060 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Patrick Rudolph <siro@das-labor.org>
This commit is contained in:
@@ -7,12 +7,11 @@
|
|||||||
void bootblock_mainboard_early_init(void)
|
void bootblock_mainboard_early_init(void)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
u32 val;
|
|
||||||
|
|
||||||
/* Disable PCI-PCI bridge and release GPIO32/33 for other uses. */
|
/* Disable PCI-PCI bridge and release GPIO32/33 for other uses. */
|
||||||
pm_write8(0xea, 0x1);
|
pm_write8(0xea, 0x1);
|
||||||
|
|
||||||
/* On Larne, after LpcClkDrvSth is set, it needs some time to be stable, because of the buffer ICS551M */
|
/* On Larne, after LpcClkDrvSth is set, it needs some time to be stable, because of the buffer ICS551M */
|
||||||
for (i = 0; i < 200000; i++)
|
for (i = 0; i < 200000; i++)
|
||||||
val = inb(0xcd6);
|
inb(0xcd6);
|
||||||
}
|
}
|
||||||
|
@@ -103,7 +103,7 @@ static void ite_gpio_conf(pnp_devfn_t dev)
|
|||||||
|
|
||||||
void bootblock_mainboard_early_init(void)
|
void bootblock_mainboard_early_init(void)
|
||||||
{
|
{
|
||||||
u32 val, i;
|
u32 i;
|
||||||
|
|
||||||
/* Disable PCI-PCI bridge and release GPIO32/33 for other uses. */
|
/* Disable PCI-PCI bridge and release GPIO32/33 for other uses. */
|
||||||
pm_write8(0xea, 0x1);
|
pm_write8(0xea, 0x1);
|
||||||
@@ -128,5 +128,5 @@ void bootblock_mainboard_early_init(void)
|
|||||||
* because of the buffer ICS551M
|
* because of the buffer ICS551M
|
||||||
*/
|
*/
|
||||||
for (i = 0; i < 200000; i++)
|
for (i = 0; i < 200000; i++)
|
||||||
val = inb(0xcd6);
|
inb(0xcd6);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user