[oe-commits] org.oe.dev linux-ezx: use linux.inc to avoid duplication, update patches, add asoc patch

koen commit openembedded-commits at lists.openembedded.org
Fri Sep 7 08:31:16 UTC 2007


linux-ezx: use linux.inc to avoid duplication, update patches, add asoc patch

Author: koen at openembedded.org
Branch: org.openembedded.dev
Revision: 73cd766816e9208e9486f1d0730123cf56b98a13
ViewMTN: http://monotone.openembedded.org/revision/info/73cd766816e9208e9486f1d0730123cf56b98a13
Files:
1
packages/linux/linux-ezx-2.6.21/patches/defconfig-a1200
packages/linux/linux-ezx-2.6.21/a1200/defconfig
packages/linux/linux-ezx-2.6.21/patches/defconfig-a780
packages/linux/linux-ezx-2.6.21/a780/defconfig
packages/linux/linux-ezx-2.6.21/patches/defconfig-e2
packages/linux/linux-ezx-2.6.21/e2/defconfig
packages/linux/linux-ezx-2.6.21/patches/defconfig-e6
packages/linux/linux-ezx-2.6.21/e6/defconfig
packages/linux/linux-ezx-2.6.21/patches/defconfig-e680
packages/linux/linux-ezx-2.6.21/e680/defconfig
packages/linux/linux-ezx-2.6.21/a1200
packages/linux/linux-ezx-2.6.21/a780
packages/linux/linux-ezx-2.6.21/e2
packages/linux/linux-ezx-2.6.21/e6
packages/linux/linux-ezx-2.6.21/e680
packages/linux/linux-ezx-2.6.21/rokre2
packages/linux/linux-ezx-2.6.21/patches/a1200-pcap.patch
packages/linux/linux-ezx-2.6.21/patches/a780-emu.patch
packages/linux/linux-ezx-2.6.21/patches/a780-pcap.patch
packages/linux/linux-ezx-2.6.21/patches/e680-emu.patch
packages/linux/linux-ezx-2.6.21/patches/e680-pcap.patch
packages/linux/linux-ezx-2.6.21/patches/ezx-asoc.patch
packages/linux/linux-ezx-2.6.21/patches/index.html
packages/linux/linux-ezx-2.6.21/patches/a1200-mci.patch
packages/linux/linux-ezx-2.6.21/patches/a1200-ts.patch
packages/linux/linux-ezx-2.6.21/patches/a780-flip.patch
packages/linux/linux-ezx-2.6.21/patches/a780-kbd.patch
packages/linux/linux-ezx-2.6.21/patches/a780-leds.patch
packages/linux/linux-ezx-2.6.21/patches/a780-mci.patch
packages/linux/linux-ezx-2.6.21/patches/a780-ts.patch
packages/linux/linux-ezx-2.6.21/patches/e680-kbd.patch
packages/linux/linux-ezx-2.6.21/patches/e680-leds.patch
packages/linux/linux-ezx-2.6.21/patches/e680-locksw.patch
packages/linux/linux-ezx-2.6.21/patches/e680-mci.patch
packages/linux/linux-ezx-2.6.21/patches/e680-ts.patch
packages/linux/linux-ezx-2.6.21/patches/ezx-backlight.patch
packages/linux/linux-ezx-2.6.21/patches/ezx-bp.patch
packages/linux/linux-ezx-2.6.21/patches/ezx-core.patch
packages/linux/linux-ezx-2.6.21/patches/ezx-emu.patch
packages/linux/linux-ezx-2.6.21/patches/ezx-pcap.patch
packages/linux/linux-ezx-2.6.21/patches/ezx-pm.patch
packages/linux/linux-ezx-2.6.21/patches/series
packages/linux/linux-ezx_2.6.21.bb
Diffs:

