[U-Boot] [PATCH] arm: am335x: add Kconfig range attribute to prevent invalid CONS_INDEX
Tom Rini
trini at ti.com
Sun Aug 31 18:40:49 CEST 2014
On Mon, Sep 01, 2014 at 01:05:32AM +0900, Masahiro Yamada wrote:
> 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 at jp.panasonic.com>
> Cc: Tom Rini <trini at ti.com>
> ---
>
> BTW, why does CONFIG_CONS_INDEX start from 1, not 0.
>
> CONFIG_CONS_INDEX=1 correponds to UART0 ?
CONFIG_CONS_INDEX is 1-based, AM33xx TRM has UARTs 0-based, so yes, we
map things as you're thinking.
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140831/812539ef/attachment.pgp>
More information about the U-Boot
mailing list