sh: Switch to new style CMT device
The CMT (Compare Match Timer) driver implements a new style of platform data that handles the timer as a single device with multiple channel. Switch from the old-style platform data to the new-style platform data. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Šī revīzija ir iekļauta:

revīziju iesūtīja
Simon Horman

vecāks
1c41ecb60b
revīzija
9b17e48cd4
@@ -245,26 +245,16 @@ static struct platform_device veu1_device = {
|
||||
};
|
||||
|
||||
static struct sh_timer_config cmt_platform_data = {
|
||||
.channel_offset = 0x60,
|
||||
.timer_bit = 5,
|
||||
.clockevent_rating = 125,
|
||||
.clocksource_rating = 125,
|
||||
.channels_mask = 0x20,
|
||||
};
|
||||
|
||||
static struct resource cmt_resources[] = {
|
||||
[0] = {
|
||||
.start = 0x044a0060,
|
||||
.end = 0x044a006b,
|
||||
.flags = IORESOURCE_MEM,
|
||||
},
|
||||
[1] = {
|
||||
.start = evt2irq(0xf00),
|
||||
.flags = IORESOURCE_IRQ,
|
||||
},
|
||||
DEFINE_RES_MEM(0x044a0000, 0x70),
|
||||
DEFINE_RES_IRQ(evt2irq(0xf00)),
|
||||
};
|
||||
|
||||
static struct platform_device cmt_device = {
|
||||
.name = "sh_cmt",
|
||||
.name = "sh-cmt-32",
|
||||
.id = 0,
|
||||
.dev = {
|
||||
.platform_data = &cmt_platform_data,
|
||||
|
Atsaukties uz šo jaunā problēmā
Block a user