This set of patches adds support for the i.MX25 LCD controller block using the
imxfb driver. Platform code for the i.MX25 PDK board is also added.
Tested on the i.MX25 PDK.
Baruch Siach (3):
imxfb: add support for i.MX25
mx25: add platform support for imxfb
mx25pdk: add LCD support
arch/arm/mach-mx25/clock.c | 12 ++++++
arch/arm/mach-mx25/devices.c | 23 +++++++++++
arch/arm/mach-mx25/devices.h | 1 +
arch/arm/mach-mx25/mx25pdk.c | 55 +++++++++++++++++++++++++++
arch/arm/plat-mxc/include/mach/iomux-mx25.h | 2 +
arch/arm/plat-mxc/include/mach/mx25.h | 2 +
drivers/video/Kconfig | 2 +-
7 files changed, 96 insertions(+), 1 deletions(-)
Can we make this
depends on FB && HAVE_FB_IMX
and let the archs select HAVE_FB_IMX?
And is "FB" really necessary? The snipplet above is in an
menuconfig FB
...
endmenu
block. (And there are many other items depending explicitly on FB.)
Best regards
Uwe
--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Can we make this
depends on FB && HAVE_FB_IMX
and let the archs select HAVE_FB_IMX?
I just wanted to do the minimal working change. Do you want me to send a patch
updating each ARCH's Kconfig?
And is "FB" really necessary? The snipplet above is in an
menuconfig FB
...
endmenu
block. (And there are many other items depending explicitly on FB.)
I don't know. As above, I'd rather do the minimal change.
baruch
--
~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{ - baruch@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
Can we make this
depends on FB && HAVE_FB_IMX
and let the archs select HAVE_FB_IMX?
I just wanted to do the minimal working change. Do you want me to send a patch
updating each ARCH's Kconfig?
Of course this should go in a seperate patch, so this is your chance to
increase your patch count even further :-)
For now I'd do the following to minimize inter-tree dependencies:
* remove all explicit dependencies on FB in the above block
* define
config HAVE_FB_IMX
bool
just before config FB_IMX and add it to the latter's
dependencies, such that it reads:
depends on HAVE_FB_IMX || ARCH_MX1 || ARCH_MX2
and when this change hit's Linus' tree let ARCH_MX1 and ARCH_MX2 select
HAVE_FB_IMX, too and remove it from the list.
I don't care when you add ARCH_MX25 as everything is more or less
orthogonal here.
Best regards
Uwe
--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Hello Baruch,
did you verify that dropping "FB" works correctly? You should point out
that FB was dropped on purpose and why it doesn't change anything in the
commit log.
Other than that
Acked-by: Uwe Kleine-König [off-list ref]
Thanks
Uwe
--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Hi Uwe,
On Wed, Feb 10, 2010 at 05:29:42PM +0100, Uwe Kleine-König wrote:
did you verify that dropping "FB" works correctly?
No, I didn't, and it doesn't. The "endmenu" at the end of
drivers/video/Kconfig ends the "menu" block, not the "menuconfig" block, which
does not require an explicit block end statement. So, the FB dependency is
required. I'll post an updated patch shortly.
Other than that
Acked-by: Uwe Kleine-König [off-list ref]
Thanks for your review, comments, and ack.
baruch
--
~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{ - baruch@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
@@ -233,6 +242,9 @@ int __init mx25_clocks_init(void)__raw_writel((0xf<<16)|(3<<26),CRM_BASE+CCM_CGCR1);__raw_writel((1<<5),CRM_BASE+CCM_CGCR2);+/* Clock source for lcdc is upll */+__raw_writel(__raw_readl(CRM_BASE+0x64)|(1<<7),CRM_BASE+0x64);+mxc_timer_init(&gpt_clk,MX25_IO_ADDRESS(MX25_GPT1_BASE_ADDR),54);return0;
0x64? Please define a register name for that constant. Ditto for 7.
Note I didn't look in the hardware manual, but I wonder if that should
better go in the enable routine for lcdc?
Best regards
Uwe
--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | http://www.pengutronix.de/ |
0x64? Please define a register name for that constant.
I just followed the precedence set in the get_rate_per() routine above.
Defining a register name is obviously better.
Ditto for 7.
See arch/arm/mach-mx3/clock.c:mx31_clocks_init() and
arch/arm/mach-mx3/clock-imx35.c:mx35_clocks_init(). This is probably a matter
for a separate cleanup patch.
Note I didn't look in the hardware manual, but I wonder if that should
better go in the enable routine for lcdc?
OK. I'll do it there.
baruch
--
~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{ - baruch@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
Note I didn't look in the hardware manual, but I wonder if that should
better go in the enable routine for lcdc?
OK. I'll do it there.
Oops. I now see that the mx25 DEFINE_CLOCK() macro doesn't allow you currently
to set an arbitrary .enable routine (following the mx27/mx31/mx35 clock
implementation). So this gets a little tricky, and I'm not sure it worth the
trouble. What do you think?
baruch
--
~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{ - baruch@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
Ping?
I'd really like to see this merged in .34.
Thanks,
baruch
On Wed, Feb 10, 2010 at 09:25:17AM +0200, Baruch Siach wrote:
This set of patches adds support for the i.MX25 LCD controller block using the
imxfb driver. Platform code for the i.MX25 PDK board is also added.
Tested on the i.MX25 PDK.
Baruch Siach (3):
imxfb: add support for i.MX25
mx25: add platform support for imxfb
mx25pdk: add LCD support
arch/arm/mach-mx25/clock.c | 12 ++++++
arch/arm/mach-mx25/devices.c | 23 +++++++++++
arch/arm/mach-mx25/devices.h | 1 +
arch/arm/mach-mx25/mx25pdk.c | 55 +++++++++++++++++++++++++++
arch/arm/plat-mxc/include/mach/iomux-mx25.h | 2 +
arch/arm/plat-mxc/include/mach/mx25.h | 2 +
drivers/video/Kconfig | 2 +-
7 files changed, 96 insertions(+), 1 deletions(-)
--
~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{ - baruch@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
if no one feels responsible for taking this stuff you might want to try
sending it to Andrew Morton (CC'ed). Just a general advice I really
don't know this framebuffer.
Regards,
Florian Tobias Schandinat
On Wed, Feb 10, 2010 at 09:25:17AM +0200, Baruch Siach wrote:
quoted
This set of patches adds support for the i.MX25 LCD controller block using the
imxfb driver. Platform code for the i.MX25 PDK board is also added.
Tested on the i.MX25 PDK.
Baruch Siach (3):
imxfb: add support for i.MX25
mx25: add platform support for imxfb
mx25pdk: add LCD support
arch/arm/mach-mx25/clock.c | 12 ++++++
arch/arm/mach-mx25/devices.c | 23 +++++++++++
arch/arm/mach-mx25/devices.h | 1 +
arch/arm/mach-mx25/mx25pdk.c | 55 +++++++++++++++++++++++++++
arch/arm/plat-mxc/include/mach/iomux-mx25.h | 2 +
arch/arm/plat-mxc/include/mach/mx25.h | 2 +
drivers/video/Kconfig | 2 +-
7 files changed, 96 insertions(+), 1 deletions(-)
On Tue, Feb 16, 2010 at 05:14:20PM +0200, Baruch Siach wrote:
Ping?
I'd really like to see this merged in .34.
I'll take care of it. Can you repost the whole series, please? It's
always hard to pick the correct patches from a thread with -v2 and
-v3 patches posted in between.
Sascha
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
The commit also introduces the HAVE_FB_IMX config that is to be selected from
the MX25 platform config. Once this commit gets merged, the two other i.MX
archs, ARCH_MX1 and ARCH_MX2, should follow this one.
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Acked-by: Uwe Kleine-König <redacted>
---
arch/arm/plat-mxc/Kconfig | 1 +
drivers/video/Kconfig | 5 ++++-
2 files changed, 5 insertions(+), 1 deletions(-)
@@ -233,6 +242,9 @@ int __init mx25_clocks_init(void)__raw_writel((0xf<<16)|(3<<26),CRM_BASE+CCM_CGCR1);__raw_writel((1<<5),CRM_BASE+CCM_CGCR2);+/* Clock source for lcdc is upll */+__raw_writel(__raw_readl(CRM_BASE+0x64)|(1<<7),CRM_BASE+0x64);+mxc_timer_init(&gpt_clk,MX25_IO_ADDRESS(MX25_GPT1_BASE_ADDR),54);return0;
Hi Sascha,
On Wed, Feb 17, 2010 at 10:43:59AM +0100, Sascha Hauer wrote:
On Tue, Feb 16, 2010 at 05:14:20PM +0200, Baruch Siach wrote:
quoted
Ping?
I'd really like to see this merged in .34.
I'll take care of it. Can you repost the whole series, please? It's
always hard to pick the correct patches from a thread with -v2 and
-v3 patches posted in between.
Posted, thanks.
baruch
--
~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{ - baruch@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -