public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: "Matthias Weißer" <weisserm@arcor.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/3] video: add support for display controller in MB86R0x SoCs
Date: Thu, 22 Apr 2010 15:03:55 +0200	[thread overview]
Message-ID: <4BD0493B.2090706@arcor.de> (raw)
In-Reply-To: <20100422124157.A9EE9C36DD0@gemini.denx.de>

Am 22.04.2010 14:41, schrieb Wolfgang Denk:
> Dear Matthias Weisser,
>
> In message<1271932257-14618-3-git-send-email-weisserm@arcor.de>  you wrote:
>> This patch adds support for the display controller in
>> the MB86R0x SoCs.
>>
>> Signed-off-by: Matthias Weisser<weisserm@arcor.de>
> ...
>> +	pGD->memSize = VIDEO_MEM_SIZE;
>> +	pGD->frameAdrs = PHYS_SDRAM + PHYS_SDRAM_SIZE - VIDEO_MEM_SIZE;
>
> Please pay attention to the global memory map requirements. PRAM might
> go first.
>
>
>> +		writel(dcm1, dspBase[i] + GC_DCM1);
>> +		writel(dcm2, dspBase[i] + GC_DCM2);
>> +		writel(dcm3, dspBase[i] + GC_DCM3);
>> +
>> +		writew(htp, dspBase[i] + GC_HTP);
>> +		writew(hdp, dspBase[i] + GC_HDP);
>> +		writew(hdb, dspBase[i] + GC_HDB);
>> +		writew(hsp, dspBase[i] + GC_HSP);
>> +		writeb(hsw, dspBase[i] + GC_HSW);
>> +
>> +		writeb(vsw, dspBase[i] + GC_VSW);
>> +		writew(vtr, dspBase[i] + GC_VTR);
>> +		writew(vsp, dspBase[i] + GC_VSP);
>> +		writew(vdp, dspBase[i] + GC_VDP);
>> +
>> +		writel(l2m, dspBase[i] + GC_L2M);
>> +		writel(l2em, dspBase[i] + GC_L2EM);
>> +		writel(l2oa0, dspBase[i] + GC_L2OA0);
>> +		writel(l2da0, dspBase[i] + GC_L2DA0);
>> +		writel(l2oa1, dspBase[i] + GC_L2OA1);
>> +		writel(l2da1, dspBase[i] + GC_L2DA1);
>> +		writew(l2dx, dspBase[i] + GC_L2DX);
>> +		writew(l2dy, dspBase[i] + GC_L2DY);
>> +		writew(l2wx, dspBase[i] + GC_L2WX);
>> +		writew(l2wy, dspBase[i] + GC_L2WY);
>> +		writew(l2ww, dspBase[i] + GC_L2WW);
>> +		writew(l2wh, dspBase[i] + GC_L2WH);
>> +
>> +		writel(dcm1 | (1<<  18) | (1<<  31), dspBase[i] + GC_DCM1);
>
> Please use a C struct instead.

This driver is mainly copied from mb862xx (sharing the header as offsets 
are the same) and that was the approach used there. I will add the 
structures and use them.

>> +/*
>> + * Set a RGB color in the LUT
>> + */
>> +void video_set_lut(unsigned int index, unsigned char r,
>> +					unsigned char g, unsigned char b)
>> +{
>> +
>> +}
>
> Code seems to be missing?

The driver doesn't support palletized color format at the moment but 
removing this function leads to a linker error.

Maybe we should add a config option to disable palletized color format 
or add a weak function somewhere. Maybe Anatolij can comment on this 
issue also.

Regards,
Matthias

  reply	other threads:[~2010-04-22 13:03 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-22 10:30 [U-Boot] [PATCH 0/3] Add support for MB86R0x SoCs Matthias Weisser
2010-04-22 10:30 ` [U-Boot] [PATCH 1/3] arm: " Matthias Weisser
2010-04-22 10:30   ` [U-Boot] [PATCH 2/3] video: add support for display controller in " Matthias Weisser
2010-04-22 10:30     ` [U-Boot] [PATCH 3/3] arm: Add support for jadecpu board based on MB86R01 SoC Matthias Weisser
2010-04-22 12:51       ` Wolfgang Denk
2010-04-22 13:17         ` Matthias Weißer
2010-04-22 14:13           ` Wolfgang Denk
2010-05-03 11:38         ` Matthias Weißer
2010-05-03 12:28           ` Wolfgang Denk
2010-04-22 12:41     ` [U-Boot] [PATCH 2/3] video: add support for display controller in MB86R0x SoCs Wolfgang Denk
2010-04-22 13:03       ` Matthias Weißer [this message]
2010-05-01 18:51         ` Anatolij Gustschin
2010-05-01 19:05         ` [U-Boot] [PATCH] video: cfb_console: add weak default video_set_lut() Anatolij Gustschin
2010-06-12  8:20           ` [U-Boot] [PATCH v2] " Anatolij Gustschin
2010-06-12  8:35             ` Anatolij Gustschin
2010-04-28  6:29       ` [U-Boot] [PATCH 2/3] video: add support for display controller in MB86R0x SoCs Matthias Weißer
2010-04-28  6:44         ` Wolfgang Denk
2010-04-28  8:08           ` Matthias Weißer
2010-05-01 18:46     ` Anatolij Gustschin
2010-04-22 12:34   ` [U-Boot] [PATCH 1/3] arm: Add support for " Wolfgang Denk
2010-04-26  6:55     ` Matthias Weißer
2010-05-04 22:18       ` Wolfgang Denk

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=4BD0493B.2090706@arcor.de \
    --to=weisserm@arcor.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