Hi Sascha
> > you need the reference manual of the i.MX25 to know the meaning ofDo these values match the ones you read out of the registers using your
> > these registers and the datasheet of your flash to know it's timings
> > then you can calculate the value to put in the registers.
> >
> >
> I have found them in an old uboot tree a previous person patched to have
> working support for NOR on boot. The values are:
>
> { .ptr_type = 4, .addr = 0xB8002000, .val = 0x0000D003, },
> { .ptr_type = 4, .addr = 0xB8002004, .val = 0x00330D01, },
> { .ptr_type = 4, .addr = 0xB8002008, .val = 0x00220800, },
U-Boot?
> /* Set up 16bit NOR flash on WEIM CS0 */You mixed up the argument order.
> writel(0xB8002000, 0x0000D003);
> writel(0xB8002004, 0x00330D01);
> writel(0xB8002008, 0x00220800);
>Because the console hasn't been setup yet. That's exactly the reason why
> board_init_lowlevel_return();
> }
>
> Why can't I printf() from low_level?
I recommend doing only the absolutely necessary stuff in lowlevel_init.