public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Dennis Semakin <insane79@yandex.ru>
To: u-boot@lists.denx.de
Subject: [U-Boot] What's wrong with this code?
Date: Fri, 26 Mar 2010 11:40:01 +0300	[thread overview]
Message-ID: <98831269592801@webmail103.yandex.ru> (raw)

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

             reply	other threads:[~2010-03-26  8:40 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-26  8:40 Dennis Semakin [this message]
2010-03-26  9:30 ` [U-Boot] What's wrong with this code? Detlev Zundel
2010-03-26  9:58   ` Dennis Semakin
2010-03-26 10:09     ` Detlev Zundel
2010-03-26 14:28   ` Dennis Semakin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=98831269592801@webmail103.yandex.ru \
    --to=insane79@yandex.ru \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox