mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-16 08:44:21 +08:00
arm: dove: Use correct GPIO_BASE and remove orion_gpio_init() leftover
commit 9eac6d0
(ARM: Remove dependency of plat-orion GPIO code on mach
directory includes) missed to convert one instance of
DOVE_GPIO_VIRT_BASE and left the orion_gpio_init() in mpp.c
Fix it up.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:
parent
a68e5e0b9f
commit
a40bd62153
@ -136,7 +136,7 @@
|
|||||||
#define DOVE_MPP_GENERAL_VIRT_BASE (DOVE_SB_REGS_VIRT_BASE | 0xe803c)
|
#define DOVE_MPP_GENERAL_VIRT_BASE (DOVE_SB_REGS_VIRT_BASE | 0xe803c)
|
||||||
#define DOVE_AU1_SPDIFO_GPIO_EN (1 << 1)
|
#define DOVE_AU1_SPDIFO_GPIO_EN (1 << 1)
|
||||||
#define DOVE_NAND_GPIO_EN (1 << 0)
|
#define DOVE_NAND_GPIO_EN (1 << 0)
|
||||||
#define DOVE_MPP_CTRL4_VIRT_BASE (DOVE_GPIO_VIRT_BASE + 0x40)
|
#define DOVE_MPP_CTRL4_VIRT_BASE (DOVE_GPIO_LO_VIRT_BASE + 0x40)
|
||||||
#define DOVE_SPI_GPIO_SEL (1 << 5)
|
#define DOVE_SPI_GPIO_SEL (1 << 5)
|
||||||
#define DOVE_UART1_GPIO_SEL (1 << 4)
|
#define DOVE_UART1_GPIO_SEL (1 << 4)
|
||||||
#define DOVE_AU1_GPIO_SEL (1 << 3)
|
#define DOVE_AU1_GPIO_SEL (1 << 3)
|
||||||
|
@ -147,9 +147,6 @@ void __init dove_mpp_conf(unsigned int *mpp_list)
|
|||||||
u32 pmu_sig_ctrl[PMU_SIG_REGS];
|
u32 pmu_sig_ctrl[PMU_SIG_REGS];
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
/* Initialize gpiolib. */
|
|
||||||
orion_gpio_init();
|
|
||||||
|
|
||||||
for (i = 0; i < MPP_NR_REGS; i++)
|
for (i = 0; i < MPP_NR_REGS; i++)
|
||||||
mpp_ctrl[i] = readl(MPP_CTRL(i));
|
mpp_ctrl[i] = readl(MPP_CTRL(i));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user