Re: [PATCH 02/30] video/omap: fix dependencies

2011-10-03 Thread Tomi Valkeinen
Hi Arnd,

On Sun, 2011-10-02 at 16:45 +0200, Arnd Bergmann wrote:
 The lcd_2430sdp and lcd_ldp drivers depend on TWL4030, which is not
 well expressed in the Kconfig. Create new configuration options for
 these in order to describe the dependencies correctly.
 
 In some cases, the driver cannot be a loadable module, so better
 force it to be built-in.
 
 While we're at it, simplify the Makefile syntax.
 
 Signed-off-by: Arnd Bergmann a...@arndb.de
 Cc: Tomi Valkeinen tomi.valkei...@ti.com
 ---
  drivers/video/omap/Kconfig  |   41 +---
  drivers/video/omap/Makefile |   64 
 ---
  2 files changed, 67 insertions(+), 38 deletions(-)

I have ported lcd_2430sdp and lcd_ldp drivers (and also other OMAP2/3
panel drivers, except N800) to the newer omapdss driver
(drivers/video/omap2), and the code is in my for-next branch
(git://gitorious.org/linux-omap-dss2/linux.git for-next).

I have also worked on removing OMAP2/3 support from the old omapfb
driver, thus making it OMAP1 fb driver. This code is not yet ready, and
won't make it in the next merge window.

Your patch will conflict with both of those changes. Is it ok for you to
drop this patch, and I'll make a new one on top of my changes to clean
up the Makefile in a similar way than you did? The new patch wouldn't
make it in the next merge window, though, but I don't think this patch
is fixing any bigger bug, so perhaps it's not so urgent.

 Tomi


--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH 02/30] video/omap: fix dependencies

2011-10-03 Thread Arnd Bergmann
On Monday 03 October 2011 09:53:50 Tomi Valkeinen wrote:
 Your patch will conflict with both of those changes. Is it ok for you to
 drop this patch, and I'll make a new one on top of my changes to clean
 up the Makefile in a similar way than you did? The new patch wouldn't
 make it in the next merge window, though, but I don't think this patch
 is fixing any bigger bug, so perhaps it's not so urgent.

Sure, no problem. I'll put it into my hacks branch then, so I can
still do randconfig builds and we get back to it later.

Arnd
--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH 02/30] video/omap: fix dependencies

2011-10-02 Thread Arnd Bergmann
The lcd_2430sdp and lcd_ldp drivers depend on TWL4030, which is not
well expressed in the Kconfig. Create new configuration options for
these in order to describe the dependencies correctly.

In some cases, the driver cannot be a loadable module, so better
force it to be built-in.

While we're at it, simplify the Makefile syntax.

Signed-off-by: Arnd Bergmann a...@arndb.de
Cc: Tomi Valkeinen tomi.valkei...@ti.com
---
 drivers/video/omap/Kconfig  |   41 +---
 drivers/video/omap/Makefile |   64 ---
 2 files changed, 67 insertions(+), 38 deletions(-)

diff --git a/drivers/video/omap/Kconfig b/drivers/video/omap/Kconfig
index 196fa2e..bd15431 100644
--- a/drivers/video/omap/Kconfig
+++ b/drivers/video/omap/Kconfig
@@ -1,11 +1,11 @@
 config FB_OMAP
-   tristate OMAP frame buffer support (EXPERIMENTAL)
-   depends on FB  (OMAP2_DSS = n)
+   bool OMAP frame buffer support (EXPERIMENTAL)
+   # cannot be a module if more than one LCD driver is linked in
+   depends on (FB = y)  (OMAP2_DSS = n)
depends on ARCH_OMAP1 || ARCH_OMAP2 || ARCH_OMAP3
select FB_CFB_FILLRECT
select FB_CFB_COPYAREA
select FB_CFB_IMAGEBLIT
-   select TWL4030_CORE if MACH_OMAP_2430SDP
help
   Frame buffer driver for OMAP based boards.
 
@@ -105,4 +105,37 @@ config FB_OMAP_DMA_TUNE
   answer yes. Answer no if you have a dedicated video
   memory, or don't use any of the accelerated features.
 
-
+config FB_OMAP_SOSSI
+   def_bool y
+   depends on ARCH_OMAP1
+   depends on FB_OMAP_LCDC_EXTERNAL
+
+config FB_OMAP_RFBI
+   def_bool y
+   depends on ARCH_OMAP2 || ARCH_OMAP3
+   depends on FB_OMAP_LCDC_EXTERNAL
+
+config FB_OMAP_INN1610
+   def_bool y
+   depends on ARCH_OMAP16XX
+   depends on MACH_OMAP_INNOVATOR
+
+config FB_OMAP_INN1510
+   def_bool y
+   depends on ARCH_OMAP15XX
+   depends on MACH_OMAP_INNOVATOR
+
+config FB_OMAP_OMAP3EVM
+   def_bool y
+   depends on MACH_OMAP3EVM
+   depends on TWL4030_CORE
+
+config FB_OMAP_X430SDP
+   def_bool y
+   depends on MACH_OMAP_2430SDP || MACH_OMAP_3430SDP
+   depends on TWL4030_CORE
+
+config FB_OMAP_LDP
+   def_bool y
+   depends on MACH_OMAP_LDP
+   depends on TWL4030_CORE
diff --git a/drivers/video/omap/Makefile b/drivers/video/omap/Makefile
index 25db556..8c2cd56 100644
--- a/drivers/video/omap/Makefile
+++ b/drivers/video/omap/Makefile
@@ -4,37 +4,33 @@
 
 obj-$(CONFIG_FB_OMAP) += omapfb.o
 
