]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
tegra: Convert tegra GPIO driver to use driver model
authorSimon Glass <sjg@chromium.org>
Wed, 3 Sep 2014 23:37:03 +0000 (17:37 -0600)
committerSimon Glass <sjg@chromium.org>
Wed, 10 Sep 2014 18:59:59 +0000 (12:59 -0600)
commit2fccd2d96badcdf6165658a99771a4c475586279
treeec6bc920aa2e263ab3880c54a41aee62aec065c1
parenta47411110ce982a9c66ef039622f2e32cf9fab5f
tegra: Convert tegra GPIO driver to use driver model

This is an implementation of GPIOs for Tegra that uses driver model. It has
been tested on trimslice and also using the new iotrace feature.

The implementation uses a top-level GPIO device (which has no actual GPIOS).
Under this all the banks are created as separate GPIO devices.

The GPIOs are named as per the Tegra datasheet/header files: A0..A7, B0..B7,
..., Z0..Z7, AA0..AA7, etc.

Since driver model is not yet available before relocation, or in SPL, a
special function is provided for seaboard's SPL code.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/arm/include/asm/arch-tegra/gpio.h
board/nvidia/seaboard/seaboard.c
drivers/gpio/tegra_gpio.c
include/configs/tegra-common.h