public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] What's wrong with this code?
@ 2010-03-26  8:40 Dennis Semakin
  2010-03-26  9:30 ` Detlev Zundel
  0 siblings, 1 reply; 5+ messages in thread
From: Dennis Semakin @ 2010-03-26  8:40 UTC (permalink / raw)
  To: u-boot

Hello,
Months ago I had a problem with network on Colibri PXA320. A applied all patches from Marek's web 
site http://openpxa.sourceforge.net/, but net didn't work at all in U-Boot and in Linux.
When I tried to read/write into/from ethernet chip I/O registers, that was mapped in the memory, system hung.

See http://lists.infradead.org/pipermail/linux-arm-kernel/2010-February/009279.html

Solution was prompted by Daniel Mack (Thanks Daniel).

Add this code to lowlevel_init function in U-Boot:
//begin
ldr r0, =CKENA
ldr r1, [r0]
orr r1, r1, #(CKENA_4_NAND | CKENA_9_SMC)
str r1, [r0]
ldr r1, [r0] 
//end

After that network has worked in u-boot and in linux.
Also he said: "It did see this code, but it wasn't taken for upstream, for reasons I
cannot remember..."

What's wrong with this code? 

Thanks,
Best Regards
Dennis Semakin

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-03-26 14:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-26  8:40 [U-Boot] What's wrong with this code? Dennis Semakin
2010-03-26  9:30 ` Detlev Zundel
2010-03-26  9:58   ` Dennis Semakin
2010-03-26 10:09     ` Detlev Zundel
2010-03-26 14:28   ` Dennis Semakin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox