From: Masahiro Yamada Date: Sun, 31 Aug 2014 16:05:32 +0000 (+0900) Subject: arm: am335x: add Kconfig range attribute to prevent invalid CONS_INDEX X-Git-Tag: v2014.10-rc3~116^2~17 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=48ee8d3bb072a4ecf32cef2257e0e35dcf8610f1;p=u-boot arm: am335x: add Kconfig range attribute to prevent invalid CONS_INDEX 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 Cc: Tom Rini --- diff --git a/board/ti/am335x/Kconfig b/board/ti/am335x/Kconfig index 0e5149c69c..80701f5b98 100644 --- a/board/ti/am335x/Kconfig +++ b/board/ti/am335x/Kconfig @@ -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