summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-imx/clk-imx21.c
Commit message (Collapse)AuthorAgeFilesLines
* i.MX: Move clk code from 'mach-imx' to 'drivers'Andrey Smirnov2017-01-111-196/+0
| | | | | | | | | Move clk code from 'mach-imx' to 'drivers' to keep the code tree structure closer to that of analogous one from Linux kernel and, arguably although subjective, to keep 'mach-imx' less cluttered. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* driver: replace dev_request_mem_region with dev_request_mem_resourceSascha Hauer2016-03-071-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | dev_request_mem_region doesn't work properly one some SoCs on which PTR_ERR() values clash with valid return values from dev_request_mem_region. Replace them with dev_request_mem_resource where possible. This patch has been generated with the following semantic patch: // <smpl> @@ expression d; expression n; expression io; identifier func; @@ func(...) { +struct resource *iores; <+... -io = dev_request_mem_region(d, n); -if (IS_ERR(io)) { +iores = dev_request_mem_resource(d, n); +if (IS_ERR(iores)) { ... - return PTR_ERR(io); -} + return PTR_ERR(iores); +} +io = IOMEM(iores->start); ...+> } @@ expression d; expression n; expression io; identifier func; @@ func(...) { +struct resource *iores; <+... -io = dev_request_mem_region(d, n); -if (IS_ERR(io)) { +iores = dev_request_mem_resource(d, n); +if (IS_ERR(iores)) - return PTR_ERR(io); -} + return PTR_ERR(iores); +io = IOMEM(iores->start); ...+> } @@ expression d; expression n; expression io; identifier func; @@ func(...) { +struct resource *iores; <+... -io = dev_request_mem_region(d, n); -if (IS_ERR(io)) { - ret = PTR_ERR(io); +iores = dev_request_mem_resource(d, n); +if (IS_ERR(iores)) { + ret = PTR_ERR(iores); ... } +io = IOMEM(iores->start); ...+> } @@ expression d; expression n; expression io; identifier func; @@ func(...) { +struct resource *iores; <+... -io = dev_request_mem_region(d, n); +iores = dev_request_mem_resource(d, n); +if (IS_ERR(iores)) + return PTR_ERR(iores); +io = IOMEM(iores->start); ...+> } @@ identifier func; @@ func(...) { <+... struct resource *iores; -struct resource *iores; ...+> } // </smpl> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* resource: Let dev_request_mem_region return an error pointerSascha Hauer2014-09-161-0/+2
| | | | | | For all users fix or add the error check. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* video: imx: Add a name to perclkSascha Hauer2014-02-101-1/+1
| | | | | | perclk should be named 'per' to make sure we get the correct clock. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: i.MX: Make timer available earlierSascha Hauer2013-06-181-1/+1
| | | | | | | | This moves the CCM drivers to core_initcall since this has no dependencies. This way we can be sure that the clock for the clocksource is available in at postcore_initcall time. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* i.MX21/27: don't enable lcd bus clocks too earlyDaniel Mierswa2013-01-171-2/+11
| | | | | | | | | | | | | | | | On the MX27 based board phycard-i.MX27 the display won't properly come up. Before removing imx-regs.h and the code that sets the register in the i.MX video driver, the PCCR registers were set _after_ the screen start (LSSAR) was set. This restores that old behaviour and makes the display come up properly again. I did not have a chance to test this on any other i.MX27 or i.MX21 hardware though I assume that the "old" order is required there too. Signed-off-by: Daniel Mierswa <d.mierswa@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* i.MX21: Add periph. clock register name macrosDaniel Mierswa2013-01-171-6/+50
| | | | | | | | Also put those names solely in the .c file as it's done with the i.MX27 code. Signed-off-by: Daniel Mierswa <d.mierswa@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/clk' into for-next/imxSascha Hauer2012-10-171-3/+14
|\ | | | | | | | | Conflicts: drivers/net/fec_imx.c
| * ARM i.MX21: Add lcdc per gateSascha Hauer2012-10-101-2/+3
| | | | | | | | | | | | | | This gate is used to enable/disable the lcd controller, hence we need a gate for it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM i.MX21: Enable all needed clocks during startupSascha Hauer2012-10-101-0/+10
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM i.MX21: Fix CSPI parent clockSascha Hauer2012-10-101-1/+1
| | | | | | | | | | | | It's perclk2, not perclk3 Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | ARM i.MX: Add devicetree support to the ccm driversSascha Hauer2012-10-051-0/+9
|/ | | | | | This adds the compatible strings to the CCM drivers. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/imx-clk'Sascha Hauer2012-10-041-1/+1
|
* ARM i.MX21: Switch to common clkSascha Hauer2012-10-041-0/+119
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>