Commit 3d132266 authored by David Brownell's avatar David Brownell Committed by Tony Lindgren

twl4030: new-style driver conversion

More updates preparing for upstream merge of twl4030 driver:

 Basic fixes
   -	twl4030-core becomes a new-style I2C driver
   -	declare and use platform_data structure for that core
   -	stop hard-wiring the irq numbers
   -	check functionality that's really used:  I2C, not SMBus
 Cleanup:
   -	remove needless "client string"
   -	remove some fake "bool" types
   -	include catalog part numbers (TPS659{5,3,2}0)
   -	diagnostics should identify the driver!

To use this, all boards with these chips will need to declare this chip
when they declare their active I2C busses (done in a separate patch).

NOTE:  the TWL4030_IRQ_* symbols still need to vanish, along with other
global resource assignments associated with these chips.
Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent ec70ed35
This diff is collapsed.
......@@ -52,6 +52,17 @@
#define TWL4030_MODULE_RTC 0x14
#define TWL4030_MODULE_SECURED_REG 0x15
struct twl4030_platform_data {
unsigned irq_base, irq_end;
/* REVISIT more to come ... _nothing_ should be hard-wired */
};
/*
* FIXME completely stop using TWL4030_IRQ_BASE ... instead, pass the
* IRQ data to subsidiary devices using platform device resources.
*/
/* IRQ information-need base */
#include <mach/irqs.h>
/* TWL4030 interrupts */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment