U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Marek Vasut <marek.vasut@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] FW: Need Your Help
Date: Mon, 19 Jul 2010 17:41:02 +0200	[thread overview]
Message-ID: <201007191741.02700.marek.vasut@gmail.com> (raw)
In-Reply-To: <EC921D4B77C99B4EB3CEDAFFCF17D5F72F3B6212F8@CHN-HCLT-EVS07.HCLT.CORP.HCL.IN>

Dne Po 19. ?ervence 2010 17:29:48 StephenPaulraj Chinnadurai-ERS,HCLTech 
napsal(a):
> Hello Marek,
> 
> Hope you are doing well.
> 
> I registered with U-Boot at lists.denx.de list last week and came to know
> about activities of the group.

You should possibly CC this mail into u-boot mailing list too.
> 
> I understand that your work is very tightly scheduled.
> 
> 
> I have made the FFUART and CFI to work in my board.

ok
> 
> But LAN91C1111 connect to the PXA270 in the static chip select 4 (nCS4) is
> not working.

Do you have correct GPIO mux settings ? In this case GPIO80 as to be AF2, check 
your GAFRx registers.
> 
> In /include/configs/hcl_pxa270.h file I have defined the following macro:
> #define CONFIG_SMC91111
> #define CONFIG_SMC91111_BASE    0x10000300

Are you sure about the 0x300 offset? That's actually toggling MA<10:9> pins on. 
Do you have these connected at all?

Try this:

+/*
+ * Networking Configuration
+ * SMC91C111 chip
+ */
+#ifdef CONFIG_CMD_NET
+#define        CONFIG_CMD_PING
+#define        CONFIG_CMD_DHCP
+#define        CONFIG_NET_MULTI
+
+#define        CONFIG_SMC91111
+#define        CONFIG_SMC91111_BASE    0x10000300
+
+#define        CONFIG_BOOTP_BOOTFILESIZE
+#define        CONFIG_BOOTP_BOOTPATH
+#define        CONFIG_BOOTP_GATEWAY
+#define        CONFIG_BOOTP_HOSTNAME
+
+#define        CONFIG_NETMASK                  255.255.255.0
+#define        CONFIG_IPADDR                   192.168.1.52
+#define        CONFIG_SERVERIP                 192.168.1.51
+#endif
> 
> In board/hcl_pxa270/lowlevel_init.S file, I have assigned
> MSC0 = 0x23F2B8F2
> MSC1 = 0x0000CCD1
> MSC2 = 0x0000B884

You don't need these ... see arch/arm/include/asm/arch-pxa/macro.h, everything 
you need is already configured there. Check for example vpac270 board.
> 
> Then in the board_init() function which is in /board/hcl_pxa270/hclpxa270.c
> file, I assigned: MSC0 = 0x7FF07FF0
> MSC1 = 0x7FF07FF0
> MSC2 = 0x7FF07FF0

You don't need that. The macros above do it for you. Again, check vpac270 board, 
it's lowlevel_init.S, it's configs/vpac270.h etc. You'll see that these are 
configured much earlier and you're only duplicating work.

All you need in your hclpxa270.c is this:

+#ifdef CONFIG_CMD_NET
+int board_eth_init(bd_t *bis)
+{
+       int rc = 0;
+#ifdef CONFIG_SMC91111
+       rc = smc91111_initialize(0, CONFIG_SMC91111_BASE);
+#endif
+       return rc;
+}
+#endif
> 
> But still the Ethernet is not initialized and working(Ethernet LED is not
> blinking):
> 
> Apart from the above modification, whether I need to do any other changes.
> 
> I am sending this mail personally, because you understand my problem (that
> I am working in hcl customized board and not in the reference/development
> board).

You should CC the mailing list anyway, because the knowledge I share with you 
can help other people who will search the mailing list in future.

Also, could you share your patch for the hcl board? It might be easier to check 
for grave bugs then.

Cheers
> 
> Thanks and Regards
> Stephen Paulraj C
> 
> HCL Technologies Ltd.
> D-12, Sidco Industrial Estate,
> Ambattur, Chennai -58
> Tel: +91 44  42004800 Extn: 2319
> Mob:+91 9962583934
> www.hcl.in
> 

       reply	other threads:[~2010-07-19 15:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <EC921D4B77C99B4EB3CEDAFFCF17D5F72F3B6212F8@CHN-HCLT-EVS07.HCLT.CORP.HCL.IN>
2010-07-19 15:41 ` Marek Vasut [this message]
2010-07-19 16:25   ` [U-Boot] FW: Need Your Help StephenPaulraj

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=201007191741.02700.marek.vasut@gmail.com \
    --to=marek.vasut@gmail.com \
    --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