From: Peng Fan <van.freenix@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH V2 04/15] imx-common: hab: support i.MX6SOLO
Date: Mon, 23 May 2016 18:35:55 +0800 [thread overview]
Message-ID: <1463999766-16786-4-git-send-email-van.freenix@gmail.com> (raw)
In-Reply-To: <1463999766-16786-1-git-send-email-van.freenix@gmail.com>
Add i.MX6SOLO support for hab function.
The difference between i.MX6SOLO and i.MX6DL is
the number of CPU cores. Besides this, they work
the same.
Signed-off-by: Peng Fan <van.freenix@gmail.com>
Cc: Bhuvanchandra DV <bhuvanchandra.dv@toradex.com>
Cc: "Beno?t Th?baudeau" <benoit.thebaudeau.dev@gmail.com>
Cc: Stefano Babic <sbabic@denx.de>
---
V2:
Make this a single patch.
arch/arm/imx-common/hab.c | 15 ++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)
diff --git a/arch/arm/imx-common/hab.c b/arch/arm/imx-common/hab.c
index 8bbcc22..1e4ed7e 100644
--- a/arch/arm/imx-common/hab.c
+++ b/arch/arm/imx-common/hab.c
@@ -21,7 +21,8 @@
is_cpu_type(MXC_CPU_MX6D)) && \
(soc_rev() >= CHIP_REV_1_5)) ? \
((hab_rvt_report_event_t *)HAB_RVT_REPORT_EVENT_NEW) : \
- (is_cpu_type(MXC_CPU_MX6DL) && \
+ ((is_cpu_type(MXC_CPU_MX6DL) || \
+ is_cpu_type(MXC_CPU_MX6SOLO)) && \
(soc_rev() >= CHIP_REV_1_2)) ? \
((hab_rvt_report_event_t *)HAB_RVT_REPORT_EVENT_NEW) : \
((hab_rvt_report_event_t *)HAB_RVT_REPORT_EVENT) \
@@ -33,7 +34,8 @@
is_cpu_type(MXC_CPU_MX6D)) && \
(soc_rev() >= CHIP_REV_1_5)) ? \
((hab_rvt_report_status_t *)HAB_RVT_REPORT_STATUS_NEW) :\
- (is_cpu_type(MXC_CPU_MX6DL) && \
+ ((is_cpu_type(MXC_CPU_MX6DL) || \
+ is_cpu_type(MXC_CPU_MX6SOLO)) && \
(soc_rev() >= CHIP_REV_1_2)) ? \
((hab_rvt_report_status_t *)HAB_RVT_REPORT_STATUS_NEW) :\
((hab_rvt_report_status_t *)HAB_RVT_REPORT_STATUS) \
@@ -45,7 +47,8 @@
is_cpu_type(MXC_CPU_MX6D)) && \
(soc_rev() >= CHIP_REV_1_5)) ? \
((hab_rvt_authenticate_image_t *)HAB_RVT_AUTHENTICATE_IMAGE_NEW) : \
- (is_cpu_type(MXC_CPU_MX6DL) && \
+ ((is_cpu_type(MXC_CPU_MX6DL) || \
+ is_cpu_type(MXC_CPU_MX6SOLO)) && \
(soc_rev() >= CHIP_REV_1_2)) ? \
((hab_rvt_authenticate_image_t *)HAB_RVT_AUTHENTICATE_IMAGE_NEW) : \
((hab_rvt_authenticate_image_t *)HAB_RVT_AUTHENTICATE_IMAGE) \
@@ -57,7 +60,8 @@
is_cpu_type(MXC_CPU_MX6D)) && \
(soc_rev() >= CHIP_REV_1_5)) ? \
((hab_rvt_entry_t *)HAB_RVT_ENTRY_NEW) : \
- (is_cpu_type(MXC_CPU_MX6DL) && \
+ ((is_cpu_type(MXC_CPU_MX6DL) || \
+ is_cpu_type(MXC_CPU_MX6SOLO)) && \
(soc_rev() >= CHIP_REV_1_2)) ? \
((hab_rvt_entry_t *)HAB_RVT_ENTRY_NEW) : \
((hab_rvt_entry_t *)HAB_RVT_ENTRY) \
@@ -69,7 +73,8 @@
is_cpu_type(MXC_CPU_MX6D)) && \
(soc_rev() >= CHIP_REV_1_5)) ? \
((hab_rvt_exit_t *)HAB_RVT_EXIT_NEW) : \
- (is_cpu_type(MXC_CPU_MX6DL) && \
+ ((is_cpu_type(MXC_CPU_MX6DL) || \
+ is_cpu_type(MXC_CPU_MX6SOLO)) && \
(soc_rev() >= CHIP_REV_1_2)) ? \
((hab_rvt_exit_t *)HAB_RVT_EXIT_NEW) : \
((hab_rvt_exit_t *)HAB_RVT_EXIT) \
--
2.6.2
next prev parent reply other threads:[~2016-05-23 10:35 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-23 10:35 [U-Boot] [PATCH V2 01/15] imx-common: introduce simpler macros for runtime dection Peng Fan
2016-05-23 10:35 ` [U-Boot] [PATCH V2 02/15] imx: mx6: support i.MX6SOLO when enable/disable_ldb_di_clock_sources Peng Fan
2016-05-23 10:35 ` [U-Boot] [PATCH V2 03/15] imx: mx6: use simpler runtime cpu dection macros Peng Fan
2016-05-23 10:35 ` Peng Fan [this message]
2016-05-23 10:35 ` [U-Boot] [PATCH V2 05/15] imx-common: " Peng Fan
2016-05-23 10:35 ` [U-Boot] [PATCH V2 06/15] imx: mx6: ddr: support i.MX6D/QPlus Peng Fan
2016-05-23 10:35 ` [U-Boot] [PATCH V2 07/15] imx: mx6: correct get_cpu_speed_grade_hz for i.MX6DQP Peng Fan
2016-05-23 10:35 ` [U-Boot] [PATCH V2 08/15] imx-common: hab: support i.MX6DQPlus Peng Fan
2016-05-23 10:36 ` [U-Boot] [PATCH V2 09/15] imx-common: sata: return failure if not i.MX6DQPlus Peng Fan
2016-05-23 10:36 ` [U-Boot] [PATCH V2 10/15] imx-common: timer: support i.MX6DQPlus Peng Fan
2016-05-23 10:36 ` [U-Boot] [PATCH V2 11/15] mtd: nand: mxs: use simpler runtime cpu dection macros Peng Fan
2016-05-23 10:36 ` [U-Boot] [PATCH V2 12/15] ocotp: mxc: " Peng Fan
2016-05-23 10:36 ` [U-Boot] [PATCH V2 13/15] net: fec_mxc: " Peng Fan
2016-05-24 15:15 ` Joe Hershberger
2016-05-23 10:36 ` [U-Boot] [PATCH V2 14/15] block: dwc_ahsata: support i.MX6DQPlus Peng Fan
2016-05-23 10:36 ` [U-Boot] [PATCH V2 15/15] board: mx6sabresd/auto: use simpler runtime cpu dection macros Peng Fan
2016-05-23 16:19 ` [U-Boot] [PATCH V2 01/15] imx-common: introduce simpler macros for runtime dection Stefano Babic
2016-05-24 13:04 ` Stefano Babic
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1463999766-16786-4-git-send-email-van.freenix@gmail.com \
--to=van.freenix@gmail.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox