arm:omap:am33xx: Create an alias for pruss clock
authorVaibhav Hiremath <hvaibhav@ti.com>
Tue, 29 Nov 2011 12:48:16 +0000 (18:18 +0530)
committerVaibhav Hiremath <hvaibhav@ti.com>
Mon, 23 Jan 2012 19:14:38 +0000 (00:44 +0530)
PRUSS driver has specific requriement for clock naming
convention, due to legacy platform support.
So create an alias for the clock "icss_uart_gclk" --> "pruss".

Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
arch/arm/mach-omap2/board-am335xevm.c

index 2f53106a7f983d4a21f027c1d30d003139665f1f..455f48e33b1b0457de8e0f456bb43110d101455a 100644 (file)
@@ -1798,6 +1798,9 @@ static void __init am335x_evm_init(void)
        usb_musb_init(&musb_board_data);
        omap_board_config = am335x_evm_config;
        omap_board_config_size = ARRAY_SIZE(am335x_evm_config);
+       /* Create an alias for icss clock */
+       if (clk_add_alias("pruss", NULL, "icss_uart_gclk", NULL))
+               pr_err("failed to create an alias: icss_uart_gclk --> pruss\n");
 }
 
 static void __init am335x_evm_map_io(void)