u-boot add gpio support and enable ddr_vtt
authorSteve Kipisz <s-kipisz2@ti.com>
Fri, 22 Jun 2012 11:23:57 +0000 (06:23 -0500)
committerTom Rini <trini@ti.com>
Mon, 25 Jun 2012 18:27:33 +0000 (11:27 -0700)
commit72c04fc3e8252a85514ede5e92d00a57968a007c
tree1671a846b317be15ffce8bdbf49b923140fc6b8a
parent058bda4a598cf813a591d80cd560bcd5c5678c21
u-boot add gpio support and enable ddr_vtt

Add gpio support in order to use gpio_request, gpio_direction_output.
These were the only two routines used and tested. Full support should
work for the rest of the routines. The code was derived from Steve
Sakoman's patch here http://patchwork.ozlabs.org/patch/162818/

Set pin mux so that the pin gpio0_7 is a gpio.

Use the gpio routines so to set gpio0_7 high to enable ddr_vtt.

Signed-off-by: Steve Kipisz <s-kipisz2@ti.com>
arch/arm/cpu/armv7/omap-common/Makefile
arch/arm/include/asm/arch-ti81xx/cpu.h
arch/arm/include/asm/arch-ti81xx/gpio.h [new file with mode: 0644]
board/ti/am335x/common_def.h
board/ti/am335x/evm.c
board/ti/am335x/mux.c