From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcos Cunha Date: Mon, 14 Dec 2009 10:04:12 -0300 Subject: [U-Boot] GPIO - MPC8315 In-Reply-To: References: <4B2185B0.70700@atlantico.com.br> Message-ID: <4B2637CC.80301@atlantico.com.br> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.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? >> > > >