From dd0e20e58837dfef0d0c34c247bede86ae34d99b Mon Sep 17 00:00:00 2001 From: Paul Mundt Date: Tue, 21 Oct 2008 18:08:10 +0900 Subject: sh: ap325rxa: Move off of hardcoded pinmux for flctl initialization. Signed-off-by: Paul Mundt --- arch/sh/boards/board-ap325rxa.c | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) (limited to 'arch/sh') diff --git a/arch/sh/boards/board-ap325rxa.c b/arch/sh/boards/board-ap325rxa.c index a3783ee6b078..033650cc6c98 100644 --- a/arch/sh/boards/board-ap325rxa.c +++ b/arch/sh/boards/board-ap325rxa.c @@ -407,17 +407,25 @@ static int __init ap325rxa_devices_setup(void) ctrl_outw(ctrl_inw(PORT_MSELCRB) & ~0x0001, PORT_MSELCRB); /* FLCTL */ - ctrl_outw(0, PORT_PUCR); - ctrl_outw(0, PORT_PVCR); - ctrl_outw(0, PORT_PSELC); + gpio_request(GPIO_FN_FCE, NULL); + gpio_request(GPIO_FN_NAF7, NULL); + gpio_request(GPIO_FN_NAF6, NULL); + gpio_request(GPIO_FN_NAF5, NULL); + gpio_request(GPIO_FN_NAF4, NULL); + gpio_request(GPIO_FN_NAF3, NULL); + gpio_request(GPIO_FN_NAF2, NULL); + gpio_request(GPIO_FN_NAF1, NULL); + gpio_request(GPIO_FN_NAF0, NULL); + gpio_request(GPIO_FN_FCDE, NULL); + gpio_request(GPIO_FN_FOE, NULL); + gpio_request(GPIO_FN_FSC, NULL); + gpio_request(GPIO_FN_FWE, NULL); + gpio_request(GPIO_FN_FRB, NULL); ctrl_outw(0, PORT_HIZCRC); ctrl_outw(0xFFFF, PORT_DRVCRA); ctrl_outw(0xFFFF, PORT_DRVCRB); - ctrl_outw((ctrl_inw(PORT_PXCR) & 0x3fff) | 0x4000, PORT_PXCR); - ctrl_outb(0x80, PORT_PXDR); - platform_resource_setup_memory(&ceu_device, "ceu", 4 << 20); i2c_register_board_info(0, ap325rxa_i2c_devices, -- cgit v1.2.2