]> git.dujemihanovic.xyz Git - u-boot.git/commit
arm: exynos: odroid: Fix build if BOARD_TYPES are not set
authorKrzysztof Kozlowski <krzk@kernel.org>
Wed, 6 Mar 2019 09:23:09 +0000 (10:23 +0100)
committerMinkyu Kang <mk7.kang@samsung.com>
Mon, 11 Mar 2019 06:53:50 +0000 (15:53 +0900)
commit5d331905273dbdbf31bbbcd7d399404c1c3c9396
tree6b462cb53a4d4185c69095d60364712ffd29705a
parentbe26c4af3abcfa39780892746865b899c269dcfa
arm: exynos: odroid: Fix build if BOARD_TYPES are not set

CONFIG_BOARD_TYPES is necessary for Odroid X/X2/U3 boards to detect
proper revision.  However building should succeed even without it.
While moving code around, document also the reference clock selection.

This fixes the build error without CONFIG_BOARD_TYPES:

    board/samsung/odroid/odroid.c: In function 'board_usb_init':
    board/samsung/odroid/odroid.c:473:8: error: 'gd_t' {aka 'volatile struct global_data'} has no member named 'board_type'
      if (gd->board_type == ODROID_TYPE_U3)
            ^~

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
board/samsung/odroid/odroid.c