[U-Boot] [PATCH] imx: tools: imximage: fix CLR bit command

2016-05-02 Thread Adrian Alonso
Fix incorrect parametr in CMD_CHECK_BITS_CLR command Pass CLR parameter to DCD header for CMD_CHECK_BITS_CLR Signed-off-by: Adrian Alonso --- tools/imximage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/imximage.c b/tools/imximage.c index 7c21922..092d550 100644

[U-Boot] [PATCH v3 06/10] arm: imx: add secure boot fuse details for imx6 SoC

2015-10-12 Thread Adrian Alonso
Add secure boot fuse details (location) bank = 0, word = 6; for imx6 SoC platforms. Signed-off-by: Adrian Alonso --- Changes for V3: New patch in series arch/arm/cpu/armv7/mx6/soc.c | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/cpu/armv7/mx6/soc.c b/arch/arm/cpu/armv7

[U-Boot] [PATCH v3 10/10] mx7dsabresd: add secure boot support

2015-10-12 Thread Adrian Alonso
Add secure boot support for mx7dsabresd target board Signed-off-by: Adrian Alonso --- Changes for V2: Resend Changes for V3: Resend board/freescale/mx7dsabresd/imximage.cfg | 7 +++ include/configs/mx7dsabresd.h| 4 2 files changed, 11 insertions(+) diff --git a/board

[U-Boot] [PATCH v3 04/10] imx: hab: rework unified rom section for mx7

2015-10-12 Thread Adrian Alonso
Rework unified section macro select via Kconfig option instead of macro definition in mx7_common header file. Signed-off-by: Adrian Alonso --- Changes for V3: New patch in series arch/arm/cpu/armv7/mx7/Kconfig | 2 ++ include/configs/mx7_common.h | 1 - 2 files changed, 2 insertions(+), 1

[U-Boot] [PATCH v3 05/10] imx: hab: add secure boot fuse details

2015-10-12 Thread Adrian Alonso
Add secure boot fuse helper struct to abstract the way to find out secure boot settings per SoC iMX family Signed-off-by: Adrian Alonso --- Changes for V3: New patch in series arch/arm/include/asm/imx-common/hab.h | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/include

[U-Boot] [PATCH v3 09/10] imx: hab: add mx7 secure boot support

2015-10-12 Thread Adrian Alonso
cache flush mx7 SoC ROM code does not have this issue as ROM enables cache support based on fuse settings. Signed-off-by: Adrian Alonso --- Changes for V2: - Split from original patch to track mx7 change set hab: rework support for imx6/imx7 Changes for V3: - Add helper macro to identify if secure

[U-Boot] [PATCH v3 03/10] imx: hab: use unified rom section for mx6sx and mx6ul

2015-10-12 Thread Adrian Alonso
Add CONFIG_ROM_UNIFIED_SECTIONS for mx6sx and mx6ul target platforms to resolve corresponding HAB_RVT_BASE base address, the RVT table contains pointers to the HAB API functions in ROM code. Signed-off-by: Adrian Alonso --- Changes for V2: New patch in series Changes for V3: - Add

[U-Boot] [PATCH v3 08/10] imx: hab: use read_fuse for secure boot settings

2015-10-12 Thread Adrian Alonso
Use read_fuse api fuction call to read secure boot fuse settings (enabled/disabled). Signed-off-by: Adrian Alonso --- Changes for V3: New patch in series arch/arm/imx-common/hab.c | 17 - 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/arch/arm/imx-common/hab.c b

[U-Boot] [PATCH v3 07/10] arm: imx: add secure boot fuse details for imx7 SoC

2015-10-12 Thread Adrian Alonso
Add secure boot fuse details (location) bank = 1, word = 3; for imx7 SoC platforms. Signed-off-by: Adrian Alonso --- Changes for V3: New patch in series arch/arm/cpu/armv7/mx7/soc.c | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/cpu/armv7/mx7/soc.c b/arch/arm/cpu/armv7

[U-Boot] [PATCH v3 01/10] imx: cpu: move common chip revision id's

2015-10-12 Thread Adrian Alonso
Move common chip revision id's to main cpu header file mx25 generic include cpu header for chip revision Signed-off-by: Adrian Alonso --- Chages for V2: Resend Chages for V3: Resend arch/arm/cpu/arm926ejs/mx25/generic.c | 1 + arch/arm/include/asm/arch-imx/cpu.h

[U-Boot] [PATCH v3 02/10] imx: hab: rework secure boot support for imx6

2015-10-12 Thread Adrian Alonso
Rework secure boot support for imx6, move existing hab support for imx6 into imx-common for SoC reuse. Signed-off-by: Adrian Alonso --- Changes for V2: Split patch - Move existing hab mx6 into common location - Update include hab header location Changes for V3: - Fix commit log message, to

[U-Boot] [PATCH v2 4/5] imx: hab add mx7 secure boot support

2015-09-30 Thread Adrian Alonso
Add mx7 secure boot support, reuse existing mx6 hab Signed-off-by: Adrian Alonso --- Changes for V2: - Split from original patch to track mx7 change set hab: rework support for imx6/imx7 arch/arm/imx-common/hab.c | 19 --- 1 file changed, 16 insertions(+), 3 deletions

[U-Boot] [PATCH v2 5/5] mx7dsabresd: add secure boot support

2015-09-30 Thread Adrian Alonso
Add secure boot support for mx7dsabresd target board Signed-off-by: Adrian Alonso --- Changes for V2: Resend board/freescale/mx7dsabresd/imximage.cfg | 7 +++ include/configs/mx7dsabresd.h| 4 2 files changed, 11 insertions(+) diff --git a/board/freescale/mx7dsabresd

[U-Boot] [PATCH v2 1/5] imx: cpu: move common chip revision id's

