[oe-commits] org.oe.dev merge of '824a2834a0da85846fd46c99800d62eb14ebe522'

rwhitby commit openembedded-commits at lists.openembedded.org
Sun Sep 9 06:08:30 UTC 2007


merge of '824a2834a0da85846fd46c99800d62eb14ebe522'
     and '93d42c42fbac9beca66c0c236f2fb48801155c94'

Author: rwhitby at nslu2-linux.org
Branch: org.openembedded.dev
Revision: 453784163e85d585c492f5db88b0fcbc9a68b398
ViewMTN: http://monotone.openembedded.org/revision/info/453784163e85d585c492f5db88b0fcbc9a68b398
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/ezx/ezxd
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/ezx/ezxd/ezxd.init
packages/ezx/ezxd_svn.bb
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/xournal/xournal_0.4.0.1.bb
conf/machine/include/motorola-ezx-base.inc
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
packages/linux/linux.inc
packages/tasks/task-boot.bb
Diffs:

#
# mt diff -r824a2834a0da85846fd46c99800d62eb14ebe522 -r453784163e85d585c492f5db88b0fcbc9a68b398
#
# 
# 
# 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/ezx/ezxd"
# 
# 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/ezx/ezxd/ezxd.init"
#  content [85c4d6682e30dff858fca9a1647058c683e5284d]
# 
# add_file "packages/ezx/ezxd_svn.bb"
#  content [0880c77dccd414d74dc2169f07a2b6e4b94e395c]
# 
# 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]
# 
# add_file "packages/xournal/xournal_0.4.0.1.bb"
#  content [bb264ca441e1eee49615587408d6caebdce1b0e0]
# 
# patch "conf/machine/include/motorola-ezx-base.inc"
#  from [8bbf6fcb6d743ec82eee5c17d5c1d5de771d769b]
#    to [bbd7b8e194e0918a04e49cb8ee02f02c74759272]
# 
# 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]
# 
# patch "packages/linux/linux.inc"
#  from [a6722d78c96d04961c7142e3de89a19de4af9173]
#    to [025c7f5129eca1ed32f2540c0b62c387c8d0cec5]
# 
# patch "packages/tasks/task-boot.bb"
#  from [c23c7a613f0b88d6f60bc742ec8af93640b7ebc7]
#    to [7ac26e95d7aaffe0b5e60aab60f1ddc2ffba85e1]
# 
============================================================
--- packages/ezx/ezxd/ezxd.init	85c4d6682e30dff858fca9a1647058c683e5284d
+++ packages/ezx/ezxd/ezxd.init	85c4d6682e30dff858fca9a1647058c683e5284d
@@ -0,0 +1,84 @@
+#! /bin/sh
+# -*- coding: utf-8 -*-
+# init.d script for ezxd
+
+set -e
+
+DAEMON=/usr/bin/ezxd
+NAME=ezxd
+PIDDIR=/var/run/ezxd
+PIDFILE=$PIDDIR/pid
+DESC="ezxd server"
+
+test -x $DAEMON || exit 0
+
+# Source defaults file; edit that file to configure this script.
+ENABLED=1
+PARAMS=""
+if [ -e /etc/default/ezxd ]; then
+  . /etc/default/ezxd
+fi
+
+test "$ENABLED" != "0" || exit 0
+
+start_it_up()
+{
+  if [ ! -d $PIDDIR ]; then
+    mkdir -p $PIDDIR
+  fi
+  if [ -e $PIDFILE ]; then
+    PIDDIR=/proc/$(cat $PIDFILE)
+    if [ -d ${PIDDIR} -a  "$(readlink -f ${PIDDIR}/exe)" = "${DAEMON}" ]; then 
+      echo "$DESC already started; not starting."
+    else
+      echo "Removing stale PID file $PIDFILE."
+      rm -f $PIDFILE
+    fi
+  fi
+
+  echo -n "Starting $DESC: "
+  start-stop-daemon --start --background --quiet --pidfile $PIDFILE \
+    --exec $DAEMON -- --system $PARAMS
+  # We need to sleep here because opening the mux devices takes some time
+  sleep 15
+  echo "$NAME."
+  if [ -d $EVENTDIR ]; then
+      run-parts --arg=start $EVENTDIR
+  fi
+}
+
+shut_it_down()
+{
+  if [ -d $EVENTDIR ]; then
+      run-parts --reverse --arg=stop $EVENTDIR
+  fi
+  echo -n "Stopping $DESC: "
+  start-stop-daemon --stop  --quiet --pidfile $PIDFILE 
+   
+  # We no longer include these arguments so that start-stop-daemon
+  # can do its job even given that we may have been upgraded.
+  # We rely on the pidfile being sanely managed
+  # --exec $DAEMON -- --system $PARAMS
+  echo "$NAME."
+  rm -f $PIDFILE
+}
+
+case "$1" in
+  start)
+    start_it_up
+  ;;
+  stop)
+    shut_it_down
+  ;;
+  restart|force-reload)
+    shut_it_down
+    sleep 1
+    start_it_up
+  ;;
+  *)
+    echo "Usage: /etc/init.d/$NAME {start|stop|restart|force-reload}" >&2
+    exit 1
+  ;;
+esac
+
+exit 0
============================================================
--- packages/ezx/ezxd_svn.bb	0880c77dccd414d74dc2169f07a2b6e4b94e395c
+++ packages/ezx/ezxd_svn.bb	0880c77dccd414d74dc2169f07a2b6e4b94e395c
@@ -0,0 +1,34 @@
+DESCRIPTION = "Open implementation of motorola's tapisrv, replaces opentapi"
+LICENSE = "GPLv2"
+SECTION = "devel"
+AUTHOR = "Daniel Ribeiro"
+
+PV = "0.0+svnr${SRCREV}"
+PR = "r0"
+
+SRC_URI = "svn://svn.openezx.org/trunk/src/userspace/;module=ezxd;proto=http \
+           file://ezxd.init \
+          "
+
+inherit update-rc.d
+
+INITSCRIPT_NAME = "ezxd"
+INITSCRIPT_PARAMS = "start 00 S ."
+
+RREPLACES = "opentapi"
+
+
+S = "${WORKDIR}/${PN}"
+
+do_install() {
+	install -d ${D}${bindir}
+	install -m 755 ezxd ${D}${bindir}
+
+	install -d ${D}${libdir}/ezxd
+	install -m 755 *.so ${D}${libdir}/ezxd
+        
+	install -d ${D}${sysconfdir}/init.d
+        install -m 0600 ezxd.conf ${D}${sysconfdir}/
+        install -m 0755 ${WORKDIR}/ezxd.init ${D}${sysconfdir}/init.d/ezxd
+}
+
============================================================
--- 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	%s
>>> DIFF TRUNCATED @ 16K


#
# mt diff -r93d42c42fbac9beca66c0c236f2fb48801155c94 -r453784163e85d585c492f5db88b0fcbc9a68b398
#
# 
# no changes
# 






More information about the Openembedded-commits mailing list