[U-Boot] [PATCH v2 7/7] am335x_evm: Add support to boot from NOR.

Tom Rini trini at ti.com
Mon Jun 17 17:29:35 CEST 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 06/17/2013 11:23 AM, Mark Jackson wrote:
> On 17/06/13 15:59, Mark Jackson wrote:
>> On 17/06/13 15:49, Tom Rini wrote:
>> 
>> <snip>
>> 
>>> Did you copy the parts that setup the pinmuxing in s_init for
>>> NOR?
>> 
>> This bit ?
>> 
>> #ifdef CONFIG_NOR_BOOT asm("stmfd      sp!, {r2 - r4}"); 
>> asm("movw       r4, #0x8A4"); asm("movw       r3, #0x44E1"); 
>> asm("orr        r4, r4, r3, lsl #16"); asm("mov        r2, #9"); 
>> asm("mov        r3, #8"); asm("gpmc_mux:  str     r2, [r4],
>> #4"); asm("subs       r3, r3, #1"); asm("bne        gpmc_mux"); 
>> asm("ldmfd      sp!, {r2 - r4}"); #endif
>> 
>> Yes ... :-)
>> 
> 
> Below is my entire s_init() routine.
> 
> One question ... the SPL code has:-
> 
> ... gd = &gdata; ...
> 
> But there seems to be no similar assignment when in NOR boot mode. 
> I'm no expert in the internal workings of u-boot, so I thought I'd 
> check, just in case !?!

Maybe some of the recent changes broke things?  I recall having to
take a bit to track down where gd is assigned in the non-SPL case before..

- -- 
Tom
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBAgAGBQJRvytfAAoJENk4IS6UOR1WisEQAJo4jQDfFMdVE9G/KiCphySx
0Y0YwQ7uR5eEktUIQ6P9a+Hcy5ipom4i1cQszUTBjfQgcL6NCD9ta98hdf9aXti/
Rtmn65Yt4+YSRmcRbLDvzqyRw4Z0tUPvwEZrur9dzGkwdTcGe/aW1edKPUUdkSiA
4CfkZo8bQOPPJJB/GF/rIvdLrKNpGBL4gy0LtwKsyduXNiqhXXI4Y/2hMHbafFgV
ZTpZylHTfm/3esNmyv2Es9Ftsxq52tVGIr488RMibrzPj/ERIl3Whpn0HmPd3ew0
irn+MVPzO6aRCE4HyM+43KI4/7cM6HuX97jxML5BmLNAD3b06DM+J2R8HLr+MVwb
9sv8PPxLcPfvDqujAQtzj8LQSyEbHajXG5y42ZB3V0afBIjVjPJ8FRtD88LjDvXJ
PmiaX2wBGnYCg+9q+xeF/4J3FqO1BvCSqxzNHJo2U1YrQFxMzIgl9Rvoh9pXUoVh
U8fIdQnSw6r9w+FKIVlpAKLNw8Ed8xWjPsZgSzRKdmZnJfvTR+XfVVNK3z1b5dc+
ogeky/Jtn1qffOyOOrOG1vGtXE+HHWRqYDK4FFb3wv6puxZbJpakV4Rj+x1qkU9F
AULG/z9cjDrSo2xZtjyCF9/I2fHq9X7NX0AxdVUqezNR0V0E8JQ28cTK8ywQuJkr
itP0oHGBqU0o/Ty+q92O
=sPuh
-----END PGP SIGNATURE-----


More information about the U-Boot mailing list