summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-zynq/devices.c
blob: 55e9433c517db43c58952e1eb16745779bf8e1c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#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);
}