From: Anatolij Gustschin <agust@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] p1022ds: add video support
Date: Tue, 21 Sep 2010 23:56:28 +0200 [thread overview]
Message-ID: <20100921235628.580f1a4a@wker> (raw)
In-Reply-To: <1283459719-23354-1-git-send-email-timur@freescale.com>
Hi Timur,
On Thu, 2 Sep 2010 15:35:19 -0500
Timur Tabi <timur@freescale.com> wrote:
...
> +#include <common.h>
> +#include <command.h>
> +#include <asm/io.h>
> +
> +#ifdef CONFIG_FSL_DIU_FB
Please drop the #ifdef above. Conditional compilation is
already handled by Makefile.
...
> +#define PX_BRDCFG1_DDCEN 0x10
This one is not used, please drop.
...
> +#define AD_BYTE_F 0x10000000
> +#define AD_ALPHA_C_MASK 0x0E000000
> +#define AD_ALPHA_C_SHIFT 25
> +#define AD_BLUE_C_MASK 0x01800000
> +#define AD_BLUE_C_SHIFT 23
> +#define AD_GREEN_C_MASK 0x00600000
> +#define AD_GREEN_C_SHIFT 21
> +#define AD_RED_C_MASK 0x00180000
> +#define AD_RED_C_SHIFT 19
> +#define AD_PALETTE 0x00040000
> +#define AD_PIXEL_S_MASK 0x00030000
> +#define AD_PIXEL_S_SHIFT 16
> +#define AD_COMP_3_MASK 0x0000F000
> +#define AD_COMP_3_SHIFT 12
> +#define AD_COMP_2_MASK 0x00000F00
> +#define AD_COMP_2_SHIFT 8
> +#define AD_COMP_1_MASK 0x000000F0
> +#define AD_COMP_1_SHIFT 4
> +#define AD_COMP_0_MASK 0x0000000F
> +#define AD_COMP_0_SHIFT 0
> +
> +#define AD_DEFAULT
Some of the defines above are not used (*_MASK, AD_PALETTE,
AD_DEFAULT), please drop them, too.
...
> diff --git a/include/configs/P1022DS.h b/include/configs/P1022DS.h
> index dcaca2b..d518c69 100644
> --- a/include/configs/P1022DS.h
> +++ b/include/configs/P1022DS.h
> @@ -31,6 +31,7 @@
> #define CONFIG_FSL_PCIE_RESET /* need PCIe reset errata */
> #define CONFIG_SYS_PCI_64BIT /* enable 64-bit PCI resources */
> #define CONFIG_SYS_HAS_SERDES /* has SERDES */
> +#define CONFIG_FSL_DIU_FB /* Has a DIU video controller */
Drop this CONFIG_FSL_DIU_FB define, too. It is already present
in the board config file.
> #define CONFIG_PHYS_64BIT
> #define CONFIG_ENABLE_36BIT_PHYS
> @@ -181,10 +182,14 @@
> #define CONFIG_SYS_DIU_ADDR (CONFIG_SYS_CCSRBAR + 0x10000)
>
> /* Video */
> -/* #define CONFIG_VIDEO */
> +#undef CONFIG_VIDEO
> +
> #ifdef CONFIG_VIDEO
> +#define CONFIG_CMD_BMP
> #define CONFIG_CFB_CONSOLE
> #define CONFIG_VGA_AS_SINGLE_DEVICE
> +#define CONFIG_VIDEO_LOGO
> +#define CONFIG_VIDEO_BMP_LOGO
> #endif
CONFIG_VIDEO definition should depend on CONFIG_FSL_DIU_FB,
I think. Otherwise the building won't succeed if CONFIG_FSL_DIU_FB
is not defined (due to absence of video_hw_init()).
Thanks,
Anatolij
next prev parent reply other threads:[~2010-09-21 21:56 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-02 20:35 [U-Boot] [PATCH] p1022ds: add video support Timur Tabi
2010-09-21 21:56 ` Anatolij Gustschin [this message]
2010-09-21 22:00 ` Timur Tabi
2010-09-21 22:57 ` Anatolij Gustschin
2010-09-21 23:01 ` Timur Tabi
2010-09-22 15:07 ` Detlev Zundel
2010-09-22 15:10 ` Timur Tabi
2010-09-22 15:16 ` York Sun
2010-09-22 15:33 ` Detlev Zundel
2010-09-22 15:35 ` Timur Tabi
2010-09-22 15:45 ` Detlev Zundel
2010-09-22 15:30 ` Detlev Zundel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100921235628.580f1a4a@wker \
--to=agust@denx.de \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox