diff options
author | Lin Fuzhen <fuzhen.lin@freescale.com> | 2013-01-28 17:46:07 +0800 |
---|---|---|
committer | Lin Fuzhen <fuzhen.lin@freescale.com> | 2013-01-28 20:35:56 +0800 |
commit | 69867900d85e71737f6760c57c86d911625cd61c (patch) | |
tree | 4dc17d378b9bec158d6811ab880079a48abea42f /board/freescale/mx6q_hdmidongle/mx6q_hdmidongle.c | |
parent | d33eefe083563a082840a46ec9cac21f98fad550 (diff) | |
download | u-boot-imx-69867900d85e71737f6760c57c86d911625cd61c.zip u-boot-imx-69867900d85e71737f6760c57c86d911625cd61c.tar.gz u-boot-imx-69867900d85e71737f6760c57c86d911625cd61c.tar.bz2 |
ENGR00242042 MX6DQ/DL: fix boot fail issue on mx6dl boardsjb4.2.1_1.0.0-alpha
MX6DQ and MX6DL share the common board file, but only MX6DQ has built-in
SATA, for the SATA PDDQ should be enabled default, so it needs to add
code to distinguish different chip ID.
Signed-off-by: Lin Fuzhen <fuzhen.lin@freescale.com>
Diffstat (limited to 'board/freescale/mx6q_hdmidongle/mx6q_hdmidongle.c')
-rw-r--r-- | board/freescale/mx6q_hdmidongle/mx6q_hdmidongle.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/board/freescale/mx6q_hdmidongle/mx6q_hdmidongle.c b/board/freescale/mx6q_hdmidongle/mx6q_hdmidongle.c index 34edc04..c8834f6 100644 --- a/board/freescale/mx6q_hdmidongle/mx6q_hdmidongle.c +++ b/board/freescale/mx6q_hdmidongle/mx6q_hdmidongle.c @@ -1203,7 +1203,8 @@ int board_init(void) gd->bd->bi_boot_params = PHYS_SDRAM_1 + 0x100; setup_uart(); - setup_sata(); + if (cpu_is_mx6q()) + setup_sata(); #ifdef CONFIG_VIDEO_MX5 /* Enable lvds power */ @@ -1434,7 +1435,9 @@ int checkboard(void) printf("UNKNOWN\n"); break; } - printf("SATA PDDQ: %s\n", ((readl(SATA_ARB_BASE_ADDR + PORT_PHY_CTL) + if (cpu_is_mx6q()) + printf("SATA PDDQ: %s\n", ((readl(SATA_ARB_BASE_ADDR + + PORT_PHY_CTL) & PORT_PHY_CTL_PDDQ_LOC)>>20) ? "enabled" : "disabled"); return 0; } |