]> code.ossystems Code Review - bsp/u-boot.git/commitdiff
wandboard: Remove cpu type check prior to setup_sata()
authorFabio Estevam <fabio.estevam@nxp.com>
Sun, 15 Oct 2017 13:21:06 +0000 (11:21 -0200)
committerOtavio Salvador <otavio@ossystems.com.br>
Mon, 16 Oct 2017 12:04:12 +0000 (10:04 -0200)
Inside setup_sata() there is a cpu type check, so there is no need to
do this check in the board file.

This also brings the benefit to allowing setup_sata() to be called for the
mx6qp wandboard variant.

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
board/wandboard/wandboard.c

index 051560fb016e5267841bd9b4e68dd6230758109a..1e7c11e670f95e7c913a02ea4dbe593b3adf46b7 100644 (file)
@@ -435,9 +435,7 @@ int board_early_init_f(void)
 {
        setup_iomux_uart();
 #ifdef CONFIG_SATA
-       /* Only mx6q wandboard has SATA */
-       if (is_cpu_type(MXC_CPU_MX6Q))
-               setup_sata();
+       setup_sata();
 #endif
 
        return 0;