|
@@ -7,7 +7,6 @@
|
|
#include <common.h>
|
|
#include <common.h>
|
|
#include <asm/io.h>
|
|
#include <asm/io.h>
|
|
#include <asm/arch/device.h>
|
|
#include <asm/arch/device.h>
|
|
-#include <asm/arch/gpio.h>
|
|
|
|
#include <asm/arch/quark.h>
|
|
#include <asm/arch/quark.h>
|
|
|
|
|
|
int board_early_init_f(void)
|
|
int board_early_init_f(void)
|
|
@@ -30,7 +29,7 @@ void board_assert_perst(void)
|
|
u32 base, port, val;
|
|
u32 base, port, val;
|
|
|
|
|
|
/* retrieve the GPIO IO base */
|
|
/* retrieve the GPIO IO base */
|
|
- qrk_pci_read_config_dword(QUARK_LEGACY_BRIDGE, PCI_CFG_GPIOBASE, &base);
|
|
|
|
|
|
+ qrk_pci_read_config_dword(QUARK_LEGACY_BRIDGE, LB_GBA, &base);
|
|
base = (base & 0xffff) & ~0x7f;
|
|
base = (base & 0xffff) & ~0x7f;
|
|
|
|
|
|
/* enable the pin */
|
|
/* enable the pin */
|
|
@@ -57,7 +56,7 @@ void board_deassert_perst(void)
|
|
u32 base, port, val;
|
|
u32 base, port, val;
|
|
|
|
|
|
/* retrieve the GPIO IO base */
|
|
/* retrieve the GPIO IO base */
|
|
- qrk_pci_read_config_dword(QUARK_LEGACY_BRIDGE, PCI_CFG_GPIOBASE, &base);
|
|
|
|
|
|
+ qrk_pci_read_config_dword(QUARK_LEGACY_BRIDGE, LB_GBA, &base);
|
|
base = (base & 0xffff) & ~0x7f;
|
|
base = (base & 0xffff) & ~0x7f;
|
|
|
|
|
|
/* pull it up (de-assert) */
|
|
/* pull it up (de-assert) */
|