Skip to contentSkip to conversation

omap3: pm: Use generic TRITON power scripts for 3430SDP board

PATCH New Lesly A M 1 participant 1 message Jul 1, 2010

Subsystems (3)
lore
Share & tools
lore

Lesly A M

author
#0 lore raw

PATCH v7 7/8 omap3: pm: Use generic TRITON power scripts for 3430SDP board

This patch has the changes to remove the sleep/wakeup/warm_rest sequence & resource configuration from the 3430SDP board file and use the generic script.

Updating the sleep/wakeup/warm_rest sequence & resource configuration in the board file from generic script file.

Cc Nishanth Menon <[email protected]>
Cc David Derrick <[email protected]>
Cc Samuel Ortiz <[email protected]>
---
 arch/arm/mach-omap2/Makefile        |    3 +-
 arch/arm/mach-omap2/board-3430sdp.c |   92 +---------------------------------
 include/linux/i2c/twl.h             |    4 ++
 3 files changed, 9 insertions(+), 90 deletions(-)
arch/arm/mach-omap2/Makefile +2 -1
index 184badd..f60dca3 100644
@@ -127,7 +127,8 @@ obj-$(CONFIG_MACH_OMAP3_PANDORA)	+= board-omap3pandora.o \
 					   hsmmc.o
 obj-$(CONFIG_MACH_OMAP_3430SDP)		+= board-3430sdp.o \
 					   hsmmc.o \
-					   board-sdp-flash.o
+					   board-sdp-flash.o \
+					   twl4030.o
 obj-$(CONFIG_MACH_NOKIA_N8X0)		+= board-n8x0.o
 obj-$(CONFIG_MACH_NOKIA_RX51)		+= board-rx51.o \
 					   board-rx51-sdram.o \
arch/arm/mach-omap2/board-3430sdp.c +3 -89

110 lines not on this page · raw message

include/linux/i2c/twl.h +4 -0
index fb6784e..2e00e83 100644
@@ -371,6 +371,7 @@ int twl6030_interrupt_mask(u8 bit_mask, u8 offset);
 #define DEV_GRP_P1		0x1	/* P1: all OMAP devices */
 #define DEV_GRP_P2		0x2	/* P2: all Modem devices */
 #define DEV_GRP_P3		0x4	/* P3: all peripheral devices */
+#define DEV_GRP_ALL		0x7	/* P1/P2/P3: all devices */
 
 /* Resource groups */
 #define RES_GRP_RES		0x0	/* Reserved */
@@ -383,7 +384,10 @@ int twl6030_interrupt_mask(u8 bit_mask, u8 offset);
 #define RES_GRP_ALL		0x7	/* All resource groups */
 
 #define RES_TYPE2_R0		0x0
+#define RES_TYPE2_R1		0x1
+#define RES_TYPE2_R2		0x2
 
+#define RES_TYPE_R0		0x0
 #define RES_TYPE_ALL		0x7
 
 /* Resource states */
Signature · 1 line
1.7.0.4