summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-nomadik
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2011-07-18 03:29:11 +0800
committerJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2011-07-18 07:57:51 +0800
commitd99a3f96a679f7fda6bfa49ad838fb2dd51bcffd (patch)
treea03b7cfd1dd89a9a5650254401ca5a5b81afe3d9 /arch/arm/mach-nomadik
parent23c7b4c4f08bc555aa7b8410b567d1fe3100c2e2 (diff)
downloadbarebox-d99a3f96a679f7fda6bfa49ad838fb2dd51bcffd.tar.gz
barebox-d99a3f96a679f7fda6bfa49ad838fb2dd51bcffd.tar.xz
nomadik: switch to all resource declaration to "struct resource"
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'arch/arm/mach-nomadik')
-rw-r--r--arch/arm/mach-nomadik/8815.c33
1 files changed, 27 insertions, 6 deletions
diff --git a/arch/arm/mach-nomadik/8815.c b/arch/arm/mach-nomadik/8815.c
index 5844c68d0b..3969193b03 100644
--- a/arch/arm/mach-nomadik/8815.c
+++ b/arch/arm/mach-nomadik/8815.c
@@ -36,32 +36,53 @@ static struct memory_platform_data ram_pdata = {
.flags = DEVFS_RDWR,
};
+static struct resource sdram_dev_resources[] = {
+ [0] = {
+ .start = 0x00000000,
+ },
+};
+
static struct device_d sdram_dev = {
.id = -1,
.name = "mem",
- .map_base = 0x00000000,
+ .num_resources = ARRAY_SIZE(sdram_dev_resources),
+ .resource = sdram_dev_resources,
.platform_data = &ram_pdata,
};
void st8815_add_device_sdram(u32 size)
{
- sdram_dev.size = size;
+ sdram_dev_resources[0].size = size;
register_device(&sdram_dev);
armlinux_add_dram(&sdram_dev);
}
+static struct resource uart0_serial_resources[] = {
+ [0] = {
+ .start = NOMADIK_UART0_BASE,
+ .size = 4096,
+ },
+};
+
static struct device_d uart0_serial_device = {
.id = 0,
.name = "uart-pl011",
- .map_base = NOMADIK_UART0_BASE,
- .size = 4096,
+ .num_resources = ARRAY_SIZE(uart0_serial_resources),
+ .resource = uart0_serial_resources,
+};
+
+static struct resource uart1_serial_resources[] = {
+ [0] = {
+ .start = NOMADIK_UART1_BASE,
+ .size = 4096,
+ },
};
static struct device_d uart1_serial_device = {
.id = 1,
.name = "uart-pl011",
- .map_base = NOMADIK_UART1_BASE,
- .size = 4096,
+ .num_resources = ARRAY_SIZE(uart1_serial_resources),
+ .resource = uart1_serial_resources,
};
void st8815_register_uart(unsigned id)