提交 72493146 编写于 作者: R Robert Jarzmik 提交者: Eric Miao

[ARM] pxa: add resources for incoming rtc-pxa driver

Add IO memory and IRQ ressources for pxa based SoC to be
able to use the new rtc-pxa driver.
Signed-off-by: NRobert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: NEric Miao <eric.miao@marvell.com>
上级 a10c287d
...@@ -330,11 +330,36 @@ void __init pxa_set_ficp_info(struct pxaficp_platform_data *info) ...@@ -330,11 +330,36 @@ void __init pxa_set_ficp_info(struct pxaficp_platform_data *info)
pxa_register_device(&pxa_device_ficp, info); pxa_register_device(&pxa_device_ficp, info);
} }
struct platform_device pxa_device_rtc = { static struct resource pxa_rtc_resources[] = {
[0] = {
.start = 0x40900000,
.end = 0x40900000 + 0x3b,
.flags = IORESOURCE_MEM,
},
[1] = {
.start = IRQ_RTC1Hz,
.end = IRQ_RTC1Hz,
.flags = IORESOURCE_IRQ,
},
[2] = {
.start = IRQ_RTCAlrm,
.end = IRQ_RTCAlrm,
.flags = IORESOURCE_IRQ,
},
};
struct platform_device sa1100_device_rtc = {
.name = "sa1100-rtc", .name = "sa1100-rtc",
.id = -1, .id = -1,
}; };
struct platform_device pxa_device_rtc = {
.name = "pxa-rtc",
.id = -1,
.num_resources = ARRAY_SIZE(pxa_rtc_resources),
.resource = pxa_rtc_resources,
};
static struct resource pxa_ac97_resources[] = { static struct resource pxa_ac97_resources[] = {
[0] = { [0] = {
.start = 0x40500000, .start = 0x40500000,
......
...@@ -11,6 +11,7 @@ extern struct platform_device pxa_device_hwuart; ...@@ -11,6 +11,7 @@ extern struct platform_device pxa_device_hwuart;
extern struct platform_device pxa_device_i2c; extern struct platform_device pxa_device_i2c;
extern struct platform_device pxa_device_i2s; extern struct platform_device pxa_device_i2s;
extern struct platform_device pxa_device_ficp; extern struct platform_device pxa_device_ficp;
extern struct platform_device sa1100_device_rtc;
extern struct platform_device pxa_device_rtc; extern struct platform_device pxa_device_rtc;
extern struct platform_device pxa_device_ac97; extern struct platform_device pxa_device_ac97;
......
...@@ -312,7 +312,7 @@ static struct platform_device *pxa25x_devices[] __initdata = { ...@@ -312,7 +312,7 @@ static struct platform_device *pxa25x_devices[] __initdata = {
&pxa_device_btuart, &pxa_device_btuart,
&pxa_device_stuart, &pxa_device_stuart,
&pxa_device_i2s, &pxa_device_i2s,
&pxa_device_rtc, &sa1100_device_rtc,
&pxa25x_device_ssp, &pxa25x_device_ssp,
&pxa25x_device_nssp, &pxa25x_device_nssp,
&pxa25x_device_assp, &pxa25x_device_assp,
......
...@@ -333,6 +333,7 @@ static struct platform_device *devices[] __initdata = { ...@@ -333,6 +333,7 @@ static struct platform_device *devices[] __initdata = {
&pxa_device_btuart, &pxa_device_btuart,
&pxa_device_stuart, &pxa_device_stuart,
&pxa_device_i2s, &pxa_device_i2s,
&sa1100_device_rtc,
&pxa_device_rtc, &pxa_device_rtc,
&pxa27x_device_ssp1, &pxa27x_device_ssp1,
&pxa27x_device_ssp2, &pxa27x_device_ssp2,
......
...@@ -541,6 +541,7 @@ static struct platform_device *devices[] __initdata = { ...@@ -541,6 +541,7 @@ static struct platform_device *devices[] __initdata = {
&pxa_device_btuart, &pxa_device_btuart,
&pxa_device_stuart, &pxa_device_stuart,
&pxa_device_i2s, &pxa_device_i2s,
&sa1100_device_rtc,
&pxa_device_rtc, &pxa_device_rtc,
&pxa27x_device_ssp1, &pxa27x_device_ssp1,
&pxa27x_device_ssp2, &pxa27x_device_ssp2,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册