diff options
author | Haavard Skinnemoen <hskinnemoen@atmel.com> | 2008-03-05 09:08:27 -0500 |
---|---|---|
committer | Haavard Skinnemoen <haavard.skinnemoen@atmel.com> | 2008-07-02 05:05:01 -0400 |
commit | 7951f188a0b7f9b2f181c692efb0d31082bec346 (patch) | |
tree | 4ea72d25f631f42bfe1b47c92dd2768b9549a67c /arch/avr32/mach-at32ap | |
parent | f3a24e1e272f844a4d14a39731b4fa946ba36adc (diff) |
avr32: Enable SDRAMC clock at startup
The SDRAM controller needs a clock in order to respond to our
commands, and suspend doesn't work very well without the SDRAM in
self-refresh mode.
Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
Diffstat (limited to 'arch/avr32/mach-at32ap')
-rw-r--r-- | arch/avr32/mach-at32ap/at32ap700x.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/avr32/mach-at32ap/at32ap700x.c b/arch/avr32/mach-at32ap/at32ap700x.c index baf4680b4988..3ee5e7278790 100644 --- a/arch/avr32/mach-at32ap/at32ap700x.c +++ b/arch/avr32/mach-at32ap/at32ap700x.c | |||
@@ -675,6 +675,14 @@ static struct clk hramc_clk = { | |||
675 | .users = 1, | 675 | .users = 1, |
676 | .index = 3, | 676 | .index = 3, |
677 | }; | 677 | }; |
678 | static struct clk sdramc_clk = { | ||
679 | .name = "sdramc_clk", | ||
680 | .parent = &pbb_clk, | ||
681 | .mode = pbb_clk_mode, | ||
682 | .get_rate = pbb_clk_get_rate, | ||
683 | .users = 1, | ||
684 | .index = 14, | ||
685 | }; | ||
678 | 686 | ||
679 | static struct resource smc0_resource[] = { | 687 | static struct resource smc0_resource[] = { |
680 | PBMEM(0xfff03400), | 688 | PBMEM(0xfff03400), |
@@ -1998,6 +2006,7 @@ struct clk *at32_clock_list[] = { | |||
1998 | &hmatrix_clk, | 2006 | &hmatrix_clk, |
1999 | &ebi_clk, | 2007 | &ebi_clk, |
2000 | &hramc_clk, | 2008 | &hramc_clk, |
2009 | &sdramc_clk, | ||
2001 | &smc0_pclk, | 2010 | &smc0_pclk, |
2002 | &smc0_mck, | 2011 | &smc0_mck, |
2003 | &pdc_hclk, | 2012 | &pdc_hclk, |