ARM: at91: add PWM clock
authorBo Shen <voice.shen@atmel.com>
Thu, 19 Dec 2013 03:59:16 +0000 (11:59 +0800)
committerNicolas Ferre <nicolas.ferre@atmel.com>
Wed, 12 Mar 2014 17:23:45 +0000 (18:23 +0100)
Add PWM clock for AT91 series SoC which include PWM controller.

Signed-off-by: Bo Shen <voice.shen@atmel.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
arch/arm/mach-at91/at91sam9263.c
arch/arm/mach-at91/at91sam9g45.c
arch/arm/mach-at91/at91sam9n12.c
arch/arm/mach-at91/at91sam9rl.c
arch/arm/mach-at91/at91sam9x5.c

index 37b90f4b990c3ce4e5360c526ca979810277121c..fbd771db7783b8ae8148b5790192888a3b8d37ac 100644 (file)
@@ -223,6 +223,7 @@ static struct clk_lookup periph_clocks_lookups[] = {
        CLKDEV_CON_DEV_ID(NULL, "fffff600.gpio", &pioCDE_clk),
        CLKDEV_CON_DEV_ID(NULL, "fffff800.gpio", &pioCDE_clk),
        CLKDEV_CON_DEV_ID(NULL, "fffffa00.gpio", &pioCDE_clk),
+       CLKDEV_CON_DEV_ID(NULL, "fffb8000.pwm", &pwm_clk),
 };
 
 static struct clk_lookup usart_clocks_lookups[] = {
index 2f455ce35268513d5abaafc954a54be76ef48a26..e9ba93476b3da409b4ab947581b19c9edfcce868 100644 (file)
@@ -284,6 +284,7 @@ static struct clk_lookup periph_clocks_lookups[] = {
        CLKDEV_CON_ID("pioE", &pioDE_clk),
        /* Fake adc clock */
        CLKDEV_CON_ID("adc_clk", &tsc_clk),
+       CLKDEV_CON_DEV_ID(NULL, "fffb8000.pwm", &pwm_clk),
 };
 
 static struct clk_lookup usart_clocks_lookups[] = {
index 4ef088c62eabdf6661a801f495e795912f250cd5..f2ea7b0a02da8f95073fe01d36d048c712a88712 100644 (file)
@@ -182,6 +182,7 @@ static struct clk_lookup periph_clocks_lookups[] = {
        /* additional fake clock for macb_hclk */
        CLKDEV_CON_DEV_ID("hclk", "500000.ohci", &uhp_clk),
        CLKDEV_CON_DEV_ID("ohci_clk", "500000.ohci", &uhp_clk),
+       CLKDEV_CON_DEV_ID(NULL, "f8034000.pwm", &pwm_clk),
 };
 
 /*
index a11983fbaabf4e827ccd2dc0c649f12b561b9ea0..76868c934efd02188c3e0cb865175d98d4211622 100644 (file)
@@ -209,6 +209,7 @@ static struct clk_lookup periph_clocks_lookups[] = {
        CLKDEV_CON_DEV_ID("mci_clk", "fffa4000.mmc", &mmc_clk),
        CLKDEV_CON_DEV_ID(NULL, "fffa8000.i2c", &twi0_clk),
        CLKDEV_CON_DEV_ID(NULL, "fffac000.i2c", &twi1_clk),
+       CLKDEV_CON_DEV_ID(NULL, "fffc8000.pwm", &pwm_clk),
        CLKDEV_CON_DEV_ID(NULL, "ffffc800.pwm", &pwm_clk),
        CLKDEV_CON_DEV_ID(NULL, "fffff400.gpio", &pioA_clk),
        CLKDEV_CON_DEV_ID(NULL, "fffff600.gpio", &pioB_clk),
index 3e8ec26e39dcc7404120fab8cbbfb0e168d9fa44..9ad781d5ee7cc9d5cd76650d395dffac9c98e0ca 100644 (file)
@@ -253,6 +253,7 @@ static struct clk_lookup periph_clocks_lookups[] = {
        CLKDEV_CON_DEV_ID("ehci_clk", "700000.ehci", &uhphs_clk),
        CLKDEV_CON_DEV_ID("hclk", "500000.gadget", &utmi_clk),
        CLKDEV_CON_DEV_ID("pclk", "500000.gadget", &udphs_clk),
+       CLKDEV_CON_DEV_ID(NULL, "f8034000.pwm", &pwm_clk),
 };
 
 /*