2015-09-30 Thread Adrian Alonso
Move common chip revision id's to main cpu header file mx25 generic include cpu header for chip revision Signed-off-by: Adrian Alonso --- Chages for V2: Resend arch/arm/cpu/arm926ejs/mx25/generic.c | 1 + arch/arm/include/asm/arch-imx/cpu.h | 12 arch/arm/includ

[U-Boot] [PATCH v2 2/5] imx: hab: rework support for imx6/imx7

2015-09-30 Thread Adrian Alonso
Rework secure boot support for imx6 and imx7 Move existing hab support for imx6 into imx-common for SoC reuse. Signed-off-by: Adrian Alonso --- Changes for V2: Split patch - Move existing hab mx6 into common location - Update include hab header location arch/arm/cpu/armv7/mx6/Makefile

[U-Boot] [PATCH v2 3/5] imx: hab use unified rom section for mx6sx and mx6ul

2015-09-30 Thread Adrian Alonso
Add CONFIG_ROM_UNIFIED_SECTIONS for mx6sx and mx6ul target platforms to resolve corresponding HAB_RVT_BASE Signed-off-by: Adrian Alonso --- Chages for V2: New patch in series arch/arm/include/asm/imx-common/hab.h | 2 +- include/configs/mx6_common.h | 4 2 files changed, 5

[U-Boot] [PATCH 2/3] hab: rework support for imx6/imx7

2015-09-21 Thread Adrian Alonso
Signed-off-by: Adrian Alonso --- arch/arm/cpu/armv7/mx6/Makefile | 1 - arch/arm/cpu/armv7/mx6/hab.c| 502 --- arch/arm/imx-common/Makefile| 1 + arch/arm/imx-common/hab.c | 515 include/imx_hab.h

[U-Boot] [PATCH 1/3] imx: cpu: move common chip revision id's

2015-09-21 Thread Adrian Alonso
Move common chip revision id's to main cpu header file mx25 generic include cpu header for chip revision Signed-off-by: Adrian Alonso --- arch/arm/cpu/arm926ejs/mx25/generic.c | 1 + arch/arm/include/asm/arch-imx/cpu.h | 12 arch/arm/include/asm/arch-mx25/imx-regs.h

[U-Boot] [PATCH 3/3] mx7dsabresd: add secure boot support

2015-09-21 Thread Adrian Alonso
Add secure boot support for mx7dsabresd target board Signed-off-by: Adrian Alonso --- board/freescale/mx7dsabresd/imximage.cfg | 7 +++ include/configs/mx7dsabresd.h| 4 2 files changed, 11 insertions(+) diff --git a/board/freescale/mx7dsabresd/imximage.cfg b/board

[U-Boot] [PATCH v3 13/13] imx: mx7dsabresd: Add support for MX7D SABRESD board

2015-09-03 Thread Adrian Alonso
* Add i.MX7D SABRESD target board support with enabled modules: UART, PMIC, USB/OTG, SD, eMMC, ENET, I2C, 74LV IOX. Build target: mx7dsabresd_config Signed-off-by: Peng Fan Signed-off-by: Fugang Duan Signed-off-by: Ye.Li Signed-off-by: Adrian Alonso --- Changes for V2: - Include arch/arm

[U-Boot] [PATCH v2 12/13] imx: imx7d: add imx-common cpu support for imx7d

2015-09-02 Thread Adrian Alonso
Add imx-common cpu support for imx7d SoC - Update reset_cause for imx7d - Enable watchdog driver built for imx7d Signed-off-by: Adrian Alonso Signed-off-by: Peng Fan --- Changes for V2: Split patch to easier review process - Add system arch register definitions Changes for V3: Resend Changes

[U-Boot] [PATCH v2 13/13] imx: mx7dsabresd: Add support for MX7D SABRESD board

2015-09-02 Thread Adrian Alonso
* Add i.MX7D SABRESD target board support with enabled modules: UART, PMIC, USB/OTG, SD, eMMC, ENET, I2C, 74LV IOX. Build target: mx7dsabresd_config Signed-off-by: Peng Fan Signed-off-by: Fugang Duan Signed-off-by: Ye.Li Signed-off-by: Adrian Alonso --- Changes for V2: - Include arch/arm

[U-Boot] [PATCH v2 08/13] imx: imx7d: Add SoC system support

2015-09-02 Thread Adrian Alonso
Add imx7d basic SoC system support Misc arch dependent functions for system bring up Signed-off-by: Adrian Alonso Signed-off-by: Peng Fan Signed-off-by: Ye.Li --- Changes for V2: Split from patch imx: imx7d: initial arch level support Changes for V3 - V5: Resend Changes for V6: - Remove

[U-Boot] [PATCH v2 11/13] thermal: imx: add imx7d soc thermal support

2015-09-02 Thread Adrian Alonso
Add imx7 SoC thermal driver support Signed-off-by: Adrian Alonso --- Changes for V2: Fix build error for missin macro check ;P Changes for V3: Resend Changes for V4: Resend drivers/thermal/imx_thermal.c | 90 --- 1 file changed, 84 insertions(+), 6

[U-Boot] [PATCH v2 07/13] imx: imx7d: clock control module support

2015-09-02 Thread Adrian Alonso
ROM enables PLL_ARM, PLL_DDR, PLL_SYS, PLL_ENET In u-boot, we have to: - Configure PFD3- PFD7 for freq we needed in u-boot - Set clock root for peripherals (ip channel) Signed-off-by: Adrian Alonso Signed-off-by: Peng Fan Signed-off-by: Ye.Li --- Changes for V2 - V8: Resend arch/arm/cpu

[U-Boot] [PATCH v2 10/13] arm: imx-common: init: rework wdog settings for imx6/imx7

2015-09-02 Thread Adrian Alonso
Rework imx_set_wdog_powerdown to be reused by imx6 and imx7 Signed-off-by: Adrian Alonso --- Changes for V2: Rework for common sys_proto header file Changes for V3: Resend arch/arm/cpu/armv7/mx6/soc.c| 14 -- arch/arm/imx-common/init.c | 21

