Re: [PATCH v8 04/11] OMAP7xx: GPIO: Introduce support for GPIO init

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Nov 25, 2010 at 4:48 AM, Varadarajan, Charulatha <charu@xxxxxx> wrote:
> Add support for handling OMAP7xx specific gpio_init by
> providing platform device data and doing device registration.
>
> Signed-off-by: Charulatha V <charu@xxxxxx>
> ---
> Âarch/arm/mach-omap1/gpio7xx.c | Â261 +++++++++++++++++++++++++++++++++++++++++
> Â1 files changed, 261 insertions(+), 0 deletions(-)
> Âcreate mode 100644 arch/arm/mach-omap1/gpio7xx.c
>
> diff --git a/arch/arm/mach-omap1/gpio7xx.c b/arch/arm/mach-omap1/gpio7xx.c
> new file mode 100644
> index 0000000..94bccd4
> --- /dev/null
> +++ b/arch/arm/mach-omap1/gpio7xx.c
> @@ -0,0 +1,261 @@
> +/*
> + * OMAP7xx specific gpio init
> + *
> + * Copyright (C) 2010 Texas Instruments Incorporated - http://www.ti.com/
> + *
> + * Author:
> + * Â Â Charulatha V <charu@xxxxxx>
> + *
> + * This program is free software; you can redistribute it and/or
> + * modify it under the terms of the GNU General Public License as
> + * published by the Free Software Foundation version 2.
> + *
> + * This program is distributed "as is" WITHOUT ANY WARRANTY of any
> + * kind, whether express or implied; without even the implied warranty
> + * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ÂSee the
> + * GNU General Public License for more details.
> + */
> +
> +#include <linux/gpio.h>
> +
> +#define OMAP7XX_GPIO1_BASE Â Â Â Â Â Â 0xfffbc000
> +#define OMAP7XX_GPIO2_BASE Â Â Â Â Â Â 0xfffbc800
> +#define OMAP7XX_GPIO3_BASE Â Â Â Â Â Â 0xfffbd000
> +#define OMAP7XX_GPIO4_BASE Â Â Â Â Â Â 0xfffbd800
> +#define OMAP7XX_GPIO5_BASE Â Â Â Â Â Â 0xfffbe000
> +#define OMAP7XX_GPIO6_BASE Â Â Â Â Â Â 0xfffbe800
> +#define OMAP1_MPUIO_VBASE Â Â Â Â Â Â ÂOMAP1_MPUIO_BASE
> +
> +/* mpu gpio */
> +static struct __initdata resource omap7xx_mpu_gpio_resources[] = {
> + Â Â Â {
> + Â Â Â Â Â Â Â .start Â= OMAP1_MPUIO_VBASE,
> +        .end  Â= OMAP1_MPUIO_VBASE + SZ_2K - 1,
> + Â Â Â Â Â Â Â .flags Â= IORESOURCE_MEM,
> + Â Â Â },
> + Â Â Â {
> + Â Â Â Â Â Â Â .start Â= INT_7XX_MPUIO,
> + Â Â Â Â Â Â Â .flags Â= IORESOURCE_IRQ,
> + Â Â Â },
> +};
> +
> +static struct __initdata omap_gpio_platform_data omap7xx_mpu_gpio_config = {
> +    .virtual_irq_start   Â= IH_MPUIO_BASE,
> +    .bank_type       Â= METHOD_MPUIO,
> +    .bank_width       = 32,

I think we need

    .dbck_flag = false,

here -- we don't have a dbclk on omap7xx.  Without this, we get:

    omap_gpio omap_gpio.5: Could not get gpio dbck
    omap_gpio omap_gpio.6: Could not get gpio dbck

This needs to be added to the other 5 GPIO blocks in this file as well.

- Cory
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux