mirror of
https://github.com/adulau/aha.git
synced 2025-01-04 23:23:18 +00:00
ARM: OMAP: Fix compile for beagle
Move twl4030 gpio init code to where it should be. Also include twl4030.h. Signed-off-by: Tony Lindgren <tony@atomide.com>
This commit is contained in:
parent
73069e388d
commit
145d9c94b9
1 changed files with 5 additions and 4 deletions
|
@ -28,6 +28,8 @@
|
||||||
#include <linux/mtd/partitions.h>
|
#include <linux/mtd/partitions.h>
|
||||||
#include <linux/mtd/nand.h>
|
#include <linux/mtd/nand.h>
|
||||||
|
|
||||||
|
#include <linux/i2c/twl4030.h>
|
||||||
|
|
||||||
#include <mach/hardware.h>
|
#include <mach/hardware.h>
|
||||||
#include <asm/mach-types.h>
|
#include <asm/mach-types.h>
|
||||||
#include <asm/mach/arch.h>
|
#include <asm/mach/arch.h>
|
||||||
|
@ -120,6 +122,9 @@ static int beagle_twl_gpio_setup(struct device *dev,
|
||||||
unsigned gpio, unsigned ngpio)
|
unsigned gpio, unsigned ngpio)
|
||||||
{
|
{
|
||||||
/* gpio + 0 is "mmc0_cd" (input/IRQ) */
|
/* gpio + 0 is "mmc0_cd" (input/IRQ) */
|
||||||
|
omap_cfg_reg(AH8_34XX_GPIO29);
|
||||||
|
mmc[0].gpio_cd = gpio + 0;
|
||||||
|
twl4030_mmc_init(mmc);
|
||||||
|
|
||||||
/* REVISIT: need ehci-omap hooks for external VBUS
|
/* REVISIT: need ehci-omap hooks for external VBUS
|
||||||
* power switch and overcurrent detect
|
* power switch and overcurrent detect
|
||||||
|
@ -304,10 +309,6 @@ static void __init omap3_beagle_init(void)
|
||||||
omap_board_config_size = ARRAY_SIZE(omap3_beagle_config);
|
omap_board_config_size = ARRAY_SIZE(omap3_beagle_config);
|
||||||
omap_serial_init();
|
omap_serial_init();
|
||||||
|
|
||||||
omap_cfg_reg(AH8_34XX_GPIO29);
|
|
||||||
mmc[0].gpio_cd = gpio + 0;
|
|
||||||
twl4030_mmc_init(mmc);
|
|
||||||
|
|
||||||
omap_cfg_reg(J25_34XX_GPIO170);
|
omap_cfg_reg(J25_34XX_GPIO170);
|
||||||
gpio_request(170, "DVI_nPD");
|
gpio_request(170, "DVI_nPD");
|
||||||
/* REVISIT leave DVI powered down until it's needed ... */
|
/* REVISIT leave DVI powered down until it's needed ... */
|
||||||
|
|
Loading…
Reference in a new issue