From 945e32bae2d300fd24258f32d3e9127c6bda8e1b Mon Sep 17 00:00:00 2001 From: Xiangfu Liu Date: Wed, 28 Apr 2010 16:34:38 +0800 Subject: [PATCH] code cleanup --- xbboot/target-stage1/stage1.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/xbboot/target-stage1/stage1.c b/xbboot/target-stage1/stage1.c index 9a0a575..71163b5 100644 --- a/xbboot/target-stage1/stage1.c +++ b/xbboot/target-stage1/stage1.c @@ -55,10 +55,6 @@ void load_args() ARG_COL_ADDR = 9; } -#define GPIO_LCD_CS (2 * 32 + 21) -#define GPIO_KEYOUT_BASE (2 * 32 + 10) -#define GPIO_KEYIN_BASE (3 * 32 + 18) - void gpio_init() { __gpio_as_nand(); @@ -67,6 +63,10 @@ void gpio_init() __gpio_as_lcd_18bit(); __gpio_as_msc(); +#define GPIO_LCD_CS (2 * 32 + 21) +#define GPIO_KEYOUT_BASE (2 * 32 + 10) +#define GPIO_KEYIN_BASE (3 * 32 + 18) + unsigned int i; for (i = 0; i < 7; i++){ __gpio_as_input(GPIO_KEYIN_BASE + i);