[U-Boot] [PATCH 2/2] cm-t35: move the display code to common place

Igor Grinberg grinberg at compulab.co.il
Mon Sep 16 20:49:59 CEST 2013


Compulab OMAP3 boards use the same display initialization code.
Move the display initialization code to live under board/compulab/common
directory.

Signed-off-by: Igor Grinberg <grinberg at compulab.co.il>
Tested-by: Nikita Kiryanov <nikita at compulab.co.il>
---
 board/compulab/cm_t35/Makefile                              | 2 --
 board/compulab/common/Makefile                              | 1 +
 board/compulab/{cm_t35/display.c => common/omap3_display.c} | 0
 3 files changed, 1 insertion(+), 2 deletions(-)
 rename board/compulab/{cm_t35/display.c => common/omap3_display.c} (100%)

diff --git a/board/compulab/cm_t35/Makefile b/board/compulab/cm_t35/Makefile
index 8b922b3..213423e 100644
--- a/board/compulab/cm_t35/Makefile
+++ b/board/compulab/cm_t35/Makefile
@@ -11,8 +11,6 @@ include $(TOPDIR)/config.mk
 
 LIB	= $(obj)lib$(BOARD).o
 
-COBJS-$(CONFIG_LCD) += display.o
-
 COBJS	:= cm_t35.o leds.o $(COBJS-y)
 
 SRCS	:= $(COBJS:.o=.c)
diff --git a/board/compulab/common/Makefile b/board/compulab/common/Makefile
index ec2e510..b399c8f 100644
--- a/board/compulab/common/Makefile
+++ b/board/compulab/common/Makefile
@@ -15,6 +15,7 @@ endif
 LIB	= $(obj)lib$(VENDOR).o
 
 COBJS-$(CONFIG_DRIVER_OMAP34XX_I2C) += eeprom.o
+COBJS-$(CONFIG_LCD) += omap3_display.o
 
 COBJS	:= $(COBJS-y)
 SRCS	:= $(SOBJS:.o=.S) $(COBJS:.o=.c)
diff --git a/board/compulab/cm_t35/display.c b/board/compulab/common/omap3_display.c
similarity index 100%
rename from board/compulab/cm_t35/display.c
rename to board/compulab/common/omap3_display.c
-- 
1.8.1.5



More information about the U-Boot mailing list