-objs-yy := omapfb_main.o
-
-objs-y$(CONFIG_ARCH_OMAP1) += lcdc.o
-objs-y$(CONFIG_ARCH_OMAP2) += dispc.o
-objs-y$(CONFIG_ARCH_OMAP3) += dispc.o
-
-objs-$(CONFIG_ARCH_OMAP1)$(CONFIG_FB_OMAP_LCDC_EXTERNAL) += sossi.o
-objs-$(CONFIG_ARCH_OMAP2)$(CONFIG_FB_OMAP_LCDC_EXTERNAL) += rfbi.o
-
-objs-y$(CONFIG_FB_OMAP_LCDC_HWA742) += hwa742.o
-objs-y$(CONFIG_FB_OMAP_LCDC_BLIZZARD) += blizzard.o
-
-objs-y$(CONFIG_MACH_AMS_DELTA) += lcd_ams_delta.o
-objs-y$(CONFIG_MACH_OMAP_H4) += lcd_h4.o
-objs-y$(CONFIG_MACH_OMAP_H3) += lcd_h3.o
-objs-y$(CONFIG_MACH_OMAP_PALMTE) += lcd_palmte.o
-objs-y$(CONFIG_MACH_OMAP_PALMTT) += lcd_palmtt.o
-objs-y$(CONFIG_MACH_OMAP_PALMZ71) += lcd_palmz71.o
-objs-$(CONFIG_ARCH_OMAP16XX)$(CONFIG_MACH_OMAP_INNOVATOR) += lcd_inn1610.o
-objs-$(CONFIG_ARCH_OMAP15XX)$(CONFIG_MACH_OMAP_INNOVATOR) += lcd_inn1510.o
-objs-y$(CONFIG_MACH_OMAP_OSK) += lcd_osk.o
-
-objs-y$(CONFIG_MACH_OMAP_APOLLON) += lcd_apollon.o
-objs-y$(CONFIG_MACH_OMAP_2430SDP) += lcd_2430sdp.o
-objs-y$(CONFIG_MACH_OMAP_3430SDP) += lcd_2430sdp.o
-objs-y$(CONFIG_MACH_OMAP_LDP) += lcd_ldp.o
-objs-y$(CONFIG_MACH_OMAP3EVM) += lcd_omap3evm.o
-objs-y$(CONFIG_MACH_OMAP3_BEAGLE) += lcd_omap3beagle.o
-objs-y$(CONFIG_FB_OMAP_LCD_MIPID) += lcd_mipid.o
-objs-y$(CONFIG_MACH_OVERO) += lcd_overo.o
-objs-y$(CONFIG_MACH_HERALD) += lcd_htcherald.o
-
-omapfb-objs := $(objs-yy)
-
+omapfb-y   += omapfb_main.o
+
+omapfb-$(CONFIG_ARCH_OMAP1)+= lcdc.o
+omapfb-$(CONFIG_ARCH_OMAP2)+= dispc.o
+omapfb-$(CONFIG_ARCH_OMAP3)+= dispc.o
+
+omapfb-$(CONFIG_FB_OMAP_SOSSI) += sossi.o
+omapfb-$(CONFIG_FB_OMAP_RFBI)  += rfbi.o
+
+omapfb-$(CONFIG_FB_OMAP_LCDC_HWA742)   += hwa742.o
+omapfb-$(CONFIG_FB_OMAP_LCDC_BLIZZARD) += blizzard.o
+
+omapfb-$(CONFIG_MACH_AMS_DELTA)+= lcd_ams_delta.o
+omapfb-$(CONFIG_MACH_OMAP_H4)  += lcd_h4.o
+omapfb-$(CONFIG_MACH_OMAP_H3)  += lcd_h3.o
+omapfb-$(CONFIG_MACH_OMAP_PALMTE)  += lcd_palmte.o
+omapfb-$(CONFIG_MACH_OMAP_PALMTT)  += lcd_palmtt.o
+omapfb-$(CONFIG_MACH_OMAP_PALMZ71) += lcd_palmz71.o
+omapfb-$(CONFIG_FB_OMAP_INN1610)   += lcd_inn1610.o
+omapfb-$(CONFIG_FB_OMAP_INN1510)   += lcd_inn1510.o
+omapfb-$(CONFIG_MACH_OMAP_OSK) += lcd_osk.o
+
+omapfb-$(CONFIG_MACH_OMAP_APOLLON) += lcd_apollon.o
+omapfb-$(CONFIG_FB_OMAP_X430SDP)   += lcd_2430sdp.o