imx-ipu-fb: Add support for multiple video modes
PATCH 3/5 imx-ipu-fb: Fix offset for IPU Clock.
In reply to Teresa GámezThe offset for the IPU Clock in the CGR1 register is 18 not 22. See MCIMX35RM table 14-17.
--- drivers/video/imx-ipu-fb.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/video/imx-ipu-fb.c +1 -1
@@ -735,7 +735,7 @@ static void ipu_fb_enable(struct fb_info *info)/* Start the clock */ reg =readl (IMX_CCM_BASE +CCM_CGR1 ); - reg |= (3 <<22 ); + reg |= (3 <<18 );writel (reg,IMX_CCM_BASE +CCM_CGR1 );/* ipu_idmac.c::ipu_idmac_init() */
Signature · 7 lines
1.7.0.4 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH 2/5 video imx-ipu-fb: add num_modes to imx3 boards
In reply to Teresa GámezAdded num_modes to all imx_ipu_fb_platform_data structs. Removed defines for pcm043 to choose display. We may switch this during runtime now.
--- arch/arm/boards/eukrea_cpuimx35/eukrea_cpuimx35.c | 1 + arch/arm/boards/freescale-mx35-3-stack/3stack.c | 1 + arch/arm/boards/guf-cupid/board.c | 1 + arch/arm/boards/pcm043/pcm043.c | 74 ++++++++++---------- arch/arm/mach-imx/Kconfig | 10 --- 5 files changed, 40 insertions(+), 47 deletions(-)
arch/arm/boards/eukrea_cpuimx35/eukrea_cpuimx35.c +1 -0
@@ -91,6 +91,7 @@ static void eukrea_cpuimx35_enable_display(int enable)static struct imx_ipu_fb_platform_data ipu_fb_data = { .mode = &imxfb_mode, + .num_modes =1 , .bpp =16 , .enable = eukrea_cpuimx35_enable_display, };
arch/arm/boards/freescale-mx35-3-stack/3stack.c +1 -0
@@ -100,6 +100,7 @@ static struct fb_videomode CTP_CLAA070LC0ACW = {static struct imx_ipu_fb_platform_data ipu_fb_data = { .mode = &CTP_CLAA070LC0ACW , + .num_modes =1 , .bpp =16 , };
arch/arm/boards/guf-cupid/board.c +1 -0
@@ -92,6 +92,7 @@ static void cupid_fb_enable(int enable)static struct imx_ipu_fb_platform_data ipu_fb_data = { .mode = &guf_cupid_fb_mode, + .num_modes =1 , .bpp =16 , .enable = cupid_fb_enable, };
arch/arm/boards/pcm043/pcm043.c +37 -37
83 lines not on this page · raw message
arch/arm/mach-imx/Kconfig +0 -10
@@ -405,16 +405,6 @@ endif menu "Board specific settings " -if MACH_PCM043 -choice - prompt "Display type" -config PCM043_DISPLAY_SHARP - bool "Sharp LQ035Q7" -config PCM043_DISPLAY_TY090 - bool "TX090" -endchoice -endif - if MACH_PCM037 choice prompt "SDRAM Bank0"
Signature · 7 lines
1.7.0.4 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH 1/5 imx-ipu-fb: Add support for multiple video modes
Make support of multiple video modes possible for i.MX3 boards.
--- arch/arm/mach-imx/include/mach/imx-ipu-fb.h | 1 + drivers/video/imx-ipu-fb.c | 10 +++++++++- 2 files changed, 10 insertions(+), 1 deletions(-)
arch/arm/mach-imx/include/mach/imx-ipu-fb.h +1 -0
@@ -27,6 +27,7 @@struct imx_ipu_fb_platform_data {struct fb_videomode *mode;unsigned char bpp; +u_int num_modes;void __iomem *framebuffer;/** hook to enable backlight and stuff */ void (*enable)(int enable);
drivers/video/imx-ipu-fb.c +9 -1
@@ -807,9 +807,15 @@ static void ipu_fb_disable(struct fb_info *info)reg_write (fbi, reg,SDC_COM_CONF ); } +static int ipu_fb_activate_var (struct fb_info *info) +{ +return 0 ; +} +static struct fb_ops imxfb_ops = { .fb_enable = ipu_fb_enable, .fb_disable = ipu_fb_disable, + .fb_activate_var = ipu_fb_activate_var, }; static void imxfb_init_info(struct fb_info *info, struct fb_videomode *mode,
@@ -860,9 +866,11 @@ static int imxfb_probe(struct device_d *dev) fbi->regs =dev_request_mem_region (dev,0 ); fbi->dev = dev; + fbi->enable = pdata->enable; info->priv = fbi; info->fbops = &imxfb_ops; - fbi->enable = pdata->enable; + info->num_modes = pdata->num_modes; + info->mode_list = pdata->mode;imxfb_init_info (info, pdata->mode, pdata->bpp);
Signature · 7 lines
1.7.0.4 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH 5/5 ARM pcm043: Add overlay support
Adding overlay support for phyCORE-i.MX35.
Also move the TEXT_BASE to leave enough space for the overlay image at the end of the RAM.
--- arch/arm/boards/pcm043/pcm043.c | 10 ++++++---- arch/arm/configs/pcm043_defconfig | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-)
arch/arm/boards/pcm043/pcm043.c +6 -4
@@ -29,6 +29,7 @@#include <driver.h> #include <environment.h> #include <fs.h> +#include <sizes.h> #include <mach/imx-regs.h> #include <asm/armlinux.h> #include <mach/gpio.h>
@@ -94,14 +95,15 @@ static struct fb_videomode pcm043_fb_mode[] = { };static struct imx_ipu_fb_platform_data ipu_fb_data = { - .mode = pcm043_fb_mode, - .num_modes =ARRAY_SIZE (pcm043_fb_mode), - .bpp =16 , + .mode = pcm043_fb_mode, + .num_modes =ARRAY_SIZE (pcm043_fb_mode), + .framebuffer_ovl = (void *) (IMX_SDRAM_CS0 +SZ_128M -SZ_1M ), + .bpp =16 , };static int pcm043_mem_init (void ) { -arm_add_mem_device ("ram0" ,IMX_SDRAM_CS0 ,128 *1024 *1024 ); +arm_add_mem_device ("ram0" ,IMX_SDRAM_CS0 ,SZ_128M );return 0 ; }
arch/arm/configs/pcm043_defconfig +1 -1
@@ -10,7 +10,7 @@ CONFIG_AEABI=y CONFIG_ARM_OPTIMZED_STRING_FUNCTIONS=y CONFIG_ARM_UNWIND=y CONFIG_MMU=y -CONFIG_TEXT_BASE=0x87F00000 +CONFIG_TEXT_BASE=0x87E00000 CONFIG_MALLOC_SIZE=0x1000000 CONFIG_MALLOC_TLSF=y CONFIG_KALLSYMS=y
Signature · 7 lines
1.7.0.4 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH 4/5 imx-ipu-fb: Add overlay support
In reply to Teresa GámezAdding overlay support for i.MX3 sdc.
Foreground channel only works when background is also enabled. The foreground video mode is always the same as the background.
Also added alpha command to set the alpha value of the foreground.
Tested on a phyCORE-i.MX35.
--- arch/arm/mach-imx/include/mach/imx-ipu-fb.h | 1 + drivers/video/Kconfig | 4 + drivers/video/imx-ipu-fb.c | 157 ++++++++++++++++++++++++--- 3 files changed, 148 insertions(+), 14 deletions(-)
arch/arm/mach-imx/include/mach/imx-ipu-fb.h +1 -0
@@ -29,6 +29,7 @@ struct imx_ipu_fb_platform_data {unsigned char bpp;u_int num_modes;void __iomem *framebuffer; +void __iomem *framebuffer_ovl;/** hook to enable backlight and stuff */ void (*enable)(int enable); };
drivers/video/Kconfig +4 -0
@@ -20,6 +20,10 @@ config DRIVER_VIDEO_IMX_IPU Add support for the IPU framebuffer device found on i.MX31 and i.MX35 CPUs. +config DRIVER_VIDEO_IMX_IPU_OVERLAY + bool "i.MX31/35 framebuffer overlay support" + depends on DRIVER_VIDEO_IMX_IPU && (ARCH_IMX35 || ARCH_IMX_31) + config DRIVER_VIDEO_STM bool "i.MX23/28 framebuffer driver" depends on ARCH_MXS
drivers/video/imx-ipu-fb.c +143 -14
253 lines not on this page · raw message
Signature · 7 lines
1.7.0.4 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Quoted 1 line · Teresa Gámez
Make support of multiple video modes possible for i.MX3 boards.
Applied, thanks
Sascha
Signature · 9 lines
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 | _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox