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] Help with LCD setup
Date: Mon, 8 Mar 2010 22:35:46 +0100	[thread overview]
Message-ID: <20100308223546.7dea0364@wker> (raw)
In-Reply-To: <A93AD3F7-D108-481F-976C-6F06C66291D4@gmail.com>

Hi,

On Mon, 8 Mar 2010 13:32:32 -0600
Chao You <you.chao@gmail.com> wrote:

> First time user. Sorry if you got multiple emails already.
> 
> I add the following line at the bottom of my omap3_beagle.h file.
> 
> #define CONFIG_LCD                      1
> #define CONFIG_CMD_BMP                  1
> #define CONFIG_SPLASH_SCREEN            1
> #define CONFIG_MPC823                   1

This if wrong. Please don't use MPC823 specific board configuration
macro in your config file, it is for different architecture.
 
> The following is the error message. Did I miss anything?

There is no support for splash screen in mainline U-Boot, it seems.
You need to add appropriate display controller initialization code,
better would be to add a simple driver so that other omap3 boards
could also benefit from it.

> lcd.c: In function ?bitmap_plot?:
> lcd.c:505: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__?
> before ?*? token
> lcd.c:505: error: ?immr? undeclared (first use in this function)
> lcd.c:505: error: (Each undeclared identifier is reported only once
> lcd.c:505: error: for each function it appears in.)
> lcd.c:505: error: ?immap_t? undeclared (first use in this function)
> lcd.c:505: error: expected expression before ?)? token

Try to understand the information your compiler gives you:
Look at the common/lcd.c file, around line 505:

504: #elif defined(CONFIG_MPC823)
505:        volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
506:        volatile cpm8xx_t *cp = &(immr->im_cpm);
507: #endif

?immap_t? type is used in the code, but it is undeclared.

You can try to find out where it could be declared, i.e.
by searching in the code:
ag at wker:~/u-boot$ grep -r "} immap_t" *
include/asm-ppc/immap_86xx.h:} immap_t;
include/asm-ppc/immap_83xx.h:} immap_t;
include/asm-ppc/immap_83xx.h:} immap_t;
include/asm-ppc/immap_83xx.h:} immap_t;
include/asm-ppc/immap_83xx.h:} immap_t;
include/asm-ppc/immap_83xx.h:} immap_t;
include/asm-ppc/immap_83xx.h:} immap_t;
include/asm-ppc/immap_512x.h:} immap_t;
include/asm-ppc/5xx_immap.h:} immap_t;
include/asm-ppc/immap_8220.h:} immap_t;
include/asm-ppc/8xx_immap.h:} immap_t;
include/asm-ppc/immap_8260.h:} immap_t;

Now you can see that this type declaration is in ppc
architecture specific headers which can't be used for your
platform. That means, you must be doing something wrong. You
also can see that the variable declarations are conditional,
depending on definition of CONFIG_MPC823 macro. Try to find
out what this macro is actually for, than you can see if it
makes sense to use it in your case.

Best regards,
Anatolij

      reply	other threads:[~2010-03-08 21:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-08 19:32 [U-Boot] Help with LCD setup Chao You
2010-03-08 21:35 ` 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=20100308223546.7dea0364@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