[U-Boot] [PATCH v2 09/13] arm: imx-common: init: extend init_aips to support imx7

2015-09-02 Thread Adrian Alonso
Extend init_aips to support imx7 SoC, use is_soc_type and is_cpu_type to resolve at run time aips3 settings Signed-off-by: Adrian Alonso --- Changes for V2: Resend Changes for V3: Resend arch/arm/imx-common/init.c | 44 1 file changed, 20 insertions

[U-Boot] [PATCH v2 05/13] imx: system counter driver for imx7d and mx6ul

2015-09-02 Thread Adrian Alonso
Add system counter driver for imx7d and mx6ul imx7 and imx6ul supports system counter timer as well as GPT timer (arch/arm/imx-common/timer.c); The default for imx7 is systemcounter timer. Signed-off-by: Ye.Li Signed-off-by: Adrian Alonso --- Changes for V2 to V5: Resend Changes for V6

[U-Boot] [PATCH v2 01/13] imx: arch-mx6: add is_soc_type helper macro

2015-09-02 Thread Adrian Alonso
Add helper macro is_soc_type to identify iMX SoC family Signed-off-by: Adrian Alonso --- Changes for V2: Rework for common sys_proto header file Changes for V3: Rework for latest master arch/arm/include/asm/arch-imx/cpu.h | 2 ++ arch/arm/include/asm/imx-common/sys_proto.h | 3 +++ 2

[U-Boot] [PATCH v2 04/13] arm: imx: imx-common: init: move arch init common setup

2015-09-02 Thread Adrian Alonso
Move common imx6 arch init setup, init.c can be extended and reused to support imx7 SoC keeping init arch common code. Signed-off-by: Adrian Alonso --- Changes for V2: Resend Changes for V3: Resend arch/arm/cpu/armv7/mx6/soc.c| 87 arch/arm/imx-common

[U-Boot] [PATCH v2 02/13] thermal: imx_thermal: rework driver to be reused

2015-09-02 Thread Adrian Alonso
Rework imx_thermal driver to be used across i.MX processor that support thermal sensor Signed-off-by: Adrian Alonso Signed-off-by: Peng Fan --- Changes for V2: Rename read_cpu_temperature to read_cpu_temperature_mx6 use is_soc_type macro to identify iMX SoC family to call the correspondind

[U-Boot] [PATCH v2 03/13] arm: imx: common rework cache settings for imx6

2015-09-02 Thread Adrian Alonso
Rework cache settings for imx6, move cache configuration to imx-common/cache.c so it can be reused for newer SoC Signed-off-by: Adrian Alonso --- Changes for V2: Resend Changes for V3: Resend arch/arm/cpu/armv7/mx6/soc.c | 95 --- arch/arm/imx-common

[U-Boot] [PATCH 11/13] thermal: imx: add imx7d soc thermal support

2015-09-01 Thread Adrian Alonso
Add imx7 SoC thermal driver support Signed-off-by: Adrian Alonso --- Changes for V2: Fix build error for missin macro check ;P Changes for V3: Resend drivers/thermal/imx_thermal.c | 90 --- 1 file changed, 84 insertions(+), 6 deletions(-) diff --git a

[U-Boot] [PATCH 13/13] imx: mx7dsabresd: Add support for MX7D SABRESD board

2015-09-01 Thread Adrian Alonso
* Add i.MX7D SABRESD target board support with enabled modules: UART, PMIC, USB/OTG, SD, eMMC, ENET, I2C, 74LV IOX. Build target: mx7dsabresd_config Signed-off-by: Peng Fan Signed-off-by: Fugang Duan Signed-off-by: Ye.Li Signed-off-by: Adrian Alonso --- Changes for V2: - Include arch/arm

[U-Boot] [PATCH 12/13] imx: imx7d: add imx-common cpu support for imx7d

2015-09-01 Thread Adrian Alonso
Add imx-common cpu support for imx7d SoC - Update reset_cause for imx7d - Enable watchdog driver built for imx7d Signed-off-by: Adrian Alonso Signed-off-by: Peng Fan --- Changes for V2: Split patch to easier review process - Add system arch register definitions Changes for V3: Resend Changes

[U-Boot] [PATCH 09/13] arm: imx-common: init: extend init_aips to support imx7

2015-09-01 Thread Adrian Alonso
Extend init_aips to support imx7 SoC, use is_soc_type and is_cpu_type to resolve at run time aips3 settings Signed-off-by: Adrian Alonso --- Changes for V2: Resend arch/arm/imx-common/init.c | 44 1 file changed, 20 insertions(+), 24 deletions

[U-Boot] [PATCH 10/13] arm: imx-common: init: rework wdog settings for imx6/imx7

2015-09-01 Thread Adrian Alonso
Rework imx_set_wdog_powerdown to be reused by imx6 and imx7 Signed-off-by: Adrian Alonso --- Changes for V2: Rework for common sys_proto header file arch/arm/cpu/armv7/mx6/soc.c| 14 -- arch/arm/imx-common/init.c | 21 + arch/arm

[U-Boot] [PATCH 03/13] arm: imx: common rework cache settings for imx6

2015-09-01 Thread Adrian Alonso
Rework cache settings for imx6, move cache configuration to imx-common/cache.c so it can be reused for newer SoC Signed-off-by: Adrian Alonso --- Changes for V2: Resend arch/arm/cpu/armv7/mx6/soc.c | 95 --- arch/arm/imx-common/Makefile | 1 + arch/arm

[U-Boot] [PATCH 07/13] imx: imx7d: clock control module support

