508b996a62
Add support for the ethernet device 0 on the Zynq7000 SoC. The GEM is compatible to/the same one as the macb on at91. Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
14 lines
404 B
C
14 lines
404 B
C
#include <common.h>
|
|
#include <driver.h>
|
|
#include <mach/devices.h>
|
|
|
|
struct device_d *zynq_add_uart(resource_size_t base, int id)
|
|
{
|
|
return add_generic_device("cadence-uart", id, NULL, base, 0x1000, IORESOURCE_MEM, NULL);
|
|
}
|
|
|
|
struct device_d *zynq_add_eth(resource_size_t base, int id, struct macb_platform_data *pdata)
|
|
{
|
|
return add_generic_device("macb", id, NULL, base, 0x1000, IORESOURCE_MEM, pdata);
|
|
}
|