x86: Drop asm/arch/gpio.h
asm/arch/gpio.h is not needed anymore as we get the GPIO base from PCH driver. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org> Tested-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -7,7 +7,6 @@
|
||||
#include <common.h>
|
||||
#include <asm/io.h>
|
||||
#include <asm/arch/device.h>
|
||||
#include <asm/arch/gpio.h>
|
||||
#include <asm/arch/quark.h>
|
||||
|
||||
int board_early_init_f(void)
|
||||
@@ -30,7 +29,7 @@ void board_assert_perst(void)
|
||||
u32 base, port, val;
|
||||
|
||||
/* 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;
|
||||
|
||||
/* enable the pin */
|
||||
@@ -57,7 +56,7 @@ void board_deassert_perst(void)
|
||||
u32 base, port, val;
|
||||
|
||||
/* 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;
|
||||
|
||||
/* pull it up (de-assert) */
|
||||
|
||||
Reference in New Issue
Block a user