From: "Matthias Weißer" <weisserm@arcor.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] Add support for Jade display controller
Date: Mon, 18 Jan 2010 15:06:07 +0100 [thread overview]
Message-ID: <4B546ACF.5050901@arcor.de> (raw)
In-Reply-To: <4B51E9C2.6080206@windriver.com>
Am 16.01.2010 17:30, schrieb Tom:
> Instead of adding CONFIG_VIDEO_JADEGDC, define VIDEO_FB_16BPP_WORD_SWAP
> in your board config file or a more appropriate file.
Done.
>> +/*
>> + * Graphic Device
>> + */
>> +GraphicDevice jadegdc;
>
> It does not look like this global is accessed output of this function
> It should be declared static.
Done.
>> +
>> +void *video_hw_init(void)
>> +{
>> + GraphicDevice *pGD =&jadegdc;
>> + struct ctfb_res_modes var_mode[2];
>> + unsigned long *vid;
>> + unsigned long div;
>> + unsigned long dspBase[2];
>> + char *penv;
>> + int bpp;
>> + int i, j;
>> +
>> + memset(pGD, 0, sizeof(GraphicDevice));
>> +
>> + dspBase[0] = JADE_GDC_DISP0_PHYS_BASE;
>> + dspBase[1] = JADE_GDC_DISP1_PHYS_BASE;
>> +
>> + pGD->gdfIndex = GDF_15BIT_555RGB;
>> + pGD->gdfBytesPP = 2;
>> +
>> + pGD->memSize = VIDEO_MEM_SIZE;
>> + pGD->frameAdrs = PHYS_SDRAM + PHYS_SDRAM_SIZE - VIDEO_MEM_SIZE;
>> + vid = (unsigned long *)pGD->frameAdrs;
>> +
>> + for (i = 0; i< 2; i++) {
>> + char varName[32];
>> + u32 dcm1, dcm2, dcm3;
>> + u16 htp, hdp, hdb, hsp, vtr, vsp, vdp;
>> + u8 hsw, vsw;
>> + u32 l2m, l2em, l2oa0, l2da0, l2oa1, l2da1;
>> + u16 l2dx, l2dy, l2wx, l2wy, l2ww, l2wh;
>> +
>> + sprintf(varName, "gs_dsp_%d_param", i);
>> +
>> + penv = getenv(varName);
>> + if (penv == NULL) {
>> + penv = getenv("videomode");
>> + if ((i == 1) || (penv == NULL))
>> + continue;
>
> This check for (i == 1) should be moved before the getenv
Done.
>> +/*
>> + * Set a RGB color in the LUT
>> + */
>> +void video_set_lut(unsigned int index, unsigned char r,
>> + unsigned char g, unsigned char b)
>> +{
>
> If leaving this a noop is intentional, add a comment.
Done.
Thanks for checking.
Regards,
Matthias
next prev parent reply other threads:[~2010-01-18 14:06 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-11 17:18 [U-Boot] Adding support for MB86R01 Matthias Weisser
2010-01-11 17:18 ` [U-Boot] [PATCH] Add support for MB86R01 from Fujitsu Matthias Weisser
2010-01-11 17:18 ` [U-Boot] [PATCH] Add support for Jade display controller Matthias Weisser
2010-01-11 17:18 ` [U-Boot] [PATCH] Adding new vendor logo Matthias Weisser
2010-01-11 17:18 ` [U-Boot] [PATCH] Add support for jadecpu board Matthias Weisser
2010-01-16 19:18 ` Tom
2010-01-16 20:11 ` Wolfgang Denk
2010-01-18 7:05 ` [U-Boot] Antw: " Matthias Weisser
2010-01-18 7:57 ` Wolfgang Denk
2010-01-18 8:21 ` Matthias Weißer
2010-01-18 8:55 ` Wolfgang Denk
2010-01-18 7:54 ` [U-Boot] " Matthias Weißer
2010-01-18 8:52 ` Wolfgang Denk
2010-01-18 12:10 ` Matthias Weißer
2010-01-18 13:11 ` Tom
2010-01-21 19:52 ` Tom
2010-01-16 16:43 ` [U-Boot] [PATCH] Adding new vendor logo Tom
2010-01-18 13:55 ` Matthias Weißer
2010-01-16 16:30 ` [U-Boot] [PATCH] Add support for Jade display controller Tom
2010-01-18 14:06 ` Matthias Weißer [this message]
2010-01-16 15:39 ` [U-Boot] [PATCH] Add support for MB86R01 from Fujitsu Tom
2010-01-18 14:01 ` Matthias Weißer
2010-01-16 15:40 ` [U-Boot] Adding support for MB86R01 Tom
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=4B546ACF.5050901@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