2015-09-01 Thread Adrian Alonso
ROM enables PLL_ARM, PLL_DDR, PLL_SYS, PLL_ENET In u-boot, we have to: - Configure PFD3- PFD7 for freq we needed in u-boot - Set clock root for peripherals (ip channel) Signed-off-by: Adrian Alonso Signed-off-by: Peng Fan Signed-off-by: Ye.Li --- Changes for V2 - V7: Resend arch/arm/cpu

[U-Boot] [PATCH 05/13] imx: system counter driver for imx7d and mx6ul

2015-09-01 Thread Adrian Alonso
Add system counter driver for imx7d and mx6ul imx7 and imx6ul supports system counter timer as well as GPT timer (arch/arm/imx-common/timer.c); The default for imx7 is systemcounter timer. Signed-off-by: Ye.Li Signed-off-by: Adrian Alonso --- Changes for V2 to V5: Resend Changes for V6

[U-Boot] [PATCH 08/13] imx: imx7d: Add SoC system support

2015-09-01 Thread Adrian Alonso
Add imx7d basic SoC system support Misc arch dependent functions for system bring up Signed-off-by: Adrian Alonso Signed-off-by: Peng Fan Signed-off-by: Ye.Li --- Changes for V2: Split from patch imx: imx7d: initial arch level support Changes for V3 - V5: Resend Changes for V6: - Remove

[U-Boot] [PATCH 04/13] arm: imx: imx-common: init: move arch init common setup

2015-09-01 Thread Adrian Alonso
Move common imx6 arch init setup, init.c can be extended and reused to support imx7 SoC keeping init arch common code. Signed-off-by: Adrian Alonso --- Changes for V2: Resend arch/arm/cpu/armv7/mx6/soc.c| 87 arch/arm/imx-common/Makefile

[U-Boot] [PATCH 02/13] thermal: imx_thermal: rework driver to be reused

2015-09-01 Thread Adrian Alonso
Rework imx_thermal driver to be used across i.MX processor that support thermal sensor Signed-off-by: Adrian Alonso Signed-off-by: Peng Fan --- Changes for V2: Rename read_cpu_temperature to read_cpu_temperature_mx6 use is_soc_type macro to identify iMX SoC family to call the correspondind

[U-Boot] [PATCH 01/13] imx: arch-mx6: add is_soc_type helper macro

2015-09-01 Thread Adrian Alonso
Add helper macro is_soc_type to identify iMX SoC family Signed-off-by: Adrian Alonso --- Changes for V2: Rework for common sys_proto header file arch/arm/include/asm/arch-imx/cpu.h | 2 ++ arch/arm/include/asm/imx-common/sys_proto.h | 3 +++ 2 files changed, 5 insertions(+) diff --git

[U-Boot] [PATCH][v2] thermal: imx: add imx7d soc thermal support

2015-08-28 Thread Adrian Alonso
Add imx7 SoC thermal driver support Signed-off-by: Adrian Alonso --- Changes for V2: Fix build error for missin macro check ;P drivers/thermal/imx_thermal.c | 86 --- 1 file changed, 81 insertions(+), 5 deletions(-) diff --git a/drivers/thermal

[U-Boot] [PATCH][v6] imx: mx7dsabresd: Add support for MX7D SABRESD board

2015-08-28 Thread Adrian Alonso
* Add i.MX7D SABRESD target board support with enabled modules: UART, PMIC, USB/OTG, SD, eMMC, ENET, I2C, 74LV IOX. Build target: mx7dsabresd_config Signed-off-by: Peng Fan Signed-off-by: Fugang Duan Signed-off-by: Ye.Li Signed-off-by: Adrian Alonso --- Changes for V2: - Include arch/arm

[U-Boot] [PATCH] thermal: imx: add imx7d soc thermal support

2015-08-28 Thread Adrian Alonso
Add imx7 SoC thermal driver support Signed-off-by: Adrian Alonso --- drivers/thermal/imx_thermal.c | 86 --- 1 file changed, 81 insertions(+), 5 deletions(-) diff --git a/drivers/thermal/imx_thermal.c b/drivers/thermal/imx_thermal.c index 7848dc3

[U-Boot] [PATCH][v6] imx: imx7d: add imx-common cpu support for imx7d

2015-08-28 Thread Adrian Alonso
Add imx-common cpu support for imx7d SoC - Update reset_cause for imx7d - Enable watchdog driver built for imx7d Signed-off-by: Adrian Alonso Signed-off-by: Peng Fan Signed-off-by: Ye.Li --- Changes for V2: Split patch to easier review process - Add system arch register definitions Changes for

[U-Boot] [PATCH][v6] imx: imx7d: Add SoC system support

2015-08-28 Thread Adrian Alonso
Add imx7d basic SoC system support Misc arch dependent functions for system bring up Signed-off-by: Adrian Alonso Signed-off-by: Peng Fan Signed-off-by: Ye.Li --- Changes for V2: Split from patch imx: imx7d: initial arch level support Changes for V3: Resend Changes for V4: Resend Changes for

[U-Boot] [PATCH] arm: imx-common: init: rework wdog settings for imx6/imx7

2015-08-28 Thread Adrian Alonso
Rework imx_set_wdog_powerdown to be reused by imx6 and imx7 wdog4 is only supported in imx7. Signed-off-by: Adrian Alonso --- arch/arm/cpu/armv7/mx6/soc.c | 14 -- arch/arm/imx-common/init.c| 22 ++ arch/arm/include/asm/arch-mx6

[U-Boot] [PATCH] arm: imx-common: init: extend init_aips to support imx7

2015-08-28 Thread Adrian Alonso
Extend init_aips to support imx7 SoC, use is_soc_type and is_cpu_type to resolve at run time aips3 settings Signed-off-by: Adrian Alonso --- arch/arm/imx-common/init.c | 44 1 file changed, 20 insertions(+), 24 deletions(-) diff --git a/arch/arm/imx

