[U-Boot] [PATCH v2 0/1] Fix ethernet regression on pcm051 and igep0033

From: Lars Poeschel poeschel@lemonage.de
I compiled and tried v2013.10-rc2 on pcm051 and it fails booting over tftp. I could bisect 2bf36ac638ab2db9f0295aa47064976eeebf80c1 as the cause of the problem. It moves bd_ram_ofs from the cpsw driver to the board files. Adding the bd_ram_ofs to the board file of pcm051 fixes the problem. A quick grep revealed, that igep0033 is also be affected. The igep0033 maintainer confirmed it, so this patch does supply the old bd_ram_ofs value in the board file also. As the patch is simple and obivous and fixes a regression I'd like to get this in before the v2013.10 release.
Thanks
Changes v2:
- supply the bd_ram_ofs for igep0033 board also
Lars Poeschel (1): pcm051/igep0033: Supply bd_ram_ofs for cpsw driver
board/isee/igep0033/board.c | 1 + board/phytec/pcm051/board.c | 1 + 2 files changed, 2 insertions(+)

From: Lars Poeschel poeschel@lemonage.de
Since 2bf36ac638ab2db9f0295aa47064976eeebf80c1 the BD ram address is not hardcoded inside cpsw driver any more. Platforms have to supply their bd_ram_ofs in the platform data to the driver. This commit does this for pcm051 and igep0033 boards.
Tested-by: Enric Balletbo i Serra eballetbo@iseebcn.com Acked-by: Mugunthan V N mugunthanvnm@ti.com Signed-off-by: Lars Poeschel poeschel@lemonage.de --- board/isee/igep0033/board.c | 1 + board/phytec/pcm051/board.c | 1 + 2 files changed, 2 insertions(+)
diff --git a/board/isee/igep0033/board.c b/board/isee/igep0033/board.c index 9e91f68..d2aa1f9 100644 --- a/board/isee/igep0033/board.c +++ b/board/isee/igep0033/board.c @@ -129,6 +129,7 @@ static struct cpsw_platform_data cpsw_data = { .ale_entries = 1024, .host_port_reg_ofs = 0x108, .hw_stats_reg_ofs = 0x900, + .bd_ram_ofs = 0x2000, .mac_control = (1 << 5), .control = cpsw_control, .host_port_num = 0, diff --git a/board/phytec/pcm051/board.c b/board/phytec/pcm051/board.c index e40b0bd..dafb1eb 100644 --- a/board/phytec/pcm051/board.c +++ b/board/phytec/pcm051/board.c @@ -150,6 +150,7 @@ static struct cpsw_platform_data cpsw_data = { .ale_entries = 1024, .host_port_reg_ofs = 0x108, .hw_stats_reg_ofs = 0x900, + .bd_ram_ofs = 0x2000, .mac_control = (1 << 5), .control = cpsw_control, .host_port_num = 0,
participants (1)
-
Lars Poeschel