public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Marcos Cunha <marcos@atlantico.com.br>
To: u-boot@lists.denx.de
Subject: [U-Boot] GPIO - MPC8315
Date: Mon, 14 Dec 2009 10:04:12 -0300	[thread overview]
Message-ID: <4B2637CC.80301@atlantico.com.br> (raw)
In-Reply-To: <D0B748CCD5DF144CA5C56A9D860A31341DE6DB@men-exch1.intra.men.de>

That was the problem.


After GPIO configuration this line resolve the problem.

*setbits_be32(&immr->sysconf.sicrh, SICRH_GPIO_0 | SICRH_GPIO_1 | 
SICRH_GPIO_2);*

The DEBUG output:

SPI - CHIP SELECT CONFIGURATION
&gpio = e0000c00
gpio->dir = 3f000000
gpio->odr = 0
gpio->ier = e0bfff0f
gpio->imr = 0
gpio->icr = 0
*gpio->dat = e0000000 *

sysconf.sicrl = 0
*sysconf.sicrh = fc000000*


Thanks



G?nter Leonhardt wrote:
>  
> Did you setup the System I/O Configuration Registers SICRL, SICRH?
>
>   
>> I want to configure GPIOs on MPC8315, but I can't set the gpio. Below the configuration code and the output.
>>
>> What is wrong?
>>     
>
>
>   

      reply	other threads:[~2009-12-14 13:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-10 23:35 [U-Boot] GPIO - MPC8315 Marcos Cunha
2009-12-11 15:26 ` Günter Leonhardt
2009-12-14 13:04   ` Marcos Cunha [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=4B2637CC.80301@atlantico.com.br \
    --to=marcos@atlantico.com.br \
    --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