coreboot-kgpe-d16/src/soc
Aaron Durbin 2f3a7fb45d tegra: correct gpio_index_to_port() calculation
The gpio_index_to_port() incorrectly was dividing by
GPIO_PORTS_PER_BANK on a value including the bit number. After
masking off the BANK offset just divide by the number of gpios
in a port to get the port offset.

BUG=chrome-os-partner:29981
BRANCH=None
TEST=Built and ran through to depthcharge. Printed bank, port, and
     bit numbers for validation.

Change-Id: I3fbbb90f369bace90e787148a58795b7b1b40c1b
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Original-Commit-Id: 97e1f830b4a8e948673433bfa6d81586204b6ee2
Original-Change-Id: I8bb50e922c9fd7c0a1c247ba95394f6deb9f1533
Original-Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Original-Reviewed-on: https://chromium-review.googlesource.com/210909
Original-Reviewed-by: Furquan Shaikh <furquan@chromium.org>
Reviewed-on: http://review.coreboot.org/8908
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
2015-03-25 22:31:52 +01:00
..
imgtec mips: fix bootblock stack definitions 2015-03-23 15:34:36 +01:00
intel bootstate: use structure pointers for scheduling callbacks 2015-03-18 16:41:43 +01:00
nvidia tegra: correct gpio_index_to_port() calculation 2015-03-25 22:31:52 +01:00
qualcomm ipq806x: implement GPIO API 2015-03-23 17:20:07 +01:00
rockchip rk3288: sync i2c driver with depthcharge 2015-03-24 15:27:29 +01:00
samsung exynos: convert to stopwatch API 2015-03-21 17:01:04 +01:00
ucb CBMEM: Always use DYNAMIC_CBMEM 2015-01-27 22:54:32 +01:00
Kconfig imgtec/danube: Add support for ImgTec Danube SoC 2015-03-21 16:57:08 +01:00
Makefile.inc imgtec/danube: Add support for ImgTec Danube SoC 2015-03-21 16:57:08 +01:00