From: Mike Frysinger <vapier@gentoo.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v3 4/4] c6x: Add support c6745-som board
Date: Thu, 19 Jul 2012 00:05:55 -0400 [thread overview]
Message-ID: <201207190005.56346.vapier@gentoo.org> (raw)
In-Reply-To: <1340647361-23387-5-git-send-email-bond@inmys.ru>
On Monday 25 June 2012 14:02:41 Dmitry Bondar wrote:
> --- /dev/null
> +++ b/board/inmys/c6745-som/c6745-som.c
>
> +int board_init()
(void)
> +int board_eth_init(bd_t *bis)
> +{
> + u_int8_t mac_addr[6];
uchar
> + /* Read Ethernet MAC address from EEPROM */
> + if (dvevm_read_mac_address(mac_addr))
> + /* set address env if not already set */
> + davinci_sync_env_enetaddr(mac_addr);
> +
> + /* read the address back from env */
> + if (!eth_getenv_enetaddr("ethaddr", mac_addr))
> + return -1;
i think logic here is incorrect. usually it's:
if (!eth_getenv_enetaddr("ethaddr", mac_addr))
/* read mac from hardware */
> + dev = eth_get_dev();
> +
> + /* provide the resulting addr to the driver */
> + memcpy(dev->enetaddr, mac_addr, 6);
> + dev->write_hwaddr(dev);
err, this should be in the driver, not the board init
> --- /dev/null
> +++ b/include/configs/c6745-som-inmys.h
> @@ -0,0 +1,294 @@
> +#ifndef __CONFIG_H
> +#define __CONFIG_H
missing intro comment block
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20120719/8347fcee/attachment.pgp>
next prev parent reply other threads:[~2012-07-19 4:05 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <add_c6x_arch>
[not found] ` <1340394370-1550-4-git-send-email-bond@inmys.ru>
2012-06-22 21:57 ` [U-Boot] [PATCH 3/4] c6x: Add suport build davinci SOC with c674x CPUs Tom Rini
2012-06-23 11:11 ` [U-Boot] [PATCH v2 0/4] Add support new arch: c6x Dmitry Bondar
2012-06-23 12:33 ` Wolfgang Denk
2012-06-24 11:40 ` bond at inmys.ru
2012-06-24 13:50 ` Wolfgang Denk
2012-06-23 11:11 ` [U-Boot] [PATCH v2 1/4] " Dmitry Bondar
2012-06-23 11:11 ` [U-Boot] [PATCH v2 2/4] c6x: Add support c674x CPUs Dmitry Bondar
2012-06-23 11:11 ` [U-Boot] [PATCH v2 3/4] c6x: Add suport build davinci SOC with " Dmitry Bondar
2012-06-23 11:11 ` [U-Boot] [PATCH v2 4/4] c6x: Add support c6745-som board Dmitry Bondar
2012-06-25 18:02 ` [U-Boot] [PATCH v3 0/4] Add support new arch: c6x Dmitry Bondar
2012-06-25 22:31 ` Tom Rini
2012-06-28 17:43 ` Dmitry Bondar
2012-06-28 18:02 ` Tom Rini
2012-06-25 18:02 ` [U-Boot] [PATCH v3 1/4] " Dmitry Bondar
2012-06-25 22:04 ` Tom Rini
2012-06-27 20:36 ` bond at inmys.ru
2012-06-27 20:55 ` Tom Rini
2012-06-27 22:16 ` Wolfgang Denk
2012-07-19 3:53 ` Mike Frysinger
2012-06-25 18:02 ` [U-Boot] [PATCH v3 2/4] c6x: Add support c674x CPUs Dmitry Bondar
2012-06-25 22:44 ` Tom Rini
2012-07-19 3:59 ` Mike Frysinger
2012-06-25 18:02 ` [U-Boot] [PATCH v3 3/4] c6x: Add suport build davinci SOC with " Dmitry Bondar
2012-06-25 22:46 ` Tom Rini
2012-06-27 15:27 ` [U-Boot] [PATCH] davinci, c6x: Always use C version of reset code Tom Rini
2012-06-27 15:28 ` Tom Rini
2012-07-19 4:00 ` [U-Boot] [PATCH v3 3/4] c6x: Add suport build davinci SOC with c674x CPUs Mike Frysinger
2012-06-25 18:02 ` [U-Boot] [PATCH v3 4/4] c6x: Add support c6745-som board Dmitry Bondar
2012-06-25 22:42 ` Tom Rini
2012-07-19 4:05 ` Mike Frysinger [this message]
2012-08-10 20:53 ` Wolfgang Denk
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=201207190005.56346.vapier@gentoo.org \
--to=vapier@gentoo.org \
--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