]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - arch/arm/cpu/arm926ejs/lpc32xx/devices.c
lpc32xx: add GPIO support
[karo-tx-uboot.git] / arch / arm / cpu / arm926ejs / lpc32xx / devices.c
index 81b53eaa6ded9787002660adcdece01aecedb8e6..a407098edac01a5c042e3589f857219c345cf696 100644 (file)
@@ -9,6 +9,7 @@
 #include <asm/arch/clk.h>
 #include <asm/arch/uart.h>
 #include <asm/io.h>
+#include <dm.h>
 
 static struct clk_pm_regs    *clk  = (struct clk_pm_regs *)CLK_PM_BASE;
 static struct uart_ctrl_regs *ctrl = (struct uart_ctrl_regs *)UART_CTRL_BASE;
@@ -61,3 +62,7 @@ void lpc32xx_i2c_init(unsigned int devnum)
                ctrl |= CLK_I2C2_ENABLE;
        writel(ctrl, &clk->i2cclk_ctrl);
 }
+
+U_BOOT_DEVICE(lpc32xx_gpios) = {
+       .name = "gpio_lpc32xx"
+};