diff options
author | Olof Johansson <olof@lixom.net> | 2012-06-30 19:27:54 -0400 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2012-06-30 19:27:54 -0400 |
commit | c53629413409782eeafb4e314dc8c6c8094bff3b (patch) | |
tree | e4b24dcf2052759dbf360f63e188b041cc6d909c /arch/arm/mach-lpc32xx/clock.c | |
parent | 51a1ec0164e2030e0492bdede4e68090a3394c52 (diff) | |
parent | df072717eb0050326f0f63eed98200412c395831 (diff) |
Merge branch 'lpc32xx/devel' into next/soc
* lpc32xx/devel: (22 commits)
ARM: LPC32xx: Move i2s1 dma enabling to clock.c
ARM: LPC32xx: Move uart6 irda disable to serial.c
ARM: LPC32xx: Cleanup board init, remove duplicate clock init
ARM: LPC32xx: Remove spi chip definitions
ARM: LPC32xx: Remove spi chipselect request from board init
ARM: LPC32xx: Add dt settings to the at25 node
ARM: LPC32xx: Build arch dtbs
ARM: LPC32xx: Fix lpc32xx.dtsi status property: "disable" -> "disabled"
ARM: LPC32xx: Remove mach specific ARCH_NR_GPIOS, use default
ARM: LPC32xx: High Speed UART configuration via DT
ARM: LPC32xx: DT conversion of Standard UARTs
ARM: LPC32xx: DTS adjustment for using pl18x primecell
ARM: LPC32xx: Add MMC controller support
ARM: LPC32xx: Defconfig update
ARM: LPC32xx: Clock adjustment for key matrix controller
ARM: LPC32xx: DTS adjustment for key matrix controller
ARM: LPC32xx: Add dts for EA3250 reference board
ARM: LPC32xx: Adjust dtsi file for MLC controller configuration
ARM: LPC32xx: Add DMA configuration to platform data
ARM: LPC32xx: Remove SLC controller initialization from platform init
...
Diffstat (limited to 'arch/arm/mach-lpc32xx/clock.c')
-rw-r--r-- | arch/arm/mach-lpc32xx/clock.c | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/arch/arm/mach-lpc32xx/clock.c b/arch/arm/mach-lpc32xx/clock.c index f6a3ffec1f4b..e8d315e6db09 100644 --- a/arch/arm/mach-lpc32xx/clock.c +++ b/arch/arm/mach-lpc32xx/clock.c | |||
@@ -691,10 +691,21 @@ static struct clk clk_nand = { | |||
691 | .parent = &clk_hclk, | 691 | .parent = &clk_hclk, |
692 | .enable = local_onoff_enable, | 692 | .enable = local_onoff_enable, |
693 | .enable_reg = LPC32XX_CLKPWR_NAND_CLK_CTRL, | 693 | .enable_reg = LPC32XX_CLKPWR_NAND_CLK_CTRL, |
694 | .enable_mask = LPC32XX_CLKPWR_NANDCLK_SLCCLK_EN, | 694 | .enable_mask = LPC32XX_CLKPWR_NANDCLK_SLCCLK_EN | |
695 | LPC32XX_CLKPWR_NANDCLK_SEL_SLC, | ||
695 | .get_rate = local_return_parent_rate, | 696 | .get_rate = local_return_parent_rate, |
696 | }; | 697 | }; |
697 | 698 | ||
699 | static struct clk clk_nand_mlc = { | ||
700 | .parent = &clk_hclk, | ||
701 | .enable = local_onoff_enable, | ||
702 | .enable_reg = LPC32XX_CLKPWR_NAND_CLK_CTRL, | ||
703 | .enable_mask = LPC32XX_CLKPWR_NANDCLK_MLCCLK_EN | | ||
704 | LPC32XX_CLKPWR_NANDCLK_DMA_INT | | ||
705 | LPC32XX_CLKPWR_NANDCLK_INTSEL_MLC, | ||
706 | .get_rate = local_return_parent_rate, | ||
707 | }; | ||
708 | |||
698 | static struct clk clk_i2s0 = { | 709 | static struct clk clk_i2s0 = { |
699 | .parent = &clk_hclk, | 710 | .parent = &clk_hclk, |
700 | .enable = local_onoff_enable, | 711 | .enable = local_onoff_enable, |
@@ -707,7 +718,8 @@ static struct clk clk_i2s1 = { | |||
707 | .parent = &clk_hclk, | 718 | .parent = &clk_hclk, |
708 | .enable = local_onoff_enable, | 719 | .enable = local_onoff_enable, |
709 | .enable_reg = LPC32XX_CLKPWR_I2S_CLK_CTRL, | 720 | .enable_reg = LPC32XX_CLKPWR_I2S_CLK_CTRL, |
710 | .enable_mask = LPC32XX_CLKPWR_I2SCTRL_I2SCLK1_EN, | 721 | .enable_mask = LPC32XX_CLKPWR_I2SCTRL_I2SCLK1_EN | |
722 | LPC32XX_CLKPWR_I2SCTRL_I2S1_USE_DMA, | ||
711 | .get_rate = local_return_parent_rate, | 723 | .get_rate = local_return_parent_rate, |
712 | }; | 724 | }; |
713 | 725 | ||
@@ -1120,8 +1132,9 @@ static struct clk_lookup lookups[] = { | |||
1120 | CLKDEV_INIT("31020300.i2c", NULL, &clk_i2c2), | 1132 | CLKDEV_INIT("31020300.i2c", NULL, &clk_i2c2), |
1121 | CLKDEV_INIT("dev:ssp0", NULL, &clk_ssp0), | 1133 | CLKDEV_INIT("dev:ssp0", NULL, &clk_ssp0), |
1122 | CLKDEV_INIT("dev:ssp1", NULL, &clk_ssp1), | 1134 | CLKDEV_INIT("dev:ssp1", NULL, &clk_ssp1), |
1123 | CLKDEV_INIT("lpc32xx_keys.0", NULL, &clk_kscan), | 1135 | CLKDEV_INIT("40050000.key", NULL, &clk_kscan), |
1124 | CLKDEV_INIT("lpc32xx-nand.0", "nand_ck", &clk_nand), | 1136 | CLKDEV_INIT("20020000.flash", NULL, &clk_nand), |
1137 | CLKDEV_INIT("200a8000.flash", NULL, &clk_nand_mlc), | ||
1125 | CLKDEV_INIT("40048000.adc", NULL, &clk_adc), | 1138 | CLKDEV_INIT("40048000.adc", NULL, &clk_adc), |
1126 | CLKDEV_INIT(NULL, "i2s0_ck", &clk_i2s0), | 1139 | CLKDEV_INIT(NULL, "i2s0_ck", &clk_i2s0), |
1127 | CLKDEV_INIT(NULL, "i2s1_ck", &clk_i2s1), | 1140 | CLKDEV_INIT(NULL, "i2s1_ck", &clk_i2s1), |