diff options
author | Renaud Barbier <renaud.barbier@ge.com> | 2012-08-07 15:30:58 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-08-10 21:15:36 +0200 |
commit | fa345fa012fda102e6e0f428f45bbe5c0bfcff66 (patch) | |
tree | b03d966084e272010c8fe22a3e68dc785b10515c /arch | |
parent | ad7e9562fcb1f8a4d800a4eb795a0b932f6f0516 (diff) | |
download | barebox-fa345fa012fda102e6e0f428f45bbe5c0bfcff66.tar.gz barebox-fa345fa012fda102e6e0f428f45bbe5c0bfcff66.tar.xz |
ppc: P2020RDB Ethernet configuration
Minimal support of the Ethernet interface on the P2020RDB board. Only
the eTSEC3 interface is supported.
Signed-off-by: Renaud Barbier <renaud.barbier@ge.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/ppc/boards/freescale-p2020rdb/p2020rdb.c | 14 | ||||
-rw-r--r-- | arch/ppc/configs/p2020rdb_defconfig | 6 |
2 files changed, 20 insertions, 0 deletions
diff --git a/arch/ppc/boards/freescale-p2020rdb/p2020rdb.c b/arch/ppc/boards/freescale-p2020rdb/p2020rdb.c index 20897cbaee..4cebf797d0 100644 --- a/arch/ppc/boards/freescale-p2020rdb/p2020rdb.c +++ b/arch/ppc/boards/freescale-p2020rdb/p2020rdb.c @@ -35,6 +35,7 @@ #include <mach/mmu.h> #include <mach/immap_85xx.h> #include <mach/clocks.h> +#include <mach/gianfar.h> #include <mach/early_udelay.h> #define VSC7385_RST_SET 0x00080000 @@ -61,10 +62,23 @@ #define SYSCLK_50 50000000 #define SYSCLK_100 100000000 +/* Ethernet. Use eTSEC3 */ +static struct gfar_info_struct gfar_info[] = { + { + .phyaddr = 1, + .tbiana = 0, + .tbicr = 0, + }, +}; + + static int devices_init(void) { add_cfi_flash_device(-1, CFG_FLASH_BASE, 16 << 20, 0); + /* eTSEC3 */ + fsl_eth_init(3, &gfar_info[0]); + devfs_add_partition("nor0", 0xf80000, 0x80000, DEVFS_PARTITION_FIXED, "self0"); return 0; diff --git a/arch/ppc/configs/p2020rdb_defconfig b/arch/ppc/configs/p2020rdb_defconfig index f8a0687251..d025a401f4 100644 --- a/arch/ppc/configs/p2020rdb_defconfig +++ b/arch/ppc/configs/p2020rdb_defconfig @@ -21,3 +21,9 @@ CONFIG_MALLOC_SIZE=0x200000 CONFIG_BAUDRATE=115200 CONFIG_DRIVER_SERIAL_NS16550=y CONFIG_RELOCATABLE=y +CONFIG_DRIVER_NET_GIANFAR=y +CONFIG_NET=y +CONFIG_NET_PING=y +CONFIG_NET_TFTP=y +CONFIG_PING=y +CONFIG_TFTP=y |