aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mfd
diff options
context:
space:
mode:
authorBen Dooks <ben-linux@fluff.org>2007-06-23 20:16:29 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-06-24 11:59:11 -0400
commitb5913bbd2ddebd9c2c6841986c29376e691dd396 (patch)
tree1983d09d070af73bf7b416c6b6a2fe5200f6efa8 /drivers/mfd
parent331d74750e69a2202f857d3af9323335d0d6879f (diff)
SM501: initialise SDRAM clock before bus clocks
This init sequence of setting the SDRAM clock before the bus clock is recommend by Silicon Motion to stop problems with writes not sticking into registers. Signed-off-by: Vincent Sanders <vince@simtec.co.uk> Signed-off-by: Ben Dooks <ben-linux@fluff.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/mfd')
-rw-r--r--drivers/mfd/sm501.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/mfd/sm501.c b/drivers/mfd/sm501.c
index 72bbecf4b451..4c4412e0de24 100644
--- a/drivers/mfd/sm501.c
+++ b/drivers/mfd/sm501.c
@@ -843,15 +843,15 @@ static void sm501_init_regs(struct sm501_devdata *sm,
843 sm501_init_reg(sm, SM501_GPIO31_0_CONTROL, &init->gpio_low); 843 sm501_init_reg(sm, SM501_GPIO31_0_CONTROL, &init->gpio_low);
844 sm501_init_reg(sm, SM501_GPIO63_32_CONTROL, &init->gpio_high); 844 sm501_init_reg(sm, SM501_GPIO63_32_CONTROL, &init->gpio_high);
845 845
846 if (init->mclk) {
847 dev_info(sm->dev, "setting MCLK to %ld\n", init->mclk);
848 sm501_set_clock(sm->dev, SM501_CLOCK_MCLK, init->mclk);
849 }
850
851 if (init->m1xclk) { 846 if (init->m1xclk) {
852 dev_info(sm->dev, "setting M1XCLK to %ld\n", init->m1xclk); 847 dev_info(sm->dev, "setting M1XCLK to %ld\n", init->m1xclk);
853 sm501_set_clock(sm->dev, SM501_CLOCK_M1XCLK, init->m1xclk); 848 sm501_set_clock(sm->dev, SM501_CLOCK_M1XCLK, init->m1xclk);
854 } 849 }
850
851 if (init->mclk) {
852 dev_info(sm->dev, "setting MCLK to %ld\n", init->mclk);
853 sm501_set_clock(sm->dev, SM501_CLOCK_MCLK, init->mclk);
854 }
855} 855}
856 856
857static unsigned int sm501_mem_local[] = { 857static unsigned int sm501_mem_local[] = {