mx51evk: Fix build error when CONFIG_VIDEO is disabled
Subsystems (2)
The inclusion of LCD patch into mx51evk breaks the build when CONFIG_VIDEO is disabled. Fix this by splitting the video related stuff to a new file.
Also rename the function lcd_iomux to setup_iomux_lcd to make the namings aligned with the other iomux functions.
--- board/freescale/mx51evk/Makefile | 4 +- board/freescale/mx51evk/mx51evk.c | 65 +++--------------------- board/freescale/mx51evk/mx51evk_video.c | 83 +++++++++++++++++++++++++++++++ 3 files changed, 93 insertions(+), 59 deletions(-) create mode 100644 board/freescale/mx51evk/mx51evk_video.c
board/freescale/mx51evk/Makefile +3 -1
@@ -23,8 +23,10 @@ include $(TOPDIR)/config.mk LIB = $(obj)lib$(BOARD).o -COBJS := mx51evk.o +COBJS-y += mx51evk.o +COBJS-$(CONFIG_VIDEO) += mx51evk_video.o +COBJS := $(COBJS-y) SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) OBJS := $(addprefix $(obj),$(COBJS)) SOBJS := $(addprefix $(obj),$(SOBJS))
board/freescale/mx51evk/mx51evk.c +7 -58
97 lines not on this page · raw message
board/freescale/mx51evk/mx51evk_video.c new file +83 -0
83 lines not on this page · raw message
Signature · 1 line
1.7.4.1
PATCH v2 1/1 mx51evk: Fix build error when CONFIG_VIDEO is disabled
From: Vikram Narayanan <[email protected]>
The inclusion of LCD patch into mx51evk breaks the build when CONFIG_VIDEO is disabled. Fix this by splitting the video related stuff to a new file.
Also rename the function lcd_iomux to setup_iomux_lcd to make the namings aligned with the other iomux functions.
---
Changes in v2:
- rebased on current master
- added common file mx5_video.h for function prorotypes
arch/arm/include/asm/imx-common/mx5_video.h | 21 +++++++ board/freescale/mx51evk/Makefile | 4 +- board/freescale/mx51evk/mx51evk.c | 57 +------------------ board/freescale/mx51evk/mx51evk_video.c | 81 +++++++++++++++++++++++++++ 4 files changed, 107 insertions(+), 56 deletions(-) create mode 100644 arch/arm/include/asm/imx-common/mx5_video.h create mode 100644 board/freescale/mx51evk/mx51evk_video.c
arch/arm/include/asm/imx-common/mx5_video.h new file +21 -0
@@ -0,0 +1,21 @@ +/* +* Copyright (C) 2012 +* Anatolij Gustschin, DENX Software Engineering, <[email protected]> +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License as +* published by the Free Software Foundation; either version 2 of +* the License, or (at your option) any later version. +*/ +#ifndef __MX5_VIDEO_H +#define __MX5_VIDEO_H + +#ifdef CONFIG_VIDEO +void lcd_enable (void ); +void setup_iomux_lcd (void ); +#else +static inline void lcd_enable (void ) { } +static inline void setup_iomux_lcd (void ) { } +#endif + +#endif
board/freescale/mx51evk/Makefile +3 -1
@@ -23,8 +23,10 @@ include $(TOPDIR)/config.mk LIB = $(obj)lib$(BOARD).o -COBJS := mx51evk.o +COBJS-y += mx51evk.o +COBJS-$(CONFIG_VIDEO) += mx51evk_video.o +COBJS := $(COBJS-y) SRCS := $(COBJS:.o=.c) OBJS := $(addprefix $(obj),$(COBJS))
board/freescale/mx51evk/mx51evk.c +2 -55
81 lines not on this page · raw message
board/freescale/mx51evk/mx51evk_video.c new file +81 -0
81 lines not on this page · raw message
Signature · 1 line
1.7.5.4
PATCH v2 1/1 mx51evk: Fix build error when CONFIG_VIDEO is disabled
In reply to Vikram NarayananFrom: Vikram Narayanan <[email protected]>
The inclusion of LCD patch into mx51evk breaks the build when CONFIG_VIDEO is disabled. Fix this by splitting the video related stuff to a new file.
Also rename the function lcd_iomux to setup_iomux_lcd to make the namings aligned with the other iomux functions.
---
Changes in v2:
- rebased on current master
- added common file mx5_video.h for function prorotypes
arch/arm/include/asm/imx-common/mx5_video.h | 21 +++++++ board/freescale/mx51evk/Makefile | 4 +- board/freescale/mx51evk/mx51evk.c | 57 +------------------ board/freescale/mx51evk/mx51evk_video.c | 81 +++++++++++++++++++++++++++ 4 files changed, 107 insertions(+), 56 deletions(-) create mode 100644 arch/arm/include/asm/imx-common/mx5_video.h create mode 100644 board/freescale/mx51evk/mx51evk_video.c
arch/arm/include/asm/imx-common/mx5_video.h new file +21 -0
@@ -0,0 +1,21 @@ +/* +* Copyright (C) 2012 +* Anatolij Gustschin, DENX Software Engineering, <[email protected]> +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License as +* published by the Free Software Foundation; either version 2 of +* the License, or (at your option) any later version. +*/ +#ifndef __MX5_VIDEO_H +#define __MX5_VIDEO_H + +#ifdef CONFIG_VIDEO +void lcd_enable (void ); +void setup_iomux_lcd (void ); +#else +static inline void lcd_enable (void ) { } +static inline void setup_iomux_lcd (void ) { } +#endif + +#endif
board/freescale/mx51evk/Makefile +3 -1
@@ -23,8 +23,10 @@ include $(TOPDIR)/config.mk LIB = $(obj)lib$(BOARD).o -COBJS := mx51evk.o +COBJS-y += mx51evk.o +COBJS-$(CONFIG_VIDEO) += mx51evk_video.o +COBJS := $(COBJS-y) SRCS := $(COBJS:.o=.c) OBJS := $(addprefix $(obj),$(COBJS))
board/freescale/mx51evk/mx51evk.c +2 -55
81 lines not on this page · raw message
board/freescale/mx51evk/mx51evk_video.c new file +81 -0
81 lines not on this page · raw message
Signature · 1 line
1.7.5.4
PATCH v2 1/1 mx51evk: Fix build error when CONFIG_VIDEO is disabled
Hi,
please ignore this patch, it was sent by accident. Sorry about that.
Quoted 5 lines · On Sat, 10 Nov 2012 13:32:00 +0100 Anatolij Gustschin <[email protected]> wrote:
From: Vikram Narayanan <[email protected]>
The inclusion of LCD patch into mx51evk breaks the build when
CONFIG_VIDEOis disabled. Fix this by splitting the video related stuff to a new file.
Anatolij Gustschin
AppliedPATCH v2 1/1 mx51evk: Fix build error when CONFIG_VIDEO is disabled
In reply to Anatolij GustschinHi,
Quoted 18 lines · On Sat, 10 Nov 2012 13:28:52 +0100 Anatolij Gustschin <[email protected]> wrote:
From: Vikram Narayanan <[email protected]>
The inclusion of LCD patch into mx51evk breaks the build when
CONFIG_VIDEOis disabled. Fix this by splitting the video related stuff to a new file.Also rename the function
lcd_iomuxtosetup_iomux_lcdto make the namings aligned with the other iomux functions.Signed-off-by Vikram Narayanan <[email protected]>Signed-off-by Anatolij Gustschin <[email protected]>Cc Fabio Estevam <[email protected]>Cc Stefano Babic <[email protected]>---
Changes in v2:
- rebased on current master
- added common filemx5_video.hfor function prorotypes
Quoted 7 lines
arch/arm/include/asm/imx-common/mx5_video.h | 21 +++++++ board/freescale/mx51evk/Makefile | 4 +- board/freescale/mx51evk/mx51evk.c | 57 +------------------ board/freescale/mx51evk/mx51evk_video.c | 81 +++++++++++++++++++++++++++ 4 files changed, 107 insertions(+), 56 deletions(-) create mode 100644 arch/arm/include/asm/imx-common/mx5_video.h create mode 100644 board/freescale/mx51evk/mx51evk_video.c
Applied to video/master, thanks!
Anatolij