]> git.ipfire.org Git - people/ms/u-boot.git/commit
ARM: ti816x: Fix enabling GPIO0, enable GPIO1 as well
authorTom Rini <trini@konsulko.com>
Fri, 7 Jul 2017 19:21:45 +0000 (15:21 -0400)
committerTom Rini <trini@konsulko.com>
Wed, 12 Jul 2017 02:41:56 +0000 (22:41 -0400)
commitab86dc7948778cb087fa8cf9949bd53441097cf8
treeef51edf5fa28d8cdeaa1a4f1e560b9047d98a094
parent39b4f6bce332dc1ebd9c2b94910a1d58e1628f13
ARM: ti816x: Fix enabling GPIO0, enable GPIO1 as well

The TI816x has 2 GPIO banks.  For bank 0 we had been clearing the enable
bit when setting BIT(8).  Correct this by setting it to BIT(1) | BIT(8)
after we set and wait for BIT(1) (aka PRCM_MOD_EN).  Enable GPIO1 as
well so that when CMD_GPIO is enabled it won't crash probing the second
bank.  Enable CMD_GPIO on ti816x_evm.

Signed-off-by: Tom Rini <trini@konsulko.com>
arch/arm/mach-omap2/am33xx/clock_ti816x.c
configs/ti816x_evm_defconfig