summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mx5/clock-mx51.c
Commit message (Collapse)AuthorAgeFilesLines
* cpufreq for freescale mx51Yong Shen2010-10-221-2/+20
| | | | | | | | Currently, only two operating points: 160Mhz and 800Mhz. the operating points are tested on babbage 3.0 Signed-off-by: Yong Shen <yong.shen@linaro.org> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mx51: add resources for SD/MMC on i.MX51Eric Bénard2010-10-191-0/+104
| | | | | | | | the attached patch allows SD to work on i.MX51 with Wolfram's drivers Tested on i.MX51. Based on original patch from: Richard Zhu <r65037@freescale.com> Signed-off-by: Eric Bénard <eric@eukrea.com>
* clock-mx51: rename CLOCK1 to CLOCK_CCGR for better readabilityEric Bénard2010-10-191-2/+2
| | | | Signed-off-by: Eric Bénard <eric@eukrea.com>
* clock-mx51: factorize clk_set_parent and clk_get_rateEric Bénard2010-10-191-94/+48
| | | | Signed-off-by: Eric Bénard <eric@eukrea.com>
* ARM: imx: fix/define clocks and create devices for imx dmaUwe Kleine-König2010-10-111-0/+5
| | | | | Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: mx5: clock-imx51: make *ipg clocks secondary clocks of their ↵Sascha Hauer2010-10-011-8/+11
| | | | | | | | | | | | | corresponding peripheral clocks Currently the uarts and timer only work because they are turned on by reset default. Make them secondary clocks of their corresponding peripheral clocks to make sure they are turned on when necessary. Also, register some clocks to get rid of compiler warnings Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: mx51: add imx-ssi devicesSascha Hauer2010-10-011-0/+12
| | | | | Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: mx5: Add Nand clock supportSascha Hauer2010-10-011-0/+98
| | | | | Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: mx5/clock-mx51: add spi clocksJason Wang2010-10-011-0/+57
| | | | | | | Signed-off-by: Jason Wang <jason77.wang@gmail.com> Acked-by: Grant Likely <grant.likely@secretlab.ca> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: mx5/clock-mx51: new macro that defines a clk with all membersUwe Kleine-König2010-10-011-13/+13
| | | | | | | Acked-by: Jason Wang <jason77.wang@gmail.com> Acked-by: Grant Likely <grant.likely@secretlab.ca> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: mx5/clock-mx51: refactor ccgr callbacks to use common codeUwe Kleine-König2010-10-011-14/+16
| | | | | | | Acked-by: Jason Wang <jason77.wang@gmail.com> Acked-by: Grant Likely <grant.likely@secretlab.ca> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mx5/clock: fix clear bit fields issue in _clk_ccgr_disable functionJason Wang2010-08-211-1/+1
| | | | | | | | | | | We can see MXC_CCM_CCGRx_MOD_OFF is defined as 0 while MXC_CCM_CCGRx_CG_MASK is defined as 0x3 in crm_regs.h, here in the _clk_ccgr_disable function, we want to clear the corresponding enable bit fields to disable this clock, so we should choose MASK instead of OFF otherwise clocks can't be disabled. Signed-off-by: Jason Wang <jason77.wang@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mx51: add imx_keypad device definition for mx51 platformsJason Wang2010-07-261-0/+5
| | | | | | | | add imx_keypad platform device definition and clocks for mx51 platforms. Signed-off-by: Jason Wang <jason77.wang@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mx5: Add i2c to Freescale MX51 Babbage HWDinh Nguyen2010-07-261-0/+11
| | | | | | | | | This patch adds I2C functionality to the Freescale MX51 Babbage HW. The patch adds device structures, i2c board slave device defines, IOMUX pin defines, and clocks. Signed-off-by: Dinh Nguyen <Dinh.Nguyen@freescale.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-rmk' of git://git.pengutronix.de/git/imx/linux-2.6 into ↵Russell King2010-05-201-0/+45
|\ | | | | | | devel-stable
| * mx5: enable usb gadget for freescale mx51 babbage boardDinh Nguyen2010-05-111-0/+2
| | | | | | | | | | | | | | | | | | | | | | This patch enables usb gadget for freescale mx51 babbage hw. By default, the OTG port will be in device mode. To put the OTG port into Host mode, pass "otg_mode=host" in the exec command. This patch applies to 2.6.34-rc7. Signed-off-by: Dinh Nguyen <Dinh.Nguyen@freescale.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * mx5: change usb clock source from pll3 to pll2Dinh Nguyen2010-05-111-4/+39
| | | | | | | | | | | | | | | | | | | | For power management reasons, pll2 should be used to source the USBOH3 clock for mx51. PLL3 can be completely gated off when USB is not used. This patch applies to 2.6.34-rc7. Signed-off-by: Dinh Nguyen <Dinh.Nguyen@freescale.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * mx5: Add USB device definitions for Freescale MX51 Babbage HWDinh Nguyen2010-05-031-0/+8
| | | | | | | | | | | | | | | | | | | | | | This patch is part of enabling USB for Freescale MX51 Babbage HW. This patch adds device structures for USB Host1 and OTG port, and adds clocking information for USB HW. This patch applies to 2.6.34-rc6. Signed-off-by: Dinh Nguyen <Dinh.Nguyen@freescale.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | mx5: Fix build error for mx51_defconfigDinh Nguyen2010-04-141-0/+1
|/ | | | | | | Need to include <asm/div64.h> for do_div calls. Signed-off-by: Dinh Nguyen <Dinh.Nguyen@freescale.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* i.MX51: Use correct clock for gptSascha Hauer2010-03-191-1/+1
| | | | | | The gpt uses the ipg clock, not ipg_perclk Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mxc: Core support for Freescale i.MX5 seriesAmit Kucheria2010-02-091-0/+825
Add basic clock support, cpu identification, I/O mapping, interrupt controller, serial port and ethernet. Signed-off-by: Amit Kucheria <amit.kucheria@canonical.com>
OpenPOWER on IntegriCloud