Commit d7f1a9ad authored by Magnus Damm's avatar Magnus Damm Committed by Paul Mundt

sh: Use clk_always_enable() on sh7366

Use clk_always_enable() in the sh7366 processor code.
Signed-off-by: default avatarMagnus Damm <damm@igel.co.jp>
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 8fa509ab
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
#include <linux/serial.h> #include <linux/serial.h>
#include <linux/serial_sci.h> #include <linux/serial_sci.h>
#include <linux/uio_driver.h> #include <linux/uio_driver.h>
#include <asm/clock.h>
static struct resource iic_resources[] = { static struct resource iic_resources[] = {
[0] = { [0] = {
...@@ -148,9 +149,23 @@ static struct platform_device *sh7366_devices[] __initdata = { ...@@ -148,9 +149,23 @@ static struct platform_device *sh7366_devices[] __initdata = {
static int __init sh7366_devices_setup(void) static int __init sh7366_devices_setup(void)
{ {
clk_always_enable("mstp031"); /* TLB */
clk_always_enable("mstp030"); /* IC */
clk_always_enable("mstp029"); /* OC */
clk_always_enable("mstp028"); /* RSMEM */
clk_always_enable("mstp026"); /* XYMEM */
clk_always_enable("mstp023"); /* INTC3 */
clk_always_enable("mstp022"); /* INTC */
clk_always_enable("mstp020"); /* SuperHyway */
clk_always_enable("mstp109"); /* I2C */
clk_always_enable("mstp207"); /* VEU-2 */
clk_always_enable("mstp202"); /* VEU-1 */
clk_always_enable("mstp201"); /* VPU */
platform_resource_setup_memory(&vpu_device, "vpu", 2 << 20); platform_resource_setup_memory(&vpu_device, "vpu", 2 << 20);
platform_resource_setup_memory(&veu0_device, "veu0", 2 << 20); platform_resource_setup_memory(&veu0_device, "veu0", 2 << 20);
platform_resource_setup_memory(&veu1_device, "veu1", 2 << 20); platform_resource_setup_memory(&veu1_device, "veu1", 2 << 20);
return platform_add_devices(sh7366_devices, return platform_add_devices(sh7366_devices,
ARRAY_SIZE(sh7366_devices)); ARRAY_SIZE(sh7366_devices));
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment