public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Anatolij Gustschin <agust@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 4/7] EXYNOS: support EXYNOS framebuffer and FIMD display drivers.
Date: Thu, 5 Apr 2012 14:28:14 +0200	[thread overview]
Message-ID: <20120405142814.18dd08d4@wker> (raw)
In-Reply-To: <4F7D3BC7.1090800@samsung.com>

Hi,

Thank you for reworking this patch. It is mostly okay now and I can compile
the drivers, :-). Only two minor issues, please see comments below.

On Thu, 05 Apr 2012 15:29:27 +0900
Donghwa Lee <dh09.lee@samsung.com> wrote:

> This patch support EXYNOS FB and FIMD display drivers.
> 
> Signed-off-by: Donghwa Lee <dh09.lee@samsung.com>
> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
> Signed-off-by: Inki Dae <inki.dae@samsung.com>
> ---
>  arch/arm/include/asm/arch-exynos/fb.h |  446 +++++++++++++++++++++++++++++++++
>  drivers/video/Makefile                |    4 +
>  drivers/video/exynos_fb.c             |  129 ++++++++++
>  drivers/video/exynos_fb.h             |   61 +++++
>  drivers/video/exynos_fimd.c           |  354 ++++++++++++++++++++++++++
>  5 files changed, 994 insertions(+), 0 deletions(-)
>  create mode 100644 arch/arm/include/asm/arch-exynos/fb.h
>  create mode 100644 drivers/video/exynos_fb.c
>  create mode 100644 drivers/video/exynos_fb.h
>  create mode 100644 drivers/video/exynos_fimd.c

...
> diff --git a/drivers/video/Makefile b/drivers/video/Makefile
> index 6252f6a..4fad20d 100644
> --- a/drivers/video/Makefile
> +++ b/drivers/video/Makefile
> @@ -28,7 +28,11 @@ LIB	:= $(obj)libvideo.o

...
>  COBJS-$(CONFIG_FSL_DIU_FB) += fsl_diu_fb.o videomodes.o
> +COBJS-$(CONFIG_S6E8AX0) += s6e8ax0.o

The s6e8ax0 driver is added in another patch, so please move
COBJS-$(CONFIG_S6E8AX0) += s6e8ax0.o to the patch which adds s6e8ax0
driver.

...
> diff --git a/drivers/video/exynos_fb.c b/drivers/video/exynos_fb.c
> new file mode 100644
> index 0000000..c6aaecf
> --- /dev/null
> +++ b/drivers/video/exynos_fb.c
...
> +static void exynos_lcd_init_mem(void *lcdbase, vidinfo_t *vid)
> +{
> +	unsigned long palette_size, palette_mem_size;
> +	unsigned int fb_size;
> +
> +	fb_size = vid->vl_row * vid->vl_col * (vid->vl_bpix >> 3);
> +
> +	lcd_base = lcdbase;
> +
> +	palette_size = NBITS(vid->vl_bpix) == 8 ? 256 : 16;
> +	palette_mem_size = palette_size * sizeof(u32);

Now I can compile the driver and see the following warning:
exynos_fb.c: In function 'exynos_lcd_init_mem':
exynos_fb.c:52:30: warning: variable 'palette_mem_size' set but not used
[-Wunused-but-set-variable]

Please drop 'palette_mem_size' local variable here.

Thanks,
Anatolij

      reply	other threads:[~2012-04-05 12:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-05  6:29 [U-Boot] [PATCH 4/7] EXYNOS: support EXYNOS framebuffer and FIMD display drivers Donghwa Lee
2012-04-05 12:28 ` Anatolij Gustschin [this message]

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=20120405142814.18dd08d4@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