[U-Boot] [PATCH v3 2/8] pxa_lcd: make lcd_enable() a weak pointer

Mike Dunn mikedunn at newsguy.com
Fri Apr 12 20:59:14 CEST 2013


Make lcd_init() a weak pointer so that boards can overload it if necessary.  The
palmtreo680 board needs to wiggle some gpios and configure the pwm controller in
order to get the lcd and its backlight working.

Signed-off-by: Mike Dunn <mikedunn at newsguy.com>
---
Changelog:
v3: no change

v2:
  - use __weak macro instead of explicit compiler directive

 drivers/video/pxa_lcd.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/video/pxa_lcd.c b/drivers/video/pxa_lcd.c
index d5fbe7b..5e4c685 100644
--- a/drivers/video/pxa_lcd.c
+++ b/drivers/video/pxa_lcd.c
@@ -410,7 +410,7 @@ void lcd_initcolregs (void)
 #endif /* LCD_MONOCHROME */
 
 /*----------------------------------------------------------------------*/
-void lcd_enable (void)
+__weak void lcd_enable(void)
 {
 }
 
-- 
1.7.8.6



More information about the U-Boot mailing list