artik533: configs: support compy board
authorJaewon Kim <jaewon02.kim@samsung.com>
Tue, 31 Oct 2017 08:46:42 +0000 (17:46 +0900)
committerJaewon Kim <jaewon02.kim@samsung.com>
Fri, 17 Nov 2017 06:15:36 +0000 (15:15 +0900)
This patch checks the board_type and loads the device-tree
for the compy board.
The compy board uses the same bootloader and kernel,
and the device-tree is separate.

Change-Id: I0b3c6026f571547c741dd6218400d117737d2338
Signed-off-by: Jaewon Kim <jaewon02.kim@samsung.com>
include/configs/artik533_raptor.h

index dabc494a619c24c364832f1c7f140ab807c5c30d..bfe5d8aa9964914c2d11880f685593dab0886717 100644 (file)
 #define CONFIG_FACTORY_INFO_SIZE               0x100
 
 #define CONFIG_CHECK_BOARD_TYPE
+#define CONFIG_SUPPORT_COMPY_BOARD
 /* OTA */
 #if defined(CONFIG_ARTIK_OTA)
 #define CONFIG_FLAG_INFO_ADDR  0x9A000000
                "setexpr sdrecaddr $sdram_base + $sd_offset\0"  \
        "initrd_high=0xFFFFFFFF\0"      \
        "load_fdt="                                                     \
+               "if test $board_type = compy; then "                    \
+                       "ext4load mmc $rootdev:$bootpart $fdtaddr s5p4418-artik${model_id}-compy.dtb; " \
+               "else "                                                 \
                "if test -z \"$fdtfile\"; then "                        \
                "loop=$board_rev; "                                     \
                "number=$board_rev: "                                   \
                        "ext4load mmc $rootdev:$bootpart $fdtaddr s5p4418-artik${model_id}-raptor-rev${number}.dtb; "   \
                "fi; "                                                  \
                "else ext4load mmc $rootdev:$bootpart $fdtaddr $fdtfile; " \
-               "fi; setenv success; setenv number; setenv loop;\0"     \
+               "fi; setenv success; setenv number; setenv loop;"       \
+               "fi;\0"                                                 \
        "bootdelay=" __stringify(CONFIG_BOOTDELAY) "\0"                 \
        "console=" CONFIG_DEFAULT_CONSOLE                               \
        "consoleon=setenv console=" CONFIG_DEFAULT_CONSOLE              \
        "rescue=0\0"                                                    \
        "root_rw=rw\0"                                                  \
        "model_id=533\0"                                                \
+       "board_type=raptor\0"                                           \
        "nr_cpus=4\0"                                                   \
        "opts=loglevel=4\0"                                             \
        "rootfs_type=ext4\0"                                            \