#
# mt diff -racbe1a36cee56b0216ebd19c5805a7447830b6e9 -r73cd766816e9208e9486f1d0730123cf56b98a13
#
# 
# 
# rename "packages/linux/linux-ezx-2.6.21/patches/defconfig-a1200"
#     to "packages/linux/linux-ezx-2.6.21/a1200/defconfig"
# 
# rename "packages/linux/linux-ezx-2.6.21/patches/defconfig-a780"
#     to "packages/linux/linux-ezx-2.6.21/a780/defconfig"
# 
# rename "packages/linux/linux-ezx-2.6.21/patches/defconfig-e2"
#     to "packages/linux/linux-ezx-2.6.21/e2/defconfig"
# 
# rename "packages/linux/linux-ezx-2.6.21/patches/defconfig-e6"
#     to "packages/linux/linux-ezx-2.6.21/e6/defconfig"
# 
# rename "packages/linux/linux-ezx-2.6.21/patches/defconfig-e680"
#     to "packages/linux/linux-ezx-2.6.21/e680/defconfig"
# 
# add_dir "packages/linux/linux-ezx-2.6.21/a1200"
# 
# add_dir "packages/linux/linux-ezx-2.6.21/a780"
# 
# add_dir "packages/linux/linux-ezx-2.6.21/e2"
# 
# add_dir "packages/linux/linux-ezx-2.6.21/e6"
# 
# add_dir "packages/linux/linux-ezx-2.6.21/e680"
# 
# add_dir "packages/linux/linux-ezx-2.6.21/rokre2"
# 
# add_file "packages/linux/linux-ezx-2.6.21/patches/a1200-pcap.patch"
#  content [0f90a1491db64b28b6ce108c9f9cee0b7e41bfbc]
# 
# add_file "packages/linux/linux-ezx-2.6.21/patches/a780-emu.patch"
#  content [602876405e12900a39f64a98f3d5d0dba635fded]
# 
# add_file "packages/linux/linux-ezx-2.6.21/patches/a780-pcap.patch"
#  content [0054a06370574888fba742e1dbd258f902880e59]
# 
# add_file "packages/linux/linux-ezx-2.6.21/patches/e680-emu.patch"
#  content [dc16d82460218bbf8e0653913ab8e7504c348920]
# 
# add_file "packages/linux/linux-ezx-2.6.21/patches/e680-pcap.patch"
#  content [9d1d899a5c8081eab292a354118938026e691577]
# 
# add_file "packages/linux/linux-ezx-2.6.21/patches/ezx-asoc.patch"
#  content [f6a1977a1ba4523b5c615222a4400044320bcefb]
# 
# add_file "packages/linux/linux-ezx-2.6.21/patches/index.html"
#  content [ee7841873ec6f4e23154b8d4ea96d9158dcfb788]
# 
# patch "packages/linux/linux-ezx-2.6.21/a780/defconfig"
#  from [534ed07d7adf5375435eb1f38731092fc0dbbdb1]
#    to [c9d05f481541b78a034e8da06a789406b69f5499]
# 
# patch "packages/linux/linux-ezx-2.6.21/patches/a1200-mci.patch"
#  from [6636c1cdc2eaaf0f6a0587d9c9965ff437e34fcf]
#    to [13a39e72f023eb78f0bac083c2620b4a5478c3d7]
# 
# patch "packages/linux/linux-ezx-2.6.21/patches/a1200-ts.patch"
#  from [1ca575b3c635943719aa22662953f9d030297fc3]
#    to [5201373a1d7ad5ee6136bc4cb3e73812be57cc07]
# 
# patch "packages/linux/linux-ezx-2.6.21/patches/a780-flip.patch"
#  from [69d4a3f5a75636cfdf89bd86e0db5cca103b51ae]
#    to [afbeec5b33c72c4b26287a2bd6a8225f05f1541a]
# 
# patch "packages/linux/linux-ezx-2.6.21/patches/a780-kbd.patch"
#  from [ff4a674ab00e773d72997022c5155d9e820de982]
#    to [dd29021aadd74127d9ff587efd2969a0ebfa9efc]
# 
# patch "packages/linux/linux-ezx-2.6.21/patches/a780-leds.patch"
#  from [31fed77fdd9a093bd42261f7abfd71bdaacbfa6d]
#    to [84ae3313be349468651a6400df771099808ad2e2]
# 
# patch "packages/linux/linux-ezx-2.6.21/patches/a780-mci.patch"
#  from [cfeaeff44c4a3f4ad3cb29aed3cdc8b1c638d7c6]
#    to [42af411c050dcb390441653044e6ace32293ef1d]
# 
# patch "packages/linux/linux-ezx-2.6.21/patches/a780-ts.patch"
#  from [893517c5ae33c6beebf296a6da1d5a2b8465b993]
#    to [dc8a4d515fdf17ea106e0617a01f1b1bc49fe563]
# 
# patch "packages/linux/linux-ezx-2.6.21/patches/e680-kbd.patch"
#  from [1745111b7d811226eb0a93b1aef9368f3f02e51e]
#    to [58e64fd44cb11e55e73fa11e1a3390b0146b6b4d]
# 
# patch "packages/linux/linux-ezx-2.6.21/patches/e680-leds.patch"
#  from [f7fa9260d0d60bb38b483f284f50a9f6ae952c95]
#    to [5b72f0d0db4b6593deb052f28e5eb976bfd9e38a]
# 
# patch "packages/linux/linux-ezx-2.6.21/patches/e680-locksw.patch"
#  from [e1b3994b1e867bde0f0d64de50ee790479b83709]
#    to [bc12298c37c1469c69c6a83808b64b3fa7789469]
# 
# patch "packages/linux/linux-ezx-2.6.21/patches/e680-mci.patch"
#  from [2350f8448c387384bd08c545a78cae3d06aa9e60]
#    to [45d9a695b9a4e437a2dff9e6cafdc32a830251a9]
# 
# patch "packages/linux/linux-ezx-2.6.21/patches/e680-ts.patch"
#  from [565ef830d2db32d41e2d912171e2a65bbd2e0a32]
#    to [cd605df8c010fcd3047b4d198dc45b78ed10a9d3]
# 
# patch "packages/linux/linux-ezx-2.6.21/patches/ezx-backlight.patch"
#  from [edfc8a976a822dddd374a110bccee12a8adb96e6]
#    to [6fc7a23e79391f911fb05169bcc8d54aeb9edd68]
# 
# patch "packages/linux/linux-ezx-2.6.21/patches/ezx-bp.patch"
#  from [53522f1b412b05343650906bc8cfabc5bd1d2ed2]
#    to [bb9396f5b9a6da4233d597edc460d6a2b8d120f1]
# 
# patch "packages/linux/linux-ezx-2.6.21/patches/ezx-core.patch"
#  from [ee30f011b499bd8ffbdc806a5c10f94e16fbecb6]
#    to [385081750e254e3e68c9e42d96e0ea03ec1ae356]
# 
# patch "packages/linux/linux-ezx-2.6.21/patches/ezx-emu.patch"
#  from [887d933992e0330caf83c0029193f4f872485f44]
#    to [817e09bc6527cbc50e80a463f1b3840c8dc92fc2]
# 
# patch "packages/linux/linux-ezx-2.6.21/patches/ezx-pcap.patch"
#  from [6433c49fd54adb440702b8cc915c49d4b2587ba5]
#    to [60cd6cf7d9fca46f08e481a418a3947bcf0463c0]
# 
# patch "packages/linux/linux-ezx-2.6.21/patches/ezx-pm.patch"
#  from [41ff699ee46266e1b2e0ce0e40c47bebe13e3b98]
#    to [7032ffa72e6985ba4f8a0127460bf0a44993a522]
# 
# patch "packages/linux/linux-ezx-2.6.21/patches/series"
#  from [647eebbb34b774e046c5055d25f95b6ab1e09859]
#    to [5d4e5f0306d194f5628bbf152d8ab695698e62d5]
# 
# patch "packages/linux/linux-ezx_2.6.21.bb"
#  from [e19ffdc863932f0ac59865e2041686c946dbd8de]
#    to [935dbd5faafe8b44a770899fe547001db05d19df]
# 
============================================================
--- packages/linux/linux-ezx-2.6.21/patches/a1200-pcap.patch	0f90a1491db64b28b6ce108c9f9cee0b7e41bfbc
+++ packages/linux/linux-ezx-2.6.21/patches/a1200-pcap.patch	0f90a1491db64b28b6ce108c9f9cee0b7e41bfbc
@@ -0,0 +1,53 @@
+Index: linux-2.6.21/arch/arm/mach-pxa/ezx-a1200.c
+===================================================================
+--- linux-2.6.21.orig/arch/arm/mach-pxa/ezx-a1200.c	2007-06-28 22:44:12.000000000 -0300
++++ linux-2.6.21/arch/arm/mach-pxa/ezx-a1200.c	2007-06-28 22:45:56.000000000 -0300
+@@ -19,6 +19,7 @@
+ #include <asm/arch/pxa-regs.h>
+ #include <asm/arch/pxafb.h>
+ #include <asm/arch/ezx.h>
++#include <asm/arch/ezx-pcap.h>
+ 
+ #include "generic.h"
+ 
+@@ -48,7 +49,40 @@
+        .pxafb_lcd_power = &ezx_lcd_power,
+ };
+ 
++/* PCAP */
++static int __init a1200_pcap_init(void)
++{
++	return 0;
++}
++
++static struct pcap_platform_data a1200_pcap_platform_data = {
++	.port		= 1,
++	.cs		= GPIO_SPI_CE,
++	.flags		= PCAP_CS_AH | PCAP_MCI_TF,
++	.clk		= 1,
++	.init		= a1200_pcap_init,
++};
++
++static struct resource a1200_pcap_resources[] = {
++	[0] = {
++		.start		= IRQ_GPIO1,
++		.end		= IRQ_GPIO1,
++		.flags		= IORESOURCE_IRQ,
++	},
++};
++
++struct platform_device a1200_pcap_device = {
++	.name		= "ezx-pcap",
++	.id		= -1,
++	.num_resources	= ARRAY_SIZE(a1200_pcap_resources),
++	.resource	= a1200_pcap_resources,
++	.dev		= {
++		.platform_data = &a1200_pcap_platform_data,
++	},
++};
++
+ static struct platform_device *devices[] __initdata = {
++	&a1200_pcap_device,
+ };
+ 
+ static void __init a1200_init(void)
============================================================
--- packages/linux/linux-ezx-2.6.21/patches/a780-emu.patch	602876405e12900a39f64a98f3d5d0dba635fded
+++ packages/linux/linux-ezx-2.6.21/patches/a780-emu.patch	602876405e12900a39f64a98f3d5d0dba635fded
@@ -0,0 +1,38 @@
+Index: linux-2.6.21/arch/arm/mach-pxa/ezx-a780.c
+===================================================================
+--- linux-2.6.21.orig/arch/arm/mach-pxa/ezx-a780.c	2007-08-01 19:46:15.000000000 -0300
++++ linux-2.6.21/arch/arm/mach-pxa/ezx-a780.c	2007-08-01 19:52:09.000000000 -0300
+@@ -219,8 +219,33 @@
+ 	},
+ };
+ 
++/* EMU */
++static struct resource a780_emu_resources[] = {
++	[0] = {
++		.start		= EZX_IRQ_USB4V,
++		.end		= EZX_IRQ_USB4V,
++		.flags		= IORESOURCE_IRQ,
++	},
++	[1] = {
++		.start		= EZX_IRQ_USB1V,
++		.end		= EZX_IRQ_USB1V,
++		.flags		= IORESOURCE_IRQ,
++	},
++};
++
++struct platform_device a780_emu_device = {
++	.name		= "ezx-emu",
++	.id		= -1,
++	.dev		= {
++		.parent		= &a780_pcap_device.dev,
++	},
++	.num_resources	= ARRAY_SIZE(a780_emu_resources),
++	.resource	= a780_emu_resources,
++};
++
+ static struct platform_device *devices[] __initdata = {
+ 	&a780_pcap_device,
++	&a780_emu_device,
+ };
+ 
+ static void __init a780_init(void)
============================================================
--- packages/linux/linux-ezx-2.6.21/patches/a780-pcap.patch	0054a06370574888fba742e1dbd258f902880e59
+++ packages/linux/linux-ezx-2.6.21/patches/a780-pcap.patch	0054a06370574888fba742e1dbd258f902880e59
@@ -0,0 +1,98 @@
+Index: linux-2.6.21/arch/arm/mach-pxa/ezx-a780.c
+===================================================================
+--- linux-2.6.21.orig/arch/arm/mach-pxa/ezx-a780.c	2007-06-28 22:44:12.000000000 -0300
++++ linux-2.6.21/arch/arm/mach-pxa/ezx-a780.c	2007-06-28 22:45:00.000000000 -0300
+@@ -20,6 +20,7 @@
+ #include <asm/arch/pxa-regs.h>
+ #include <asm/arch/pxafb.h>
+ #include <asm/arch/ezx.h>
++#include <asm/arch/ezx-pcap.h>
+ 
+ #include "generic.h"
+ 
+@@ -49,7 +50,85 @@
+ 	.pxafb_lcd_power = &ezx_lcd_power,
+ };
+ 
++/* PCAP */
++static int __init a780_pcap_init(void)
++{
++	/* initialize PCAP registers */
++	ezx_pcap_bit_set(SSP_PCAP_ADJ_BIT_AUD_RX_AMPS_A1CTRL, 1);
++//	ezx_pcap_vibrator_level(PCAP_VIBRATOR_VOLTAGE_LEVEL3);
++
++	/* set SW1 sleep to keep SW1 1.3v in sync mode */
++	ezx_pcap_bit_set(SSP_PCAP_ADJ_BIT_LOWPWR_CTRL_SW1_MODE10, 0);
++	ezx_pcap_bit_set(SSP_PCAP_ADJ_BIT_LOWPWR_CTRL_SW1_MODE11, 0);
++
++	/*  SW1 active in sync mode */
++	ezx_pcap_bit_set(SSP_PCAP_ADJ_BIT_LOWPWR_CTRL_SW1_MODE00, 1);
++	ezx_pcap_bit_set(SSP_PCAP_ADJ_BIT_LOWPWR_CTRL_SW1_MODE01, 0);
++
++	/*  at SW1 -core voltage to 1.30V   */
++	ezx_pcap_bit_set(SSP_PCAP_ADJ_BIT_LOWPWR_CTRL_SW10_DVS, 1);
++	ezx_pcap_bit_set(SSP_PCAP_ADJ_BIT_LOWPWR_CTRL_SW11_DVS, 1);
++	ezx_pcap_bit_set(SSP_PCAP_ADJ_BIT_LOWPWR_CTRL_SW12_DVS, 1);
++	ezx_pcap_bit_set(SSP_PCAP_ADJ_BIT_LOWPWR_CTRL_SW13_DVS, 0);
++
++	/* when STANDY2 PIN ACTIVE (high) set V3-- sram V8 -- pll off  */
++	ezx_pcap_bit_set(SSP_PCAP_ADJ_BIT_VREG2_V3_STBY, 1);
++	ezx_pcap_bit_set(SSP_PCAP_ADJ_BIT_VREG2_V3_LOWPWR, 0);
++	ezx_pcap_bit_set(SSP_PCAP_ADJ_BIT_VREG2_V8_STBY, 1);
++	ezx_pcap_bit_set(SSP_PCAP_ADJ_BIT_VREG2_V8_LOWPWR, 0);
++
++	/*
++	 * when STANDY2 PIN ACTIVE (high) set V4-- lcd only for e680 V6 ---
++	 * camera for e680
++	 */
++	ezx_pcap_bit_set(SSP_PCAP_ADJ_BIT_VREG2_V4_STBY, 1);
++	ezx_pcap_bit_set(SSP_PCAP_ADJ_BIT_VREG2_V4_LOWPWR, 1);
++	ezx_pcap_bit_set(SSP_PCAP_ADJ_BIT_VREG2_V6_STBY, 1);
++	ezx_pcap_bit_set(SSP_PCAP_ADJ_BIT_VREG2_V6_LOWPWR, 0);
++
++	/* set Vc to low power mode when AP sleep */
++//	SSP_PCAP_bit_set( SSP_PCAP_ADJ_BIT_LOWPWR_CTRL_VC_STBY);
++
++	/* set VAUX2 to voltage 2.775V and low power mode when AP sleep */
++	ezx_pcap_bit_set(SSP_PCAP_ADJ_BIT_AUX_VREG_VAUX2_1, 1);
++	ezx_pcap_bit_set(SSP_PCAP_ADJ_BIT_AUX_VREG_VAUX2_0, 0);
++	ezx_pcap_bit_set(SSP_PCAP_ADJ_BIT_LOWPWR_CTRL_VAUX2_STBY, 1);
++	ezx_pcap_bit_set(SSP_PCAP_ADJ_BIT_LOWPWR_CTRL_VAUX2_LOWPWR, 1);
++//	ezx_pcap_bit_set(SSP_PCAP_ADJ_BIT_AUX_VREG_VAUX2_EN, 1);
++
++//	PGSR(GPIO34_TXENB) |= GPIO_bit(GPIO34_TXENB);
++
++	return 0;
++}
++
++static struct pcap_platform_data a780_pcap_platform_data = {
++	.port		= 1,
++	.cs		= GPIO_SPI_CE,
++	.flags		= PCAP_MCI_TF,
++	.clk		= 1,
++	.init		= a780_pcap_init,
++};
++
++static struct resource a780_pcap_resources[] = {
++	[0] = {
++		.start		= IRQ_GPIO1,
++		.end		= IRQ_GPIO1,
++		.flags		= IORESOURCE_IRQ,
++	},
++};
++
++struct platform_device a780_pcap_device = {
++	.name		= "ezx-pcap",
++	.id		= -1,
++	.num_resources	= ARRAY_SIZE(a780_pcap_resources),
++	.resource	= a780_pcap_resources,
++	.dev		= {
++		.platform_data = &a780_pcap_platform_data,
++	},
++};
++
+ static struct platform_device *devices[] __initdata = {
++	&a780_pcap_device,
+ };
+ 
+ static void __init a780_init(void)
============================================================
--- packages/linux/linux-ezx-2.6.21/patches/e680-emu.patch	dc16d82460218bbf8e0653913ab8e7504c348920
+++ packages/linux/linux-ezx-2.6.21/patches/e680-emu.patch	dc16d82460218bbf8e0653913ab8e7504c348920
@@ -0,0 +1,38 @@
+Index: linux-2.6.21/arch/arm/mach-pxa/ezx-e680.c
+===================================================================
+--- linux-2.6.21.orig/arch/arm/mach-pxa/ezx-e680.c	2007-08-01 19:53:13.000000000 -0300
++++ linux-2.6.21/arch/arm/mach-pxa/ezx-e680.c	2007-08-01 19:55:54.000000000 -0300
+@@ -222,8 +222,33 @@
+ 	},
+ };
+ 
++/* EMU */
++static struct resource e680_emu_resources[] = {
++	[0] = {
++		.start		= EZX_IRQ_USB4V,
++		.end		= EZX_IRQ_USB4V,
++		.flags		= IORESOURCE_IRQ,
++	},
++	[1] = {
++		.start		= EZX_IRQ_USB1V,
++		.end		= EZX_IRQ_USB1V,
++		.flags		= IORESOURCE_IRQ,
++	},
++};
++
++struct platform_device e680_emu_device = {
++	.name		= "ezx-emu",
++	.id		= -1,
++	.dev		= {
++		.parent		= &e680_pcap_device.dev,
++	},
++	.num_resources	= ARRAY_SIZE(e680_emu_resources),
++	.resource	= e680_emu_resources,
++};
++
+ static struct platform_device *devices[] __initdata = {
+ 	&e680_pcap_device,
++	&e680_emu_device,
+ };
+ 
+ static void __init e680_init(void)
============================================================
--- packages/linux/linux-ezx-2.6.21/patches/e680-pcap.patch	9d1d899a5c8081eab292a354118938026e691577
+++ packages/linux/linux-ezx-2.6.21/patches/e680-pcap.patch	9d1d899a5c8081eab292a354118938026e691577
@@ -0,0 +1,98 @@
+Index: linux-2.6.21/arch/arm/mach-pxa/ezx-e680.c
+===================================================================
+--- linux-2.6.21.orig/arch/arm/mach-pxa/ezx-e680.c	2007-06-28 22:44:12.000000000 -0300
++++ linux-2.6.21/arch/arm/mach-pxa/ezx-e680.c	2007-06-28 22:45:27.000000000 -0300
+@@ -19,6 +19,7 @@
+ #include <asm/arch/pxa-regs.h>
+ #include <asm/arch/pxafb.h>
+ #include <asm/arch/ezx.h>
++#include <asm/arch/ezx-pcap.h>
+ 
+ #include "generic.h"
+ 
+@@ -48,7 +49,85 @@
+ 	.pxafb_lcd_power = &ezx_lcd_power,
+ };
+ 
++/* PCAP */
++static int __init e680_pcap_init(void)
++{
++	/* initialize PCAP registers */
++	ezx_pcap_bit_set(SSP_PCAP_ADJ_BIT_AUD_RX_AMPS_A1CTRL, 1);
++//	ezx_pcap_vibrator_level(PCAP_VIBRATOR_VOLTAGE_LEVEL3);
++
++	/* set SW1 sleep to keep SW1 1.3v in sync mode */
++	ezx_pcap_bit_set(SSP_PCAP_ADJ_BIT_LOWPWR_CTRL_SW1_MODE10, 0);
++	ezx_pcap_bit_set(SSP_PCAP_ADJ_BIT_LOWPWR_CTRL_SW1_MODE11, 0);
++
++	/*  SW1 active in sync mode */
++	ezx_pcap_bit_set(SSP_PCAP_ADJ_BIT_LOWPWR_CTRL_SW1_MODE00, 1);
++	ezx_pcap_bit_set(SSP_PCAP_ADJ_BIT_LOWPWR_CTRL_SW1_MODE01, 0);
++
++	/*  at SW1 -core voltage to 1.30V   */
++	ezx_pcap_bit_set(SSP_PCAP_ADJ_BIT_LOWPWR_CTRL_SW10_DVS, 1);
++	ezx_pcap_bit_set(SSP_PCAP_ADJ_BIT_LOWPWR_CTRL_SW11_DVS, 1);
++	ezx_pcap_bit_set(SSP_PCAP_ADJ_BIT_LOWPWR_CTRL_SW12_DVS, 1);
++	ezx_pcap_bit_set(SSP_PCAP_ADJ_BIT_LOWPWR_CTRL_SW13_DVS, 0);
++
++	/* when STANDY2 PIN ACTIVE (high) set V3-- sram V8 -- pll off  */
++	ezx_pcap_bit_set(SSP_PCAP_ADJ_BIT_VREG2_V3_STBY, 1);
++	ezx_pcap_bit_set(SSP_PCAP_ADJ_BIT_VREG2_V3_LOWPWR, 0);
++	ezx_pcap_bit_set(SSP_PCAP_ADJ_BIT_VREG2_V8_STBY, 1);
++	ezx_pcap_bit_set(SSP_PCAP_ADJ_BIT_VREG2_V8_LOWPWR, 0);
++
++	/*
++	 * when STANDY2 PIN ACTIVE (high) set V4-- lcd only for e680 V6 ---
++	 * camera for e680
++	 */
++	ezx_pcap_bit_set(SSP_PCAP_ADJ_BIT_VREG2_V4_STBY, 1);
++	ezx_pcap_bit_set(SSP_PCAP_ADJ_BIT_VREG2_V4_LOWPWR, 1);
++	ezx_pcap_bit_set(SSP_PCAP_ADJ_BIT_VREG2_V6_STBY, 1);
++	ezx_pcap_bit_set(SSP_PCAP_ADJ_BIT_VREG2_V6_LOWPWR, 0);
++
++	/* set Vc to low power mode when AP sleep */
++//	SSP_PCAP_bit_set( SSP_PCAP_ADJ_BIT_LOWPWR_CTRL_VC_STBY);
++
++	/* set VAUX2 to voltage 2.775V and low power mode when AP sleep */
++	ezx_pcap_bit_set(SSP_PCAP_ADJ_BIT_AUX_VREG_VAUX2_1, 1);
++	ezx_pcap_bit_set(SSP_PCAP_ADJ_BIT_AUX_VREG_VAUX2_0, 0);
++	ezx_pcap_bit_set(SSP_PCAP_ADJ_BIT_LOWPWR_CTRL_VAUX2_STBY, 1);
++	ezx_pcap_bit_set(SSP_PCAP_ADJ_BIT_LOWPWR_CTRL_VAUX2_LOWPWR, 1);
++//	ezx_pcap_bit_set(SSP_PCAP_ADJ_BIT_AUX_VREG_VAUX2_EN, 1);
++
++//	PGSR(GPIO34_TXENB) |= GPIO_bit(GPIO34_TXENB);
++
++	return 0;
++}
++
++static struct pcap_platform_data e680_pcap_platform_data = {
++	.port		= 1,
++	.cs		= GPIO_SPI_CE,
++	.flags		= PCAP_MCI_SD,
++	.clk		= 1,
++	.init		= e680_pcap_init,
++};
++
++static struct resource e680_pcap_resources[] = {
++	[0] = {
++		.start		= IRQ_GPIO1,
++		.end		= IRQ_GPIO1,
++		.flags		= IORESOURCE_IRQ,
++	},
++};
++
++struct platform_device e680_pcap_device = {
++	.name		= "ezx-pcap",
++	.id		=%s
>>> DIFF TRUNCATED @ 16K






More information about the Openembedded-commits mailing list