]> git.sur5r.net Git - u-boot/commitdiff
board: mx6sabresd/auto: use simpler runtime cpu dection macros
authorPeng Fan <van.freenix@gmail.com>
Mon, 23 May 2016 10:36:06 +0000 (18:36 +0800)
committerStefano Babic <sbabic@denx.de>
Tue, 24 May 2016 12:59:57 +0000 (14:59 +0200)
Use simpler runtime cpu dection macros.

Signed-off-by: Peng Fan <van.freenix@gmail.com>
Cc: Fabio Estevam <fabio.estevam@nxp.com>
Cc: Stefano Babic <sbabic@denx.de>
board/freescale/mx6qsabreauto/mx6qsabreauto.c
board/freescale/mx6sabresd/mx6sabresd.c

index c2e9c5739bf1629994ef4831754c8b64fdc6b461..0712f08c5656710fa4f7388eaaa58a81de3e5e13 100644 (file)
@@ -625,9 +625,9 @@ int board_late_init(void)
 
        if (is_mx6dqp())
                setenv("board_rev", "MX6QP");
-       else if (is_cpu_type(MXC_CPU_MX6Q) || is_cpu_type(MXC_CPU_MX6D))
+       else if (is_mx6dq())
                setenv("board_rev", "MX6Q");
-       else if (is_cpu_type(MXC_CPU_MX6DL) || is_cpu_type(MXC_CPU_MX6SOLO))
+       else if (is_mx6sdl())
                setenv("board_rev", "MX6DL");
 #endif
 
index 2319354fa33850b49f1f54239e85941023f1e788..54ba36b535910fdc3a9d446658182d0d10ecc041 100644 (file)
@@ -649,9 +649,9 @@ int board_late_init(void)
 
        if (is_mx6dqp())
                setenv("board_rev", "MX6QP");
-       else if (is_cpu_type(MXC_CPU_MX6Q) || is_cpu_type(MXC_CPU_MX6D))
+       else if (is_mx6dq())
                setenv("board_rev", "MX6Q");
-       else if (is_cpu_type(MXC_CPU_MX6DL) || is_cpu_type(MXC_CPU_MX6SOLO))
+       else if (is_mx6sdl())
                setenv("board_rev", "MX6DL");
 #endif