[U-Boot] [PATCH v2 1/8] board: ge: bx50v3: move detect_baseboard() out of CONFIG_VIDEO_IPUV3
Martin Donnelly
martin.donnelly at ge.com
Mon May 30 13:59:59 CEST 2016
On Mon, May 30, 2016 at 01:37:01PM +0200, Andrew Shadura wrote:
> detect_baseboard() function doesn't depend on CONFIG_VIDEO_IPUV3.
> Make sure it's available when CONFIG_VIDEO_IPUV3 is off.
>
> Signed-off-by: Andrew Shadura <andrew.shadura at collabora.co.uk>
Acked-by: Martin Donnelly <martin.donnelly at .ge.com>
> ---
> board/ge/bx50v3/bx50v3.c | 18 +++++++++---------
> 1 file changed, 9 insertions(+), 9 deletions(-)
>
> diff --git a/board/ge/bx50v3/bx50v3.c b/board/ge/bx50v3/bx50v3.c
> index ff8f4d7..e167cd5 100644
> --- a/board/ge/bx50v3/bx50v3.c
> +++ b/board/ge/bx50v3/bx50v3.c
> @@ -321,6 +321,15 @@ int board_phy_config(struct phy_device *phydev)
> return 0;
> }
>
> +static int detect_baseboard(struct display_info_t const *dev)
> +{
> + if (IS_ENABLED(CONFIG_TARGET_GE_B450V3) ||
> + IS_ENABLED(CONFIG_TARGET_GE_B650V3))
> + return 1;
> +
> + return 0;
> +}
> +
> #if defined(CONFIG_VIDEO_IPUV3)
> static iomux_v3_cfg_t const backlight_pads[] = {
> /* Power for LVDS Display */
> @@ -345,15 +354,6 @@ int board_cfb_skip(void)
> return 0;
> }
>
> -static int detect_baseboard(struct display_info_t const *dev)
> -{
> - if (IS_ENABLED(CONFIG_TARGET_GE_B450V3) ||
> - IS_ENABLED(CONFIG_TARGET_GE_B650V3))
> - return 1;
> -
> - return 0;
> -}
> -
> struct display_info_t const displays[] = {{
> .bus = -1,
> .addr = -1,
> --
> 2.7.4
>
More information about the U-Boot
mailing list