From f348f4f104b5dea88c4c9fcbe04d7702150cd63e Mon Sep 17 00:00:00 2001 From: Xiangfu Liu Date: Thu, 15 Apr 2010 18:08:48 +0800 Subject: [PATCH] [xbboot] init GPIO_LCD_CS for zImage kernel --- xbboot/target-stage1/stage1.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xbboot/target-stage1/stage1.c b/xbboot/target-stage1/stage1.c index 3658f20..4eb1da4 100644 --- a/xbboot/target-stage1/stage1.c +++ b/xbboot/target-stage1/stage1.c @@ -62,6 +62,10 @@ void gpio_init() __gpio_as_uart0(); __gpio_as_lcd_18bit(); __gpio_as_msc(); + +#define GPIO_LCD_CS (2 * 32 + 21) + __gpio_as_output(GPIO_LCD_CS); + __gpio_clear_pin(GPIO_LCD_CS); } void pll_init()