Sudhakar Rajashekhara <[EMAIL PROTECTED]> writes:
> Description:
> Modifies the enumerations assigned for dm644x gpio expander and also adds the
> enumerations for dm6467.
> Signed-off-by: Sudhakar Rajashekhara <[EMAIL PROTECTED]>
> ---
> include/asm-arm/arch-davinci/i2c-client.h | 15 ++++++++++++---
> 1 files changed, 12 insertions(+), 3 deletions(-)
>
> diff --git a/include/asm-arm/arch-davinci/i2c-client.h
> b/include/asm-arm/arch-davinci/i2c-client.h
> index 3619546..4c68710 100644
> --- a/include/asm-arm/arch-davinci/i2c-client.h
> +++ b/include/asm-arm/arch-davinci/i2c-client.h
> @@ -24,9 +24,18 @@ typedef enum {
> VDDIMX_EN = 1,
> VLYNQ_ON = 2,
> CF_RESET = 3,
> - WLAN_RESET = 4,
> - ATA_SEL = 5,
> - CF_SEL = 6
> + WLAN_RESET = 5,
> + ATA_SEL = 6,
> + CF_SEL = 7,
> + /* DM646X expanders */
> + ATA_SEL_DM646X = 0,
> + ATA_PWD_DM646X = 1,
> + VSCALE_ON_DM646X = 2,
> + VLYNQ_RESET_DM646X = 3,
> + CIR_DEMOD_DM646X = 4,
> + CIR_MOD_DM646X = 5,
> + I2C_INT_DM646X = 6,
> + USB_FB_DM646X = 7
> } u35_expander_ops;
>
> int davinci_i2c_expander_op (u16 client_addr, u35_expander_ops pin, u8 val);
> --
> 1.5.4.1
Actually, I'm not taking enhancements to either
drivers/i2c/chips/gpio_expander_davinci.c or
arch/arm/mach-davinci/i2c-client.c since they are both going to
disappear in favor of using the support for the PCF chips already in
the kernel.
David Brownell has started this improvement in board-evm.c for the
expander used for LEDs. This needs to be finished for 6446, but
should be used as the model for the new platforms.
Kevin
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source