summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-imx
Commit message (Collapse)AuthorAgeFilesLines
* ARM: i.MX: Make mxc_iomux_v3_setup_multiple_pads argument constSascha Hauer2014-02-201-1/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* video: imx: Add a name to perclkSascha Hauer2014-02-102-2/+2
| | | | | | perclk should be named 'per' to make sure we get the correct clock. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: i.MX25: Fix LCDC clocksSascha Hauer2014-02-101-6/+21
| | | | | | | | | | | | | - Make sure the LCDC ipg clock is turned off during startup - register all LCDC clocks (ahb, ipg, per) and pass them to driver This is necessary because the LCDC doesn't have an enable bit. It just starts working once the clocks are turned on. If the registers have invalid values at that time the controller goes into some error state. So we have to make sure the clocks are turned off during startup and only turned on in the driver. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/pxa'Sascha Hauer2014-02-031-3/+3
|\
| * reset_source: rename set_reset_source to reset_source_setSascha Hauer2014-01-291-3/+3
| | | | | | | | | | | | | | To get all reset source related functions into the same function namespace. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/mci'Sascha Hauer2014-02-031-0/+2
|\ \ | | | | | | | | | | | | Conflicts: arch/arm/boards/tqma53/board.c
| * | mci: imx-esdhc: add DSR supportMarkus Niebel2014-01-151-0/+2
| |/ | | | | | | | | | | | | | | | | | | | | | | having DSR support in mci-core we need a way to forward the DSR value to the driver. Add it to platform data for imx-esdhc TODO: implement the same for other host controller drivers Signed-off-by: Markus Niebel <Markus.Niebel@tqs.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/iomem'Sascha Hauer2014-02-033-14/+14
|\ \ | | | | | | | | | | | | Conflicts: arch/arm/mach-imx/external-nand-boot.c
| * | ARM: i.MX: esdctl-v4: Use __iomem specifier for memory pointerAlexander Shiyan2014-01-291-12/+12
| | | | | | | | | | | | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: i.MX: esdctl: Use __iomem specifier for memory pointerAlexander Shiyan2014-01-291-1/+1
| | | | | | | | | | | | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: i.MX: external_nand_boot: Use __iomem specifier for memory pointerAlexander Shiyan2014-01-291-1/+1
| | | | | | | | | | | | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/imx'Sascha Hauer2014-02-0310-214/+344
|\ \ \ | |/ / |/| | | | | | | | Conflicts: arch/arm/boards/dmo-mx6-realq7/lowlevel.c
| * | ARM: i.MX: Add lowlevel gpio functionsSascha Hauer2014-02-011-0/+48
| | | | | | | | | | | | | | | | | | | | | | | | Some boards need gpio functions very early and also sometimes is useful to toggle gpios during early code debug. This adds a header file for setting i.MX gpios early. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: i.MX: Karo TX25: Switch to multiboard supportSascha Hauer2014-02-011-7/+7
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: i.MX: cleanup bootmode selectionSascha Hauer2014-01-311-20/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Which bootmode is selected has no longer to be chosen by Kconfig. The boards can decide themselves which bootmode they want to support. This makes it unnecesary to ask the user which bootmode shall be supported, so the "Select boot mode" becomes invisible and both support will be compiled in as needed by the boards. NAND_IMX_BOOT goes away and the already existing ARCH_IMX_EXTERNAL_BOOT_NAND can now be used for the boards to depend on external nand boot. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: i.MX25: Add missing GPT clock lookupsSascha Hauer2014-01-312-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | Only one GPT will be used, but with devicetree support we can't predict which one it is, so we need the clock lookup for all GPTs to ensure that the timer gets its clock. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: i.MX: external NAND boot: make dtb boarddata workSascha Hauer2014-01-311-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If we are running from NFC SRAM and we are passed boarddata containing a devicetree pointer then it point to an address relative to the NFC SRAM start. First thing we do is to copy the initial binary to SDRAM and jump there. The devicetree pointer has to be adjusted by this offset. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: i.MX: external NAND boot: use image size from image headerSascha Hauer2014-01-311-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When compiling with multiimage support ld_var(_barebox_image_size) only contains the length of the PBL image, but not including the appended compressed data. With this patch the image size is read from the barebox header instead which contains the correct size, either from the linker or from the fix_size tool. This makes the external_nand_boot compatible with multiimage support. Tested on Phytec phyCARD-i.MX27 with and without PBL. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: i.MX53: tqma53: Switch to devicetree and multiboard supportSascha Hauer2014-01-291-15/+4
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: i.MX clocksource: return successful for multiple instancesSascha Hauer2014-01-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | With multiple instances we returned -EBUSY which will provoke a log message. Return successful instead since the i.MX27 has multiple GPTs in the devicetree. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: i.MX: external NAND boot: pass boarddataSascha Hauer2014-01-292-11/+13
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: i.MX: external NAND boot: do not depend on cpu_is_*Sascha Hauer2014-01-291-14/+44
| | | | | | | | | | | | | | | | | | | | | With multiboard support the cpu_is_* macros are no longer compile time generated and do not work in early code, so pass a v1 variable around. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: i.MX: external NAND boot: make it work with relocatable PBLSascha Hauer2014-01-291-57/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We used to copy the initial binary portion from NFC SRAM to TEXT_BASE and jumped there. With relocatable PBL TEXT_BASE becomes 0, so this doesn't work. This is changed to copy the initial binary portion to the beginning of SDRAM instead. Tested on Phytec phyCARD-i.MX27 and Karo TX25 with and without relocatable pbl. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: i.MX: external NAND boot: create function macro for different SoCsSascha Hauer2014-01-231-89/+23
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: i.MX: external NAND boot: factor out a 2k pagesize detection functionSascha Hauer2014-01-231-20/+45
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: i.MX27: Add missing MPLL clock sourcesSascha Hauer2014-01-231-5/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The MPLL can be driven from the low frequency reference clock. This is the reset default. Currently the clock code assumes this has been changed from the lowlevel code. If that didn't happen we get wrong clock rates. This adds the missing clocks so that we get correct clock rates. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: phyCARD-i.MX27: switch to new environmentSascha Hauer2014-01-231-0/+1
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: imx6: rename Carrier-1 to HummingboardLucas Stach2014-01-231-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | Solidrun has renamed the Carrier-1 to Hummingboard. This is also the name that is used in upstream Linux, change barebox to be in line with that. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: imx6: add initial support for Nitrogen6X boardsLucas Stach2014-01-231-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | Only the 1GB variant is supported for now, as I don't have anything other to test with. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: i.MX6: correct work flow of PFDs from uboot-sourcesJesús Guitarte2014-01-141-0/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PFDs need to be gate/ungate after PLL lock to reset PFDs to right state. Otherwise PFDs may lose correct state in state-machine, then no output clock. For i.MX6DL and i.MX6SL, ROM have taken care of PFD396 already since the bus clock needs it. This patch is backported from http://git.freescale.com/git/cgit.cgi/imx/uboot-imx.git/commit/cpu/arm_cortexa8/mx6/generic.c?h=imx_v2009.08_3.0.35_4.1.0&id=b7c5badf94ffbe6cd0845efbb75e16e05e3af404 And resolve issues with booting from MMC/SD cards Signed-off-by: Jesús Guitarte <jguitarte@data-modul.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: i.MX: Add correct SoC type detection for i.MX6Sascha Hauer2014-01-142-10/+49
| |/ | | | | | | | | | | | | | | Using the ANATOP_SI_REV register we can only distinguish between i.MX6q/d and i.MX6dl/s SoCs. Take the number of cores into account to get the exact SoC type. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* / ARM: i.MX53: fix bootsource_instance detectionSascha Hauer2014-01-271-1/+1
|/ | | | | | | Bootsource instance is encoded in bit 21:20 of the SBMR register, not in bit 22:21. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/video'Sascha Hauer2014-01-071-0/+22
|\
| * video: imx-ipu-fb: Allow to specify framebuffer memory size via platform_dataSascha Hauer2013-12-201-0/+2
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * video: ipufb: Allow to disable fractional pixelclock dividerSascha Hauer2013-12-201-0/+5
| | | | | | | | | | | | | | | | The IPU has a fractional pixelclock divider. When used, this produces clock jitter which especially LVDS transceivers can't handle. Allow to disable it via platform_data. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * video: ipufb: make disp_data_fmt configurableSascha Hauer2013-12-181-0/+15
| | | | | | | | | | | | | | | | With the IPU the way the display is connected is completely independent of the framebuffer pixel format. So instead of specifying a pixel width in platform_data we have to specify how the display is connected. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | ARM: i.MX: bbu external nand: Fix uninitialized variableSascha Hauer2013-12-181-1/+1
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/misc'Sascha Hauer2013-12-0610-8/+11
|\ \ | | | | | | | | | | | | Conflicts: scripts/Makefile
| * | barebox: remove double semicolonsAlexander Aring2013-11-181-1/+2
| | | | | | | | | | | | | | | Signed-off-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: i.MX boards: Remove duplicate dependency of ARCH_IMX21 for IMX_IIMAlexander Shiyan2013-11-131-1/+1
| | | | | | | | | | | | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: i.MX boards: Remove useless selectAlexander Shiyan2013-11-131-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | Symbols HAVE_DEFAULT_ENVIRONMENT_NEW & HAVE_PBL_MULTI_IMAGES are already selected by IMX_MULTI_BOARDS. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | Cleanup Kconfig filesAlexander Shiyan2013-11-111-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | This patch provides a global cleanup barebox Kconfig files. This includes replacing spaces to tabs, formatting in accordance format. No functional changes. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | treewide: Add missing includesSascha Hauer2013-11-088-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | Merge branch 'for-next/imx'Sascha Hauer2013-12-061-5/+18
|\ \ \ | |_|/ |/| |
| * | ARM: i.MX6: add initial support for SolidRun Cubox-i Carrier-1Lucas Stach2013-12-031-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tested to work: - MMC - USB - Ethernet Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: i.mx53: Support for Voipac board with X53-DMM-668 module.Rostislav Lisovy2013-11-251-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Device definitions is read from the devicetree description. The board support is using 'multiboard' approach. Signed-off-by: Rostislav Lisovy <lisovy@gmail.com> create mode 100644 arch/arm/boards/freescale-mx53-vmx53/Makefile create mode 100644 arch/arm/boards/freescale-mx53-vmx53/board.c create mode 100644 arch/arm/boards/freescale-mx53-vmx53/env/config-board create mode 100644 arch/arm/boards/freescale-mx53-vmx53/flash-header-imx53-vmx53.imxcfg create mode 100644 arch/arm/boards/freescale-mx53-vmx53/lowlevel.c create mode 100644 arch/arm/dts/imx53-voipac-bsb.dts create mode 100644 arch/arm/dts/imx53-voipac-dmm-668.dtsi Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM i.MX6: sabrelite: switch to multi image supportPhilipp Zabel2013-11-201-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | The image will be named after the official name of this board: barebox-freescale-mx6-sabreline.img Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM i.MX6: sabrelite: switch to multiboard supportPhilipp Zabel2013-11-201-5/+5
| |/ | | | | | | | | Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* / ARM: i.MX external NAND boot: Add missing instruction cache invalidateSascha Hauer2013-12-031-0/+3
|/ | | | | | | Before we jump to SDRAM where we just copied our code we have to invalidate the instruction cache. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: i.MX5x: Make IIM driver kernel-compatibleAlexander Shiyan2013-10-291-1/+1
| | | | | | | | Since kernel uses "imx27-iim" compatible string in i.MX5x DTS templates, do IIM driver compatible. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>