aboutsummaryrefslogtreecommitdiff
path: root/drivers/block
diff options
context:
space:
mode:
authorPeng Fan <van.freenix@gmail.com>2016-05-23 18:36:05 +0800
committerStefano Babic <sbabic@denx.de>2016-05-24 14:59:57 +0200
commit3fd9eb66896768aaa73c26bc5686abac7e058652 (patch)
tree236d6bfafc4bf432cd32950db006089612f7a69e /drivers/block
parent87f9989502763f36b1df94c909cbf05f65633fc4 (diff)
downloadu-boot-3fd9eb66896768aaa73c26bc5686abac7e058652.zip
u-boot-3fd9eb66896768aaa73c26bc5686abac7e058652.tar.gz
u-boot-3fd9eb66896768aaa73c26bc5686abac7e058652.tar.bz2
block: dwc_ahsata: support i.MX6DQPlus
i.MX6DQPlus support sata interface, so not return failure when CPU is i.MX6DQPlus. In this patch, also use simpler runtime cpu dections macros to replace is_cpu_type. Signed-off-by: Peng Fan <van.freenix@gmail.com> Cc: Stefano Babic <sbabic@denx.de> Cc: Simon Glass <sjg@chromium.org> Cc: Tang Yuantian <Yuantian.Tang@freescale.com> Cc: Shaohui Xie <Shaohui.Xie@freescale.com> Cc: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'drivers/block')
-rw-r--r--drivers/block/dwc_ahsata.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/dwc_ahsata.c b/drivers/block/dwc_ahsata.c
index 6ec52a9..6056fe5 100644
--- a/drivers/block/dwc_ahsata.c
+++ b/drivers/block/dwc_ahsata.c
@@ -563,7 +563,7 @@ int init_sata(int dev)
struct ahci_probe_ent *probe_ent = NULL;
#if defined(CONFIG_MX6)
- if (!is_cpu_type(MXC_CPU_MX6Q) && !is_cpu_type(MXC_CPU_MX6D))
+ if (!is_mx6dq() && !is_mx6dqp())
return 1;
#endif
if (dev < 0 || dev > (CONFIG_SYS_SATA_MAX_DEVICE - 1)) {