[U-Boot] [PATCH][v2] arm: imx: imx-common: init: move arch init common setup

2015-08-27 Thread Adrian Alonso
Move common imx6 arch init setup, init.c can be extended and reused to support imx7 SoC keeping init arch common code. Signed-off-by: Adrian Alonso --- Changes for V2: Move back mx6 ldo related to functions into soc.c Apply patch on top of: arm: imx: common rework cache settings for imx6 arch

[U-Boot] [PATCH] arm: imx: common rework cache settings for imx6

2015-08-26 Thread Adrian Alonso
Rework cache settings for imx6, move cache configuration to imx-common/cache.c so it can be reused for newer SoC Signed-off-by: Adrian Alonso --- arch/arm/cpu/armv7/mx6/soc.c | 95 --- arch/arm/imx-common/Makefile | 1 + arch/arm/imx-common/cache.c | 103

[U-Boot] [PATCH] arm: imx: imx-common: init: move arch init common setup

2015-08-26 Thread Adrian Alonso
Move common imx6 arch init setup, init.c can be extended and reused to support imx7 SoC keeping init arch common code. Signed-off-by: Adrian Alonso --- Apply patch on top of: arm: imx: common rework cache settings for imx6 arch/arm/cpu/armv7/mx6/soc.c | 274

[U-Boot] [PATCH][v6] imx: system counter driver for imx7d and mx6ul

2015-08-25 Thread Adrian Alonso
Add system counter driver for imx7d and mx6ul imx7 and imx6ul supports system counter timer as well as GPT timer (arch/arm/imx-common/timer.c); The default for imx7 is systemcounter timer. Signed-off-by: Adrian Alonso Signed-off-by: Ye.Li --- Changes for V2 to V5: Resend Changes for V6

[U-Boot] [PATCH v2] thermal: imx_thermal: rework driver to be reused

2015-08-25 Thread Adrian Alonso
Rework imx_thermal driver to be used across i.MX processor that support thermal sensor Signed-off-by: Adrian Alonso Signed-off-by: Peng Fan --- Changes for V2: Rename read_cpu_temperature to read_cpu_temperature_mx6 use is_soc_type macro to identify iMX SoC family to call the correspondind

[U-Boot] [PATCH] imx: arch-mx6: add is_soc_type helper macro

2015-08-25 Thread Adrian Alonso
Add helper macro is_soc_type to identify iMX SoC family Signed-off-by: Adrian Alonso --- arch/arm/include/asm/arch-imx/cpu.h | 2 ++ arch/arm/include/asm/arch-mx6/sys_proto.h | 3 +++ 2 files changed, 5 insertions(+) diff --git a/arch/arm/include/asm/arch-imx/cpu.h b/arch/arm/include

[U-Boot] [PATCH] imx: arch-mx6: add is_soc_type helper macro

2015-08-25 Thread Adrian Alonso
Add helper macro is_soc_type to identify iMX SoC family Signed-off-by: Adrian Alonso --- arch/arm/include/asm/arch-imx/cpu.h | 2 ++ arch/arm/include/asm/arch-mx6/sys_proto.h | 3 +++ 2 files changed, 5 insertions(+) diff --git a/arch/arm/include/asm/arch-imx/cpu.h b/arch/arm/include

[U-Boot] [PATCH] thermal: imx_thermal: rework driver to be reused

2015-08-25 Thread Adrian Alonso
- Rework imx_thermal driver to be used across i.MX processor that support thermal sensors - Make read_cpu_temperature SoC dependent Signed-off-by: Adrian Alonso Signed-off-by: Peng Fan --- arch/arm/cpu/armv7/mx6/soc.c | 86 +++- arch/arm/imx-common/cpu.c

[U-Boot] [PATCH v5 02/13] imx: iomux-v3: add imx7d support for iomuxc

2015-08-11 Thread Adrian Alonso
chain settings for iomuxc-lpsr pads. * Since mx7d introduces LPSR IOMUX pins, add new base to IOMUX v3 driver for these LPSR pins. Signed-off-by: Adrian Alonso Signed-off-by: Fugang Duan Signed-off-by: Ye.Li --- Changes for V2: - Update commit log information Changes for V3: Resend Changes

[U-Boot] [PATCH v5 13/13] imx: mx7dsabresd: Add support for MX7D SABRESD board

2015-08-11 Thread Adrian Alonso
* Add i.MX7D SABRESD target board support with enabled modules: UART, PMIC, USB/OTG, SD, eMMC, ENET, I2C, 74LV IOX. Build target: mx7dsabresd_config Signed-off-by: Peng Fan Signed-off-by: Fugang Duan Signed-off-by: Ye.Li Signed-off-by: Adrian Alonso --- Changes for V2: - Include arch/arm

[U-Boot] [PATCH v5 12/13] imx: imx7d: add imx-common cpu support for imx7d

2015-08-11 Thread Adrian Alonso
* Add imx-common cpu support for imx7d SoC * Update reset_cause for imx7d * Enable watchdog driver built for imx7d Signed-off-by: Ye.Li Signed-off-by: Peng Fan Signed-off-by: Adrian Alonso --- Changes for V2: Split from patch imx: imx7d: initial arch level support Changes for V3: Resend

[U-Boot] [PATCH v5 10/13] imx: imx7d: add hab secure boot support

2015-08-11 Thread Adrian Alonso
: Ye.Li Signed-off-by: Peng Fan Signed-off-by: Adrian Alonso --- Changes for V2: Split from patch imx: imx7d: initial arch level support Changes for V3: Resend Changes for V4: Resend Changes for V5: Add complete list of Signed-off's arch/arm/cpu/armv7/mx7/Makefile | 9 ++ arch/arm/cpu/

[U-Boot] [PATCH v5 11/13] imx: imx7d: add timer support for imx7d

2015-08-11 Thread Adrian Alonso
* Add timer support for imx7d SoC Signed-off-by: Ye.Li Signed-off-by: Peng Fan Signed-off-by: Adrian Alonso --- Changes for V2: Split from patch imx: imx7d: initial arch level support Changes for V3: Resend Changes for V4: Resend Changes for V5: - Add Signed-off's - Rework patch to be ap

[U-Boot] [PATCH v5 09/13] imx: imx7d: Add SoC system support

2015-08-11 Thread Adrian Alonso
* Add SoC system support, Misc arch dependent functions for system bring up: s_init: system init enable clock base settings enable_caches: configures Cortex-A7 L2 caches get_boot_device: identifies boot device Signed-off-by: Adrian Alonso Signed-off-by: Peng Fan Signed-off-by: Ye.Li

[U-Boot] [PATCH v5 03/13] imx: mxc_gpio: add support for imx7d SoC

2015-08-11 Thread Adrian Alonso
* Add mxc_gpio support for imx7d SoC * Use CONFIG_MX7 to extend mxc gpio driver support for imx7d Signed-off-by: Peng Fan Signed-off-by: Adrian Alonso --- Changes for V2: Resend Changes for V3: Resend Changes for V4: Resend Changes for V5: Resend arch/arm/include/asm/arch-mx7/gpio.h | 12

[U-Boot] [PATCH v5 08/13] imx: imx7d: clock control module support

2015-08-11 Thread Adrian Alonso
ROM enables PLL_ARM, PLL_DDR, PLL_SYS, PLL_ENET In u-boot, we have to: - Configure PFD3- PFD7 for freq we needed in u-boot - Set clock root for peripherals (ip channel) Signed-off-by: Adrian Alonso Signed-off-by: Peng Fan Signed-off-by: Ye.Li --- Changes for V2: Split from patch imx: imx7d

[U-Boot] [PATCH v5 06/13] imx: system counter driver for imx7d and mx6ul

2015-08-11 Thread Adrian Alonso
: CONFIG_SYSCOUNTER_TIMER For mx6dqp GPT timer is the default setting. Signed-off-by: Adrian Alonso Signed-off-by: Ye.Li --- Changes for V2: Resend Changes for V3: Resend Changes for V4: Resend Changes for V5: Resend arch/arm/imx-common/syscounter.c | 126

[U-Boot] [PATCH v5 04/13] imx: ocotp: mxc add i.MX7D support

2015-08-11 Thread Adrian Alonso
* Ocotp of i.MX7D has different operation rule. This patch is to add support for i.MX7D ocotp. Signed-off-by: Adrian Alonso Signed-off-by: Peng Fan Signed-off-by: Ye.Li --- Changes for V2: Resend Changes for V3: Resend Changes for V4: Resend Changes for V5: Resend drivers/misc/mxc_ocotp.c

[U-Boot] [PATCH v5 05/13] imx: mx7 dm thermal driver support

2015-08-11 Thread Adrian Alonso
* Add thermal driver support for imx7 SoC read_cpu_temperature is SoC dependent * Redefine config macro to support imx7 and imx6 SoC Signed-off-by: Adrian Alonso Signed-off-by: Peng Fan --- Changes for V2: - Rework patch so it can be applyed on top of patch imx6: standardise OCOTP and fuse

[U-Boot] [PATCH v5 01/13] power: pmic: add pfuze3000 support

2015-08-11 Thread Adrian Alonso
* Add pmic pfuze3000 support, implement power_pfuze3000_init to be used in power_init_board callback function. Signed-off-by: Adrian Alonso Signed-off-by: Peng Fan --- Changes for V2: - Correct pfuze device name to pfuze3000; Freescale documentation uses Pfuze 3000 as product name for the

[U-Boot] [PATCH] imx: usb: ehci-mx6: wait_for_bit to check reg status

2015-08-06 Thread Adrian Alonso
Add wait_for_bit to check reg bit status and replace unbounded loops to check usb command status Signed-off-by: Adrian Alonso --- Patch depends on the following patch set: imx: usb: ehci-mx6: add usb support for imx7d soc imx: usb: ehci-mx6: document board specific functions imx: usb: ehci-mx6

[U-Boot] [PATCH 3/3][v3] imx: usb: ehci-mx6: add usb support for imx7d soc

2015-08-06 Thread Adrian Alonso
Extend ehci-mx6 usb driver to support imx7d usb Signed-off-by: Adrian Alonso --- Changes for V2: Add usb_power_config and usb_phy_mode for usb otg id detection for imx7d Changes for V3: Fix identation for usbnc_regs struct drivers/usb/host/Makefile | 1 + drivers/usb/host/ehci-mx6.c | 100

[U-Boot] [PATCH 2/3][v3] imx: usb: ehci-mx6: document board specific functions

2015-08-06 Thread Adrian Alonso
Document target board specific functions board_ehci_hcd_init - override usb phy mode board_ehci_hcd_init - set usb vbus voltage board_ehci_power - enables/disables usb vbus voltage Signed-off-by: Adrian Alonso --- Changes for V2: Split from patch imx: usb: ehci-mx6: add usb support for imx7d

[U-Boot] [PATCH 1/3][v3] imx: usb: ehci-mx6: reg accessor cleanups

2015-08-06 Thread Adrian Alonso
Cleanup read/write register access, use clr/set bits_le32 Signed-off-by: Adrian Alonso --- Changes for V2: Split from patch imx: usb: ehci-mx6: add usb support for imx7d soc Changes for V3: Resend drivers/usb/host/ehci-mx6.c | 51 - 1 file changed

[U-Boot] [PATCH 1/3][v2] imx: usb: ehci-mx6: reg accessor cleanups

2015-08-05 Thread Adrian Alonso
Cleanup read/write register access, use clr/set bits_le32 Signed-off-by: Adrian Alonso --- Changes for V2: Split from patch imx: usb: ehci-mx6: add usb support for imx7d soc drivers/usb/host/ehci-mx6.c | 51 - 1 file changed, 18 insertions(+), 33

