You can subscribe to this list here.
| 2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(26) |
Sep
(22) |
Oct
(55) |
Nov
(24) |
Dec
(30) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2007 |
Jan
(68) |
Feb
(85) |
Mar
(54) |
Apr
(12) |
May
(52) |
Jun
(75) |
Jul
(116) |
Aug
(71) |
Sep
(54) |
Oct
|
Nov
(2) |
Dec
|
|
From: <mar...@us...> - 2007-09-02 12:41:21
|
Revision: 1297
http://hackndev.svn.sourceforge.net/hackndev/?rev=1297&view=rev
Author: marex_z71
Date: 2007-09-02 05:41:12 -0700 (Sun, 02 Sep 2007)
Log Message:
-----------
PalmTX: add LD245A DIR pin connected to GPIO79
Modified Paths:
--------------
linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmtx-gpio.h
Modified: linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmtx-gpio.h
===================================================================
--- linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmtx-gpio.h 2007-09-02 12:39:22 UTC (rev 1296)
+++ linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmtx-gpio.h 2007-09-02 12:41:12 UTC (rev 1297)
@@ -99,6 +99,7 @@
#define GPIO_NR_PALMTX_NAND_CS1_N 15
#define GPIO_NR_PALMTX_NAND_READY 18
#define GPIO_NR_PALMTX_NAND_WE_N 49
+#define GPIO_NR_PALMTX_NAND_BUFFER_DIR 79
/* INTERRUPTS */
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mar...@us...> - 2007-09-02 12:39:26
|
Revision: 1296
http://hackndev.svn.sourceforge.net/hackndev/?rev=1296&view=rev
Author: marex_z71
Date: 2007-09-02 05:39:22 -0700 (Sun, 02 Sep 2007)
Log Message:
-----------
PalmTX: correct command delay according to datasheet
Modified Paths:
--------------
linux4palm/linux/trunk/drivers/mtd/nand/palmtx.c
Modified: linux4palm/linux/trunk/drivers/mtd/nand/palmtx.c
===================================================================
--- linux4palm/linux/trunk/drivers/mtd/nand/palmtx.c 2007-09-02 11:22:01 UTC (rev 1295)
+++ linux4palm/linux/trunk/drivers/mtd/nand/palmtx.c 2007-09-02 12:39:22 UTC (rev 1296)
@@ -149,8 +149,8 @@
this->IO_ADDR_W = nandaddr;
this->cmd_ctrl = palmtx_hwcontrol;
this->dev_ready = palmtx_device_ready;
- /* 15 us command delay time */
- this->chip_delay = 15;
+ /* 10 us command delay time */
+ this->chip_delay = 10;
this->ecc.mode = NAND_ECC_SOFT;
this->options = NAND_NO_AUTOINCR;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mar...@us...> - 2007-09-02 11:22:09
|
Revision: 1295
http://hackndev.svn.sourceforge.net/hackndev/?rev=1295&view=rev
Author: marex_z71
Date: 2007-09-02 04:22:01 -0700 (Sun, 02 Sep 2007)
Log Message:
-----------
PalmLD: remove useless include from led driver, align to 80 characters
Modified Paths:
--------------
linux4palm/linux/trunk/drivers/leds/leds-palmld.c
Modified: linux4palm/linux/trunk/drivers/leds/leds-palmld.c
===================================================================
--- linux4palm/linux/trunk/drivers/leds/leds-palmld.c 2007-09-02 10:08:10 UTC (rev 1294)
+++ linux4palm/linux/trunk/drivers/leds/leds-palmld.c 2007-09-02 11:22:01 UTC (rev 1295)
@@ -17,14 +17,15 @@
#include <asm/arch/palmld-gpio.h>
#include <asm/arch/hardware.h>
#include <asm/arch/pxa-regs.h>
-#include <asm/hardware/scoop.h>
-static void palmldled_amber_set(struct led_classdev *led_cdev, enum led_brightness value)
+static void palmldled_amber_set(struct led_classdev *led_cdev,
+ enum led_brightness value)
{
SET_PALMLD_GPIO(ORANGE_LED, value ? 1 : 0);
}
-static void palmldled_green_set(struct led_classdev *led_cdev, enum led_brightness value)
+static void palmldled_green_set(struct led_classdev *led_cdev,
+ enum led_brightness value)
{
SET_PALMLD_GPIO(GREEN_LED, value ? 1 : 0);
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mar...@us...> - 2007-09-02 10:08:15
|
Revision: 1294
http://hackndev.svn.sourceforge.net/hackndev/?rev=1294&view=rev
Author: marex_z71
Date: 2007-09-02 03:08:10 -0700 (Sun, 02 Sep 2007)
Log Message:
-----------
PalmTT3: led driver cleanup, alignment to 80 characters
Modified Paths:
--------------
linux4palm/linux/trunk/drivers/leds/leds-palmtt3.c
Modified: linux4palm/linux/trunk/drivers/leds/leds-palmtt3.c
===================================================================
--- linux4palm/linux/trunk/drivers/leds/leds-palmtt3.c 2007-09-02 08:47:26 UTC (rev 1293)
+++ linux4palm/linux/trunk/drivers/leds/leds-palmtt3.c 2007-09-02 10:08:10 UTC (rev 1294)
@@ -35,49 +35,40 @@
tps65010_set_vib(palmtt3led_work.vibra);
}
-static void palmtt3led_red_set(struct led_classdev *led_cdev, enum led_brightness value)
+static void palmtt3led_red_set(struct led_classdev *led_cdev,
+ enum led_brightness value)
{
- if (value)
- palmtt3led_work.led2 = ON;
- else
- palmtt3led_work.led2 = OFF;
+ palmtt3led_work.led2 = value ? ON : OFF;
schedule_work(&(palmtt3led_work.work));
}
-static void palmtt3led_green_set(struct led_classdev *led_cdev, enum led_brightness value)
+static void palmtt3led_green_set(struct led_classdev *led_cdev,
+ enum led_brightness value)
{
- if (value)
- palmtt3led_work.led1 = ON;
- else
-/* NOTE: This is set to OFF, not to OFF... It shows charging status - plugged/unplugged... */
- palmtt3led_work.led1 = UNDER_CHG_CTRL;
+ /* NOTE: This is set to OFF, not to OFF...
+ It shows charging status - plugged/unplugged... */
+ palmtt3led_work.led1 = value ? ON : UNDER_CHG_CTRL;
schedule_work(&(palmtt3led_work.work));
}
-static void palmtt3led_red_blink_set(struct led_classdev *led_cdev, enum led_brightness value)
+static void palmtt3led_red_blink_set(struct led_classdev *led_cdev,
+ enum led_brightness value)
{
- if (value)
- palmtt3led_work.led2 = BLINK;
- else
- palmtt3led_work.led2 = OFF;
+ palmtt3led_work.led2 = value ? BLINK : OFF;
schedule_work(&(palmtt3led_work.work));
}
-static void palmtt3led_green_blink_set(struct led_classdev *led_cdev, enum led_brightness value)
+static void palmtt3led_green_blink_set(struct led_classdev *led_cdev,
+ enum led_brightness value)
{
- if (value)
- palmtt3led_work.led1 = BLINK;
- else
- palmtt3led_work.led1 = OFF;
+ palmtt3led_work.led1 = value ? BLINK : OFF;
schedule_work(&(palmtt3led_work.work));
}
-static void palmtt3_vibra_set(struct led_classdev *led_cdev, enum led_brightness value)
+static void palmtt3_vibra_set(struct led_classdev *led_cdev,
+ enum led_brightness value)
{
- if (value)
- palmtt3led_work.vibra = ON;
- else
- palmtt3led_work.vibra = OFF;
+ palmtt3led_work.vibra = value ? ON : OFF;
schedule_work(&(palmtt3led_work.work));
}
@@ -110,7 +101,8 @@
#ifdef CONFIG_PM
-static int palmtt3led_suspend(struct platform_device *dev, pm_message_t state)
+static int palmtt3led_suspend(struct platform_device *dev,
+ pm_message_t state)
{
led_classdev_suspend(&palmtt3_red_led);
led_classdev_suspend(&palmtt3_green_led);
@@ -120,7 +112,8 @@
return 0;
}
-static int palmtt3led_suspend_late(struct platform_device *dev, pm_message_t state)
+static int palmtt3led_suspend_late(struct platform_device *dev,
+ pm_message_t state)
{
tps65010_set_led(LED1, OFF);
tps65010_set_led(LED2, OFF);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mar...@us...> - 2007-09-02 08:47:29
|
Revision: 1293
http://hackndev.svn.sourceforge.net/hackndev/?rev=1293&view=rev
Author: marex_z71
Date: 2007-09-02 01:47:26 -0700 (Sun, 02 Sep 2007)
Log Message:
-----------
PalmTX: ROM driver
Modified Paths:
--------------
linux4palm/linux/trunk/drivers/mtd/maps/Kconfig
linux4palm/linux/trunk/drivers/mtd/maps/Makefile
Added Paths:
-----------
linux4palm/linux/trunk/drivers/mtd/maps/palmtx-flash.c
Modified: linux4palm/linux/trunk/drivers/mtd/maps/Kconfig
===================================================================
--- linux4palm/linux/trunk/drivers/mtd/maps/Kconfig 2007-09-01 20:33:51 UTC (rev 1292)
+++ linux4palm/linux/trunk/drivers/mtd/maps/Kconfig 2007-09-02 08:47:26 UTC (rev 1293)
@@ -513,6 +513,14 @@
write into device's FlashROM memory (DANGEROUS, use with
caution!).
+config MTD_PALMTX
+ tristate "Palm T|X flash driver !UNTESTED, DANGEROUS!"
+ depends on MTD_CFI && MACH_XSCALE_PALMTX
+ help
+ This MTD map describes how flash memory on Palm T|X is organized.
+ With this driver you can read and probably also write into device's
+ FlashROM memory (DANGEROUS, use with caution!).
+
config MTD_MPC1211
tristate "CFI Flash device mapped on Interface MPC-1211"
depends on SH_MPC1211 && MTD_CFI
Modified: linux4palm/linux/trunk/drivers/mtd/maps/Makefile
===================================================================
--- linux4palm/linux/trunk/drivers/mtd/maps/Makefile 2007-09-01 20:33:51 UTC (rev 1292)
+++ linux4palm/linux/trunk/drivers/mtd/maps/Makefile 2007-09-02 08:47:26 UTC (rev 1293)
@@ -62,6 +62,7 @@
obj-$(CONFIG_MTD_H720X) += h720x-flash.o
obj-$(CONFIG_MTD_PALMT3) += palmt3-flash.o
obj-$(CONFIG_MTD_PALMTC) += palmtc-flash.o
+obj-$(CONFIG_MTD_PALMTX) += palmtx-flash.o
obj-$(CONFIG_MTD_SBC8240) += sbc8240.o
obj-$(CONFIG_MTD_NOR_TOTO) += omap-toto-flash.o
obj-$(CONFIG_MTD_MPC1211) += mpc1211.o
Added: linux4palm/linux/trunk/drivers/mtd/maps/palmtx-flash.c
===================================================================
--- linux4palm/linux/trunk/drivers/mtd/maps/palmtx-flash.c (rev 0)
+++ linux4palm/linux/trunk/drivers/mtd/maps/palmtx-flash.c 2007-09-02 08:47:26 UTC (rev 1293)
@@ -0,0 +1,134 @@
+/*
+ * Palm T|X flash support
+ *
+ * Copyright (C) 2007 Marek Vasut <mar...@gm...>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+#include <linux/module.h>
+#include <linux/types.h>
+#include <linux/kernel.h>
+#include <linux/init.h>
+#include <linux/errno.h>
+#include <linux/slab.h>
+
+#include <linux/mtd/mtd.h>
+#include <linux/mtd/map.h>
+#include <linux/mtd/partitions.h>
+
+#include <asm/hardware.h>
+#include <asm/io.h>
+
+#include <asm/arch/pxa-regs.h>
+
+static struct mtd_info *palmtx_mtd_info;
+
+static struct map_info palmtx_map = {
+ .name = "PALMTX_FLASH",
+ .bankwidth = 1,
+ .size = 0x800000, /* 8MB */
+ .phys = PXA_CS0_PHYS, /* At PXA_CS0 */
+};
+
+static struct mtd_partition palmtx_partitions[] = {
+ {
+ .name = "PalmTX ROM",
+ .size = 8 * 1024 * 1024, /* 8MB */
+ .offset = 0,
+ /* Uncomment following if you dont
+ like your device ... */
+ /* .mask_flags = MTD_WRITEABLE */
+ }
+};
+
+#define NUM_PARTITIONS 1
+
+static int nr_mtd_parts;
+static struct mtd_partition *mtd_parts;
+static const char *probes[] = { "cmdlinepart", NULL };
+
+/*
+ * Initialize FLASH support
+ */
+int __init palmtx_mtd_init(void)
+{
+ char *part_type = NULL;
+
+ palmtx_map.virt = ioremap(PXA_CS0_PHYS, palmtx_map.size);
+
+ if (!palmtx_map.virt) {
+ printk(KERN_ERR "PalmTX Flash: ioremap failed\n");
+ return -EIO;
+ }
+
+ simple_map_init(&palmtx_map);
+
+ /* Probe for flash bankwidth 1 */
+ printk (KERN_INFO "PalmTX Flash: probing 8bit FLASH\n");
+ palmtx_mtd_info = do_map_probe("cfi_probe", &palmtx_map);
+
+ if (palmtx_mtd_info) {
+ palmtx_mtd_info->owner = THIS_MODULE;
+
+#ifdef CONFIG_MTD_PARTITIONS
+ nr_mtd_parts = parse_mtd_partitions(palmtx_mtd_info, probes,
+ &mtd_parts, 0);
+ if (nr_mtd_parts > 0)
+ part_type = "command line";
+#endif
+ if (nr_mtd_parts <= 0) {
+ mtd_parts = palmtx_partitions;
+ nr_mtd_parts = NUM_PARTITIONS;
+ part_type = "builtin";
+ }
+
+ printk(KERN_INFO "Using %s partition table\n", part_type);
+ add_mtd_partitions(palmtx_mtd_info, mtd_parts, nr_mtd_parts);
+ return 0;
+ }
+
+ iounmap((void *)palmtx_map.virt);
+ return -ENXIO;
+}
+
+/*
+ * Cleanup
+ */
+static void __exit palmtx_mtd_cleanup(void)
+{
+
+ if (palmtx_mtd_info) {
+ del_mtd_partitions(palmtx_mtd_info);
+ map_destroy(palmtx_mtd_info);
+ }
+
+ /* Free partition info, if commandline partition was used */
+ if (mtd_parts && (mtd_parts != palmtx_partitions))
+ kfree (mtd_parts);
+
+ if (palmtx_map.virt) {
+ iounmap((void *)palmtx_map.virt);
+ palmtx_map.virt = 0;
+ }
+}
+
+
+module_init(palmtx_mtd_init);
+module_exit(palmtx_mtd_cleanup);
+
+MODULE_LICENSE("GPL");
+MODULE_AUTHOR("Marek Vasut <mar...@gm...>");
+MODULE_DESCRIPTION("Flash driver for Palm TX");
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mar...@us...> - 2007-09-01 20:33:55
|
Revision: 1292
http://hackndev.svn.sourceforge.net/hackndev/?rev=1292&view=rev
Author: marex_z71
Date: 2007-09-01 13:33:51 -0700 (Sat, 01 Sep 2007)
Log Message:
-----------
PalmLD: question mark is just cool, isnt it? drool 8-Q.......
Modified Paths:
--------------
linux4palm/linux/trunk/drivers/leds/leds-palmld.c
Modified: linux4palm/linux/trunk/drivers/leds/leds-palmld.c
===================================================================
--- linux4palm/linux/trunk/drivers/leds/leds-palmld.c 2007-08-31 20:26:04 UTC (rev 1291)
+++ linux4palm/linux/trunk/drivers/leds/leds-palmld.c 2007-09-01 20:33:51 UTC (rev 1292)
@@ -21,18 +21,12 @@
static void palmldled_amber_set(struct led_classdev *led_cdev, enum led_brightness value)
{
- if (value)
- SET_PALMLD_GPIO(ORANGE_LED,1);
- else
- SET_PALMLD_GPIO(ORANGE_LED,0);
+ SET_PALMLD_GPIO(ORANGE_LED, value ? 1 : 0);
}
static void palmldled_green_set(struct led_classdev *led_cdev, enum led_brightness value)
{
- if (value)
- SET_PALMLD_GPIO(GREEN_LED,1);
- else
- SET_PALMLD_GPIO(GREEN_LED,0);
+ SET_PALMLD_GPIO(GREEN_LED, value ? 1 : 0);
}
static struct led_classdev palmld_amber_led = {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mar...@us...> - 2007-08-31 20:26:08
|
Revision: 1291
http://hackndev.svn.sourceforge.net/hackndev/?rev=1291&view=rev
Author: marex_z71
Date: 2007-08-31 13:26:04 -0700 (Fri, 31 Aug 2007)
Log Message:
-----------
PalmTX: added RnB GPIO and fixed memory freeing if something breaks
Modified Paths:
--------------
linux4palm/linux/trunk/drivers/mtd/nand/palmtx.c
linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmtx-gpio.h
Modified: linux4palm/linux/trunk/drivers/mtd/nand/palmtx.c
===================================================================
--- linux4palm/linux/trunk/drivers/mtd/nand/palmtx.c 2007-08-30 02:41:10 UTC (rev 1290)
+++ linux4palm/linux/trunk/drivers/mtd/nand/palmtx.c 2007-08-31 20:26:04 UTC (rev 1291)
@@ -82,6 +82,11 @@
}
}
+static int palmtx_device_ready(struct mtd_info *mtd)
+{
+ return GET_PALMTX_GPIO(NAND_READY);
+}
+
/*
* Main initialization routine
*/
@@ -143,8 +148,7 @@
this->IO_ADDR_R = nandaddr;
this->IO_ADDR_W = nandaddr;
this->cmd_ctrl = palmtx_hwcontrol;
- /* For the time being ... */
- this->dev_ready = NULL;
+ this->dev_ready = palmtx_device_ready;
/* 15 us command delay time */
this->chip_delay = 15;
this->ecc.mode = NAND_ECC_SOFT;
@@ -154,7 +158,10 @@
if (nand_scan(palmtx_nand_mtd, 1)) {
printk(KERN_NOTICE "No NAND device - returning -ENXIO\n");
kfree(palmtx_nand_mtd);
+ iounmap((void *)palmtx_nand_mtd);
iounmap((void *)nandaddr);
+ iounmap((void *)nand_ale);
+ iounmap((void *)nand_cle);
return -ENXIO;
}
#ifdef CONFIG_MTD_CMDLINE_PARTS
Modified: linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmtx-gpio.h
===================================================================
--- linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmtx-gpio.h 2007-08-30 02:41:10 UTC (rev 1290)
+++ linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmtx-gpio.h 2007-08-31 20:26:04 UTC (rev 1291)
@@ -97,6 +97,7 @@
/* NAND Flash ... these GPIOs are probably incorrect! */
#define GPIO_NR_PALMTX_NAND_CS1_N 15
+#define GPIO_NR_PALMTX_NAND_READY 18
#define GPIO_NR_PALMTX_NAND_WE_N 49
/* INTERRUPTS */
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mar...@us...> - 2007-08-30 02:41:22
|
Revision: 1290
http://hackndev.svn.sourceforge.net/hackndev/?rev=1290&view=rev
Author: marex_z71
Date: 2007-08-29 19:41:10 -0700 (Wed, 29 Aug 2007)
Log Message:
-----------
PalmTX: correctly manager memory unmaping if something fails and do writes in more correct way
Modified Paths:
--------------
linux4palm/linux/trunk/drivers/mtd/nand/palmtx.c
Modified: linux4palm/linux/trunk/drivers/mtd/nand/palmtx.c
===================================================================
--- linux4palm/linux/trunk/drivers/mtd/nand/palmtx.c 2007-08-30 02:36:54 UTC (rev 1289)
+++ linux4palm/linux/trunk/drivers/mtd/nand/palmtx.c 2007-08-30 02:41:10 UTC (rev 1290)
@@ -70,10 +70,10 @@
if (cmd != NAND_CMD_NONE) {
switch ((ctrl & 0x6) >> 1) {
case 1: /* CLE */
- writeb(cmd, nand_cle);
+ iowrite8(cmd, nand_cle);
break;
case 2: /* ALE */
- writeb(cmd, nand_ale);
+ iowrite8(cmd, nand_ale);
break;
default:
printk("PalmTX NAND: invalid control bit\n");
@@ -115,11 +115,16 @@
nand_ale = ioremap(PALMTX_PHYS_NAND_START | 1<<24, 0x1000);
if (!nand_ale) {
printk("Failed to ioremap NAND flash.\n");
+ iounmap((void *)palmtx_nand_mtd);
+ iounmap((void *)nandaddr);
return -ENOMEM;
}
nand_cle = ioremap(PALMTX_PHYS_NAND_START | 1<<25, 0x1000);
if (!nand_cle) {
printk("Failed to ioremap NAND flash.\n");
+ iounmap((void *)palmtx_nand_mtd);
+ iounmap((void *)nandaddr);
+ iounmap((void *)nand_ale);
return -ENOMEM;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mar...@us...> - 2007-08-30 02:36:56
|
Revision: 1289
http://hackndev.svn.sourceforge.net/hackndev/?rev=1289&view=rev
Author: marex_z71
Date: 2007-08-29 19:36:54 -0700 (Wed, 29 Aug 2007)
Log Message:
-----------
PalmTX: cosmetic corrections to NAND flash driver
Modified Paths:
--------------
linux4palm/linux/trunk/drivers/mtd/nand/palmtx.c
Modified: linux4palm/linux/trunk/drivers/mtd/nand/palmtx.c
===================================================================
--- linux4palm/linux/trunk/drivers/mtd/nand/palmtx.c 2007-08-30 02:31:54 UTC (rev 1288)
+++ linux4palm/linux/trunk/drivers/mtd/nand/palmtx.c 2007-08-30 02:36:54 UTC (rev 1289)
@@ -66,8 +66,6 @@
static void palmtx_hwcontrol(struct mtd_info *mtd, int cmd,
unsigned int ctrl)
{
- struct nand_chip *chip = mtd->priv;
-
/* If there is a command for the chip, send it */
if (cmd != NAND_CMD_NONE) {
switch ((ctrl & 0x6) >> 1) {
@@ -78,7 +76,7 @@
writeb(cmd, nand_ale);
break;
default:
- printk("PalmTX NAND: invalid bit\n");
+ printk("PalmTX NAND: invalid control bit\n");
break;
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mar...@us...> - 2007-08-30 02:31:56
|
Revision: 1288
http://hackndev.svn.sourceforge.net/hackndev/?rev=1288&view=rev
Author: marex_z71
Date: 2007-08-29 19:31:54 -0700 (Wed, 29 Aug 2007)
Log Message:
-----------
PalmTX: WORKING NAND Flash driver
Modified Paths:
--------------
linux4palm/linux/trunk/drivers/mtd/nand/palmtx.c
Modified: linux4palm/linux/trunk/drivers/mtd/nand/palmtx.c
===================================================================
--- linux4palm/linux/trunk/drivers/mtd/nand/palmtx.c 2007-08-29 15:42:49 UTC (rev 1287)
+++ linux4palm/linux/trunk/drivers/mtd/nand/palmtx.c 2007-08-30 02:31:54 UTC (rev 1288)
@@ -36,6 +36,12 @@
*/
static struct mtd_info *palmtx_nand_mtd = NULL;
+/*
+ * Control lines
+ */
+void __iomem *nand_ale = NULL;
+void __iomem *nand_cle = NULL;
+
/*
* Module stuff
*/
@@ -55,29 +61,27 @@
#endif
/*
- * hardware specific access to control-lines
+ * Hardware specific access to control-lines
*/
static void palmtx_hwcontrol(struct mtd_info *mtd, int cmd,
unsigned int ctrl)
{
struct nand_chip *chip = mtd->priv;
- unsigned long bits = 0;
- if (ctrl & NAND_CTRL_CHANGE) {
- /* Select chip */
- SET_PALMTX_GPIO(NAND_CS1_N, (ctrl & NAND_NCE) ? 0 : 1);
-
- /* Set control lines */
- if (ctrl & NAND_CLE)
- bits |= 1<<25;
- if (ctrl & NAND_ALE)
- bits |= 1<<24;
- iowrite32(bits, chip->IO_ADDR_W);
- }
-
/* If there is a command for the chip, send it */
- if (cmd != NAND_CMD_NONE)
- iowrite32((cmd & 0xff) | bits, chip->IO_ADDR_W);
+ if (cmd != NAND_CMD_NONE) {
+ switch ((ctrl & 0x6) >> 1) {
+ case 1: /* CLE */
+ writeb(cmd, nand_cle);
+ break;
+ case 2: /* ALE */
+ writeb(cmd, nand_ale);
+ break;
+ default:
+ printk("PalmTX NAND: invalid bit\n");
+ break;
+ }
+ }
}
/*
@@ -98,7 +102,6 @@
palmtx_nand_mtd = kmalloc(sizeof(struct mtd_info) + sizeof(struct nand_chip), GFP_KERNEL);
if (!palmtx_nand_mtd) {
printk("Unable to allocate palmtx NAND MTD device structure.\n");
- iounmap((void *)nandaddr);
return -ENOMEM;
}
@@ -106,9 +109,22 @@
nandaddr = ioremap(PALMTX_PHYS_NAND_START, 0x1000);
if (!nandaddr) {
printk("Failed to ioremap NAND flash.\n");
+ iounmap((void *)palmtx_nand_mtd);
return -ENOMEM;
}
+ /* Remap physical address of control lines */
+ nand_ale = ioremap(PALMTX_PHYS_NAND_START | 1<<24, 0x1000);
+ if (!nand_ale) {
+ printk("Failed to ioremap NAND flash.\n");
+ return -ENOMEM;
+ }
+ nand_cle = ioremap(PALMTX_PHYS_NAND_START | 1<<25, 0x1000);
+ if (!nand_cle) {
+ printk("Failed to ioremap NAND flash.\n");
+ return -ENOMEM;
+ }
+
/* Get pointer to private data */
this = (struct nand_chip *)(&palmtx_nand_mtd[1]);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mar...@us...> - 2007-08-29 15:42:53
|
Revision: 1287
http://hackndev.svn.sourceforge.net/hackndev/?rev=1287&view=rev
Author: marex_z71
Date: 2007-08-29 08:42:49 -0700 (Wed, 29 Aug 2007)
Log Message:
-----------
PalmTX, PalmTT5, PalmLD: fix broken dependency (thanks Farcaller)
Modified Paths:
--------------
linux4palm/linux/trunk/arch/arm/mach-pxa/palmld/Kconfig
linux4palm/linux/trunk/arch/arm/mach-pxa/palmtt5/Kconfig
linux4palm/linux/trunk/arch/arm/mach-pxa/palmtx/Kconfig
Modified: linux4palm/linux/trunk/arch/arm/mach-pxa/palmld/Kconfig
===================================================================
--- linux4palm/linux/trunk/arch/arm/mach-pxa/palmld/Kconfig 2007-08-29 09:55:32 UTC (rev 1286)
+++ linux4palm/linux/trunk/arch/arm/mach-pxa/palmld/Kconfig 2007-08-29 15:42:49 UTC (rev 1287)
@@ -21,6 +21,7 @@
config PALMLD_BATTERY
tristate "Palm LifeDrive Battery support"
select TOUCHSCREEN_WM97XX
+ select POWER_SUPPLY
depends on MACH_XSCALE_PALMLD
default m
help
Modified: linux4palm/linux/trunk/arch/arm/mach-pxa/palmtt5/Kconfig
===================================================================
--- linux4palm/linux/trunk/arch/arm/mach-pxa/palmtt5/Kconfig 2007-08-29 09:55:32 UTC (rev 1286)
+++ linux4palm/linux/trunk/arch/arm/mach-pxa/palmtt5/Kconfig 2007-08-29 15:42:49 UTC (rev 1287)
@@ -7,6 +7,7 @@
config PALMTT5_BATTERY
tristate "Palm Tungsten|T5 Battery support"
select TOUCHSCREEN_WM97XX
+ select POWER_SUPPLY
depends on MACH_XSCALE_PALMTT5
default m
help
Modified: linux4palm/linux/trunk/arch/arm/mach-pxa/palmtx/Kconfig
===================================================================
--- linux4palm/linux/trunk/arch/arm/mach-pxa/palmtx/Kconfig 2007-08-29 09:55:32 UTC (rev 1286)
+++ linux4palm/linux/trunk/arch/arm/mach-pxa/palmtx/Kconfig 2007-08-29 15:42:49 UTC (rev 1287)
@@ -14,6 +14,7 @@
config PALMTX_BATTERY
tristate "Palm TX Battery support"
select TOUCHSCREEN_WM97XX
+ select POWER_SUPPLY
depends on MACH_XSCALE_PALMTX
default m
help
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mar...@us...> - 2007-08-29 09:55:38
|
Revision: 1286
http://hackndev.svn.sourceforge.net/hackndev/?rev=1286&view=rev
Author: marex_z71
Date: 2007-08-29 02:55:32 -0700 (Wed, 29 Aug 2007)
Log Message:
-----------
PalmTX: this is how the driver should look like according to snua12s' notes from desolderation of broken palmtx board ... yet it still doesnt work
Modified Paths:
--------------
linux4palm/linux/trunk/drivers/mtd/nand/palmtx.c
linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmtx-gpio.h
Modified: linux4palm/linux/trunk/drivers/mtd/nand/palmtx.c
===================================================================
--- linux4palm/linux/trunk/drivers/mtd/nand/palmtx.c 2007-08-29 02:12:51 UTC (rev 1285)
+++ linux4palm/linux/trunk/drivers/mtd/nand/palmtx.c 2007-08-29 09:55:32 UTC (rev 1286)
@@ -31,19 +31,6 @@
#include <asm/memory.h>
#include <asm/mach-types.h>
-/* Select the chip by setting nCE to low */
-#define NAND_CTL_SETNCE 1
-/* Deselect the chip by setting nCE to high */
-#define NAND_CTL_CLRNCE 2
-/* Select the command latch by setting CLE to high */
-#define NAND_CTL_SETCLE 3
-/* Deselect the command latch by setting CLE to low */
-#define NAND_CTL_CLRCLE 4
-/* Select the address latch by setting ALE to high */
-#define NAND_CTL_SETALE 5
-/* Deselect the address latch by setting ALE to low */
-#define NAND_CTL_CLRALE 6
-
/*
* MTD structure
*/
@@ -74,42 +61,24 @@
unsigned int ctrl)
{
struct nand_chip *chip = mtd->priv;
+ unsigned long bits = 0;
if (ctrl & NAND_CTRL_CHANGE) {
- switch (cmd) {
- case NAND_CTL_SETCLE:
- SET_PALMTX_GPIO(NAND_CLE,1);
- break;
- case NAND_CTL_CLRCLE:
- SET_PALMTX_GPIO(NAND_CLE,0);
- break;
- case NAND_CTL_SETALE:
- SET_PALMTX_GPIO(NAND_ALE,1);
- break;
- case NAND_CTL_CLRALE:
- SET_PALMTX_GPIO(NAND_ALE,0);
- break;
- case NAND_CTL_SETNCE:
- SET_PALMTX_GPIO(NAND_NCE,1);
- break;
- case NAND_CTL_CLRNCE:
- SET_PALMTX_GPIO(NAND_NCE,0);
- break;
- }
+ /* Select chip */
+ SET_PALMTX_GPIO(NAND_CS1_N, (ctrl & NAND_NCE) ? 0 : 1);
+
+ /* Set control lines */
+ if (ctrl & NAND_CLE)
+ bits |= 1<<25;
+ if (ctrl & NAND_ALE)
+ bits |= 1<<24;
+ iowrite32(bits, chip->IO_ADDR_W);
}
- if (cmd != NAND_CMD_NONE)
- writeb(cmd, (void __iomem *)((unsigned long)chip->IO_ADDR_W));
-}
-/*
- * read device ready pin
- */
-#if 0
-static int palmtx_device_ready(struct mtd_info *mtd)
-{
- return GET_PALMTX_GPIO(NAND_READY);
+ /* If there is a command for the chip, send it */
+ if (cmd != NAND_CMD_NONE)
+ iowrite32((cmd & 0xff) | bits, chip->IO_ADDR_W);
}
-#endif
/*
* Main initialization routine
@@ -125,12 +94,6 @@
if (!machine_is_xscale_palmtx())
return -ENODEV;
- nandaddr = ioremap(PALMTX_PHYS_NAND_START, 0x1000);
- if (!nandaddr) {
- printk("Failed to ioremap NAND flash.\n");
- return -ENOMEM;
- }
-
/* Allocate memory for MTD device structure and private data */
palmtx_nand_mtd = kmalloc(sizeof(struct mtd_info) + sizeof(struct nand_chip), GFP_KERNEL);
if (!palmtx_nand_mtd) {
@@ -139,6 +102,13 @@
return -ENOMEM;
}
+ /* Remap physical address of flash */
+ nandaddr = ioremap(PALMTX_PHYS_NAND_START, 0x1000);
+ if (!nandaddr) {
+ printk("Failed to ioremap NAND flash.\n");
+ return -ENOMEM;
+ }
+
/* Get pointer to private data */
this = (struct nand_chip *)(&palmtx_nand_mtd[1]);
@@ -150,24 +120,14 @@
palmtx_nand_mtd->priv = this;
palmtx_nand_mtd->owner = THIS_MODULE;
- /*
- * Enable VPEN ... isnt it on all the time?
- */
-#if 0
- SET_PALMTX_GPIO(NAND_POWER, 1);
-#endif
-
/* insert callbacks */
this->IO_ADDR_R = nandaddr;
this->IO_ADDR_W = nandaddr;
this->cmd_ctrl = palmtx_hwcontrol;
-#if 0
- this->dev_ready = palmtx_device_ready;
-#else
+ /* For the time being ... */
this->dev_ready = NULL;
-#endif
/* 15 us command delay time */
- this->chip_delay = 50;
+ this->chip_delay = 15;
this->ecc.mode = NAND_ECC_SOFT;
this->options = NAND_NO_AUTOINCR;
Modified: linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmtx-gpio.h
===================================================================
--- linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmtx-gpio.h 2007-08-29 02:12:51 UTC (rev 1285)
+++ linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmtx-gpio.h 2007-08-29 09:55:32 UTC (rev 1286)
@@ -96,13 +96,9 @@
#define GPIO_NR_PALMTX_PCMCIA_READY 116
/* NAND Flash ... these GPIOs are probably incorrect! */
-#define GPIO_NR_PALMTX_NAND_POWER 19
-#define GPIO_NR_PALMTX_NAND_READY 115
-#define GPIO_NR_PALMTX_NAND_CLE 79
-#define GPIO_NR_PALMTX_NAND_ALE 113
-#define GPIO_NR_PALMTX_NAND_NCE 114
+#define GPIO_NR_PALMTX_NAND_CS1_N 15
+#define GPIO_NR_PALMTX_NAND_WE_N 49
-
/* INTERRUPTS */
#define IRQ_GPIO_PALMTX_SD_DETECT_N IRQ_GPIO(GPIO_NR_PALMTX_SD_DETECT_N)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mar...@us...> - 2007-08-29 02:12:59
|
Revision: 1285
http://hackndev.svn.sourceforge.net/hackndev/?rev=1285&view=rev
Author: marex_z71
Date: 2007-08-28 19:12:51 -0700 (Tue, 28 Aug 2007)
Log Message:
-----------
HnD: updated mach_types
Modified Paths:
--------------
linux4palm/linux/trunk/arch/arm/tools/mach-types
Modified: linux4palm/linux/trunk/arch/arm/tools/mach-types
===================================================================
--- linux4palm/linux/trunk/arch/arm/tools/mach-types 2007-08-29 02:10:53 UTC (rev 1284)
+++ linux4palm/linux/trunk/arch/arm/tools/mach-types 2007-08-29 02:12:51 UTC (rev 1285)
@@ -12,7 +12,7 @@
#
# http://www.arm.linux.org.uk/developer/machines/?action=new
#
-# Last update: Sun Jun 24 00:42:15 2007
+# Last update: Wed Aug 29 03:11:21 2007
#
# machine_is_xxx CONFIG_xxxx MACH_TYPE_xxx number
#
@@ -1148,7 +1148,7 @@
rema MACH_REMA REMA 1135
bps1000 MACH_BPS1000 BPS1000 1136
hw90350 MACH_HW90350 HW90350 1137
-omap_sdp3430 MACH_OMAP_SDP3430 OMAP_SDP3430 1138
+omap_3430sdp MACH_OMAP_3430SDP OMAP_3430SDP 1138
bluetouch MACH_BLUETOUCH BLUETOUCH 1139
vstms MACH_VSTMS VSTMS 1140
xsbase270 MACH_XSBASE270 XSBASE270 1141
@@ -1299,7 +1299,7 @@
h4300 MACH_H4300 H4300 1291
goramo_mlr MACH_GORAMO_MLR GORAMO_MLR 1292
mxc30020evb MACH_MXC30020EVB MXC30020EVB 1293
-adsbitsymx MACH_ADSBITSIMX ADSBITSIMX 1294
+adsbitsyg5 MACH_ADSBITSIMX ADSBITSIMX 1294
adsportalplus MACH_ADSPORTALPLUS ADSPORTALPLUS 1295
mmsp2plus MACH_MMSP2PLUS MMSP2PLUS 1296
em_x270 MACH_EM_X270 EM_X270 1297
@@ -1415,3 +1415,61 @@
realview_pb11mp MACH_REALVIEW_PB11MP REALVIEW_PB11MP 1407
ids500 MACH_IDS500 IDS500 1408
ors_n725 MACH_ORS_N725 ORS_N725 1409
+hsdarm MACH_HSDARM HSDARM 1410
+sha_pon003 MACH_SHA_PON003 SHA_PON003 1411
+sha_pon004 MACH_SHA_PON004 SHA_PON004 1412
+sha_pon007 MACH_SHA_PON007 SHA_PON007 1413
+sha_pon011 MACH_SHA_PON011 SHA_PON011 1414
+h6042 MACH_H6042 H6042 1415
+h6043 MACH_H6043 H6043 1416
+looxc550 MACH_LOOXC550 LOOXC550 1417
+cnty_titan MACH_CNTY_TITAN CNTY_TITAN 1418
+app3xx MACH_APP3XX APP3XX 1419
+sideoatsgrama MACH_SIDEOATSGRAMA SIDEOATSGRAMA 1420
+xscale_palmt700p MACH_XSCALE_PALMT700P XSCALE_PALMT700P 1421
+xscale_palmt700w MACH_XSCALE_PALMT700W XSCALE_PALMT700W 1422
+xscale_palmt750 MACH_XSCALE_PALMT750 XSCALE_PALMT750 1423
+xscale_palmt755p MACH_XSCALE_PALMT755P XSCALE_PALMT755P 1424
+ezreganut9200 MACH_EZREGANUT9200 EZREGANUT9200 1425
+sarge MACH_SARGE SARGE 1426
+a696 MACH_A696 A696 1427
+turtle1916 MACH_TURTLE TURTLE 1428
+pxa1916 MACH_MY5910TURTLE MY5910TURTLE 1429
+mx27_3ds MACH_MX27_3DS MX27_3DS 1430
+bishop MACH_BISHOP BISHOP 1431
+pxx MACH_PXX PXX 1432
+redwood MACH_REDWOOD REDWOOD 1433
+dummy MACH_OMAP2430DLP OMAP2430DLP 1434
+dummy_board MACH_OMAP2430OSK OMAP2430OSK 1435
+omap_2430dlp MACH_OMAP_2430DLP OMAP_2430DLP 1436
+omap_2430osk MACH_OMAP_2430OSK OMAP_2430OSK 1437
+sardine MACH_SARDINE SARDINE 1438
+halibut MACH_HALIBUT HALIBUT 1439
+trout MACH_TROUT TROUT 1440
+goldfish MACH_GOLDFISH GOLDFISH 1441
+gesbc2440 MACH_GESBC2440 GESBC2440 1442
+nomad MACH_NOMAD NOMAD 1443
+rosalind MACH_ROSALIND ROSALIND 1444
+cc9p9215 MACH_CC9P9215 CC9P9215 1445
+cc9p9210 MACH_CC9P9210 CC9P9210 1446
+cc9p9215js MACH_CC9P9215JS CC9P9215JS 1447
+cc9p9210js MACH_CC9P9210JS CC9P9210JS 1448
+nasffe MACH_NASFFE NASFFE 1449
+tn2x0bd MACH_TN2X0BD TN2X0BD 1450
+gwmpxa MACH_GWMPXA GWMPXA 1451
+exyplus MACH_EXYPLUS EXYPLUS 1452
+jadoo21 MACH_JADOO21 JADOO21 1453
+looxn560 MACH_LOOXN560 LOOXN560 1454
+bonsai MACH_BONSAI BONSAI 1455
+adsmilgato MACH_ADSMILGATO ADSMILGATO 1456
+gba MACH_GBA GBA 1457
+h6044 MACH_H6044 H6044 1458
+app MACH_APP APP 1459
+tct_hammer MACH_TCT_HAMMER TCT_HAMMER 1460
+herald MACH_HERMES HERMES 1461
+artemis MACH_ARTEMIS ARTEMIS 1462
+htctitan MACH_HTCTITAN HTCTITAN 1463
+qranium MACH_QRANIUM QRANIUM 1464
+add_wsc2 MACH_ADD_WSC2 ADD_WSC2 1465
+add_medinet MACH_ADD_MEDINET ADD_MEDINET 1466
+bboard MACH_BBOARD BBOARD 1467
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mar...@us...> - 2007-08-29 02:11:00
|
Revision: 1284
http://hackndev.svn.sourceforge.net/hackndev/?rev=1284&view=rev
Author: marex_z71
Date: 2007-08-28 19:10:53 -0700 (Tue, 28 Aug 2007)
Log Message:
-----------
Cocoboot: add xscale_palmt700p support
Modified Paths:
--------------
cocoboot/trunk/m68k/mach.c
Modified: cocoboot/trunk/m68k/mach.c
===================================================================
--- cocoboot/trunk/m68k/mach.c 2007-08-28 04:31:44 UTC (rev 1283)
+++ cocoboot/trunk/m68k/mach.c 2007-08-29 02:10:53 UTC (rev 1284)
@@ -34,6 +34,7 @@
{ 'H101', 909, "Palm Treo 600" }, /* not registered */
{ 'H102', 909, "Palm Treo 650" },
{ 'D053', 1230, "Palm Treo 680" },
+ { 'D052', 1421, "Palm Treo 700p" },
{ 'MT64', 918, "Palm Tungsten C" },
{ 'Cct1', 817, "Palm Tungsten E" },
{ 'Zir4', 844, "Palm Tungsten E2" },
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mar...@us...> - 2007-08-28 04:31:54
|
Revision: 1283
http://hackndev.svn.sourceforge.net/hackndev/?rev=1283&view=rev
Author: marex_z71
Date: 2007-08-27 21:31:44 -0700 (Mon, 27 Aug 2007)
Log Message:
-----------
HnD: updated defconfigs, fixes booting problems on most devices
Modified Paths:
--------------
linux4palm/linux/trunk/arch/arm/configs/palmld_defconfig
linux4palm/linux/trunk/arch/arm/configs/palmt650_defconfig
linux4palm/linux/trunk/arch/arm/configs/palmt680_defconfig
linux4palm/linux/trunk/arch/arm/configs/palmtc_defconfig
linux4palm/linux/trunk/arch/arm/configs/palmtt3_defconfig
linux4palm/linux/trunk/arch/arm/configs/palmtt5_defconfig
linux4palm/linux/trunk/arch/arm/configs/palmtx_defconfig
linux4palm/linux/trunk/arch/arm/configs/palmz72_defconfig
Modified: linux4palm/linux/trunk/arch/arm/configs/palmld_defconfig
===================================================================
--- linux4palm/linux/trunk/arch/arm/configs/palmld_defconfig 2007-08-28 04:22:12 UTC (rev 1282)
+++ linux4palm/linux/trunk/arch/arm/configs/palmld_defconfig 2007-08-28 04:31:44 UTC (rev 1283)
@@ -842,11 +842,10 @@
# Non-8250 serial port support
#
CONFIG_SERIAL_PXA=y
-CONFIG_SERIAL_PXA_CONSOLE=y
+# CONFIG_SERIAL_PXA_CONSOLE is not set
CONFIG_SERIAL_PXA_COUNT=4
# CONFIG_SERIAL_PXA_IR is not set
CONFIG_SERIAL_CORE=y
-CONFIG_SERIAL_CORE_CONSOLE=y
# CONFIG_RS232_SERIAL is not set
CONFIG_UNIX98_PTYS=y
CONFIG_LEGACY_PTYS=y
Modified: linux4palm/linux/trunk/arch/arm/configs/palmt650_defconfig
===================================================================
--- linux4palm/linux/trunk/arch/arm/configs/palmt650_defconfig 2007-08-28 04:22:12 UTC (rev 1282)
+++ linux4palm/linux/trunk/arch/arm/configs/palmt650_defconfig 2007-08-28 04:31:44 UTC (rev 1283)
@@ -721,11 +721,10 @@
# Non-8250 serial port support
#
CONFIG_SERIAL_PXA=y
-CONFIG_SERIAL_PXA_CONSOLE=y
+# CONFIG_SERIAL_PXA_CONSOLE is not set
CONFIG_SERIAL_PXA_COUNT=4
CONFIG_SERIAL_PXA_IR=y
CONFIG_SERIAL_CORE=y
-CONFIG_SERIAL_CORE_CONSOLE=y
# CONFIG_RS232_SERIAL is not set
CONFIG_UNIX98_PTYS=y
CONFIG_LEGACY_PTYS=y
Modified: linux4palm/linux/trunk/arch/arm/configs/palmt680_defconfig
===================================================================
--- linux4palm/linux/trunk/arch/arm/configs/palmt680_defconfig 2007-08-28 04:22:12 UTC (rev 1282)
+++ linux4palm/linux/trunk/arch/arm/configs/palmt680_defconfig 2007-08-28 04:31:44 UTC (rev 1283)
@@ -720,11 +720,10 @@
# Non-8250 serial port support
#
CONFIG_SERIAL_PXA=y
-CONFIG_SERIAL_PXA_CONSOLE=y
+# CONFIG_SERIAL_PXA_CONSOLE is not set
CONFIG_SERIAL_PXA_COUNT=4
CONFIG_SERIAL_PXA_IR=y
CONFIG_SERIAL_CORE=y
-CONFIG_SERIAL_CORE_CONSOLE=y
# CONFIG_RS232_SERIAL is not set
CONFIG_UNIX98_PTYS=y
CONFIG_LEGACY_PTYS=y
Modified: linux4palm/linux/trunk/arch/arm/configs/palmtc_defconfig
===================================================================
--- linux4palm/linux/trunk/arch/arm/configs/palmtc_defconfig 2007-08-28 04:22:12 UTC (rev 1282)
+++ linux4palm/linux/trunk/arch/arm/configs/palmtc_defconfig 2007-08-28 04:31:44 UTC (rev 1283)
@@ -681,11 +681,10 @@
# Non-8250 serial port support
#
CONFIG_SERIAL_PXA=y
-CONFIG_SERIAL_PXA_CONSOLE=y
+# CONFIG_SERIAL_PXA_CONSOLE is not set
CONFIG_SERIAL_PXA_COUNT=4
# CONFIG_SERIAL_PXA_IR is not set
CONFIG_SERIAL_CORE=y
-CONFIG_SERIAL_CORE_CONSOLE=y
# CONFIG_RS232_SERIAL is not set
CONFIG_UNIX98_PTYS=y
CONFIG_LEGACY_PTYS=y
Modified: linux4palm/linux/trunk/arch/arm/configs/palmtt3_defconfig
===================================================================
--- linux4palm/linux/trunk/arch/arm/configs/palmtt3_defconfig 2007-08-28 04:22:12 UTC (rev 1282)
+++ linux4palm/linux/trunk/arch/arm/configs/palmtt3_defconfig 2007-08-28 04:31:44 UTC (rev 1283)
@@ -750,11 +750,10 @@
# Non-8250 serial port support
#
CONFIG_SERIAL_PXA=y
-CONFIG_SERIAL_PXA_CONSOLE=y
+# CONFIG_SERIAL_PXA_CONSOLE is not set
CONFIG_SERIAL_PXA_COUNT=4
# CONFIG_SERIAL_PXA_IR is not set
CONFIG_SERIAL_CORE=y
-CONFIG_SERIAL_CORE_CONSOLE=y
# CONFIG_RS232_SERIAL is not set
CONFIG_UNIX98_PTYS=y
CONFIG_LEGACY_PTYS=y
Modified: linux4palm/linux/trunk/arch/arm/configs/palmtt5_defconfig
===================================================================
--- linux4palm/linux/trunk/arch/arm/configs/palmtt5_defconfig 2007-08-28 04:22:12 UTC (rev 1282)
+++ linux4palm/linux/trunk/arch/arm/configs/palmtt5_defconfig 2007-08-28 04:31:44 UTC (rev 1283)
@@ -776,11 +776,10 @@
# Non-8250 serial port support
#
CONFIG_SERIAL_PXA=y
-CONFIG_SERIAL_PXA_CONSOLE=y
+# CONFIG_SERIAL_PXA_CONSOLE is not set
CONFIG_SERIAL_PXA_COUNT=4
# CONFIG_SERIAL_PXA_IR is not set
CONFIG_SERIAL_CORE=y
-CONFIG_SERIAL_CORE_CONSOLE=y
# CONFIG_RS232_SERIAL is not set
CONFIG_UNIX98_PTYS=y
CONFIG_LEGACY_PTYS=y
Modified: linux4palm/linux/trunk/arch/arm/configs/palmtx_defconfig
===================================================================
--- linux4palm/linux/trunk/arch/arm/configs/palmtx_defconfig 2007-08-28 04:22:12 UTC (rev 1282)
+++ linux4palm/linux/trunk/arch/arm/configs/palmtx_defconfig 2007-08-28 04:31:44 UTC (rev 1283)
@@ -682,11 +682,10 @@
# Non-8250 serial port support
#
CONFIG_SERIAL_PXA=y
-CONFIG_SERIAL_PXA_CONSOLE=y
+# CONFIG_SERIAL_PXA_CONSOLE is not set
CONFIG_SERIAL_PXA_COUNT=4
# CONFIG_SERIAL_PXA_IR is not set
CONFIG_SERIAL_CORE=y
-CONFIG_SERIAL_CORE_CONSOLE=y
# CONFIG_RS232_SERIAL is not set
CONFIG_UNIX98_PTYS=y
CONFIG_LEGACY_PTYS=y
Modified: linux4palm/linux/trunk/arch/arm/configs/palmz72_defconfig
===================================================================
--- linux4palm/linux/trunk/arch/arm/configs/palmz72_defconfig 2007-08-28 04:22:12 UTC (rev 1282)
+++ linux4palm/linux/trunk/arch/arm/configs/palmz72_defconfig 2007-08-28 04:31:44 UTC (rev 1283)
@@ -674,11 +674,10 @@
# Non-8250 serial port support
#
CONFIG_SERIAL_PXA=y
-CONFIG_SERIAL_PXA_CONSOLE=y
+# CONFIG_SERIAL_PXA_CONSOLE is not set
CONFIG_SERIAL_PXA_COUNT=4
# CONFIG_SERIAL_PXA_IR is not set
CONFIG_SERIAL_CORE=y
-CONFIG_SERIAL_CORE_CONSOLE=y
# CONFIG_RS232_SERIAL is not set
CONFIG_UNIX98_PTYS=y
CONFIG_LEGACY_PTYS=y
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mar...@us...> - 2007-08-28 04:22:15
|
Revision: 1282
http://hackndev.svn.sourceforge.net/hackndev/?rev=1282&view=rev
Author: marex_z71
Date: 2007-08-27 21:22:12 -0700 (Mon, 27 Aug 2007)
Log Message:
-----------
WhineHack: v1.2 - added OMAP support
Modified Paths:
--------------
whinehack/arm/arm.c
whinehack/include/regs.h
whinehack/include/whinehack.rcp
Modified: whinehack/arm/arm.c
===================================================================
--- whinehack/arm/arm.c 2007-08-27 22:33:18 UTC (rev 1281)
+++ whinehack/arm/arm.c 2007-08-28 04:22:12 UTC (rev 1282)
@@ -50,12 +50,17 @@
/* make sure we're being given a sensible divisor */
if (divisor > 4) return 0;
- /* make sure this an XScale CPU */
+ /* check if this is an XScale CPU */
asm("mrc p15, 0, %0, c0, c0, 0": "=r"(cpu_id));
if ((cpu_id & CPU_VENDOR_MASK) != CPUV_INTEL || (cpu_id & CPU_MODEL_MASK) == CPU_SA1100) {
- return 1;
+ /* it is OMAP */
+ reg = (UInt32*)LCD_TIMING2;
+ irq_off();
+ *reg = (*reg & ~0xff) | ((divisor+2) & 0xff);
+ irq_on();
+ return *reg;
}
-
+ /* it is XScale */
if (pref & ALTREGSFLAG) {
reg = (UInt32*)(LCCR3 - ALT_OFFSET);
} else {
Modified: whinehack/include/regs.h
===================================================================
--- whinehack/include/regs.h 2007-08-27 22:33:18 UTC (rev 1281)
+++ whinehack/include/regs.h 2007-08-28 04:22:12 UTC (rev 1282)
@@ -11,4 +11,12 @@
#define ALT_OFFSET 0x02000000
+/* OMAP LCD Control registers */
+#define LCD_CONTROL 0xfffec000
+#define LCD_TIMING0 0xfffec004
+#define LCD_TIMING1 0xfffec008
+#define LCD_TIMING2 0xfffec00c
+#define LCD_STATUS 0xfffec010
+#define LCD_SUBPANEL 0xfffec014
+
#endif
Modified: whinehack/include/whinehack.rcp
===================================================================
--- whinehack/include/whinehack.rcp 2007-08-27 22:33:18 UTC (rev 1281)
+++ whinehack/include/whinehack.rcp 2007-08-28 04:22:12 UTC (rev 1282)
@@ -1,7 +1,7 @@
#include "whinehack_r.h"
APPLICATIONICONNAME ID 1000 "WhineHack"
-VERSION "1.1"
+VERSION "1.2"
ICON
BEGIN
@@ -43,7 +43,7 @@
FORM ID MainForm AT (0 0 160 160) NOFRAME USABLE MENUID MainFormMenu HELPID GnuGpl MODAL
BEGIN
- TITLE "WhineHack v1.1"
+ TITLE "WhineHack v1.2"
LABEL "To get started:" AUTOID AT (2 12) FONT 0
LABEL "Select a hack level from the" AUTOID AT (12 22) FONT 0
LABEL "menu (say Ultra Violence)." AUTOID AT (12 32) FONT 0
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mar...@us...> - 2007-08-27 22:33:33
|
Revision: 1281
http://hackndev.svn.sourceforge.net/hackndev/?rev=1281&view=rev
Author: marex_z71
Date: 2007-08-27 15:33:18 -0700 (Mon, 27 Aug 2007)
Log Message:
-----------
HnD: cleanups ...
Modified Paths:
--------------
linux4palm/linux/trunk/arch/arm/mach-pxa/palmld/Kconfig
linux4palm/linux/trunk/arch/arm/mach-pxa/palmld/Makefile
Modified: linux4palm/linux/trunk/arch/arm/mach-pxa/palmld/Kconfig
===================================================================
--- linux4palm/linux/trunk/arch/arm/mach-pxa/palmld/Kconfig 2007-08-26 23:32:23 UTC (rev 1280)
+++ linux4palm/linux/trunk/arch/arm/mach-pxa/palmld/Kconfig 2007-08-27 22:33:18 UTC (rev 1281)
@@ -14,10 +14,6 @@
This driver handles the CF/PCCARD/PCMCIA bus which is not used to
connect the microdrive.
-config PALMLD_USB
- tristate "Palm LifeDrive USB driver"
- depends on MACH_XSCALE_PALMLD
-
config PALMLD_IDE
tristate "Palm LifeDrive IDE driver"
depends on MACH_XSCALE_PALMLD
Modified: linux4palm/linux/trunk/arch/arm/mach-pxa/palmld/Makefile
===================================================================
--- linux4palm/linux/trunk/arch/arm/mach-pxa/palmld/Makefile 2007-08-26 23:32:23 UTC (rev 1280)
+++ linux4palm/linux/trunk/arch/arm/mach-pxa/palmld/Makefile 2007-08-27 22:33:18 UTC (rev 1281)
@@ -4,7 +4,6 @@
obj-$(CONFIG_MACH_XSCALE_PALMLD) += palmld.o
obj-$(CONFIG_PALMLD_PCMCIA) += palmld_pcmcia.o
-obj-$(CONFIG_PALMLD_USB) += palmld_usb.o
obj-$(CONFIG_PALMLD_IDE) += palmld_ide.o
obj-$(CONFIG_PALMLD_PM) += palmld_pm.o
obj-$(CONFIG_PALMLD_BATTERY) += palmld_battery.o
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mar...@us...> - 2007-08-27 16:53:24
|
Revision: 1274
http://hackndev.svn.sourceforge.net/hackndev/?rev=1274&view=rev
Author: marex_z71
Date: 2007-08-25 21:37:17 -0700 (Sat, 25 Aug 2007)
Log Message:
-----------
PalmTX: remove bloated code from palmtx_battery
Modified Paths:
--------------
linux4palm/linux/trunk/arch/arm/mach-pxa/palmtx/palmtx_battery.c
Modified: linux4palm/linux/trunk/arch/arm/mach-pxa/palmtx/palmtx_battery.c
===================================================================
--- linux4palm/linux/trunk/arch/arm/mach-pxa/palmtx/palmtx_battery.c 2007-08-26 01:16:28 UTC (rev 1273)
+++ linux4palm/linux/trunk/arch/arm/mach-pxa/palmtx/palmtx_battery.c 2007-08-26 04:37:17 UTC (rev 1274)
@@ -100,7 +100,7 @@
int palmtx_battery_get_status(struct power_supply *b)
{
int ac_connected = GET_PALMTX_GPIO(POWER_DETECT);
- int usb_connected = !GET_PALMTX_GPIO(USB_DETECT);
+ int usb_connected = !GET_PALMTX_GPIO(USB_DETECT_N);
if ( (ac_connected || usb_connected) &&
( ( bat.current_voltage > bat.previous_voltage ) ||
@@ -208,13 +208,7 @@
static int palmtx_ac_is_connected (void){
/* when charger is plugged in, then status is ONLINE */
- int ret = ((GET_GPIO(GPIO_NR_PALMTX_POWER_DETECT))||(!GET_GPIO(GPIO_NR_PALMTX_USB_DETECT)));;
- if (ret)
- ret = 1;
- else
- ret = 0;
-
- return ret;
+ return GET_PALMTX_GPIO(POWER_DETECT)||(!GET_PALMTX_GPIO(USB_DETECT_N));
}
#if defined(CONFIG_APM_EMULATION) || defined(CONFIG_APM_MODULE)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mar...@us...> - 2007-08-27 15:52:32
|
Revision: 1271
http://hackndev.svn.sourceforge.net/hackndev/?rev=1271&view=rev
Author: marex_z71
Date: 2007-08-25 12:44:23 -0700 (Sat, 25 Aug 2007)
Log Message:
-----------
PalmTX: add some more init code
Modified Paths:
--------------
linux4palm/linux/trunk/arch/arm/mach-pxa/palmtx/palmtx_pcmcia.c
Modified: linux4palm/linux/trunk/arch/arm/mach-pxa/palmtx/palmtx_pcmcia.c
===================================================================
--- linux4palm/linux/trunk/arch/arm/mach-pxa/palmtx/palmtx_pcmcia.c 2007-08-25 19:39:34 UTC (rev 1270)
+++ linux4palm/linux/trunk/arch/arm/mach-pxa/palmtx/palmtx_pcmcia.c 2007-08-25 19:44:23 UTC (rev 1271)
@@ -55,6 +55,17 @@
static int palmtx_pcmcia_hw_init (struct soc_pcmcia_socket *skt)
{
+ GPSR(GPIO48_nPOE_MD) = GPIO_bit(GPIO48_nPOE_MD) |
+ GPIO_bit(GPIO49_nPWE_MD) |
+ GPIO_bit(GPIO50_nPIOR_MD) |
+ GPIO_bit(GPIO51_nPIOW_MD) |
+ GPIO_bit(GPIO85_nPCE_1_MD) |
+ GPIO_bit(GPIO53_nPCE_2_MD) |
+ GPIO_bit(GPIO54_pSKTSEL_MD) |
+ GPIO_bit(GPIO55_nPREG_MD) |
+ GPIO_bit(GPIO56_nPWAIT_MD) |
+ GPIO_bit(GPIO57_nIOIS16_MD) |
+
pxa_gpio_mode(GPIO48_nPOE_MD);
pxa_gpio_mode(GPIO49_nPWE_MD);
pxa_gpio_mode(GPIO50_nPIOR_MD);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mar...@us...> - 2007-08-27 15:43:28
|
Revision: 1270
http://hackndev.svn.sourceforge.net/hackndev/?rev=1270&view=rev
Author: marex_z71
Date: 2007-08-25 12:39:34 -0700 (Sat, 25 Aug 2007)
Log Message:
-----------
PalmTX: corrected PCMCIA driver, all control lines should be correctly set up now
Modified Paths:
--------------
linux4palm/linux/trunk/arch/arm/mach-pxa/palmtx/palmtx_pcmcia.c
Modified: linux4palm/linux/trunk/arch/arm/mach-pxa/palmtx/palmtx_pcmcia.c
===================================================================
--- linux4palm/linux/trunk/arch/arm/mach-pxa/palmtx/palmtx_pcmcia.c 2007-08-25 03:09:05 UTC (rev 1269)
+++ linux4palm/linux/trunk/arch/arm/mach-pxa/palmtx/palmtx_pcmcia.c 2007-08-25 19:39:34 UTC (rev 1270)
@@ -55,21 +55,16 @@
static int palmtx_pcmcia_hw_init (struct soc_pcmcia_socket *skt)
{
- GPSR(GPIO48_nPOE) = GPIO_bit(GPIO48_nPOE) |
- GPIO_bit(GPIO49_nPWE) |
- GPIO_bit(GPIO85_nPCE_1_MD) |
- GPIO_bit(GPIO53_nPCE_2_MD) |
- GPIO_bit(GPIO54_pSKTSEL_MD) |
- GPIO_bit(GPIO55_nPREG_MD) |
- GPIO_bit(GPIO56_nPWAIT_MD);
-
pxa_gpio_mode(GPIO48_nPOE_MD);
pxa_gpio_mode(GPIO49_nPWE_MD);
+ pxa_gpio_mode(GPIO50_nPIOR_MD);
+ pxa_gpio_mode(GPIO51_nPIOW_MD);
pxa_gpio_mode(GPIO85_nPCE_1_MD);
pxa_gpio_mode(GPIO53_nPCE_2_MD);
pxa_gpio_mode(GPIO54_pSKTSEL_MD);
pxa_gpio_mode(GPIO55_nPREG_MD);
pxa_gpio_mode(GPIO56_nPWAIT_MD);
+ pxa_gpio_mode(GPIO57_nIOIS16_MD);
skt->irq = IRQ_GPIO(GPIO_NR_PALMTX_PCMCIA_READY);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mar...@us...> - 2007-08-27 15:42:23
|
Revision: 1276
http://hackndev.svn.sourceforge.net/hackndev/?rev=1276&view=rev
Author: marex_z71
Date: 2007-08-25 21:55:37 -0700 (Sat, 25 Aug 2007)
Log Message:
-----------
PalmTX: polishing the code, replaced comments with C-style ones, used TABs, removed useless braces etc.
Modified Paths:
--------------
linux4palm/linux/trunk/arch/arm/mach-pxa/palmtx/palmtx.c
linux4palm/linux/trunk/arch/arm/mach-pxa/palmtx/palmtx_battery.c
linux4palm/linux/trunk/arch/arm/mach-pxa/palmtx/palmtx_pm.c
Modified: linux4palm/linux/trunk/arch/arm/mach-pxa/palmtx/palmtx.c
===================================================================
--- linux4palm/linux/trunk/arch/arm/mach-pxa/palmtx/palmtx.c 2007-08-26 04:40:15 UTC (rev 1275)
+++ linux4palm/linux/trunk/arch/arm/mach-pxa/palmtx/palmtx.c 2007-08-26 04:55:37 UTC (rev 1276)
@@ -156,10 +156,10 @@
**************/
struct platform_device palmtx_border = {
- .name = "palmtx-border",
- .id = -1,
- .dev = {
- .platform_data = NULL,
+ .name = "palmtx-border",
+ .id = -1,
+ .dev = {
+ .platform_data = NULL,
},
};
@@ -169,23 +169,23 @@
static void palmtx_bl_power(int on)
{
- if(GET_PALMTX_GPIO(BL_POWER)!=on) {
- SET_PALMTX_GPIO(LCD_POWER, on);
- SET_PALMTX_GPIO(BL_POWER, on);
- pxa_set_cken(CKEN0_PWM0, on);
- pxa_set_cken(CKEN1_PWM1, on);
- mdelay(50);
- }
+ if(GET_PALMTX_GPIO(BL_POWER)!=on) {
+ SET_PALMTX_GPIO(LCD_POWER, on);
+ SET_PALMTX_GPIO(BL_POWER, on);
+ pxa_set_cken(CKEN0_PWM0, on);
+ pxa_set_cken(CKEN1_PWM1, on);
+ mdelay(50);
+ }
}
static void palmtx_set_bl_intensity(int intensity)
{
- palmtx_bl_power(intensity ? 1 : 0);
- if(intensity) {
- PWM_CTRL0 = 0x7;
- PWM_PERVAL0 = PALMTX_PERIOD;
- PWM_PWDUTY0 = intensity;
- }
+ palmtx_bl_power(intensity ? 1 : 0);
+ if(intensity) {
+ PWM_CTRL0 = 0x7;
+ PWM_PERVAL0 = PALMTX_PERIOD;
+ PWM_PWDUTY0 = intensity;
+ }
}
static struct corgibl_machinfo palmtx_bl_machinfo = {
@@ -333,7 +333,7 @@
.name = "pxa2xx-ac97",
.id = -1,
.dev = {
- .platform_data = &palmtx_audio_ops
+ .platform_data = &palmtx_audio_ops
},
};
@@ -342,9 +342,9 @@
********************/
struct platform_device palmtx_pm = {
- .name = "palmtx-pm",
- .id = -1,
- .dev = {
+ .name = "palmtx-pm",
+ .id = -1,
+ .dev = {
.platform_data = NULL,
},
};
@@ -377,18 +377,18 @@
static struct pxafb_mode_info palmtx_lcd_modes[] = {
{
.pixclock = 0,
- .xres = 320, // PPL + 1
- .yres = 480, // LPP + 1
- .bpp = 16, // BPP
+ .xres = 320, /* PPL + 1 */
+ .yres = 480, /* LPP + 1 */
+ .bpp = 16, /* BPP */
- // linux palmos
- .left_margin = 32, // BLW + 1 (BLW=31)
- .right_margin = 1, // ELW + 1 (ELW=3) *
- .upper_margin = 7, // BFW + 1 (BFW=7) *
- .lower_margin = 1, // EFW + 1 (EFW=8) *
+ /* linux palmos */
+ .left_margin = 32, /* BLW + 1 (BLW=31) */
+ .right_margin = 1, /* ELW + 1 (ELW=3) */
+ .upper_margin = 7, /* BFW + 1 (BFW=7) */
+ .lower_margin = 1, /* EFW + 1 (EFW=8) */
- .hsync_len = 4, // HSW + 1 (HSW=3)
- .vsync_len = 1, // VSW + 1 (VSW=0)
+ .hsync_len = 4, /* HSW + 1 (HSW=3) */
+ .vsync_len = 1, /* VSW + 1 (VSW=0) */
},
};
@@ -422,11 +422,11 @@
static void __init palmtx_init(void)
{
- // disable primary codec interrupt to prevent WM9712 constantly interrupting the CPU
- // and preventing the boot process to complete (Thanx Alex & Shadowmite!)
+ /* disable primary codec interrupt to prevent WM9712 constantly interrupting the CPU
+ and preventing the boot process to complete (Thanx Alex & Shadowmite!) */
GCR &= ~GCR_PRIRDY_IEN;
- // configure AC97's GPIOs
+ /* configure AC97's GPIOs */
pxa_gpio_mode(GPIO28_BITCLK_AC97_MD);
pxa_gpio_mode(GPIO29_SDATA_IN_AC97_MD);
pxa_gpio_mode(GPIO30_SDATA_OUT_AC97_MD);
Modified: linux4palm/linux/trunk/arch/arm/mach-pxa/palmtx/palmtx_battery.c
===================================================================
--- linux4palm/linux/trunk/arch/arm/mach-pxa/palmtx/palmtx_battery.c 2007-08-26 04:40:15 UTC (rev 1275)
+++ linux4palm/linux/trunk/arch/arm/mach-pxa/palmtx/palmtx_battery.c 2007-08-26 04:55:37 UTC (rev 1276)
@@ -73,13 +73,12 @@
int palmtx_battery_get_voltage(struct power_supply *b)
{
- if (bat.battery_registered){
+ if (bat.battery_registered) {
bat.previous_voltage = bat.current_voltage;
bat.current_voltage = wm97xx_read_aux_adc(bat.wm, WM97XX_AUX_ID3);
bat.last_battery_update = jiffies;
return bat.current_voltage * 1889/1000 + 7678/10;
- }
- else{
+ } else {
printk("palmtx_battery: cannot get voltage -> battery driver unregistered\n");
return 0;
}
@@ -87,10 +86,9 @@
int palmtx_battery_get_capacity(struct power_supply *b)
{
- if (bat.battery_registered){
+ if (bat.battery_registered)
return (((palmtx_battery_get_voltage(b)-palmtx_battery_min_voltage(b))
/(palmtx_battery_max_voltage(b)-palmtx_battery_min_voltage(b)))*100);
- }
else{
printk("palmtx_battery: cannot get capacity -> battery driver unregistered\n");
return 0;
@@ -196,14 +194,14 @@
static struct device_driver palmtx_wm97xx_driver = {
- .name = "wm97xx-touchscreen",
- .bus = &wm97xx_bus_type,
- .owner = THIS_MODULE,
- .probe = palmtx_wm97xx_probe,
- .remove = palmtx_wm97xx_remove,
- .suspend = palmtx_wm97xx_suspend,
- .resume = palmtx_wm97xx_resume,
- .shutdown = palmtx_wm97xx_shutdown
+ .name = "wm97xx-touchscreen",
+ .bus = &wm97xx_bus_type,
+ .owner = THIS_MODULE,
+ .probe = palmtx_wm97xx_probe,
+ .remove = palmtx_wm97xx_remove,
+ .suspend = palmtx_wm97xx_suspend,
+ .resume = palmtx_wm97xx_resume,
+ .shutdown = palmtx_wm97xx_shutdown
};
static int palmtx_ac_is_connected (void){
@@ -232,9 +230,9 @@
info->ac_line_status = palmtx_ac_is_connected() ? APM_AC_ONLINE : APM_AC_OFFLINE;
- if (info->ac_line_status) {
+ if (info->ac_line_status)
info->battery_status = APM_BATTERY_STATUS_CHARGING;
- } else {
+ else {
if (percent > 50)
info->battery_status = APM_BATTERY_STATUS_HIGH;
else if (percent < 5)
@@ -256,9 +254,8 @@
/* register battery to APM layer */
bat.battery_registered = 0;
- if(power_supply_register(NULL, &palmtx_battery)) {
+ if(power_supply_register(NULL, &palmtx_battery))
printk(KERN_ERR "palmtx_ac97_probe: could not register battery class\n");
- }
else {
bat.battery_registered = 1;
printk("Battery registered\n");
Modified: linux4palm/linux/trunk/arch/arm/mach-pxa/palmtx/palmtx_pm.c
===================================================================
--- linux4palm/linux/trunk/arch/arm/mach-pxa/palmtx/palmtx_pm.c 2007-08-26 04:40:15 UTC (rev 1275)
+++ linux4palm/linux/trunk/arch/arm/mach-pxa/palmtx/palmtx_pm.c 2007-08-26 04:55:37 UTC (rev 1276)
@@ -91,8 +91,8 @@
}
struct pxa_ll_pm_ops palmtx_ll_pm_ops = {
- .suspend = palmtx_pxa_ll_pm_suspend,
- .resume = palmtx_pxa_ll_pm_resume,
+ .suspend = palmtx_pxa_ll_pm_suspend,
+ .resume = palmtx_pxa_ll_pm_resume,
};
static int palmtx_pm_probe(struct device *dev)
@@ -102,11 +102,11 @@
}
struct device_driver palmtx_pm_driver = {
- .name = "palmtx-pm",
- .bus = &platform_bus_type,
- .probe = palmtx_pm_probe,
- .suspend = palmtx_suspend,
- .resume = palmtx_resume,
+ .name = "palmtx-pm",
+ .bus = &platform_bus_type,
+ .probe = palmtx_pm_probe,
+ .suspend = palmtx_suspend,
+ .resume = palmtx_resume,
};
static int __init palmtx_pm_init(void)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mar...@us...> - 2007-08-27 15:41:15
|
Revision: 1272
http://hackndev.svn.sourceforge.net/hackndev/?rev=1272&view=rev
Author: marex_z71
Date: 2007-08-25 12:48:28 -0700 (Sat, 25 Aug 2007)
Log Message:
-----------
PalmTX: typo correction in pcmcia code and formating fix
Modified Paths:
--------------
linux4palm/linux/trunk/arch/arm/mach-pxa/palmtx/palmtx_pcmcia.c
Modified: linux4palm/linux/trunk/arch/arm/mach-pxa/palmtx/palmtx_pcmcia.c
===================================================================
--- linux4palm/linux/trunk/arch/arm/mach-pxa/palmtx/palmtx_pcmcia.c 2007-08-25 19:44:23 UTC (rev 1271)
+++ linux4palm/linux/trunk/arch/arm/mach-pxa/palmtx/palmtx_pcmcia.c 2007-08-25 19:48:28 UTC (rev 1272)
@@ -55,16 +55,16 @@
static int palmtx_pcmcia_hw_init (struct soc_pcmcia_socket *skt)
{
- GPSR(GPIO48_nPOE_MD) = GPIO_bit(GPIO48_nPOE_MD) |
- GPIO_bit(GPIO49_nPWE_MD) |
- GPIO_bit(GPIO50_nPIOR_MD) |
- GPIO_bit(GPIO51_nPIOW_MD) |
- GPIO_bit(GPIO85_nPCE_1_MD) |
- GPIO_bit(GPIO53_nPCE_2_MD) |
- GPIO_bit(GPIO54_pSKTSEL_MD) |
- GPIO_bit(GPIO55_nPREG_MD) |
- GPIO_bit(GPIO56_nPWAIT_MD) |
- GPIO_bit(GPIO57_nIOIS16_MD) |
+ GPSR(GPIO48_nPOE_MD) = GPIO_bit(GPIO48_nPOE_MD) |
+ GPIO_bit(GPIO49_nPWE_MD) |
+ GPIO_bit(GPIO50_nPIOR_MD) |
+ GPIO_bit(GPIO51_nPIOW_MD) |
+ GPIO_bit(GPIO85_nPCE_1_MD) |
+ GPIO_bit(GPIO53_nPCE_2_MD) |
+ GPIO_bit(GPIO54_pSKTSEL_MD) |
+ GPIO_bit(GPIO55_nPREG_MD) |
+ GPIO_bit(GPIO56_nPWAIT_MD) |
+ GPIO_bit(GPIO57_nIOIS16_MD);
pxa_gpio_mode(GPIO48_nPOE_MD);
pxa_gpio_mode(GPIO49_nPWE_MD);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mar...@us...> - 2007-08-27 15:37:53
|
Revision: 1280
http://hackndev.svn.sourceforge.net/hackndev/?rev=1280&view=rev
Author: marex_z71
Date: 2007-08-26 16:32:23 -0700 (Sun, 26 Aug 2007)
Log Message:
-----------
PalmTX: cleanup, dont use lines longer than 80 characters no matter what
Modified Paths:
--------------
linux4palm/linux/trunk/arch/arm/mach-pxa/palmtx/palmtx_pm.c
Modified: linux4palm/linux/trunk/arch/arm/mach-pxa/palmtx/palmtx_pm.c
===================================================================
--- linux4palm/linux/trunk/arch/arm/mach-pxa/palmtx/palmtx_pm.c 2007-08-26 10:17:16 UTC (rev 1279)
+++ linux4palm/linux/trunk/arch/arm/mach-pxa/palmtx/palmtx_pm.c 2007-08-26 23:32:23 UTC (rev 1280)
@@ -49,9 +49,10 @@
/* Turn off USB power */
SET_PALMTX_GPIO(USB_POWER,0);
-
- /* disable GPIO reset - DO NOT REMOVE!!!!!!!! Palm totally hangs on reset without disabling GPIO reset during sleep */
+ /* disable GPIO reset - DO NOT REMOVE !!!!!!!!
+ Palm totally hangs on reset without disabling
+ GPIO reset during sleep */
PCFR = PCFR_GPROD;
return 0;
@@ -59,16 +60,15 @@
static int palmtx_resume(struct device *dev)
{
-
/* Disabled Deep-Sleep mode */
PCFR &= PCFR_DS;
- /* Re-enable GPIO reset */
- PCFR |= PCFR_GPR_EN; /* !! DO NOT REMOVE !! THIS IS NECCESARY FOR ENABLE PALM RESET !! */
+ /* Re-enable GPIO reset
+ !! DO NOT REMOVE !!
+ !! THIS IS NECCESARY TO ENABLE PALM RESET !! */
+ PCFR |= PCFR_GPR_EN;
-
- /* Here are all of special to resume Palm TX */
-
+ /* Below is all the special stuff to resume Palm TX */
/* Turn on USB power */
SET_PALMTX_GPIO(USB_POWER,1);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mar...@us...> - 2007-08-26 12:11:14
|
Revision: 1277
http://hackndev.svn.sourceforge.net/hackndev/?rev=1277&view=rev
Author: marex_z71
Date: 2007-08-25 22:41:29 -0700 (Sat, 25 Aug 2007)
Log Message:
-----------
PalmTX: updated defconfig
Modified Paths:
--------------
linux4palm/linux/trunk/arch/arm/configs/palmtx_defconfig
Modified: linux4palm/linux/trunk/arch/arm/configs/palmtx_defconfig
===================================================================
--- linux4palm/linux/trunk/arch/arm/configs/palmtx_defconfig 2007-08-26 04:55:37 UTC (rev 1276)
+++ linux4palm/linux/trunk/arch/arm/configs/palmtx_defconfig 2007-08-26 05:41:29 UTC (rev 1277)
@@ -989,7 +989,7 @@
# CONFIG_USB_G_SERIAL is not set
# CONFIG_USB_MIDI_GADGET is not set
# CONFIG_USB_G_CHAR is not set
-# CONFIG_USB_PXA2XX_GPIO is not set
+CONFIG_USB_PXA2XX_GPIO=y
#
# MMC/SD Card support
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mar...@us...> - 2007-08-26 11:14:19
|
Revision: 1269
http://hackndev.svn.sourceforge.net/hackndev/?rev=1269&view=rev
Author: marex_z71
Date: 2007-08-24 20:09:05 -0700 (Fri, 24 Aug 2007)
Log Message:
-----------
HnD: kernel cleanup - remove no longer needed code from uncompress.h
Modified Paths:
--------------
linux4palm/linux/trunk/include/asm-arm/arch-pxa/uncompress.h
Modified: linux4palm/linux/trunk/include/asm-arm/arch-pxa/uncompress.h
===================================================================
--- linux4palm/linux/trunk/include/asm-arm/arch-pxa/uncompress.h 2007-08-25 00:24:34 UTC (rev 1268)
+++ linux4palm/linux/trunk/include/asm-arm/arch-pxa/uncompress.h 2007-08-25 03:09:05 UTC (rev 1269)
@@ -19,29 +19,11 @@
static inline void putc(char c)
{
-/*
#ifdef CONFIG_SERIAL_PXA_CONSOLE
while (!(UART[5] & 0x20))
barrier();
UART[0] = c;
#endif
-*/
-#if !defined(CONFIG_MACH_PALMZ72) && !defined(CONFIG_MACH_T3XSCALE)
-#ifdef CONFIG_LL_PXA_JTAG
-__asm__ ("1001: mrc p14, 0, r15, c14, c0, 0\n"
- "bvs 1001b\n"
- "mcr p14, 0, %0, c8, c0, 0\n"
- :
- : "r"(c)
- : "r15"
- );
-#else
-/*
-+ if (machine_is_h1900())
-+ return;
-+ */
-#endif
-#endif
}
/*
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|