]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: am335x: add Kconfig range attribute to prevent invalid CONS_INDEX
authorMasahiro Yamada <yamada.m@jp.panasonic.com>
Sun, 31 Aug 2014 16:05:32 +0000 (01:05 +0900)
committerTom Rini <trini@ti.com>
Thu, 4 Sep 2014 17:06:00 +0000 (13:06 -0400)
The help message in board/ti/am335x/Kconfig says AM335x has
6 UARTs, so the valid number for CONFIG_CONS_INDEX is from 1 to 6.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Cc: Tom Rini <trini@ti.com>
board/ti/am335x/Kconfig

index 0e5149c69c63ef0c36712d7a384423505d4b80a2..80701f5b989e1568cb665425be280f2fdea33ff4 100644 (file)
@@ -22,6 +22,7 @@ config SYS_CONFIG_NAME
 
 config CONS_INDEX
        int "UART used for console"
+       range 1 6
        default 1
        help
          The AM335x SoC has a total of 6 UARTs (UART0 to UART5 as referenced