* [U-Boot] [PATCH 0/2] i.MX: Allow const video mode specifiers
@ 2012-10-03 17:27 Eric Nelson
2012-10-03 17:27 ` [U-Boot] [PATCH 1/2] i.MX video: struct fb_videomode can be const Eric Nelson
2012-10-03 17:27 ` [U-Boot] [PATCH 2/2] i.MX: ipufb: add const to fb_videomode declarations Eric Nelson
0 siblings, 2 replies; 5+ messages in thread
From: Eric Nelson @ 2012-10-03 17:27 UTC (permalink / raw)
To: u-boot
This will keep static video initializers in the text segment.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot] [PATCH 1/2] i.MX video: struct fb_videomode can be const
2012-10-03 17:27 [U-Boot] [PATCH 0/2] i.MX: Allow const video mode specifiers Eric Nelson
@ 2012-10-03 17:27 ` Eric Nelson
2012-10-10 12:06 ` Stefano Babic
2012-10-03 17:27 ` [U-Boot] [PATCH 2/2] i.MX: ipufb: add const to fb_videomode declarations Eric Nelson
1 sibling, 1 reply; 5+ messages in thread
From: Eric Nelson @ 2012-10-03 17:27 UTC (permalink / raw)
To: u-boot
Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>
---
drivers/video/mxc_ipuv3_fb.c | 8 +++++---
include/ipu_pixfmt.h | 4 +++-
2 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/drivers/video/mxc_ipuv3_fb.c b/drivers/video/mxc_ipuv3_fb.c
index 47b336e..ace226c 100644
--- a/drivers/video/mxc_ipuv3_fb.c
+++ b/drivers/video/mxc_ipuv3_fb.c
@@ -45,7 +45,7 @@ static int mxcfb_unmap_video_memory(struct fb_info *fbi);
/* graphics setup */
static GraphicDevice panel;
-static struct fb_videomode *gmode;
+static struct fb_videomode const *gmode;
static uint8_t gdisp;
static uint32_t gpixfmt;
@@ -503,7 +503,7 @@ static struct fb_info *mxcfb_init_fbinfo(void)
* @return Appropriate error code to the kernel common code
*/
static int mxcfb_probe(u32 interface_pix_fmt, uint8_t disp,
- struct fb_videomode *mode)
+ struct fb_videomode const *mode)
{
struct fb_info *fbi;
struct mxcfb_info *mxcfbi;
@@ -619,7 +619,9 @@ void video_set_lut(unsigned int index, /* color number */
return;
}
-int ipuv3_fb_init(struct fb_videomode *mode, uint8_t disp, uint32_t pixfmt)
+int ipuv3_fb_init(struct fb_videomode const *mode,
+ uint8_t disp,
+ uint32_t pixfmt)
{
gmode = mode;
gdisp = disp;
diff --git a/include/ipu_pixfmt.h b/include/ipu_pixfmt.h
index 4baa711..1163bf4 100644
--- a/include/ipu_pixfmt.h
+++ b/include/ipu_pixfmt.h
@@ -76,7 +76,9 @@
#define IPU_PIX_FMT_YVU422P fourcc('Y', 'V', '1', '6') /*< 16 YVU 4:2:2 */
#define IPU_PIX_FMT_YUV422P fourcc('4', '2', '2', 'P') /*< 16 YUV 4:2:2 */
-int ipuv3_fb_init(struct fb_videomode *mode, uint8_t disp, uint32_t pixfmt);
+int ipuv3_fb_init(struct fb_videomode const *mode,
+ uint8_t disp,
+ uint32_t pixfmt);
void ipuv3_fb_shutdown(void);
#endif
--
1.7.9
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [U-Boot] [PATCH 2/2] i.MX: ipufb: add const to fb_videomode declarations
2012-10-03 17:27 [U-Boot] [PATCH 0/2] i.MX: Allow const video mode specifiers Eric Nelson
2012-10-03 17:27 ` [U-Boot] [PATCH 1/2] i.MX video: struct fb_videomode can be const Eric Nelson
@ 2012-10-03 17:27 ` Eric Nelson
2012-10-10 12:07 ` Stefano Babic
1 sibling, 1 reply; 5+ messages in thread
From: Eric Nelson @ 2012-10-03 17:27 UTC (permalink / raw)
To: u-boot
Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>
---
board/freescale/mx51evk/mx51evk.c | 2 +-
board/freescale/mx53loco/mx53loco.c | 2 +-
board/ttcontrol/vision2/vision2.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/board/freescale/mx51evk/mx51evk.c b/board/freescale/mx51evk/mx51evk.c
index a94701c..3c4f814 100644
--- a/board/freescale/mx51evk/mx51evk.c
+++ b/board/freescale/mx51evk/mx51evk.c
@@ -467,7 +467,7 @@ int board_mmc_init(bd_t *bis)
}
#endif
-static struct fb_videomode claa_wvga = {
+static struct fb_videomode const claa_wvga = {
.name = "CLAA07LC0ACW",
.refresh = 57,
.xres = 800,
diff --git a/board/freescale/mx53loco/mx53loco.c b/board/freescale/mx53loco/mx53loco.c
index 6543209..6fcaa0b 100644
--- a/board/freescale/mx53loco/mx53loco.c
+++ b/board/freescale/mx53loco/mx53loco.c
@@ -409,7 +409,7 @@ static void clock_1GHz(void)
printf("CPU: Switch DDR clock to 400MHz failed\n");
}
-static struct fb_videomode claa_wvga = {
+static struct fb_videomode const claa_wvga = {
.name = "CLAA07LC0ACW",
.refresh = 57,
.xres = 800,
diff --git a/board/ttcontrol/vision2/vision2.c b/board/ttcontrol/vision2/vision2.c
index f28eab0..82aa4da 100644
--- a/board/ttcontrol/vision2/vision2.c
+++ b/board/ttcontrol/vision2/vision2.c
@@ -43,7 +43,7 @@
DECLARE_GLOBAL_DATA_PTR;
-static struct fb_videomode nec_nl6448bc26_09c = {
+static struct fb_videomode const nec_nl6448bc26_09c = {
"NEC_NL6448BC26-09C",
60, /* Refresh */
640, /* xres */
--
1.7.9
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [U-Boot] [PATCH 1/2] i.MX video: struct fb_videomode can be const
2012-10-03 17:27 ` [U-Boot] [PATCH 1/2] i.MX video: struct fb_videomode can be const Eric Nelson
@ 2012-10-10 12:06 ` Stefano Babic
0 siblings, 0 replies; 5+ messages in thread
From: Stefano Babic @ 2012-10-10 12:06 UTC (permalink / raw)
To: u-boot
On 03/10/2012 19:27, Eric Nelson wrote:
> Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>
> ---
> drivers/video/mxc_ipuv3_fb.c | 8 +++++---
> include/ipu_pixfmt.h | 4 +++-
> 2 files changed, 8 insertions(+), 4 deletions(-)
>
Applied to u-boot-imx, next branch, thanks.
Best regards,
Stefano Babic
--
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot] [PATCH 2/2] i.MX: ipufb: add const to fb_videomode declarations
2012-10-03 17:27 ` [U-Boot] [PATCH 2/2] i.MX: ipufb: add const to fb_videomode declarations Eric Nelson
@ 2012-10-10 12:07 ` Stefano Babic
0 siblings, 0 replies; 5+ messages in thread
From: Stefano Babic @ 2012-10-10 12:07 UTC (permalink / raw)
To: u-boot
On 03/10/2012 19:27, Eric Nelson wrote:
> Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>
> ---
> board/freescale/mx51evk/mx51evk.c | 2 +-
> board/freescale/mx53loco/mx53loco.c | 2 +-
> board/ttcontrol/vision2/vision2.c | 2 +-
> 3 files changed, 3 insertions(+), 3 deletions(-)
>
Applied to u-boot-imx, next branch, thanks.
Best regards,
Stefano Babic
--
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-10-10 12:07 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-03 17:27 [U-Boot] [PATCH 0/2] i.MX: Allow const video mode specifiers Eric Nelson
2012-10-03 17:27 ` [U-Boot] [PATCH 1/2] i.MX video: struct fb_videomode can be const Eric Nelson
2012-10-10 12:06 ` Stefano Babic
2012-10-03 17:27 ` [U-Boot] [PATCH 2/2] i.MX: ipufb: add const to fb_videomode declarations Eric Nelson
2012-10-10 12:07 ` Stefano Babic
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.