[U-Boot] [PATCH 3/3][v2] imx: usb: ehci-mx6: add usb support for imx7d soc

2015-08-05 Thread Adrian Alonso
Extend ehci-mx6 usb driver to support imx7d usb Signed-off-by: Adrian Alonso --- Changes for V2: Add usb_power_config and usb_phy_mode for usb otg id detection for imx7d drivers/usb/host/Makefile | 1 + drivers/usb/host/ehci-mx6.c | 99 - 2 files

[U-Boot] [PATCH 2/3][v2] imx: usb: ehci-mx6: document board specific functions

2015-08-05 Thread Adrian Alonso
Document target board specific functions board_ehci_hcd_init - override usb phy mode board_ehci_hcd_init - set usb vbus voltage board_ehci_power - enables/disables usb vbus voltage Signed-off-by: Adrian Alonso --- Changes for V2: Split from patch imx: usb: ehci-mx6: add usb support for imx7d

[U-Boot] [PATCH 02/13][v4] imx: iomux-v3: add imx7d support for iomuxc

2015-07-30 Thread Adrian Alonso
chain settings for iomuxc-lpsr pads. * Since mx7d introduces LPSR IOMUX pins, add new base to IOMUX v3 driver for these LPSR pins. Signed-off-by: Adrian Alonso Signed-off-by: Fugang Duan Signed-off-by: Ye.Li --- Changes for V2: - Update commit log information Changes for V3: Resend Changes

[U-Boot] [PATCH 13/13][v4] imx: mx7dsabresd: Add support for MX7D SABRESD board

2015-07-30 Thread Adrian Alonso
* Add i.MX7D SABRESD target board support with enabled modules: UART, PMIC, USB/OTG, SD, eMMC, ENET, I2C, 74LV IOX. Build target: mx7dsabresd_config Signed-off-by: Peng Fan Signed-off-by: Fugang Duan Signed-off-by: Ye.Li Signed-off-by: Adrian Alonso --- Changes for V2: - Include arch/arm

[U-Boot] [PATCH 12/13][v4] imx: imx7d: add imx-common cpu support for imx7d

2015-07-30 Thread Adrian Alonso
* Add imx-common cpu support for imx7d SoC * Update reset_cause for imx7d * Enable watchdog driver built for imx7d Signed-off-by: Adrian Alonso --- Changes for V2: Split from patch imx: imx7d: initial arch level support Changes for V3: Resend Changes for V4: Resend arch/arm/Makefile

[U-Boot] [PATCH 06/13][v4] imx: system counter driver for imx7d and mx6ul

2015-07-30 Thread Adrian Alonso
: CONFIG_SYSCOUNTER_TIMER For mx6dqp GPT timer is the default setting. Signed-off-by: Adrian Alonso Signed-off-by: Ye.Li --- Changes for V2: Resend Changes for V3: Resend Changes for V4: Resend arch/arm/imx-common/syscounter.c | 126 +++ arch/arm/include/asm

[U-Boot] [PATCH 09/13][v4] imx: imx7d: Add SoC system support

2015-07-30 Thread Adrian Alonso
* Add SoC system support, Misc arch dependent functions for system bring up: s_init: system init enable clock base settings enable_caches: configures Cortex-A7 L2 caches get_boot_device: identifies boot device Signed-off-by: Adrian Alonso Signed-off-by: Peng Fan Signed-off-by: Ye.Li

[U-Boot] [PATCH 10/13][v4] imx: imx7d: add hab secure boot support

2015-07-30 Thread Adrian Alonso
: Adrian Alonso --- Changes for V2: Split from patch imx: imx7d: initial arch level support Changes for V3: Resend Changes for V4: Resend arch/arm/cpu/armv7/mx7/Makefile | 9 ++ arch/arm/cpu/armv7/mx7/hab.c| 277 arch/arm/include/asm/arch-mx7/hab.h

[U-Boot] [PATCH 11/13][v4] imx: imx7d: add timer support for imx7d

2015-07-30 Thread Adrian Alonso
* Add timer support for imx7d SoC Signed-off-by: Adrian Alonso --- Changes for V2: Split from patch imx: imx7d: initial arch level support Changes for V3: Resend Changes for V4: Resend arch/arm/imx-common/timer.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/arch

[U-Boot] [PATCH 05/13][v4] imx: mx7 dm thermal driver support

2015-07-30 Thread Adrian Alonso
* Add thermal driver support for imx7 SoC read_cpu_temperature is SoC dependent * Redefine config macro to support imx7 and imx6 SoC Signed-off-by: Adrian Alonso Signed-off-by: Peng Fan --- Changes for V2: - Rework patch so it can be applyed on top of patch imx6: standardise OCOTP and fuse

[U-Boot] [PATCH 08/13][v4] imx: imx7d: clock control module support

2015-07-30 Thread Adrian Alonso
ROM enables PLL_ARM, PLL_DDR, PLL_SYS, PLL_ENET In u-boot, we have to: - Configure PFD3- PFD7 for freq we needed in u-boot - Set clock root for peripherals (ip channel) Signed-off-by: Adrian Alonso Signed-off-by: Peng Fan Signed-off-by: Ye.Li --- Changes for V2: Split from patch imx: imx7d

[U-Boot] [PATCH 04/13][v4] imx: ocotp: mxc add i.MX7D support

2015-07-30 Thread Adrian Alonso
* Ocotp of i.MX7D has different operation rule. This patch is to add support for i.MX7D ocotp. Signed-off-by: Adrian Alonso Signed-off-by: Peng Fan Signed-off-by: Ye.Li --- Changes for V2: Resend Changes for V3: Resend Changes for V4: Resend drivers/misc/mxc_ocotp.c | 74

