Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 189823
b: refs/heads/master
c: a7dc12b
h: refs/heads/master
i:
  189821: 4511d3a
  189819: 5ac1051
  189815: 058fdba
  189807: 5927857
  189791: 03e48d3
  189759: 2bb8732
  189695: 33f6184
v: v3
  • Loading branch information
Vladimir Zapolskiy authored and Sascha Hauer committed Mar 30, 2010
1 parent 41029fb commit adc8a8d
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0491fcbb76339cecbe4b6b1e862fb0c166bacf2d
refs/heads/master: a7dc12ba756021a95866730b482c6e34b13f84ee
19 changes: 18 additions & 1 deletion trunk/arch/arm/mach-mx3/devices.c
Original file line number Diff line number Diff line change
Expand Up @@ -575,11 +575,26 @@ struct platform_device imx_ssi_device1 = {
.resource = imx_ssi_resources1,
};

static int mx3_devices_init(void)
static struct resource imx_wdt_resources[] = {
{
.flags = IORESOURCE_MEM,
},
};

struct platform_device imx_wdt_device0 = {
.name = "imx-wdt",
.id = 0,
.num_resources = ARRAY_SIZE(imx_wdt_resources),
.resource = imx_wdt_resources,
};

static int __init mx3_devices_init(void)
{
if (cpu_is_mx31()) {
mxc_nand_resources[0].start = MX31_NFC_BASE_ADDR;
mxc_nand_resources[0].end = MX31_NFC_BASE_ADDR + 0xfff;
imx_wdt_resources[0].start = MX31_WDOG_BASE_ADDR;
imx_wdt_resources[0].end = MX31_WDOG_BASE_ADDR + 0x3fff;
mxc_register_device(&mxc_rnga_device, NULL);
}
if (cpu_is_mx35()) {
Expand All @@ -597,6 +612,8 @@ static int mx3_devices_init(void)
imx_ssi_resources0[1].end = MX35_INT_SSI1;
imx_ssi_resources1[1].start = MX35_INT_SSI2;
imx_ssi_resources1[1].end = MX35_INT_SSI2;
imx_wdt_resources[0].start = MX35_WDOG_BASE_ADDR;
imx_wdt_resources[0].end = MX35_WDOG_BASE_ADDR + 0x3fff;
}

return 0;
Expand Down
3 changes: 2 additions & 1 deletion trunk/arch/arm/mach-mx3/devices.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,5 @@ extern struct platform_device mxc_spi_device1;
extern struct platform_device mxc_spi_device2;
extern struct platform_device imx_ssi_device0;
extern struct platform_device imx_ssi_device1;

extern struct platform_device imx_ssi_device1;
extern struct platform_device imx_wdt_device0;

0 comments on commit adc8a8d

Please sign in to comment.