summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-imx/include
Commit message (Collapse)AuthorAgeFilesLines
...
* Merge branch 'for-next/vincell'Sascha Hauer2015-08-071-0/+18
|\
| * ARM: i.MX: Add i.MX5 debug functionsSascha Hauer2015-07-131-0/+16
| | | | | | | | | | | | | | We recently introduced ungate_all_peripherals and SoC specific low level UART init functions. Add some more for i.MX5 SoCs. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | ARM: i.MX: make early UART functions independent of DEBUG_LLSascha Hauer2015-07-311-40/+7
| | | | | | | | | | | | | | | | We have functions to setup the i.MX uart for early use, but these all depend on DEBUG_LL. Move them to imx-uart.h to make them usable for the regular PBL console. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | ARM: i.MX: xload: implement esdhc xload for i.MX6Sascha Hauer2015-07-311-0/+2
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | ARM: i.MX6: Add DDR setup code from U-BootSascha Hauer2015-07-291-0/+274
| | | | | | | | | | | | | | | | Several i.MX6 boards like to do their SDRAM setup in code rather than in DCD tables. Add the SDRAM setup code from U-Boot to make it easy to adopt the SDRAM setup from the U-Boot port of these boards. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | ARM: i.MX: Add SPI xload codeSascha Hauer2015-07-291-0/+9
| | | | | | | | | | | | | | Add PBL xload code to load an image from SPI NOR flash. Currently implemented for i.MX6. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | ARM: i.MX6: create cpu_is() functions for use in PBLSascha Hauer2015-07-161-24/+17
| | | | | | | | | | | | | | | | | | | | The current cpu_is_mx6x() functions need the imx6_cpu_type variable which make them unsuitable for PBL. Add a set of cpu_mx6_is_mx6x() functions which can be called from PBL aswell. Unlike the cpu_is_mx6x() functions the cpu_mx6_is_mx6x() functions assume that they are called on i.MX6 only. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | ARM: i.MX6: add function to get bootsource in pblSascha Hauer2015-07-161-0/+2
| | | | | | | | | | | | | | In the pbl the regular bootsource_get cannot be used. Add a function which returns the bootsource directly with values from the hardware. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | ARM: i.MX6: Add i.MX6 entry functionSascha Hauer2015-07-161-1/+1
|/ | | | | | | | Add a i.MX6 specific entry function which automatically detects the SDRAM size. The prototype has already been present, but it was never implemented. Rename it to imx6q_ since the other variants need other functions. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/imx-bbu-nand-fcb'Sascha Hauer2015-07-031-9/+0
|\ | | | | | | | | Conflicts: common/Kconfig
| * ARM: i.MX6: bbu nand: Move to common placeSascha Hauer2015-06-121-9/+0
| | | | | | | | | | | | The code can be used on i.MX28 aswell, so move it to a common place. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | i.MX: serial: Distil common clock ungating codeAndrey Smirnov2015-05-071-0/+14
| | | | | | | | | | | | | | | | | | Move all of the common clock ungating code in early UART initialization into a dedicated subroutine that can be shared by all of the users. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | i.MX51: babbage: Implement CONFIG_DEBUG_LLAndrey Smirnov2015-05-071-2/+3
| | | | | | | | | | | | | | | | Implement bits of configuraion needed to configure early debug output support. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | i.MX: serial: Convert PUTC_LL to use IOMEMAndrey Smirnov2015-05-071-2/+2
| | | | | | | | | | | | | | | | Convert PUTC_LL to use IOMEM instead of explicit casting to 'void *', since the former seem to be more appropriate to the situation. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | i.MX: serial: Add UART init functions for DEBUG_LLAndrey Smirnov2015-05-071-2/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It appears that all i.MX51 and i.MX6 based boards that support early debug output inevitably do exactly the same thing with the registers of the UART peripheral. So to avoid code duplication three new subroutines are introduced: - imx_uart_setup_ll() that allows user to perform aforementioned "same thing" on any arbitrary UART at 'uartbase' and clocked at 'refclock' Hz. - imx6_uart_setup_ll() and imx5_uart_setup_ll() that do those actions assuming UART to be the one specified in configuration and 'refclock' to be equal to what it is when SoC comes out of reset. NOTE: Please note that 'imx*_uart_setup_ll' functions do add a slight difference in behaviour by dropping the initialization of ONEMS and UESC registers since those do not seem to be needed for early UART functionality Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | i.MX: Move UART definitions into a separate fileAndrey Smirnov2015-05-071-8/+2
|/ | | | | | | | | Move UART definitions into a separate file to avoid redefinition in <mach/debug_ll.h> and magical constants in low level UART initialization code. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: i.MX: remove __naked from imx*_barebox_entrySascha Hauer2015-03-091-8/+8
| | | | | | | | | Since the stack is already configured when entering imx*_barebox_entry we can remove the __naked attribute. This fixes some compilation issues when some of the imx*_barebox_entry got too complicated to compile without stack. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* imx53: add uart3Jan Luebbe2015-01-301-0/+5
| | | | | Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* sizes.h: move include/sizes.h to include/linux/sizes.hMasahiro Yamada2015-01-083-3/+3
| | | | | | | | | | | | | | This file originates in Linux. Linux has it under include/linux/ directory since commit dccd2304cc90. Let's move it to the same place as well in barebox. This commit was generated by the following commands: find -name '*.[chS]' | xargs sed -i -e 's:<sizes.h>:<linux/sizes.h>:' git mv include/sizes.h include/linux/ Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: i.MX: Add i.MX6sx supportSascha Hauer2014-11-271-0/+6
| | | | | | | | 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.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: imx5: add imx5_cpu_lowlevel_init and use in all boardsLucas Stach2014-11-071-0/+1
| | | | | | | | 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 i.MX6: mmdc: move calibration result printout to separate functionSascha Hauer2014-10-221-0/+1
| | | | | | To be able to print the results without compiling with DEBUG enabled. 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: 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: 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-07-042-0/+11
|\
| * imx6: add new chip revisionsChristian Hemp2014-06-301-0/+2
| | | | | | | | | | | | | | | | 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: i.MX bbu: Add update handler for external NOR bootSascha Hauer2014-06-131-0/+9
| | | | | | | | | | | | | | | | 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: imx6: add cpu lowlevel init functionLucas Stach2014-06-261-0/+2
|/ | | | | | | | 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>
* ARM: i.MX5: Add IPU clocksSascha Hauer2014-05-092-0/+3
| | | | | | | 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: bbu: remove dcd arguments from bbu registrationSascha Hauer2014-05-091-31/+12
| | | | | | | | | | | The i.MX barebox update handlers take an optional dcd table as argument. This can be used to add the correct dcd data to the image before flashing it. This mechanism is quite complicated and largely unused, so remove it. With this it is only possible to flash the exact image passed to barebox_update, which is what is mostly done anyway. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: change signature of barebox_arm_entryLucas Stach2014-05-052-13/+13
| | | | | | | | | | | Mostly to make it clear that boarddata needs to be something we can dereference. As this is a pretty invasive change, use the opportunity to make the signature 64bit safe. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* imx:mmdc:Move imx6-reg include to imx6-mmdc headerChristian Hemp2014-05-051-0/+1
| | | | | | | Move the imx6-reg.h include to the imx6-mmdc header. Signed-off-by: Christian Hemp <c.hemp@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* imx6: read back memory sizeChristian Hemp2014-04-282-0/+11
| | | | | | | | To reduce the devicetree files for one board with different memory sizes the memory size can be read back from i.MX6. Signed-off-by: Christian Hemp <c.hemp@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* imx6:mmdc: Move register defines to header fileChristian Hemp2014-04-281-0/+39
| | | | | | | Move mmdc register defines to mmdc header file. Signed-off-by: Christian Hemp <c.hemp@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* imx53: add imx53_add_cspiWjatscheslaw Stoljarski2014-04-051-0/+5
| | | | | Signed-off-by: Wjatscheslaw Stoljarski <wjatscheslaw.stoljarski@kiwigrid.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/imx'Sascha Hauer2014-04-041-0/+6
|\
| * ARM: i.MX6: Add Nand boot bbu handlerSascha Hauer2014-04-031-0/+6
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | ARM: i.MX6: Add video clocksSascha Hauer2014-03-281-0/+3
|/ | | | | | | This adds the IPU, LVDS and HDMI clocks. As these are many, depend on the IPU driver being compiled in. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/spi'Sascha Hauer2014-03-078-21/+23
|\
| * spi: imx: Use device idsSascha Hauer2014-02-108-21/+23
| | | | | | | | | | | | To let the driver work on all SoCs without the use of cpu_is_*() Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | 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>
* 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>
* | 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.MX25: Add missing GPT clock lookupsSascha Hauer2014-01-311-0/+3
| | | | | | | | | | | | | | | | 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: pass boarddataSascha Hauer2014-01-291-5/+5
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | ARM: i.MX: Add correct SoC type detection for i.MX6Sascha Hauer2014-01-141-8/+41
|/ | | | | | | | 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>
* Merge branch 'for-next/video'Sascha Hauer2014-01-071-0/+22
|\