summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-imx
Commit message (Collapse)AuthorAgeFilesLines
* Revert "ARM: i.MX: Make NAND related Kconfig options depend on MTD"Lucas Stach2014-12-171-3/+0
| | | | | | | | | | | | | | | | | This reverts commit 4b17d73c7da2, as it is incomplete and partially broken. ARCH_IMX_EXTERNAL_BOOT_NAND does not depend on MTD, it just uses some defines from the mtd/nand header, but does not actually depend on MTD being compiled in. For the other two cases there is a more complete fix merged with commit 57b584d748d4 that also enables the needed MTD write support. Fixes: (MACH_TX25 && MACH_PCA100 && MACH_PCM038) selects ARCH_IMX_EXTERNAL_BOOT_NAND which has unmet direct dependencies (ARCH_IMX && MTD) Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/imx'Sascha Hauer2014-12-0815-20/+738
|\
| * ARM: i.MX: Add i.MX6sx sabresdb supportSascha Hauer2014-11-271-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds support for the Freescale i.MX6sx sabresdb board. Tested are: - UART - The three SD card slots - USB host - USB otg (host and device mode) - FEC (both) Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: i.MX: Add i.MX6sx supportSascha Hauer2014-11-276-0/+498
| | | | | | | | | | | | | | | | Add some cpu type defines and clock support. The clock support is very different from other i.MX variants, so it's a separate file, like done in the kernel. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: i.MX: ocotp: Add i.MX6sx compatible entrySascha Hauer2014-11-271-0/+2
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: i.MX: ocotp: Fix MAC address provider for unaligned addressesSascha Hauer2014-11-271-9/+20
| | | | | | | | | | | | | | | | | | | | The current algorithm assumes the MAC address starts at a 4 byte aligned address. Unfortunately this is not always the case. On the i.MX6sx the MAC Address for the second FEC starts at offset 0x632. The register space for the fuse map has holes, only the 16 byte aligned words contain data. This means we have to skip the holes. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * imx6: clk: Gate off ENFC clock before setting clock rateDmitry Lavnikevich2014-11-261-2/+5
| | | | | | | | | | | | | | | | | | This fixes NAND initialization issue which appears occasionally on some i.MX6 SoCs (particulary was observed on phyCARD-i.MX6 with i.MX6Solo). Signed-off-by: Dmitry Lavnikevich <d.lavnikevich@sam-solutions.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM i.MX: add 2-bit gate clock supportDmitry Lavnikevich2014-11-243-1/+152
| | | | | | | | | | | | | | Based on kernel clk-gate2 and barebox clk-gate implementations. Signed-off-by: Dmitry Lavnikevich <d.lavnikevich@sam-solutions.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * i.MX6: esdctl: Fix a bug in memory probing codeAndrey Smirnov2014-11-201-2/+21
| | | | | | | | | | | | | | | | | | | | | | Old version of imx6_mmdc_add_mem did not use 64-bit arithmetic and thus was prone to overflow on systems with 4GB of memory. It also did not take into account the fact that i.MX6 does not support more than 3.8GB of memory and would report incorrect memory size. This commit fixes both issues. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: i.MX51: Setup MIPISascha Hauer2014-11-201-0/+15
| | | | | | | | | | | | | | | | Setting up the MIPI unit is necessary for proper IPU support, so set this up here. This is only needed for graphics in barebox, the Kernel repeats this setup during booting. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: i.MX: print silicon revision with pr_infoSascha Hauer2014-11-201-1/+1
| | | | | | | | | | | | So that this message can be silenced by reducing the loglevel. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: i.MX6 Phytec phyFLEX: Fix imx6_bbu_nand_register_handler prototypeAndrey Smirnov2014-11-121-5/+7
| | | | | | | | | | | | | | | | | | | | imx6_bbu_nand_register_handler is dependent on CONFIG_BAREBOX_UPDATE_IMX6_NAND. Change the protoype definition such that said function is stubbed-out when CONFIG_BAREBOX_UPDATE_IMX6_NAND is not defined. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: i.MX: Make NAND related Kconfig options depend on MTDAndrey Smirnov2014-11-121-0/+3
| | | | | | | | | | | | | | | | | | | | ARCH_IMX_EXTERNAL_BOOT_NAND, BAREBOX_UPDATE_IMX_EXTERNAL_NAND and BAREBOX_UPDATE_IMX6_NAND all enable features that make use of API provided by MTD subsystem, so to prevent those features breaking the build when MTD is disabled make them dependent on it. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: imx5: add imx5_cpu_lowlevel_init and use in all boardsLucas Stach2014-11-072-0/+8
| | | | | | | | | | | | | | | | This is similar to what we do on imx6 and makes sure we apply the errata workarounds early. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | arm: imx: iim/ocotp: fix link error when !CONFIG_NETLucas Stach2014-11-272-3/+6
| | | | | | | | | | | | | | | | | | Don't try to attach mac to device if there is no net support selected. Fixes: undefined reference to `dev_add_param_mac' in both iim and ocotp drivers. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | arm: imx: nand update handler depends on MTD layerLucas Stach2014-11-241-0/+4
| | | | | | | | | | Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | arm: imx: select I2C for all boards that need it in their board initLucas Stach2014-11-241-0/+6
| | | | | | | | | | Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | arm: imx: select MFD_MC13XXX for all boards that need itLucas Stach2014-11-241-0/+12
| | | | | | | | | | | | | | | | | | | | | | This was only done for some of the boards and while it is ok to build those boards without regulator support it may potentially yield non-working barebox binaries. This is clearly not what the user wanted. Also select the appropriate bus support needed for the MC13xxx. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | arm: mach-imx: fix Eukrea CPUIMX51 Kconfig stringLucas Stach2014-11-071-1/+1
|/ | | | | | | | Was accidently preplaced by the Karo-TX 51 string, restore the previous state. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM i.MX6: mmdc: move calibration result printout to separate functionSascha Hauer2014-10-222-24/+32
| | | | | | To be able to print the results without compiling with DEBUG enabled. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM i.MX6: mmdc: Only print calibration values of enabled physSascha Hauer2014-10-221-8/+14
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/resource-err-ptr'Sascha Hauer2014-10-0212-6/+25
|\
| * resource: Let dev_request_mem_region return an error pointerSascha Hauer2014-09-1612-6/+25
| | | | | | | | | | | | For all users fix or add the error check. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | imx35-regs: add UART2 to CCM definesEric Bénard2014-09-251-0/+1
| | | | | | | | | | Signed-off-by: Eric Bénard <eric@eukrea.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | ARM: i.MX6: add support for Karo TX6X familySteffen Trumtrar2014-09-191-0/+4
| | | | | | | | | | | | | | | | The Karo TX6X family consists of different i.MX6Q/DL based System-on-Modules. Add support for the TX6u 801x modules, that have an i.MX6DL SoC. Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | arm: mach-imx: add more ddr register definesSteffen Trumtrar2014-09-192-0/+26
| | | | | | | | | | Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | arm: imx6: add Gateworks Ventana boardLucas Stach2014-09-171-0/+3
|/ | | | | | | | | | | | For now only the Quad 1GB variant is supported. Tested: - starting barebox over USB - writing barebox to NAND with barebox_update - starting Linux kernel over TFTP Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* arm: mach-imx: add MMDC and CCM register defines for use in DCDLucas Stach2014-09-014-0/+205
| | | | | | | Makes .imxcfg files a lot more readable. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/imx'Sascha Hauer2014-08-072-34/+35
|\
| * ARM: i.MX5: internal NAND update: simplify codeSascha Hauer2014-07-241-24/+9
| | | | | | | | | | | | | | | | Allocate space for the resulting image (FCB+DBBT+Firmware) in imx_bbu_internal_v2_write_nand_dbbt() instead of its caller to make the code simpler. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: i.MX5: internal NAND update: Use variables for some constantsSascha Hauer2014-07-241-6/+10
| | | | | | | | | | | | | | Instead oof using the same constants multiple times use a variable to make the meaning of the constants clear. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: i.MX5: internal NAND update: Fix firmware start page for internal nand bootSascha Hauer2014-07-241-0/+3
| | | | | | | | | | | | | | | | | | | | | | Documentation clearly states that the FCB at offset 0x68 has to contain the start page of the firmware. In our case this was set to 0x0. I don't know how this could ever work, but it did, at least until: 15ee301 ARM: i.MX: bbu-internal: optionally use DCD data from image Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: i.MX5: internal NAND update: Use variable for pre_image_sizeSascha Hauer2014-07-241-6/+9
| | | | | | | | | | | | | | | | | | We have the hardcoded value 0x8000 for the space needed for FCB and DBBT in several places. Use a variable instead and initialize it correctly with 12 * meminfo.writesize (which is in fact 0x6000 for 2k pagesize). Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: i.MX6Q: Add support for Embedsky E9 board.Andrey Panov2014-07-171-0/+6
| | | | | | | | | | | | | | | | | | | | This will add support for Embedsky E9 board. It is a small board based on i.MX6 Quad with 2G of RAM. http://en.embedsky.com/product_info.php?cateid=169&id=169 Signed-off-by: Andrey Panov <rockford@yandex.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | ARM: i.MX: esdctl: i.MX53 has esdctl v4, not v3Sascha Hauer2014-07-181-2/+2
|/ | | | | | | | On the i.MX53 this has the effect that in early init only half of the memory bank is detected and the barebox image is place in the middle of SDRAM. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/imx'Sascha Hauer2014-07-045-23/+81
|\
| * arm: imx6: rename hummingboard directory to microsomLucas Stach2014-07-011-2/+2
| | | | | | | | | | | | | | | | | | | | The rule in barebox is to name the directories after the modules. As hummingboard is just one of the carriers for the MicroSOM module, name the directory accordingly. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * arm: imx6: move imx6_init_lowlevel to single initcallLucas Stach2014-07-011-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of repeating the same lowlevel init for every board move it to it's own initcall. Avoids code bloat and shaves off almost 1.5kB of uncompressed barebox size for a default imx_v7_defconfig build. For boards wherethe hostname setup was done in the postcore initcall we move this to a device initcall to get it out of the way. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * imx6: add new chip revisionsChristian Hemp2014-06-302-0/+14
| | | | | | | | | | | | | | | | Add new chip revisions for the new tap-out TO1.5 (i.MX6Q/D) and TO1.2 (i.MX6DL/S) Signed-off-by: Christian Hemp <c.hemp@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: Phytec-phyCORE-imx27: Switch to multiimage supportSascha Hauer2014-06-131-8/+9
| | | | | | | | | | | | | | Tested on the phyCORE-imx27 to boot on NOR and NAND using the registered update handlers. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: i.MX bbu: Add update handler for external NOR bootSascha Hauer2014-06-132-1/+54
| | | | | | | | | | | | | | | | External NOR boot only requires copying the image to NOR Flash. This also adds (un)protecting the flash which is required for NOR Flash. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: PCM038: Switch to devicetree probeAlexander Shiyan2014-06-121-12/+0
| | | | | | | | | | | | | | | | This patch removes non-DT support for PCM-038/PCM-970 and switch to devicetree probe for these targets. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | arm: imx6: add cpu lowlevel init functionLucas Stach2014-06-263-0/+30
|/ | | | | | | | Enables all relevant errata workarounds for the i.MX6 SoC. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/imx'Sascha Hauer2014-06-047-367/+342
|\ | | | | | | | | Conflicts: arch/arm/configs/tx25stk5_defconfig
| * ARM: i.MX: Phytec-phyCARD-i.MX27: Switch to multi-image supportSascha Hauer2014-05-101-9/+9
| | | | | | | | 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-093-0/+124
| | | | | | | | | | | | | | 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.MX: implement pllv2 set/round_rate supportSascha Hauer2014-05-091-0/+66
| | | | | | | | | | | | Code straight from the kernel. 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>