[PATCH 3/5] ARM: i.MX6SL: import clock infrastructure from linux

2017-01-30 Thread Alexander Kurz
Import i.MX6SL clock infrastructure from linux clk-imx6sl.c To save space, clocks beeing unlikely usefull for bootloader purposes (SSI, SPDIF, EXTERN_AUDIO) were not imported. Further, the fixup code from linux mainline commits a49e6c4b8204 ("ARM: imx: add common clock support for fixup mux") cbe7

[PATCH 4/5] ARM i.MX: Add i.MX6SL support

2017-01-30 Thread Alexander Kurz
Most i.MX6SL infrastructure is already covered in barebox by general i.MX6 support. Missing infrastructure provided in separate commits are * SoC type detection * Clock infrastructure Add the missing fsl,imx6sl-mmdc, so it will not be catched by fsl,imx6q-mmdc and the remaining bits and pieces to

[PATCH 5/5] ARM i.MX6SL: Add support for the Tolino Vision, Vision2 and Vision3HD

2017-01-30 Thread Alexander Kurz
The Tolino Vision E-Book readers are based on a i.MX6SL SoC. The devices boot in internal boot mode from a build-in eMMC, alternatively the devices may be set into USB-downloader mode when TP23 is pulled to ground on startup using a 1k resistor. Add support for this devices and make barebox a drop

[PATCH 2/5] ARM i.MX: add SoC type detection for i.MX6SL

2017-01-30 Thread Alexander Kurz
The i.MX6 series SoC type is determined by barebox by examining the USB_ANALOG_DIGPROG aka IMX6_ANATOP_SI_REV register. This register is located at a common offset for all mx6 SoC - except for i.MX6SL where a different offset is used. This creates a dilemma while distinguishing the mx6sl from non-m

[PATCH 1/5] ARM i.MX: move cpu_type macros in front of cpu_revision code

2017-01-30 Thread Alexander Kurz
Preparational commit to enable the use of cpu_type macros in imx6_cpu_revision() Signed-off-by: Alexander Kurz --- arch/arm/mach-imx/include/mach/imx6.h | 40 +-- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/arch/arm/mach-imx/include/mach/imx6.h