aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/boards
diff options
context:
space:
mode:
authorMagnus Damm <damm@igel.co.jp>2008-10-31 07:21:44 -0400
committerPaul Mundt <lethal@linux-sh.org>2008-12-22 04:42:51 -0500
commita42b6dd69cb1c61c5f5a24061a227c22071786de (patch)
tree998ac6532b649ab39ff63ec4c637b6fe8d202187 /arch/sh/boards
parent090d951b69f29a8d5777c63570d4cd61d7efeb22 (diff)
sh: sh_mobile ceu clock framework support
Add clock framework support to the sh_mobile ceu and adjust the board specific code accordingly. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/boards')
-rw-r--r--arch/sh/boards/board-ap325rxa.c2
-rw-r--r--arch/sh/boards/mach-migor/setup.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/arch/sh/boards/board-ap325rxa.c b/arch/sh/boards/board-ap325rxa.c
index 8881a643ac32..0afaebad7b76 100644
--- a/arch/sh/boards/board-ap325rxa.c
+++ b/arch/sh/boards/board-ap325rxa.c
@@ -303,6 +303,7 @@ static struct resource ceu_resources[] = {
303 303
304static struct platform_device ceu_device = { 304static struct platform_device ceu_device = {
305 .name = "sh_mobile_ceu", 305 .name = "sh_mobile_ceu",
306 .id = 0, /* "ceu0" clock */
306 .num_resources = ARRAY_SIZE(ceu_resources), 307 .num_resources = ARRAY_SIZE(ceu_resources),
307 .resource = ceu_resources, 308 .resource = ceu_resources,
308 .dev = { 309 .dev = {
@@ -375,7 +376,6 @@ static int __init ap325rxa_devices_setup(void)
375 gpio_direction_output(GPIO_PTS3, 1); 376 gpio_direction_output(GPIO_PTS3, 1);
376 377
377 /* CEU */ 378 /* CEU */
378 clk_always_enable("mstp203");
379 gpio_request(GPIO_FN_VIO_CLK2, NULL); 379 gpio_request(GPIO_FN_VIO_CLK2, NULL);
380 gpio_request(GPIO_FN_VIO_VD2, NULL); 380 gpio_request(GPIO_FN_VIO_VD2, NULL);
381 gpio_request(GPIO_FN_VIO_HD2, NULL); 381 gpio_request(GPIO_FN_VIO_HD2, NULL);
diff --git a/arch/sh/boards/mach-migor/setup.c b/arch/sh/boards/mach-migor/setup.c
index 95dea1b02565..3684f198cfdf 100644
--- a/arch/sh/boards/mach-migor/setup.c
+++ b/arch/sh/boards/mach-migor/setup.c
@@ -433,6 +433,7 @@ static struct resource migor_ceu_resources[] = {
433 433
434static struct platform_device migor_ceu_device = { 434static struct platform_device migor_ceu_device = {
435 .name = "sh_mobile_ceu", 435 .name = "sh_mobile_ceu",
436 .id = 0, /* "ceu0" clock */
436 .num_resources = ARRAY_SIZE(migor_ceu_resources), 437 .num_resources = ARRAY_SIZE(migor_ceu_resources),
437 .resource = migor_ceu_resources, 438 .resource = migor_ceu_resources,
438 .dev = { 439 .dev = {
@@ -554,7 +555,6 @@ static int __init migor_devices_setup(void)
554#endif 555#endif
555 556
556 /* CEU */ 557 /* CEU */
557 clk_always_enable("mstp203"); /* CEU */
558 gpio_request(GPIO_FN_VIO_CLK2, NULL); 558 gpio_request(GPIO_FN_VIO_CLK2, NULL);
559 gpio_request(GPIO_FN_VIO_VD2, NULL); 559 gpio_request(GPIO_FN_VIO_VD2, NULL);
560 gpio_request(GPIO_FN_VIO_HD2, NULL); 560 gpio_request(GPIO_FN_VIO_HD2, NULL);