Skip to content

Commit

Permalink
ARM: shmobile: kzm9g-reference: Enable CMT1 in device tree
Browse files Browse the repository at this point in the history
Signed-off-by: Ulrich Hecht <ulrich.hecht+renesas@gmail.com>
Acked-by: Magnus Damm <damm+renesas@opensource.se>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
  • Loading branch information
Ulrich Hecht authored and Simon Horman committed Sep 9, 2014
1 parent 6a5336a commit 48a0d1e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
4 changes: 4 additions & 0 deletions arch/arm/boot/dts/sh73a0-kzm9g-reference.dts
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,10 @@
};
};

&cmt1 {
status = "ok";
};

&i2c0 {
status = "okay";
as3711@40 {
Expand Down
11 changes: 1 addition & 10 deletions arch/arm/mach-shmobile/setup-sh73a0.c
Original file line number Diff line number Diff line change
Expand Up @@ -696,10 +696,6 @@ static struct platform_device irqpin3_device = {
},
};

static struct platform_device *sh73a0_devices_dt[] __initdata = {
&cmt1_device,
};

static struct platform_device *sh73a0_early_devices[] __initdata = {
&scif0_device,
&scif1_device,
Expand All @@ -712,6 +708,7 @@ static struct platform_device *sh73a0_early_devices[] __initdata = {
&scif8_device,
&tmu0_device,
&ipmmu_device,
&cmt1_device,
};

static struct platform_device *sh73a0_late_devices[] __initdata = {
Expand All @@ -736,8 +733,6 @@ void __init sh73a0_add_standard_devices(void)
/* Clear software reset bit on SY-DMAC module */
__raw_writel(__raw_readl(SRCR2) & ~(1 << 18), SRCR2);

platform_add_devices(sh73a0_devices_dt,
ARRAY_SIZE(sh73a0_devices_dt));
platform_add_devices(sh73a0_early_devices,
ARRAY_SIZE(sh73a0_early_devices));
platform_add_devices(sh73a0_late_devices,
Expand All @@ -762,8 +757,6 @@ void __init sh73a0_earlytimer_init(void)

void __init sh73a0_add_early_devices(void)
{
early_platform_add_devices(sh73a0_devices_dt,
ARRAY_SIZE(sh73a0_devices_dt));
early_platform_add_devices(sh73a0_early_devices,
ARRAY_SIZE(sh73a0_early_devices));

Expand All @@ -780,8 +773,6 @@ void __init sh73a0_add_standard_devices_dt(void)
/* clocks are setup late during boot in the case of DT */
sh73a0_clock_init();

platform_add_devices(sh73a0_devices_dt,
ARRAY_SIZE(sh73a0_devices_dt));
of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);

/* Instantiate cpufreq-cpu0 */
Expand Down

0 comments on commit 48a0d1e

Please sign in to comment.