[U-Boot] [PATCH 03/13][v4] imx: mxc_gpio: add support for imx7d SoC

2015-07-30 Thread Adrian Alonso
* Add mxc_gpio support for imx7d SoC * Use CONFIG_MX7 to extend mxc gpio driver support for imx7d Signed-off-by: Peng Fan Signed-off-by: Adrian Alonso --- Changes for V2: Resend Changes for V3: Resend Changes for V4: Resend arch/arm/include/asm/arch-mx7/gpio.h | 12 drivers/gpio

[U-Boot] [PATCH 01/13][v4] power: pmic: add pfuze3000 support

2015-07-30 Thread Adrian Alonso
* Add pmic pfuze3000 support, implement power_pfuze3000_init to be used in power_init_board callback function. Signed-off-by: Adrian Alonso Signed-off-by: Peng Fan --- Changes for V2: - Correct pfuze device name to pfuze3000; Freescale documentation uses Pfuze 3000 as product name for the

[U-Boot] [PATCH] imx: usb: ehci-mx6: add usb support for imx7d soc

2015-07-30 Thread Adrian Alonso
Extend ehci-mx6 usb driver to support imx7d usb Signed-off-by: Adrian Alonso --- drivers/usb/host/Makefile | 1 + drivers/usb/host/ehci-mx6.c | 125 2 files changed, 92 insertions(+), 34 deletions(-) diff --git a/drivers/usb/host/Makefile b

[U-Boot] [PATCH 02/15][v4] imx: usb: ehci-mx7 add usb driver for i.MX7D

2015-07-23 Thread Adrian Alonso
Add support for usb driver for i.MX7D SoC Signed-off-by: Adrian Alonso Signed-off-by: Ye.Li Signed-off-by: Peng Fan --- Changes for V2: Resend Changes for V3: - Integrate review obserbations - Add comments for fucntions board_ehci_hcd_init/board_ehci_power Changes for V4: - Follow kernel doc

[U-Boot] [PATCH 04/15][v3] imx: iomux-v3: add imx7d support for iomuxc

2015-07-22 Thread Adrian Alonso
chain settings for iomuxc-lpsr pads. * Since mx7d introduces LPSR IOMUX pins, add new base to IOMUX v3 driver for these LPSR pins. Signed-off-by: Adrian Alonso Signed-off-by: Fugang Duan Signed-off-by: Ye.Li --- Changes for V2: - Update commit log information Changes for V3: Resend arch

[U-Boot] [PATCH 10/15][v3] imx: imx7d: clock control module support

2015-07-22 Thread Adrian Alonso
ROM enables PLL_ARM, PLL_DDR, PLL_SYS, PLL_ENET In u-boot, we have to: - Configure PFD3- PFD7 for freq we needed in u-boot - Set clock root for peripherals (ip channel) Signed-off-by: Adrian Alonso Signed-off-by: Peng Fan Signed-off-by: Ye.Li --- Changes for V2: Split from patch imx: imx7d

[U-Boot] [PATCH 15/15][v3] imx: mx7dsabresd: Add support for MX7D SABRESD board

2015-07-22 Thread Adrian Alonso
* Add i.MX7D SABRESD target board support with enabled modules: UART, PMIC, USB/OTG, SD, eMMC, ENET, I2C, 74LV IOX. Build target: mx7dsabresd_config Signed-off-by: Peng Fan Signed-off-by: Fugang Duan Signed-off-by: Ye.Li Signed-off-by: Adrian Alonso --- Changes for V2: - Include arch/arm

[U-Boot] [PATCH 13/15][v3] imx: imx7d: add timer support for imx7d

2015-07-22 Thread Adrian Alonso
* Add timer support for imx7d SoC Signed-off-by: Adrian Alonso --- Changes for V2: Split from patch imx: imx7d: initial arch level support Changes for V3: Resend arch/arm/imx-common/timer.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/arch/arm/imx-common/timer.c

[U-Boot] [PATCH 14/15][v3] imx: imx7d: add imx-common cpu support for imx7d

2015-07-22 Thread Adrian Alonso
* Add imx-common cpu support for imx7d SoC * Update reset_cause for imx7d * Enable watchdog driver built for imx7d Signed-off-by: Adrian Alonso --- Changes for V2: Split from patch imx: imx7d: initial arch level support Changes for V3: Resend arch/arm/Makefile| 4 ++-- arch/arm

[U-Boot] [PATCH 12/15][v3] imx: imx7d: add hab secure boot support

2015-07-22 Thread Adrian Alonso
: Adrian Alonso --- Changes for V2: Split from patch imx: imx7d: initial arch level support Changes for V3: Resend arch/arm/cpu/armv7/mx7/Makefile | 9 ++ arch/arm/cpu/armv7/mx7/hab.c| 277 arch/arm/include/asm/arch-mx7/hab.h | 69 + 3

[U-Boot] [PATCH 07/15][v3] imx: mx7 dm thermal driver support

2015-07-22 Thread Adrian Alonso
* Add thermal driver support for imx7 SoC read_cpu_temperature is SoC dependent * Redefine config macro to support imx7 and imx6 SoC Signed-off-by: Adrian Alonso Signed-off-by: Peng Fan --- Changes for V2: - Rework patch so it can be applyed on top of patch imx6: standardise OCOTP and fuse

[U-Boot] [PATCH 08/15][v3] imx: system counter driver for imx7d and mx6ul

2015-07-22 Thread Adrian Alonso
: CONFIG_SYSCOUNTER_TIMER For mx6dqp GPT timer is the default setting. Signed-off-by: Adrian Alonso Signed-off-by: Ye.Li --- Changes for V2: Resend Changes for V3: Resend arch/arm/imx-common/syscounter.c | 126 +++ arch/arm/include/asm/imx-common/syscounter.h

  1   2   >