|
@@ -169,20 +169,17 @@ static const struct resource thermal0_resources[] = {
|
|
|
thermal0_resources, \
|
|
|
ARRAY_SIZE(thermal0_resources))
|
|
|
|
|
|
-static struct sh_timer_config cmt10_platform_data = {
|
|
|
- .name = "CMT10",
|
|
|
- .timer_bit = 0,
|
|
|
- .clockevent_rating = 80,
|
|
|
+static struct sh_timer_config cmt1_platform_data = {
|
|
|
+ .channels_mask = 0xff,
|
|
|
};
|
|
|
|
|
|
-static struct resource cmt10_resources[] = {
|
|
|
- DEFINE_RES_MEM(0xe6130010, 0x0c),
|
|
|
- DEFINE_RES_MEM(0xe6130000, 0x04),
|
|
|
- DEFINE_RES_IRQ(gic_spi(120)), /* CMT1_0 */
|
|
|
+static struct resource cmt1_resources[] = {
|
|
|
+ DEFINE_RES_MEM(0xe6130000, 0x1004),
|
|
|
+ DEFINE_RES_IRQ(gic_spi(120)),
|
|
|
};
|
|
|
|
|
|
#define r8a7790_register_cmt(idx) \
|
|
|
- platform_device_register_resndata(&platform_bus, "sh_cmt", \
|
|
|
+ platform_device_register_resndata(&platform_bus, "sh-cmt-48-gen2", \
|
|
|
idx, cmt##idx##_resources, \
|
|
|
ARRAY_SIZE(cmt##idx##_resources), \
|
|
|
&cmt##idx##_platform_data, \
|
|
@@ -196,7 +193,7 @@ void __init r8a73a4_add_dt_devices(void)
|
|
|
r8a73a4_register_scif(3);
|
|
|
r8a73a4_register_scif(4);
|
|
|
r8a73a4_register_scif(5);
|
|
|
- r8a7790_register_cmt(10);
|
|
|
+ r8a7790_register_cmt(1);
|
|
|
}
|
|
|
|
|
|
/* DMA */
|