MIPS: Lantiq: Fix ASC0/ASC1 clocks
Subsystems (2)
PATCH 1/1 MIPS: Lantiq: Fix ASC0/ASC1 clocks
ASC1 is available on every Lantiq SoC (also AmazonSE) and should be enabled like the other generic xway clocks instead of ASC0, which is only available for AR9 and Danube.
Signed-off-by Martin Schiller <[email protected]>
--- arch/mips/lantiq/xway/sysctrl.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
arch/mips/lantiq/xway/sysctrl.c +1 -2
@@ -484,9 +484,9 @@ void __init ltq_soc_init(void)/* add our generic xway clocks */ clkdev_add_pmu ("10000000.fpi" ,NULL ,0 ,0 ,PMU_FPI ); -clkdev_add_pmu ("1e100400.serial" ,NULL ,0 ,0 ,PMU_ASC0 );clkdev_add_pmu ("1e100a00.gptu" ,NULL ,1 ,0 ,PMU_GPT );clkdev_add_pmu ("1e100bb0.stp" ,NULL ,1 ,0 ,PMU_STP ); +clkdev_add_pmu ("1e100c00.serial" ,NULL ,0 ,0 ,PMU_ASC1 );clkdev_add_pmu ("1e104100.dma" ,NULL ,1 ,0 ,PMU_DMA );clkdev_add_pmu ("1e100800.spi" ,NULL ,1 ,0 ,PMU_SPI );clkdev_add_pmu ("1e105300.ebu" ,NULL ,0 ,0 ,PMU_EBU );
@@ -501,7 +501,6 @@ void __init ltq_soc_init(void) }if (!of_machine_is_compatible ("lantiq,ase" )) { -clkdev_add_pmu ("1e100c00.serial" ,NULL ,0 ,0 ,PMU_ASC1 );clkdev_add_pci (); }
Signature · 1 line
2.1.4
Quoted 3 lines · Martin Schiller
ASC1 is available on every Lantiq SoC (also AmazonSE) and should be enabled like the other generic xway clocks instead of ASC0, which is only available for AR9 and Danube.
This is correct.
Quoted 1 line
Signed-off-by Martin Schiller <[email protected]>
Acked-by Hauke Mehrtens <[email protected]>
Quoted 28 lines
--- arch/mips/lantiq/xway/sysctrl.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)arch/mips/lantiq/xway/sysctrl.c +1
-2@@ -484,9 +484,9 @@ void __init ltq_soc_init(void)/* add our generic xway clocks */ clkdev_add_pmu ("10000000.fpi" ,NULL ,0 ,0 ,PMU_FPI ); -clkdev_add_pmu ("1e100400.serial" ,NULL ,0 ,0 ,PMU_ASC0 );clkdev_add_pmu ("1e100a00.gptu" ,NULL ,1 ,0 ,PMU_GPT );clkdev_add_pmu ("1e100bb0.stp" ,NULL ,1 ,0 ,PMU_STP ); +clkdev_add_pmu ("1e100c00.serial" ,NULL ,0 ,0 ,PMU_ASC1 );clkdev_add_pmu ("1e104100.dma" ,NULL ,1 ,0 ,PMU_DMA );clkdev_add_pmu ("1e100800.spi" ,NULL ,1 ,0 ,PMU_SPI );clkdev_add_pmu ("1e105300.ebu" ,NULL ,0 ,0 ,PMU_EBU );@@ -501,7 +501,6 @@ void __init ltq_soc_init(void) }if (!of_machine_is_compatible ("lantiq,ase" )) { -clkdev_add_pmu ("1e100c00.serial" ,NULL ,0 ,0 ,PMU_ASC1 );clkdev_add_pci (); }
James Hogan
AppliedQuoted 25 lines · Martin Schiller
ASC1 is available on every Lantiq SoC (also AmazonSE) and should be enabled like the other generic xway clocks instead of ASC0, which is only available for AR9 and Danube.
Signed-off-by Martin Schiller <[email protected]>--- arch/mips/lantiq/xway/sysctrl.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)arch/mips/lantiq/xway/sysctrl.c +1
-1@@ -484,9 +484,9 @@ void __init ltq_soc_init(void)/* add our generic xway clocks */ clkdev_add_pmu ("10000000.fpi" ,NULL ,0 ,0 ,PMU_FPI ); -clkdev_add_pmu ("1e100400.serial" ,NULL ,0 ,0 ,PMU_ASC0 );clkdev_add_pmu ("1e100a00.gptu" ,NULL ,1 ,0 ,PMU_GPT );clkdev_add_pmu ("1e100bb0.stp" ,NULL ,1 ,0 ,PMU_STP ); +clkdev_add_pmu ("1e100c00.serial" ,NULL ,0 ,0 ,PMU_ASC1 );clkdev_add_pmu ("1e104100.dma" ,NULL ,1 ,0 ,PMU_DMA );clkdev_add_pmu ("1e100800.spi" ,NULL ,1 ,0 ,PMU_SPI );clkdev_add_pmu ("1e105300.ebu" ,NULL ,0 ,0 ,PMU_EBU );
arch/mips/lantiq/xway/sysctrl.c void __init ltq_soc_init(void) · line 505
Quoted 6 lines
arch/mips/lantiq/xway/sysctrl.c +0
-1@@ -501,7 +501,6 @@ void __init ltq_soc_init(void) }if (!of_machine_is_compatible ("lantiq,ase" )) { -clkdev_add_pmu ("1e100c00.serial" ,NULL ,0 ,0 ,PMU_ASC1 );clkdev_add_pci (); }
Thanks, applied for 4.15 (and I dropped the braces here too).
Cheers
James