summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-imx/clk-imx5.c
Commit message (Collapse)AuthorAgeFilesLines
* driver: replace dev_request_mem_region with dev_request_mem_resourceSascha Hauer2016-03-071-4/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* video: i.MX IPUv3: Set ldb clocks correctlySascha Hauer2015-11-301-1/+1
| | | | | | | | | | | | The clocks for the LVDS display bridge have a fixed /3.5 and a configurable /1,/2 divider in their path. The configurable divider has to be explicitly configured for single/dual channel support, so we can't rely on clock rate parent propagation here. Clear the CLK_SET_RATE_PARENT flag for the configurable divider and configure the clock explicitly in the ldb driver. Tested on a custom i.MX6 board, currently untested on i.MX53. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: i.MX5: Add missing CONFIG_ prefix in testSascha Hauer2015-05-071-1/+1
| | | | | | | | The variable name misses a CONFIG_ prefix to work as expected. Fixes: 05a1e4b ARM: i.MX5: Do not register fixed clocks twice Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: i.MX5: Do not register fixed clocks twiceSascha Hauer2015-03-091-16/+11
| | | | | | | | | | When booting with device tree the fixed clocks are registered from the device tree, so do not register them again in the clock driver. This also removes the ckih1 and ckih2 clocks which are unused at least when booting without device tree. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* imx53: add uart3Jan Luebbe2015-01-301-0/+1
| | | | | Signed-off-by: Jan Luebbe <jlu@pengutronix.de> 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>
* ARM: i.MX5: ccm: combine initcalls and drop ifdefsSascha Hauer2014-05-101-13/+8
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: i.MX5: Add IPU clocksSascha Hauer2014-05-091-0/+121
| | | | | | | Add the clocks for the IPU on i.MX5. Since these are many only add them when the driver is enabled. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: i.MX53: Add pwm supportSascha Hauer2014-05-091-0/+4
| | | | | | Aliases and clocks are needed to support the i.MX53 PWMs. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: i.MX53: Use clock number defines from dt-bindingsSascha Hauer2014-05-091-94/+82
| | | | | | | i.MX5 has clock number defines in dt-bindings, use them rather then manually keeping the clock enums in sync. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* treewide: Add missing includesSascha Hauer2013-11-081-0/+1
| | | | | | | | A lot of files rely on include/driver.h including include/of.h (and this including include/errno.h. include the files explicitly so we can eventually get rid of including of.h from driver.h Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: i.MX: Make timer available earlierSascha Hauer2013-06-181-2/+2
| | | | | | | | 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.MX53 i2c, add support for third i2c interfaceGeorge Pontis2013-02-111-0/+1
| | | | | Signed-off-by: George Pontis <gpontis@spamcop.net> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/imx'Sascha Hauer2012-12-071-0/+1
|\ | | | | | | | | Conflicts: arch/arm/mach-imx/include/mach/devices-imx53.h
| * ARM i.MX: Add i.MX51 PATA device supportSascha Hauer2012-12-061-0/+1
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | ARM i.MX5: Add SATA supportSascha Hauer2012-12-071-0/+1
|/ | | | | | Add the convenience wrappers for registering the SATA device. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM i.MX: get rid of imx-regs.hSascha Hauer2012-10-171-1/+2
| | | | | | | | | - remove now unused __REG definitions - include individual SoC register files instead of imx-regs.h - move IMX_GPIO_NR to generic.h - finally remove imx-regs.h Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM i.MX: Add devicetree support to the ccm driversSascha Hauer2012-10-051-0/+18
| | | | | | 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-2/+2
|
* ARM i.MX5: Switch to common clk supportSascha Hauer2012-10-041-0/+298
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>