[U-Boot] [PATCH] da850/omap-l138: enable SPI flash in RMII mode
Christian Riesch
christian.riesch at omicron.at
Tue Jun 5 12:08:53 CEST 2012
Hi,
On Fri, Jun 1, 2012 at 3:48 PM, Prabhakar Lad <prabhakar.lad at ti.com> wrote:
> From: Rajashekhara, Sudhakar <sudhakar.raj at ti.com>
>
> According to DA850/OMAP-L138 schematics, GP2[6] line has to be driven
> high for RMII mode to work. In RMII mode, SPI flash becomes un-usable.
> But during testing it was found out that, driving GP2[6] low also
> enables RMII and in this configuration SPI flash is also accessible.
How about just removing all the code that is related to GP2[6]?
There's a pull-down resistor on the board and the pin is high
impedance by default.
Regards, Christian
>
> Signed-off-by: Rajashekhara, Sudhakar <sudhakar.raj at ti.com>
> Signed-off-by: Lad, Prabhakar <prabhakar.lad at ti.com>
> Signed-off-by: Hadli, Manjunath <manjunath.hadli at ti.com>
> ---
> board/davinci/da8xxevm/da850evm.c | 6 +++---
> 1 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/board/davinci/da8xxevm/da850evm.c b/board/davinci/da8xxevm/da850evm.c
> index 004d5ad..82d707f 100644
> --- a/board/davinci/da8xxevm/da850evm.c
> +++ b/board/davinci/da8xxevm/da850evm.c
> @@ -438,10 +438,10 @@ int rmii_hw_init(void)
> CONFIG_SYS_I2C_EXPANDER_ADDR);
> }
>
> - /* Set the output as high */
> - temp = REG(GPIO_BANK2_REG_SET_ADDR);
> + /* Set the output as low */
> + temp = REG(GPIO_BANK2_REG_CLR_ADDR);
> temp |= (0x01 << 6);
> - REG(GPIO_BANK2_REG_SET_ADDR) = temp;
> + REG(GPIO_BANK2_REG_CLR_ADDR) = temp;
>
> /* Set the GPIO direction as output */
> temp = REG(GPIO_BANK2_REG_DIR_ADDR);
> --
> 1.7.4.1
>
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
More information about the U-Boot
mailing list