[PATCH 09/17] pcm043: Speed up NAND controller before copying barebox image

Peter Korsgaard jacmet at sunsite.dk
Mon May 3 07:29:40 EDT 2010


>>>>> "Sascha" == Sascha Hauer <s.hauer at pengutronix.de> writes:

 Sascha> Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
 Sascha> ---
 Sascha>  board/pcm043/pcm043.c |    7 +++++++
 Sascha>  1 files changed, 7 insertions(+), 0 deletions(-)

 Sascha> diff --git a/board/pcm043/pcm043.c b/board/pcm043/pcm043.c
 Sascha> index 2ce7e3a..d8cd7b8 100644
 Sascha> --- a/board/pcm043/pcm043.c
 Sascha> +++ b/board/pcm043/pcm043.c
 Sascha> @@ -393,6 +393,13 @@ BAREBOX_CMD_END
 Sascha>  #ifdef CONFIG_NAND_IMX_BOOT
 Sascha>  void __bare_init nand_boot(void)
 Sascha>  {
 Sascha> +	u32 val;
 Sascha> +
 Sascha> +	val = readl(IMX_CCM_BASE + CCM_PDR4);
 Sascha> +	val &= ~(0xf << 28);
 Sascha> +	val |= 0x1 << 28;
 Sascha> +	writel(val, IMX_CCM_BASE + CCM_PDR4);

A comment describing what this does might be nice.

-- 
Bye, Peter Korsgaard



More information about the barebox mailing list