diff options
author | Beniamino Galvani <b.galvani@gmail.com> | 2016-08-16 11:49:50 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-09-06 13:18:19 -0400 |
commit | cfe255611ce183187a3de5ef6fed246bdea7b044 (patch) | |
tree | 02acd5004f2391cdef06b1b7798becae50eda80c /board/amlogic/odroid-c2 | |
parent | 677b53580d5d86ca65737497829d581544ae71bf (diff) |
meson: odroid-c2: enable Ethernet support through the device tree
Remove the device definition from board file, update the driver with
the new compatible property and update config with necessary options.
Signed-off-by: Beniamino Galvani <b.galvani@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'board/amlogic/odroid-c2')
-rw-r--r-- | board/amlogic/odroid-c2/odroid-c2.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/board/amlogic/odroid-c2/odroid-c2.c b/board/amlogic/odroid-c2/odroid-c2.c index bd72100e09b..b61daaa4a75 100644 --- a/board/amlogic/odroid-c2/odroid-c2.c +++ b/board/amlogic/odroid-c2/odroid-c2.c @@ -21,24 +21,11 @@ int board_init(void) return 0; } -static const struct eth_pdata gxbb_eth_pdata = { - .iobase = GXBB_ETH_BASE, - .phy_interface = PHY_INTERFACE_MODE_RGMII, -}; - -U_BOOT_DEVICE(meson_eth) = { - .name = "eth_designware", - .platdata = &gxbb_eth_pdata, -}; - int misc_init_r(void) { u8 mac_addr[EFUSE_MAC_SIZE]; ssize_t len; - /* Select Ethernet function */ - setbits_le32(GXBB_PINMUX(6), 0x3fff); - /* Set RGMII mode */ setbits_le32(GXBB_ETH_REG_0, GXBB_ETH_REG_0_PHY_INTF | GXBB_ETH_REG_0_TX_PHASE(1) | |