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: <hap...@us...> - 2007-09-17 13:32:10
|
Revision: 1324 http://hackndev.svn.sourceforge.net/hackndev/?rev=1324&view=rev Author: happy-slapin Date: 2007-09-17 06:32:07 -0700 (Mon, 17 Sep 2007) Log Message: ----------- cleanup: z31: remove debug data, magican: update from hh.org Modified Paths: -------------- linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/Makefile linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/magician/magician.c linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/palmz31/Kconfig linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/palmz31/Makefile Removed Paths: ------------- linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/palmz31/gpioed-ng.c linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/palmz31/gpioed.c Modified: linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/Makefile =================================================================== --- linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/Makefile 2007-09-17 13:00:29 UTC (rev 1323) +++ linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/Makefile 2007-09-17 13:32:07 UTC (rev 1324) @@ -44,8 +44,6 @@ obj-y += aximx5/ obj-y += aximx30/ obj-y += rover/ -obj-$(CONFIG_MACH_RECON) += plat-recon/ -obj-$(CONFIG_MACH_LOOXC550) += looxc550/ obj-$(CONFIG_MACH_X50) += aximx50/ obj-$(CONFIG_MACH_TUNGE2) += palmte2/ obj-$(CONFIG_MACH_OMAP_PALMTC) += ssp.o palmtc/ Modified: linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/magician/magician.c =================================================================== --- linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/magician/magician.c 2007-09-17 13:00:29 UTC (rev 1323) +++ linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/magician/magician.c 2007-09-17 13:32:07 UTC (rev 1324) @@ -574,9 +574,30 @@ }, }; -static struct platform_device magician_led = { - .name = "magician-led", +struct gpio_led gpio_leds[] = { + { + .name = "magician:vibra", + .default_trigger = "none", + .gpio = GPIO22_MAGICIAN_VIBRA_EN, + }, + { + .name = "magician:phone_bl", + .default_trigger = "backlight", + .gpio = GPIO103_MAGICIAN_LED_KP, + }, +}; + +static struct gpio_led_platform_data gpio_led_info = { + .leds = gpio_leds, + .num_leds = ARRAY_SIZE(gpio_leds), +}; + +static struct platform_device leds_gpio = { + .name = "leds-gpio", .id = -1, + .dev = { + .platform_data = &gpio_led_info, + }, }; /* @@ -789,7 +810,7 @@ &magician_phone, &magician_flash, &pasic3, - &magician_led, + &leds_gpio, #if 0 &pxa_spi_ssp2, #endif Modified: linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/palmz31/Kconfig =================================================================== --- linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/palmz31/Kconfig 2007-09-17 13:00:29 UTC (rev 1323) +++ linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/palmz31/Kconfig 2007-09-17 13:32:07 UTC (rev 1324) @@ -11,20 +11,3 @@ help This driver translates button presses on a Palm Tungsten E2 to Linux input subsystem events. - - -config GPIOED - tristate "GPIOED" - depends on MACH_ZIRE31 - default n - help - Gpioed: only for debuging and testing! - - -config GPIOEDNG - tristate "GPIOEDNG" - depends on MACH_ZIRE31 - default n - help - Gpioed-ng: only for debuging and testing! - Modified: linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/palmz31/Makefile =================================================================== --- linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/palmz31/Makefile 2007-09-17 13:00:29 UTC (rev 1323) +++ linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/palmz31/Makefile 2007-09-17 13:32:07 UTC (rev 1324) @@ -4,5 +4,3 @@ obj-$(CONFIG_MACH_ZIRE31) += palmz31.o obj-$(CONFIG_PALMZ31_BUTTONS) += palmz31_buttons.o -obj-$(CONFIG_GPIOED) += gpioed.o -obj-$(CONFIG_GPIOEDNG) += gpioed-ng.o Deleted: linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/palmz31/gpioed-ng.c =================================================================== --- linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/palmz31/gpioed-ng.c 2007-09-17 13:00:29 UTC (rev 1323) +++ linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/palmz31/gpioed-ng.c 2007-09-17 13:32:07 UTC (rev 1324) @@ -1,175 +0,0 @@ -#include <linux/module.h> -#include <linux/kernel.h> -#include <linux/init.h> -#include <linux/proc_fs.h> - -#include <linux/interrupt.h> -#include <asm/irq.h> -#include <asm/mach/arch.h> -#include <asm/mach/map.h> -#include <asm/mach-types.h> -#include <asm/hardware.h> -#include <linux/sched.h> -#include <linux/workqueue.h> -#include <asm/arch/pxa-regs.h> -#include <asm/arch/irqs.h> -#include <asm/uaccess.h> - -#include <linux/debugfs.h> -#include <linux/seq_file.h> - -#define PROCFS_NAME "gpio" -#define DEBUGFS_NAME "gpio" - -static struct proc_dir_entry *proc_intf; -static struct dentry *debugfs_intf; - -#define PROCFS_MAX_SIZE 20 - -static char procfs_buffer[PROCFS_MAX_SIZE]; -static unsigned long procfs_buffer_size = 0; - -#define GPIO_TEST(reg, gp) (reg(gp) & GPIO_bit(gp)) -static int dfs_show(struct seq_file *s, void *_) -{ - int i,afn; - seq_printf(s, "GPIO lines status:\n"); - - for(i=0;i<121;i++) { - afn = (GAFR(i) & (0x3 << (((i) & 0xf)*2))) >> (((i) & 0xf)*2); - seq_printf(s, "%s%d: %s %s %s %s %lx\n", - i<10?"0":"", - i, - GPIO_TEST(GPLR, i)?"*":" ", - GPIO_TEST(GPDR, i)?"->":"<-", - GPIO_TEST(GRER, i)?"_/":" ", - GPIO_TEST(GFER, i)?"\\_":" ", - afn); - - } - - return 0; -} - -static int dfs_open(struct inode *inode, struct file *file) -{ - return single_open(file, dfs_show, inode->u.generic_ip); -} - -static struct file_operations debug_fops = { - .open = dfs_open, - .read = seq_read, - .llseek = seq_lseek, - .release = single_release, -}; - -static void gpio_set(int id, int on) -{ - do { - if (on) - GPSR(id) = GPIO_bit(id); - else - GPCR(id) = GPIO_bit(id); - } while (0); -} - -void set_afn(int gpio, int fn) -{ - int gafr; - gafr = GAFR(gpio) & ~(0x3 << (((gpio) & 0xf)*2)); - GAFR(gpio) = gafr | (fn << (((gpio) & 0xf)*2)); -} - -void handle_request() -{ - char *p = NULL; - unsigned long id = simple_strtoul(procfs_buffer+2, &p, 10); - switch(procfs_buffer[0]) { - case 'L': - gpio_set(id, 1); - printk(KERN_ERR "GPIOed: GPIO %lu set high\n", id); - break; - case 'l': - gpio_set(id, 0); - printk(KERN_ERR "GPIOed: GPIO %lu set low\n", id); - break; - case 'd': - GPDR(id) &= ~(GPIO_bit(id)); - break; - case 'D': - GPDR(id) |= GPIO_bit(id); - break; - case '0': - set_afn(id, 0); - break; - case '1': - set_afn(id, 1); - break; - case '2': - set_afn(id, 2); - break; - default: - printk(KERN_ERR "GPIOed: Unknown request\n"); - break; - } -} - - -int procfile_write(struct file *file, const char *buffer, unsigned long count, void *data) -{ - procfs_buffer_size = count; - if (procfs_buffer_size > PROCFS_MAX_SIZE ) { - procfs_buffer_size = PROCFS_MAX_SIZE; - } - - /* write data to the buffer */ - if ( copy_from_user(procfs_buffer, buffer, procfs_buffer_size) ) { - return -EFAULT; - } - - handle_request(); - - return procfs_buffer_size; -} - - -static int __init gpioed_init(void) -{ - proc_intf = create_proc_entry(PROCFS_NAME, 0644, NULL); - if (proc_intf == NULL) { - remove_proc_entry(PROCFS_NAME, &proc_root); - printk(KERN_ALERT "Error: Could not initialize /proc/%s\n", PROCFS_NAME); - return -ENOMEM; - } - - /*proc_intf->read_proc = procfile_read;*/ - proc_intf->write_proc = procfile_write; - proc_intf->owner = THIS_MODULE; - proc_intf->mode = S_IFREG | S_IRUGO; - proc_intf->uid = 0; - proc_intf->gid = 0; - proc_intf->size = 37; - - debugfs_intf = debugfs_create_file(DEBUGFS_NAME, S_IRUGO, NULL, NULL, &debug_fops); - - printk(KERN_INFO "/proc/%s created\n", PROCFS_NAME); - - return 0; -} - -static void __exit gpioed_exit(void) -{ - debugfs_remove(debugfs_intf); - remove_proc_entry(PROCFS_NAME, &proc_root); - printk(KERN_INFO "/proc/%s removed\n", PROCFS_NAME); -} - - -/*** Some more stuff ***/ -module_init(gpioed_init); -module_exit(gpioed_exit); - -MODULE_LICENSE("GPL"); -MODULE_AUTHOR("Vladimir \"Farcaller\" Pouzanov <far...@gm...>"); -MODULE_DESCRIPTION("GPIO editor for PXA26x, second edition"); - Deleted: linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/palmz31/gpioed.c =================================================================== --- linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/palmz31/gpioed.c 2007-09-17 13:00:29 UTC (rev 1323) +++ linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/palmz31/gpioed.c 2007-09-17 13:32:07 UTC (rev 1324) @@ -1,279 +0,0 @@ -/*** Basic includes ***/ -#include <linux/module.h> -#include <linux/kernel.h> -#include <linux/init.h> -#include <linux/proc_fs.h> - -#include <linux/irq.h> -#include <linux/interrupt.h> -#include <asm/irq.h> -#include <asm/mach/arch.h> -#include <asm/mach/map.h> -#include <asm/mach-types.h> -#include <asm/hardware.h> -#include <linux/sched.h> -#include <linux/workqueue.h> -#include <asm/arch/pxa-regs.h> -#include <asm/arch/irqs.h> -#include <asm/uaccess.h> - -/*** GPIO macros ***/ -#define GET_PALMT3_GPIO(gpio) \ - (GPLR(GPIO_NR_PALMT3_ ## gpio) & GPIO_bit(GPIO_NR_PALMT3_ ## gpio)) - -#define SET_PALMT3_GPIO(gpio, setp) \ - do { \ - if (setp) \ - GPSR(GPIO_NR_PALMT3_ ## gpio) = GPIO_bit(GPIO_NR_PALMT3_ ## gpio); \ - else \ - GPCR(GPIO_NR_PALMT3_ ## gpio) = GPIO_bit(GPIO_NR_PALMT3_ ## gpio); \ - } while (0) - -#define SET_PALMT3_GPIO_N(gpio, setp) \ - do { \ - if (setp) \ - GPCR(GPIO_NR_PALMT3_ ## gpio) = GPIO_bit(GPIO_NR_PALMT3_ ## gpio); \ - else \ - GPSR(GPIO_NR_PALMT3_ ## gpio) = GPIO_bit(GPIO_NR_PALMT3_ ## gpio); \ - } while (0) - -#define GET_GPIO_REG(reg,gpio) (GP##reg(gpio) & GPIO_bit(gpio)) -#define GET_GPIO(gpio) (GPLR(gpio) & GPIO_bit(gpio)) -#define GET_GPIOD(gpio) (GPDR(gpio) & GPIO_bit(gpio)) - -/*** /proc interface ***/ -static struct proc_dir_entry *proc_intf; -#define procfs_name "gpioed" -#define PROCFS_MAX_SIZE 20 - -static char procfs_buffer[PROCFS_MAX_SIZE]; -static unsigned long procfs_buffer_size = 0; - -int gpio_info(char *buffer); - -int procfile_read(char *buffer, char **buffer_location, off_t offset, int buffer_length, int *eof, void *data) -{ - int ret; - - if (offset > 0) { - /* we have finished to read, return 0 */ - ret = 0; - } else { - /* fill the buffer, return the buffer size */ - ret = gpio_info(buffer); - //ret = sprintf(buffer, "HelloWorld!\n"); - } - return ret; -} - -int gpio_info(char *buffer) -// output all knowen infomation about the gpios to /proc/gpioed -{ - int i; - int ret; - sprintf(buffer, "Infomation about gpios:\n| Gpio | Direction | State |\n"); - for(i=0; i<85; i++) - { - sprintf(buffer, "%s| %2i ", buffer, i); - if(GET_GPIOD(i) == 0) //In - sprintf(buffer, "%s| In ",buffer); - else //Out - sprintf(buffer, "%s| Out ",buffer); - if(GET_GPIO(i) == 0) //Low - sprintf(buffer, "%s| Low |\n", buffer); - else //high - sprintf(buffer, "%s| High |\n", buffer); - } - ret = sprintf(buffer, "%s---------------------------\n Alternate Functions:\n 0L: %X 0U: %X 1L: %X 1U: %X 2L: %X 2U: %X\n", buffer, GAFR0_L, GAFR0_U, GAFR1_L, GAFR1_U, GAFR2_L, GAFR2_U); - - return ret; -} - -void handle_request(void); - -int procfile_write(struct file *file, const char *buffer, unsigned long count, void *data) -{ - procfs_buffer_size = count; - if (procfs_buffer_size > PROCFS_MAX_SIZE ) { - procfs_buffer_size = PROCFS_MAX_SIZE; - } - - /* write data to the buffer */ - if ( copy_from_user(procfs_buffer, buffer, procfs_buffer_size) ) { - return -EFAULT; - } - - handle_request(); - - return procfs_buffer_size; -} - -/*** IRQ (GPIO) handling ***/ -static struct workqueue_struct *my_workqueue; -#define MY_WORK_QUEUE_NAME "GPIOed" - -static void handle_gpio(void* irq) -{ - int gpn = (int)irq; - printk(KERN_ERR "*** GPIO *** %d *** is *** %s ***\n", gpn, GET_GPIO(gpn) ? "high" : "low "); -} - -irqreturn_t gpio_irq(int irq, void *dev_id, struct pt_regs *regs) -{ - static int initialised = 0; - static struct work_struct task; - - if (initialised == 0) { - INIT_WORK(&task, handle_gpio, dev_id); - initialised = 1; - } else { - PREPARE_WORK(&task, handle_gpio, dev_id); - } - - queue_work(my_workqueue, &task); - - return IRQ_HANDLED; -} - -/*** GPIO R/W ***/ -static int gpio_get(int id) -{ - return GET_GPIO(id); -} - -static void gpio_set(int id, int on) -{ - do { - if (on) - GPSR(id) = GPIO_bit(id); - else - GPCR(id) = GPIO_bit(id); - } while (0); -} - -static int gpio_watch(int x) -{ - int ret; - ret = request_irq (IRQ_GPIO(x), gpio_irq, SA_SAMPLE_RANDOM, "test_handler", (void*)x); - set_irq_type (IRQ_GPIO(x), IRQT_BOTHEDGE); - if(ret!=0) { - printk(KERN_ERR "GPIOed: failed to register for GPIO %d\n", x); - return 1; - } else { - printk(KERN_ERR "GPIOed: Registered GPIO %d\n", x); - return 0; - } -} - -void set_afn(int gpio, int fn) -{ - int gafr; - gafr = GAFR(gpio) & ~(0x3 << (((gpio) & 0xf)*2)); - GAFR(gpio) = gafr | (fn << (((gpio) & 0xf)*2)); -} - - -/*** Request handler ***/ -void handle_request() -{ - char *p = NULL; - unsigned long base = 10; - unsigned long id; - - if((procfs_buffer[0] == 'P') || (procfs_buffer[0] == 'V')) - base = 16; - id = simple_strtoul(procfs_buffer+2, &p, base); - switch(procfs_buffer[0]) { - case 'r': - printk(KERN_ERR "GPIOed: GPIO %lu is %s\n", id, gpio_get(id)?"high":"low "); - break; - case 's': - gpio_watch(id); - break; - case 'h': - gpio_set(id, 1); - printk(KERN_ERR "GPIOed: GPIO %lu set high\n", id); - break; - case 'l': - gpio_set(id, 0); - printk(KERN_ERR "GPIOed: GPIO %lu set low\n", id); - break; - case 'd': - printk(KERN_ERR "GPIOed: GPIO %lu is %s\n", id, GET_GPIO_REG(DR,id)?"output":"input"); - break; - - case 'P': - printk(KERN_ERR "GPIOed: P-V for 0x%x is 0x%x\n", id, (unsigned int)phys_to_virt(id)); - break; - case 'V': - printk(KERN_ERR "GPIOed: V-P for 0x%x is 0x%x\n", id, (unsigned int)virt_to_phys(id)); - break; - case 'D': - base = *((unsigned int*)id); - printk(KERN_ERR "GPIOed: 0x%x = 0x%x\n", id, base); - break; - case 'o': - GPDR(id) &= ~(GPIO_bit(id)); - break; - case 'i': - GPDR(id) |= GPIO_bit(id); - break; - - case '0': - set_afn(id, 0); - break; - case '1': - set_afn(id, 1); - break; - case '2': - set_afn(id, 2); - break; - - default: - printk(KERN_ERR "GPIOed: Unknown request\n"); - break; - } -} - -/*** init&exit ***/ -static int __init gpioed_init(void) -{ - my_workqueue = create_workqueue(MY_WORK_QUEUE_NAME); - - proc_intf = create_proc_entry(procfs_name, 0644, NULL); - if (proc_intf == NULL) { - remove_proc_entry(procfs_name, &proc_root); - printk(KERN_ALERT "Error: Could not initialize /proc/%s\n", - procfs_name); - return -ENOMEM; - } - - proc_intf->read_proc = procfile_read; - proc_intf->write_proc = procfile_write; - proc_intf->owner = THIS_MODULE; - proc_intf->mode = S_IFREG | S_IRUGO; - proc_intf->uid = 0; - proc_intf->gid = 0; - proc_intf->size = 37; - - printk(KERN_INFO "/proc/%s created\n", procfs_name); - - return 0; -} - -static void __exit gpioed_exit(void) -{ - destroy_workqueue(my_workqueue); - remove_proc_entry(procfs_name, &proc_root); - printk(KERN_INFO "/proc/%s removed\n", procfs_name); -} - - -/*** Some more stuff ***/ -module_init(gpioed_init); -module_exit(gpioed_exit); - -MODULE_LICENSE("GPL"); -MODULE_AUTHOR("Vladimir \"Farcaller\" Pouzanov <far...@gm...>"); -MODULE_DESCRIPTION("GPIO editor for PXA26x"); - This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <hap...@us...> - 2007-09-17 13:00:32
|
Revision: 1323 http://hackndev.svn.sourceforge.net/hackndev/?rev=1323&view=rev Author: happy-slapin Date: 2007-09-17 06:00:29 -0700 (Mon, 17 Sep 2007) Log Message: ----------- cleanup: removed unrelated junk Modified Paths: -------------- linux4palm/linux/branches/cleanup-branch-never-commit/drivers/i2c/algos/Kconfig linux4palm/linux/branches/cleanup-branch-never-commit/drivers/i2c/algos/Makefile linux4palm/linux/branches/cleanup-branch-never-commit/drivers/i2c/chips/Kconfig linux4palm/linux/branches/cleanup-branch-never-commit/drivers/i2c/chips/Makefile linux4palm/linux/branches/cleanup-branch-never-commit/drivers/i2c/i2c-core.c linux4palm/linux/branches/cleanup-branch-never-commit/include/asm-arm/arch-pxa/htcsable-asic.h linux4palm/linux/branches/cleanup-branch-never-commit/include/asm-arm/arch-pxa/htcsable-gpio.h linux4palm/linux/branches/cleanup-branch-never-commit/include/linux/mfd/htc-egpio.h Modified: linux4palm/linux/branches/cleanup-branch-never-commit/drivers/i2c/algos/Kconfig =================================================================== --- linux4palm/linux/branches/cleanup-branch-never-commit/drivers/i2c/algos/Kconfig 2007-09-17 12:14:36 UTC (rev 1322) +++ linux4palm/linux/branches/cleanup-branch-never-commit/drivers/i2c/algos/Kconfig 2007-09-17 13:00:29 UTC (rev 1323) @@ -42,17 +42,6 @@ tristate "MPC8xx CPM I2C interface" depends on 8xx && I2C -config I2C_ALGOPXA - tristate "PXA I2C Algorithm" - depends on ARCH_PXA && I2C - help - This supports the use of the PXA I2C interface found on XScale - processors. Say Y if you have one of these. You should also say Y - for the PXA I2C peripheral driver support below. - - This support is also available as a module. If so, the module - will be called i2c-algo-pxa. - config I2C_ALGO_SGI tristate "I2C SGI interfaces" depends on I2C && (SGI_IP22 || SGI_IP32 || X86_VISWS) Modified: linux4palm/linux/branches/cleanup-branch-never-commit/drivers/i2c/algos/Makefile =================================================================== --- linux4palm/linux/branches/cleanup-branch-never-commit/drivers/i2c/algos/Makefile 2007-09-17 12:14:36 UTC (rev 1322) +++ linux4palm/linux/branches/cleanup-branch-never-commit/drivers/i2c/algos/Makefile 2007-09-17 13:00:29 UTC (rev 1323) @@ -6,7 +6,6 @@ obj-$(CONFIG_I2C_ALGOPCF) += i2c-algo-pcf.o obj-$(CONFIG_I2C_ALGOPCA) += i2c-algo-pca.o obj-$(CONFIG_I2C_ALGO_SGI) += i2c-algo-sgi.o -obj-$(CONFIG_I2C_PXA) += i2c-algo-pxa.o ifeq ($(CONFIG_I2C_DEBUG_ALGO),y) EXTRA_CFLAGS += -DDEBUG Modified: linux4palm/linux/branches/cleanup-branch-never-commit/drivers/i2c/chips/Kconfig =================================================================== --- linux4palm/linux/branches/cleanup-branch-never-commit/drivers/i2c/chips/Kconfig 2007-09-17 12:14:36 UTC (rev 1322) +++ linux4palm/linux/branches/cleanup-branch-never-commit/drivers/i2c/chips/Kconfig 2007-09-17 13:00:29 UTC (rev 1323) @@ -36,12 +36,6 @@ This driver can also be built as a module. If so, the module will be called eeprom. -config I2C_ADCM2650 - tristate "ADCM2650 device" - depends on I2C && EXPERIMENTAL - help - If you say yes here you get support for the ADCM 2650 chip. - config SENSORS_PCF8574 tristate "Philips PCF8574 and PCF8574A" depends on I2C && EXPERIMENTAL @@ -115,7 +109,7 @@ # and having mostly OMAP-specific board support config TPS65010 tristate "TPS6501x Power Management chips" - depends on I2C && (ARCH_OMAP || MACH_T3XSCALE) + depends on I2C && ARCH_OMAP default y if MACH_OMAP_H2 || MACH_OMAP_H3 || MACH_OMAP_OSK help If you say yes here you get support for the TPS6501x series of @@ -158,17 +152,4 @@ This driver can also be built as a module. If so, the module will be called max6875. -config I2C_OV9640 - tristate "Support for OmniVision 9640 camera sensor" - depends on I2C - help - Say yes here to enable OV9640 sensor which is found in some - handhelds and phones - -config I2C_OV96XX - tristate "Support for OmniVision 96XX camera sensor" - depends on I2C - help - Say yes here to enable OV96XX sensor which is found in some - handhelds and phones endmenu Modified: linux4palm/linux/branches/cleanup-branch-never-commit/drivers/i2c/chips/Makefile =================================================================== --- linux4palm/linux/branches/cleanup-branch-never-commit/drivers/i2c/chips/Makefile 2007-09-17 12:14:36 UTC (rev 1322) +++ linux4palm/linux/branches/cleanup-branch-never-commit/drivers/i2c/chips/Makefile 2007-09-17 13:00:29 UTC (rev 1323) @@ -15,12 +15,6 @@ obj-$(CONFIG_ISP1301_OMAP) += isp1301_omap.o obj-$(CONFIG_TPS65010) += tps65010.o -obj-$(CONFIG_I2C_ADCM2650) += adcm2650-i2c.o - -obj-$(CONFIG_I2C_OV9640) += i2c-ov9640.o - -obj-$(CONFIG_I2C_OV96XX) += i2c-ov96xx.o - ifeq ($(CONFIG_I2C_DEBUG_CHIP),y) EXTRA_CFLAGS += -DDEBUG endif Modified: linux4palm/linux/branches/cleanup-branch-never-commit/drivers/i2c/i2c-core.c =================================================================== --- linux4palm/linux/branches/cleanup-branch-never-commit/drivers/i2c/i2c-core.c 2007-09-17 12:14:36 UTC (rev 1322) +++ linux4palm/linux/branches/cleanup-branch-never-commit/drivers/i2c/i2c-core.c 2007-09-17 13:00:29 UTC (rev 1323) @@ -34,8 +34,8 @@ #include <linux/mutex.h> #include <linux/completion.h> #include <asm/uaccess.h> -#include <linux/delay.h> + static LIST_HEAD(adapters); static LIST_HEAD(drivers); static DEFINE_MUTEX(core_lists); @@ -663,7 +663,7 @@ msg.addr = client->addr; msg.flags = client->flags & I2C_M_TEN; msg.len = count; - msg.buf = (char *) buf; + msg.buf = (char *)buf; ret = i2c_transfer(adap, &msg, 1); Modified: linux4palm/linux/branches/cleanup-branch-never-commit/include/asm-arm/arch-pxa/htcsable-asic.h =================================================================== --- linux4palm/linux/branches/cleanup-branch-never-commit/include/asm-arm/arch-pxa/htcsable-asic.h 2007-09-17 12:14:36 UTC (rev 1322) +++ linux4palm/linux/branches/cleanup-branch-never-commit/include/asm-arm/arch-pxa/htcsable-asic.h 2007-09-17 13:00:29 UTC (rev 1323) @@ -24,44 +24,45 @@ /* ASIC3 GPIO A bank */ -#define GPIOA_I2C_PWR_ON 0 /* Output */ /* lkcl: guess!! */ -#define GPIOA_CODEC_ON 1 /* Output */ /* ak4641 codec on */ -#define GPIOA_HEADPHONE_PWR_ON 3 /* Output */ /* headphone power-on? */ -#define GPIOA_SPKMIC_PWR2_ON 6 /* Output */ /* speaker power-on */ -#define GPIOA_USB_PUEN 7 /* Output */ -#define GPIOA_LCD_PWR_5 15 /* Output */ +#define GPIOA_I2C_PWR_ON 0 /* Output */ /* lkcl: guess!! */ +#define GPIOA_CODEC_ON 1 /* Output */ /* ak4641 codec on */ +#define GPIOA_HEADPHONE_PWR_ON 3 /* Output */ /* headphone power-on? */ +#define GPIOA_SPKMIC_PWR2_ON 6 /* Output */ /* speaker power-on */ +#define GPIOA_USB_PUEN 7 /* Output */ +#define GPIOA_LCD_PWR_5 15 /* Output */ /* ASIC3 GPIO B bank */ -#define GPIOB_GSM_DCD 0 /* Input */ /* phone-related: not sure of name or purpose */ -#define GPIOB_BB_READY 2 /* Input */ /* phone-related: not sure of name or purpose */ -#define GPIOB_ACX_IRQ_N 5 /* Input */ /* acx wifi irq ? */ -#define GPIOB_USB_DETECT 6 /* Input */ -#define GPIOB_HEADPHONE 9 /* Input */ /* lkcl: guess!!! */ -#define GPIOB_CODEC_RESET 10 /* Output */ /* think this is right... */ -#define GPIOB_ACX_PWR_1 15 /* Output */ /* acx wifi power 1 */ +#define GPIOB_GSM_DCD 0 /* Input */ /* phone-related: not sure of name or purpose */ +#define GPIOB_BB_READY 2 /* Input */ /* phone-related: not sure of name or purpose */ +#define GPIOB_ACX_IRQ_N 5 /* Input */ /* acx wifi irq ? */ +#define GPIOB_USB_DETECT 6 /* Input */ +#define GPIOB_HEADPHONE 9 /* Input */ /* lkcl: guess!!! */ +#define GPIOB_CODEC_RESET 10 /* Output */ /* think this is right... */ +#define GPIOB_ACX_PWR_1 15 /* Output */ /* acx wifi power 1 */ /* ASIC3 GPIO C bank */ -#define GPIOC_BT_RESET 7 /* Output */ -#define GPIOC_ACX_RESET 8 /* Output */ /* acx wifi reset */ -#define GPIOC_PHONE_4 12 /* Output */ /* phone-related: not sure of name or purpose */ -#define GPIOC_PHONE_5 13 /* Output */ /* phone-related: not sure of name or purpose */ -#define GPIOC_LCD_PWR_1 9 /* Output */ -#define GPIOC_LCD_PWR_2 10 /* Output */ -#define GPIOC_ACX_PWR_3 15 /* Output */ /* acx wifi power 3 */ +#define GPIOC_BT_RESET 7 /* Output */ +#define GPIOC_PHONE_4 12 /* Output */ /* phone-related: not sure of name or purpose */ +#define GPIOC_ACX_RESET 8 /* Output */ /* acx wifi reset */ +#define GPIOC_PHONE_5 13 /* Output */ /* phone-related: not sure of name or purpose */ +#define GPIOC_LCD_PWR_1 9 /* Output */ +#define GPIOC_LCD_PWR_2 10 /* Output */ +#define GPIOC_ACX_PWR_3 15 /* Output */ /* acx wifi power 3 */ /* ASIC3 GPIO D bank */ -#define GPIOD_BT_PWR_ON 6 /* Output */ -#define GPIOD_ACX_PWR_2 3 /* Output */ /* acx wifi power 2 */ -#define GPIOD_PHONE_1 4 /* Output */ /* phone-related: not sure of name or purpose */ -#define GPIOD_PHONE_2 8 /* Output */ /* phone-related: not sure of name or purpose */ -#define GPIOD_PHONE_6 5 /* Output */ /* phone-related: not sure of name or purpose */ -#define GPIOD_VIBRATE 10 /* Output */ /* vibrate */ -#define GPIOD_LCD_BACKLIGHT 12 /* Output */ +#define GPIOD_BT_PWR_ON 6 /* Output */ +#define GPIOD_PHONE_1 4 /* Output */ /* phone-related: not sure of name or purpose */ +#define GPIOD_ACX_PWR_2 3 /* Output */ /* acx wifi power 2 */ +#define GPIOD_PHONE_6 5 /* Output */ /* phone-related: not sure of name or purpose */ +#define GPIOD_PHONE_2 8 /* Output */ /* phone-related: not sure of name or purpose */ +#define GPIOD_VIBRATE 10 /* Output */ /* vibrate */ +#define GPIOD_LCD_BACKLIGHT 12 /* Output */ extern struct platform_device htcsable_asic3; #endif /* _HTCSABLE_ASIC_H_ */ + Modified: linux4palm/linux/branches/cleanup-branch-never-commit/include/asm-arm/arch-pxa/htcsable-gpio.h =================================================================== --- linux4palm/linux/branches/cleanup-branch-never-commit/include/asm-arm/arch-pxa/htcsable-gpio.h 2007-09-17 12:14:36 UTC (rev 1322) +++ linux4palm/linux/branches/cleanup-branch-never-commit/include/asm-arm/arch-pxa/htcsable-gpio.h 2007-09-17 13:00:29 UTC (rev 1323) @@ -11,69 +11,93 @@ #include <asm/arch/pxa-regs.h> -/* Misc defines */ -#define GPIO_NR_HTCSABLE_KEY_ON_N 0 -#define GPIO_NR_HTCSABLE_GP_RST_N 1 +#define GET_HTCSABLE_GPIO(gpio) \ + (GPLR(GPIO_NR_HTCSABLE_ ## gpio) & GPIO_bit(GPIO_NR_HTCSABLE_ ## gpio)) -#define GPIO_NR_HTCSABLE_ASIC3_EXT_INT 9 -#define GPIO_NR_HTCSABLE_ASIC3_SDIO_INT_N 13 +#define SET_HTCSABLE_GPIO(gpio, setp) \ +do { \ +if (setp) \ + GPSR(GPIO_NR_HTCSABLE_ ## gpio) = GPIO_bit(GPIO_NR_HTCSABLE_ ## gpio); \ +else \ + GPCR(GPIO_NR_HTCSABLE_ ## gpio) = GPIO_bit(GPIO_NR_HTCSABLE_ ## gpio); \ +} while (0) -#define EGPIO6_BT_3V3_ON (1<<6) /* Bluetooth 3.3V enable */ -#define GPIO_NR_HTCSABLE_POE_N_MD (48 | GPIO_ALT_FN_2_OUT | GPIO_DFLT_HIGH) -#define GPIO_NR_HTCSABLE_PWE_N_MD (49 | GPIO_ALT_FN_2_OUT | GPIO_DFLT_HIGH) +#define SET_HTCSABLE_GPIO_N(gpio, setp) \ +do { \ +if (setp) \ + GPCR(GPIO_NR_HTCSABLE_ ## gpio ## _N) = GPIO_bit(GPIO_NR_HTCSABLE_ ## gpio ## _N); \ +else \ + GPSR(GPIO_NR_HTCSABLE_ ## gpio ## _N) = GPIO_bit(GPIO_NR_HTCSABLE_ ## gpio ## _N); \ +} while (0) -#define GPIO_NR_HTCSABLE_ACX 111 -#define GPIO_NR_HTCSABLE_PWM1OUT_MD (115 | GPIO_ALT_FN_3_OUT) +#define HTCSABLE_IRQ(gpio) \ + IRQ_GPIO(GPIO_NR_HTCSABLE_ ## gpio) + +#define GPIO_NR_HTCSABLE_KEY_ON_N 0 +#define GPIO_NR_HTCSABLE_GP_RST_N 1 -/* nope - this should be STUART! -#define GPIO_NR_HTCSABLE_COM_RXD_MD (34 | GPIO_ALT_FN_1_IN) -#define GPIO_NR_HTCSABLE_COM_CTS_MD (35 | GPIO_ALT_FN_1_IN) -#define GPIO_NR_HTCSABLE_COM_TXD_MD (39 | GPIO_ALT_FN_2_OUT) -#define GPIO_NR_HTCSABLE_COM_RTS_MD (41 | GPIO_ALT_FN_2_OUT) -*/ +#define GPIO_NR_HTCSABLE_PHONE_3 11 /* phone-related output */ -/* Touchscreen */ -#define GPIO_NR_HTCSABLE_TOUCHSCREEN_SPI_CLK_MD (23 | GPIO_ALT_FN_2_IN) -#define GPIO_NR_HTCSABLE_TOUCHSCREEN_SPI_CS_N_MD (24 | GPIO_ALT_FN_2_IN) -#define GPIO_NR_HTCSABLE_TOUCHSCREEN_SPI_DO_MD (25 | GPIO_ALT_FN_2_OUT) -#define GPIO_NR_HTCSABLE_TOUCHSCREEN_SPI_DI_MD (26 | GPIO_ALT_FN_1_IN) +#define GPIO_NR_HTCSABLE_ASIC3_EXT_INT 9 +#define GPIO_NR_HTCSABLE_ASIC3_SDIO_INT_N 13 + +#define GPIO_NR_HTCSABLE_I2S_BCK 28 +#define GPIO_NR_HTCSABLE_I2S_DIN 29 +#define GPIO_NR_HTCSABLE_I2S_DOUT 30 +#define GPIO_NR_HTCSABLE_I2S_SYNC 31 + +#define GPIO_NR_HTCSABLE_I2S_SYSCLK 113 #define GPIO_NR_HTCSABLE_TOUCHPANEL_IRQ_N 115 -/* I2S - sound */ -#define GPIO_NR_HTCSABLE_I2S_BCK 28 -#define GPIO_NR_HTCSABLE_I2S_DIN 29 -#define GPIO_NR_HTCSABLE_I2S_DOUT 30 -#define GPIO_NR_HTCSABLE_I2S_SYNC 31 -#define GPIO_NR_HTCSABLE_I2S_SYSCLK 113 +#define EGPIO6_BT_3V3_ON (1<<6) /* Bluetooth 3.3V enable */ -#define GPIO_NR_HTCSABLE_I2S_BCK_MD (28 | GPIO_ALT_FN_1_OUT) -#define GPIO_NR_HTCSABLE_I2S_DIN_MD (29 | GPIO_ALT_FN_2_IN) -#define GPIO_NR_HTCSABLE_I2S_DOUT_MD (30 | GPIO_ALT_FN_1_OUT) -#define GPIO_NR_HTCSABLE_I2S_SYNC_MD (31 | GPIO_ALT_FN_1_OUT) -#define GPIO_NR_HTCSABLE_I2S_SYSCLK_MD (113 | GPIO_ALT_FN_1_OUT) +/* TODO: should be checked */ -/* UART */ -#define GPIO_NR_HTCSABLE_STD_RXD_MD (46 | GPIO_ALT_FN_2_IN) -#define GPIO_NR_HTCSABLE_STD_TXD_MD (47 | GPIO_ALT_FN_1_OUT) +#define GPIO_NR_HTCSABLE_TOUCHSCREEN_SPI_CLK_MD (23 | GPIO_ALT_FN_2_IN) +#define GPIO_NR_HTCSABLE_TOUCHSCREEN_SPI_CS_N_MD (24 | GPIO_ALT_FN_2_IN) +#define GPIO_NR_HTCSABLE_TOUCHSCREEN_SPI_DO_MD (25 | GPIO_ALT_FN_2_OUT) +#define GPIO_NR_HTCSABLE_TOUCHSCREEN_SPI_DI_MD (26 | GPIO_ALT_FN_1_IN) -/* Phone */ -#define GPIO_NR_HTCSABLE_PHONE_3 11 /* phone-related output */ -#define GPIO_NR_HTCSABLE_PHONE_RXD_MD (42 | GPIO_ALT_FN_1_IN) /* BTUART */ +#define GPIO_NR_HTCSABLE_I2S_BCK_MD (28 | GPIO_ALT_FN_1_OUT) +#define GPIO_NR_HTCSABLE_I2S_DIN_MD (29 | GPIO_ALT_FN_2_IN) +#define GPIO_NR_HTCSABLE_I2S_DOUT_MD (30 | GPIO_ALT_FN_1_OUT) +#define GPIO_NR_HTCSABLE_I2S_SYNC_MD (31 | GPIO_ALT_FN_1_OUT) + +/* nope - this should be STUART! +#define GPIO_NR_HTCSABLE_COM_RXD_MD (34 | GPIO_ALT_FN_1_IN) +#define GPIO_NR_HTCSABLE_COM_CTS_MD (35 | GPIO_ALT_FN_1_IN) +#define GPIO_NR_HTCSABLE_COM_TXD_MD (39 | GPIO_ALT_FN_2_OUT) +#define GPIO_NR_HTCSABLE_COM_RTS_MD (41 | GPIO_ALT_FN_2_OUT) +*/ + +#define GPIO_NR_HTCSABLE_PHONE_RXD_MD (42 | GPIO_ALT_FN_1_IN) /* BTUART */ #define GPIO_NR_HTCSABLE_PHONE_TXD_MD (43 | GPIO_ALT_FN_2_OUT) /* BTUART */ -#define GPIO_NR_HTCSABLE_PHONE_UART_CTS_MD (44 | GPIO_ALT_FN_1_IN) /* BTUART */ -#define GPIO_NR_HTCSABLE_PHONE_UART_RTS_MD (45 | GPIO_ALT_FN_2_OUT) /* BTUART */ +#define GPIO_NR_HTCSABLE_PHONE_UART_CTS_MD (44 | GPIO_ALT_FN_1_IN) /* BTUART */ +#define GPIO_NR_HTCSABLE_PHONE_UART_RTS_MD (45 | GPIO_ALT_FN_2_OUT) /* BTUART */ -/* Bluetooth */ -#define GPIO_NR_HTCSABLE_BT_RXD_MD (34 | GPIO_ALT_FN_1_IN) /* FFUART */ +#define GPIO_NR_HTCSABLE_BT_RXD_MD (34 | GPIO_ALT_FN_1_IN) /* FFUART */ #define GPIO_NR_HTCSABLE_BT_TXD_MD (39 | GPIO_ALT_FN_2_OUT) /* FFUART */ -#define GPIO_NR_HTCSABLE_BT_UART_CTS_MD (35 | GPIO_ALT_FN_1_IN) /* FFUART */ +#define GPIO_NR_HTCSABLE_BT_UART_CTS_MD (35 | GPIO_ALT_FN_1_IN) /* FFUART */ #define GPIO_NR_HTCSABLE_BT_UART_RTS_MD (41 | GPIO_ALT_FN_2_OUT) /* FFUART */ -/* I2C */ -#define GPIO_NR_HTCSABLE_I2C_SCL_MD (117 | GPIO_ALT_FN_1_OUT) -#define GPIO_NR_HTCSABLE_I2C_SDA_MD (118 | GPIO_ALT_FN_1_OUT) +#define GPIO_NR_HTCSABLE_STD_RXD_MD (46 | GPIO_ALT_FN_2_IN) +#define GPIO_NR_HTCSABLE_STD_TXD_MD (47 | GPIO_ALT_FN_1_OUT) -/* Keyboard */ +#define GPIO_NR_HTCSABLE_POE_N_MD (48 | GPIO_ALT_FN_2_OUT | GPIO_DFLT_HIGH) +#define GPIO_NR_HTCSABLE_PWE_N_MD (49 | GPIO_ALT_FN_2_OUT | GPIO_DFLT_HIGH) + +#define GPIO_NR_HTCSABLE_I2S_SYSCLK_MD (113 | GPIO_ALT_FN_1_OUT) + +#define GPIO_NR_HTCSABLE_ACX (111) +#define GPIO_NR_HTCSABLE_PWM1OUT_MD (115 | GPIO_ALT_FN_3_OUT) + +#define GPIO_NR_HTCSABLE_I2C_SCL_MD (117 | GPIO_ALT_FN_1_OUT) +#define GPIO_NR_HTCSABLE_I2C_SDA_MD (118 | GPIO_ALT_FN_1_OUT) + +/**************************************************************** + * Pull out keyboard + ****************************************************************/ + #define GPIO_NR_HTCSABLE_KP_MKIN0 100 #define GPIO_NR_HTCSABLE_KP_MKIN1 101 #define GPIO_NR_HTCSABLE_KP_MKIN2 102 @@ -92,45 +116,21 @@ #define GPIO_NR_HTCSABLE_KP_MKOUT6 40 #define GPIO_NR_HTCSABLE_KP_MKOUT7 22 -#define GPIO_NR_HTCSABLE_KP_MKIN0_MD (GPIO_NR_HTCSABLE_KP_MKIN0 | GPIO_ALT_FN_1_IN) -#define GPIO_NR_HTCSABLE_KP_MKIN1_MD (GPIO_NR_HTCSABLE_KP_MKIN1 | GPIO_ALT_FN_1_IN) -#define GPIO_NR_HTCSABLE_KP_MKIN2_MD (GPIO_NR_HTCSABLE_KP_MKIN2 | GPIO_ALT_FN_1_IN) -#define GPIO_NR_HTCSABLE_KP_MKIN3_MD (GPIO_NR_HTCSABLE_KP_MKIN3 | GPIO_ALT_FN_3_IN) -#define GPIO_NR_HTCSABLE_KP_MKIN4_MD (GPIO_NR_HTCSABLE_KP_MKIN4 | GPIO_ALT_FN_2_IN) -#define GPIO_NR_HTCSABLE_KP_MKIN5_MD (GPIO_NR_HTCSABLE_KP_MKIN5 | GPIO_ALT_FN_1_IN) -#define GPIO_NR_HTCSABLE_KP_MKIN6_MD (GPIO_NR_HTCSABLE_KP_MKIN6 | GPIO_ALT_FN_1_IN) -#define GPIO_NR_HTCSABLE_KP_MKIN7_MD (GPIO_NR_HTCSABLE_KP_MKIN7 | GPIO_ALT_FN_3_IN) +#define GPIO_NR_HTCSABLE_KP_MKIN0_MD (GPIO_NR_HTCSABLE_KP_MKIN0 | GPIO_ALT_FN_1_IN) +#define GPIO_NR_HTCSABLE_KP_MKIN1_MD (GPIO_NR_HTCSABLE_KP_MKIN1 | GPIO_ALT_FN_1_IN) +#define GPIO_NR_HTCSABLE_KP_MKIN2_MD (GPIO_NR_HTCSABLE_KP_MKIN2 | GPIO_ALT_FN_1_IN) +#define GPIO_NR_HTCSABLE_KP_MKIN3_MD (GPIO_NR_HTCSABLE_KP_MKIN3 | GPIO_ALT_FN_3_IN) +#define GPIO_NR_HTCSABLE_KP_MKIN4_MD (GPIO_NR_HTCSABLE_KP_MKIN4 | GPIO_ALT_FN_2_IN) +#define GPIO_NR_HTCSABLE_KP_MKIN5_MD (GPIO_NR_HTCSABLE_KP_MKIN5 | GPIO_ALT_FN_1_IN) +#define GPIO_NR_HTCSABLE_KP_MKIN6_MD (GPIO_NR_HTCSABLE_KP_MKIN6 | GPIO_ALT_FN_1_IN) +#define GPIO_NR_HTCSABLE_KP_MKIN7_MD (GPIO_NR_HTCSABLE_KP_MKIN7 | GPIO_ALT_FN_3_IN) -#define GPIO_NR_HTCSABLE_KP_MKOUT0_MD (GPIO_NR_HTCSABLE_KP_MKOUT0 | GPIO_ALT_FN_2_OUT) -#define GPIO_NR_HTCSABLE_KP_MKOUT1_MD (GPIO_NR_HTCSABLE_KP_MKOUT1 | GPIO_ALT_FN_2_OUT) -#define GPIO_NR_HTCSABLE_KP_MKOUT2_MD (GPIO_NR_HTCSABLE_KP_MKOUT2 | GPIO_ALT_FN_2_OUT) -#define GPIO_NR_HTCSABLE_KP_MKOUT3_MD (GPIO_NR_HTCSABLE_KP_MKOUT3 | GPIO_ALT_FN_2_OUT) -#define GPIO_NR_HTCSABLE_KP_MKOUT4_MD (GPIO_NR_HTCSABLE_KP_MKOUT4 | GPIO_ALT_FN_2_OUT) -#define GPIO_NR_HTCSABLE_KP_MKOUT5_MD (GPIO_NR_HTCSABLE_KP_MKOUT5 | GPIO_ALT_FN_2_OUT) -#define GPIO_NR_HTCSABLE_KP_MKOUT6_MD (GPIO_NR_HTCSABLE_KP_MKOUT6 | GPIO_ALT_FN_1_OUT) -#define GPIO_NR_HTCSABLE_KP_MKOUT7_MD (GPIO_NR_HTCSABLE_KP_MKOUT7 | GPIO_ALT_FN_1_OUT) - -/* Macros */ -#define GET_HTCSABLE_GPIO(gpio) \ - (GPLR(GPIO_NR_HTCSABLE_ ## gpio) & GPIO_bit(GPIO_NR_HTCSABLE_ ## gpio)) - -#define SET_HTCSABLE_GPIO(gpio, setp) \ -do { \ -if (setp) \ - GPSR(GPIO_NR_HTCSABLE_ ## gpio) = GPIO_bit(GPIO_NR_HTCSABLE_ ## gpio); \ -else \ - GPCR(GPIO_NR_HTCSABLE_ ## gpio) = GPIO_bit(GPIO_NR_HTCSABLE_ ## gpio); \ -} while (0) - -#define SET_HTCSABLE_GPIO_N(gpio, setp) \ -do { \ -if (setp) \ - GPCR(GPIO_NR_HTCSABLE_ ## gpio ## _N) = GPIO_bit(GPIO_NR_HTCSABLE_ ## gpio ## _N); \ -else \ - GPSR(GPIO_NR_HTCSABLE_ ## gpio ## _N) = GPIO_bit(GPIO_NR_HTCSABLE_ ## gpio ## _N); \ -} while (0) - -#define HTCSABLE_IRQ(gpio) \ - IRQ_GPIO(GPIO_NR_HTCSABLE_ ## gpio) - +#define GPIO_NR_HTCSABLE_KP_MKOUT0_MD (GPIO_NR_HTCSABLE_KP_MKOUT0 | GPIO_ALT_FN_2_OUT) +#define GPIO_NR_HTCSABLE_KP_MKOUT1_MD (GPIO_NR_HTCSABLE_KP_MKOUT1 | GPIO_ALT_FN_2_OUT) +#define GPIO_NR_HTCSABLE_KP_MKOUT2_MD (GPIO_NR_HTCSABLE_KP_MKOUT2 | GPIO_ALT_FN_2_OUT) +#define GPIO_NR_HTCSABLE_KP_MKOUT3_MD (GPIO_NR_HTCSABLE_KP_MKOUT3 | GPIO_ALT_FN_2_OUT) +#define GPIO_NR_HTCSABLE_KP_MKOUT4_MD (GPIO_NR_HTCSABLE_KP_MKOUT4 | GPIO_ALT_FN_2_OUT) +#define GPIO_NR_HTCSABLE_KP_MKOUT5_MD (GPIO_NR_HTCSABLE_KP_MKOUT5 | GPIO_ALT_FN_2_OUT) +#define GPIO_NR_HTCSABLE_KP_MKOUT6_MD (GPIO_NR_HTCSABLE_KP_MKOUT6 | GPIO_ALT_FN_1_OUT) +#define GPIO_NR_HTCSABLE_KP_MKOUT7_MD (GPIO_NR_HTCSABLE_KP_MKOUT7 | GPIO_ALT_FN_1_OUT) #endif /* _HTCSABLE_GPIO_H */ Modified: linux4palm/linux/branches/cleanup-branch-never-commit/include/linux/mfd/htc-egpio.h =================================================================== --- linux4palm/linux/branches/cleanup-branch-never-commit/include/linux/mfd/htc-egpio.h 2007-09-17 12:14:36 UTC (rev 1322) +++ linux4palm/linux/branches/cleanup-branch-never-commit/include/linux/mfd/htc-egpio.h 2007-09-17 13:00:29 UTC (rev 1323) @@ -5,8 +5,6 @@ #ifndef __HTC_EGPIO_H__ #define __HTC_EGPIO_H__ -#include <linux/gpiodev.h> /* struct gpiodev_ops */ - enum { /* Maximum number of 16 bit registers a chip may have. */ MAX_EGPIO_REGS = 8, @@ -18,18 +16,15 @@ enum { /* This pin corresponds to an input gpio */ HTC_EGPIO_TYPE_INPUT, - /* This pin corresponds to an irq that does not have an - * associated input gpio */ - HTC_EGPIO_TYPE_IRQ, /* This pin corresponds to an output gpio */ HTC_EGPIO_TYPE_OUTPUT, }; /* Information on each pin on the chip. */ struct htc_egpio_pinInfo { - /* The bit offset of the pin (eg, 18 is the third bit of the - * second register). */ - int pin_nr; + /* The gpio id of the pin (eg, gpio_base+18 is the third bit + * of the second register). */ + int gpio; /* The type - input, irq, output */ int type; /* For output pins - the poweron default */ @@ -40,8 +35,6 @@ /* Platform data description provided by the arch */ struct htc_egpio_platform_data { - /* This is 'gpiodev' capable */ - struct gpiodev_ops ops; /* Beginning of available irqs (eg, IRQ_BOARD_START) */ int irq_base; /* Beginning of available gpios (eg, GPIO_BASE_INCREMENT) */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <hap...@us...> - 2007-09-17 12:14:43
|
Revision: 1322 http://hackndev.svn.sourceforge.net/hackndev/?rev=1322&view=rev Author: happy-slapin Date: 2007-09-17 05:14:36 -0700 (Mon, 17 Sep 2007) Log Message: ----------- cleanup: simpler drivers/input/touchscreen/Makefile Modified Paths: -------------- linux4palm/linux/branches/cleanup-branch-never-commit/drivers/input/touchscreen/Makefile Modified: linux4palm/linux/branches/cleanup-branch-never-commit/drivers/input/touchscreen/Makefile =================================================================== --- linux4palm/linux/branches/cleanup-branch-never-commit/drivers/input/touchscreen/Makefile 2007-09-15 20:45:29 UTC (rev 1321) +++ linux4palm/linux/branches/cleanup-branch-never-commit/drivers/input/touchscreen/Makefile 2007-09-17 12:14:36 UTC (rev 1322) @@ -7,23 +7,19 @@ wm97xx-ts-objs := wm97xx-core.o obj-$(CONFIG_TOUCHSCREEN_ADS7846) += ads7846.o -obj-$(CONFIG_TOUCHSCREEN_BITSY) += h3600_ts_input.o -obj-$(CONFIG_TOUCHSCREEN_CORGI) += corgi_ts.o -obj-$(CONFIG_TOUCHSCREEN_GUNZE) += gunze.o +obj-$(CONFIG_TOUCHSCREEN_BITSY) += h3600_ts_input.o +obj-$(CONFIG_TOUCHSCREEN_CORGI) += corgi_ts.o +obj-$(CONFIG_TOUCHSCREEN_GUNZE) += gunze.o obj-$(CONFIG_TOUCHSCREEN_TSC2101) += tsc2101_ts.o -obj-$(CONFIG_SA1100_JORNADA56X) += jornada56x_ts.o -obj-$(CONFIG_SA1100_JORNADA720) += jornada720_ts.o -obj-$(CONFIG_TOUCHSCREEN_ELO) += elo.o -obj-$(CONFIG_TOUCHSCREEN_MTOUCH) += mtouch.o -obj-$(CONFIG_TOUCHSCREEN_MK712) += mk712.o -obj-$(CONFIG_TOUCHSCREEN_HP600) += hp680_ts_input.o -obj-$(CONFIG_TOUCHSCREEN_WM97XX) += wm97xx-ts.o +obj-$(CONFIG_SA1100_JORNADA56X) += jornada56x_ts.o +obj-$(CONFIG_SA1100_JORNADA720) += jornada720_ts.o +obj-$(CONFIG_TOUCHSCREEN_ELO) += elo.o +obj-$(CONFIG_TOUCHSCREEN_MTOUCH) += mtouch.o +obj-$(CONFIG_TOUCHSCREEN_MK712) += mk712.o +obj-$(CONFIG_TOUCHSCREEN_HP600) += hp680_ts_input.o +obj-$(CONFIG_TOUCHSCREEN_WM97XX) += wm97xx-ts.o +obj-$(CONFIG_TOUCHSCREEN_WM97XX_PXA) += pxa-wm97xx.o -wm97xx-ts-objs := wm97xx-core.o -ifeq ($(CONFIG_TOUCHSCREEN_WM97XX_PXA),y) -wm97xx-ts-objs += pxa-wm97xx.o -endif - ifeq ($(CONFIG_TOUCHSCREEN_WM9713),y) wm97xx-ts-objs += wm9713.o endif @@ -42,7 +38,6 @@ obj-$(CONFIG_TOUCHSCREEN_UCB1400) += ucb1400_ts.o obj-$(CONFIG_TOUCHSCREEN_PALMTC) += palmtc_ts.o - obj-$(CONFIG_TOUCHSCREEN_S3C2410) += s3c2410_ts.o obj-$(CONFIG_TOUCHSCREEN_ASIC2) += asic2_ts.o obj-$(CONFIG_TOUCHSCREEN_IPAQ_MICRO) += micro_ts.o This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mis...@us...> - 2007-09-15 20:45:35
|
Revision: 1321 http://hackndev.svn.sourceforge.net/hackndev/?rev=1321&view=rev Author: miska_tx Date: 2007-09-15 13:45:29 -0700 (Sat, 15 Sep 2007) Log Message: ----------- PalmTT5: Some corgi_bl related cleanup in pm. Modified Paths: -------------- linux4palm/linux/trunk/arch/arm/mach-pxa/palmtt5/palmtt5.c linux4palm/linux/trunk/arch/arm/mach-pxa/palmtt5/palmtt5_pm.c Modified: linux4palm/linux/trunk/arch/arm/mach-pxa/palmtt5/palmtt5.c =================================================================== --- linux4palm/linux/trunk/arch/arm/mach-pxa/palmtt5/palmtt5.c 2007-09-14 15:31:33 UTC (rev 1320) +++ linux4palm/linux/trunk/arch/arm/mach-pxa/palmtt5/palmtt5.c 2007-09-15 20:45:29 UTC (rev 1321) @@ -151,10 +151,12 @@ static void palmtt5_bl_power(int on) { - SET_PALMTT5_GPIO(BL_POWER, on); - pxa_set_cken(CKEN0_PWM0, on); - pxa_set_cken(CKEN1_PWM1, on); - mdelay(50); + if(GET_PALMTT5_GPIO(BL_POWER)!=on) { + SET_PALMTT5_GPIO(LCD_POWER, on); + SET_PALMTT5_GPIO(BL_POWER, on); + pxa_set_cken(CKEN0_PWM0, on); + pxa_set_cken(CKEN1_PWM1, on); + } } static void palmtt5_set_bl_intensity(int intensity) Modified: linux4palm/linux/trunk/arch/arm/mach-pxa/palmtt5/palmtt5_pm.c =================================================================== --- linux4palm/linux/trunk/arch/arm/mach-pxa/palmtt5/palmtt5_pm.c 2007-09-14 15:31:33 UTC (rev 1320) +++ linux4palm/linux/trunk/arch/arm/mach-pxa/palmtt5/palmtt5_pm.c 2007-09-15 20:45:29 UTC (rev 1321) @@ -41,10 +41,6 @@ while(!(OSCC & OSCC_OOK)) {} - /* Turn off LCD power */ - SET_PALMTT5_GPIO(LCD_POWER,0); - /* Turn screen off */ - SET_PALMTT5_GPIO(BL_POWER,0); /* Turn off USB power */ SET_PALMTT5_GPIO(USB_POWER,0); @@ -67,10 +63,6 @@ /* Here are all of special to resume Palm T5 */ - /* Turn on LCD power */ - SET_PALMTT5_GPIO(LCD_POWER,1); - /* Turn screen on */ - SET_PALMTT5_GPIO(BL_POWER,1); /* Turn on USB power */ SET_PALMTT5_GPIO(USB_POWER,1); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <hap...@us...> - 2007-09-14 15:31:37
|
Revision: 1320 http://hackndev.svn.sourceforge.net/hackndev/?rev=1320&view=rev Author: happy-slapin Date: 2007-09-14 08:31:33 -0700 (Fri, 14 Sep 2007) Log Message: ----------- splitpatch: fix typo Modified Paths: -------------- linux4palm/tools/tags-cleanup/splitpatch.py Modified: linux4palm/tools/tags-cleanup/splitpatch.py =================================================================== --- linux4palm/tools/tags-cleanup/splitpatch.py 2007-09-14 15:29:25 UTC (rev 1319) +++ linux4palm/tools/tags-cleanup/splitpatch.py 2007-09-14 15:31:33 UTC (rev 1320) @@ -87,7 +87,7 @@ self.name = "-".join(namelist[1:5]) + ".diff" elif namelist[1] == "arch" and namelist[2] == "arm" and namelist[3] == "mach-pxa": self.name = "-".join(namelist[1:5]) + ".diff" - elif namelist[1] == "drivers" or namelist[1] == "include" namelist[1] == "sound": + elif namelist[1] == "drivers" or namelist[1] == "include" or namelist[1] == "sound": self.name = "-".join(namelist[1:5]) + ".diff" elif namelist[1] == "arch" and namelist[2] == "arm": self.name = "-".join(namelist[1:4]) + ".diff" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <hap...@us...> - 2007-09-14 15:29:27
|
Revision: 1319 http://hackndev.svn.sourceforge.net/hackndev/?rev=1319&view=rev Author: happy-slapin Date: 2007-09-14 08:29:25 -0700 (Fri, 14 Sep 2007) Log Message: ----------- cleanup: Device cleanup Modified Paths: -------------- linux4palm/linux/branches/cleanup-branch-never-commit/drivers/leds/led-palmz72.c Removed Paths: ------------- linux4palm/linux/branches/cleanup-branch-never-commit/include/asm-arm/arch-pxa/pxa-ci.h linux4palm/linux/branches/cleanup-branch-never-commit/include/asm-arm/arch-pxa/pxa_camera.h linux4palm/linux/branches/cleanup-branch-never-commit/include/linux/aufs_type.h Modified: linux4palm/linux/branches/cleanup-branch-never-commit/drivers/leds/led-palmz72.c =================================================================== --- linux4palm/linux/branches/cleanup-branch-never-commit/drivers/leds/led-palmz72.c 2007-09-14 14:31:39 UTC (rev 1318) +++ linux4palm/linux/branches/cleanup-branch-never-commit/drivers/leds/led-palmz72.c 2007-09-14 15:29:25 UTC (rev 1319) @@ -21,13 +21,10 @@ #include <asm/arch/pxa-regs.h> #include <asm/hardware/scoop.h> - -static void palmz72led_green_set(struct led_classdev *led_cdev, enum led_brightness value) +static void palmz72led_green_set(struct led_classdev *led_cdev, + enum led_brightness value) { - if (value) - SET_PALMZ72_GPIO(LED,1); - else - SET_PALMZ72_GPIO(LED,0); + SET_PALMZ72_GPIO(LED, value ? 1 : 0); } static struct led_classdev palmz72_green_led = { Deleted: linux4palm/linux/branches/cleanup-branch-never-commit/include/asm-arm/arch-pxa/pxa-ci.h =================================================================== --- linux4palm/linux/branches/cleanup-branch-never-commit/include/asm-arm/arch-pxa/pxa-ci.h 2007-09-14 14:31:39 UTC (rev 1318) +++ linux4palm/linux/branches/cleanup-branch-never-commit/include/asm-arm/arch-pxa/pxa-ci.h 2007-09-14 15:29:25 UTC (rev 1319) @@ -1,299 +0,0 @@ -/* - ci - header file for pxa capture interface - - Copyright (C) 2003, Intel Corporation - - 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., 675 Mass Ave, Cambridge, MA 02139, USA. -*/ - -#ifndef _CI_H_ -#define _CI_H_ - -//--------------------------------------------------------------------------- -// Register definitions -//--------------------------------------------------------------------------- - -enum CI_REGBITS_CICR0 { - CI_CICR0_FOM = 0x00000001, - CI_CICR0_EOFM = 0x00000002, - CI_CICR0_SOFM = 0x00000004, - CI_CICR0_CDM = 0x00000008, - CI_CICR0_QDM = 0x00000010, - CI_CICR0_PERRM = 0x00000020, - CI_CICR0_EOLM = 0x00000040, - CI_CICR0_FEM = 0x00000080, - CI_CICR0_RDAVM = 0x00000100, - CI_CICR0_TOM = 0x00000200, - CI_CICR0_RESERVED = 0x03FFFC00, - CI_CICR0_SIM_SHIFT = 24, - CI_CICR0_SIM_SMASK = 0x7, - CI_CICR0_DIS = 0x08000000, - CI_CICR0_ENB = 0x10000000, - CI_CICR0_SL_CAP_EN = 0x20000000, - CI_CICR0_PAR_EN = 0x40000000, - CI_CICR0_DMA_EN = 0x80000000, - CI_CICR0_INTERRUPT_MASK = 0x3FF -}; - -enum CI_REGBITS_CICR1 { - CI_CICR1_DW_SHIFT = 0, - CI_CICR1_DW_SMASK = 0x7, - CI_CICR1_COLOR_SP_SHIFT = 3, - CI_CICR1_COLOR_SP_SMASK = 0x3, - CI_CICR1_RAW_BPP_SHIFT = 5, - CI_CICR1_RAW_BPP_SMASK = 0x3, - CI_CICR1_RGB_BPP_SHIFT = 7, - CI_CICR1_RGB_BPP_SMASK = 0x7, - CI_CICR1_YCBCR_F = 0x00000400, - CI_CICR1_RBG_F = 0x00000800, - CI_CICR1_RGB_CONV_SHIFT = 12, - CI_CICR1_RGB_CONV_SMASK = 0x7, - CI_CICR1_PPL_SHIFT = 15, - CI_CICR1_PPL_SMASK = 0x7FF, - CI_CICR1_RESERVED = 0x1C000000, - CI_CICR1_RGBT_CONV_SHIFT= 29, - CI_CICR1_RGBT_CONV_SMASK= 0x3, - CI_CICR1_TBIT = 0x80000000 -}; - -enum CI_REGBITS_CICR2 { - CI_CICR2_FSW_SHIFT = 0, - CI_CICR2_FSW_SMASK = 0x3, - CI_CICR2_BFPW_SHIFT= 3, - CI_CICR2_BFPW_SMASK= 0x3F, - CI_CICR2_RESERVED = 0x00000200, - CI_CICR2_HSW_SHIFT = 10, - CI_CICR2_HSW_SMASK = 0x3F, - CI_CICR2_ELW_SHIFT = 16, - CI_CICR2_ELW_SMASK = 0xFF, - CI_CICR2_BLW_SHIFT = 24, - CI_CICR2_BLW_SMASK = 0xFF -}; - -enum CI_REGBITS_CICR3 { - CI_CICR3_LPF_SHIFT = 0, - CI_CICR3_LPF_SMASK = 0x7FF, - CI_CICR3_VSW_SHIFT = 11, - CI_CICR3_VSW_SMASK = 0x1F, - CI_CICR3_EFW_SHIFT = 16, - CI_CICR3_EFW_SMASK = 0xFF, - CI_CICR3_BFW_SHIFT = 24, - CI_CICR3_BFW_SMASK = 0xFF -}; - -enum CI_REGBITS_CICR4 { - CI_CICR4_DIV_SHIFT = 0, - CI_CICR4_DIV_SMASK = 0xFF, - CI_CICR4_FR_RATE_SHIFT = 8, - CI_CICR4_FR_RATE_SMASK = 0x7, - CI_CICR4_RESERVED1 = 0x0007F800, - CI_CICR4_MCLK_EN = 0x00080000, - CI_CICR4_VSP = 0x00100000, - CI_CICR4_HSP = 0x00200000, - CI_CICR4_PCP = 0x00400000, - CI_CICR4_PCLK_EN = 0x00800000, - CI_CICR4_RESERVED2 = 0xFF000000, - CI_CICR4_RESERVED = CI_CICR4_RESERVED1 | CI_CICR4_RESERVED2 -}; - -enum CI_REGBITS_CISR { - CI_CISR_IFO_0 = 0x00000001, - CI_CISR_IFO_1 = 0x00000002, - CI_CISR_IFO_2 = 0x00000004, - CI_CISR_EOF = 0x00000008, - CI_CISR_SOF = 0x00000010, - CI_CISR_CDD = 0x00000020, - CI_CISR_CQD = 0x00000040, - CI_CISR_PAR_ERR = 0x00000080, - CI_CISR_EOL = 0x00000100, - CI_CISR_FEMPTY_0 = 0x00000200, - CI_CISR_FEMPTY_1 = 0x00000400, - CI_CISR_FEMPTY_2 = 0x00000800, - CI_CISR_RDAV_0 = 0x00001000, - CI_CISR_RDAV_1 = 0x00002000, - CI_CISR_RDAV_2 = 0x00004000, - CI_CISR_FTO = 0x00008000, - CI_CISR_RESERVED = 0xFFFF0000 -}; - -enum CI_REGBITS_CIFR { - CI_CIFR_FEN0 = 0x00000001, - CI_CIFR_FEN1 = 0x00000002, - CI_CIFR_FEN2 = 0x00000004, - CI_CIFR_RESETF = 0x00000008, - CI_CIFR_THL_0_SHIFT= 4, - CI_CIFR_THL_0_SMASK= 0x3, - CI_CIFR_RESERVED1 = 0x000000C0, - CI_CIFR_FLVL0_SHIFT= 8, - CI_CIFR_FLVL0_SMASK= 0xFF, - CI_CIFR_FLVL1_SHIFT= 16, - CI_CIFR_FLVL1_SMASK= 0x7F, - CI_CIFR_FLVL2_SHIFT= 23, - CI_CIFR_FLVL2_SMASK= 0x7F, - CI_CIFR_RESERVED2 = 0xC0000000, - CI_CIFR_RESERVED = CI_CIFR_RESERVED1 | CI_CIFR_RESERVED2 -}; - -//--------------------------------------------------------------------------- -// Parameter Type definitions -//--------------------------------------------------------------------------- -typedef enum { - CI_RAW8 = 0, //RAW - CI_RAW9, - CI_RAW10, - CI_YCBCR422, //YCBCR - CI_YCBCR422_PLANAR, //YCBCR Planaried - CI_RGB444, //RGB - CI_RGB555, - CI_RGB565, - CI_RGB666, - CI_RGB888, - CI_RGBT555_0, //RGB+Transparent bit 0 - CI_RGBT888_0, - CI_RGBT555_1, //RGB+Transparent bit 1 - CI_RGBT888_1, - CI_RGB666_PACKED, //RGB Packed - CI_RGB888_PACKED, - CI_INVALID_FORMAT = 0xFF -} CI_IMAGE_FORMAT; - -typedef enum { - CI_INTSTATUS_IFO_0 = 0x00000001, - CI_INTSTATUS_IFO_1 = 0x00000002, - CI_INTSTATUS_IFO_2 = 0x00000004, - CI_INTSTATUS_EOF = 0x00000008, - CI_INTSTATUS_SOF = 0x00000010, - CI_INTSTATUS_CDD = 0x00000020, - CI_INTSTATUS_CQD = 0x00000040, - CI_INTSTATUS_PAR_ERR = 0x00000080, - CI_INTSTATUS_EOL = 0x00000100, - CI_INTSTATUS_FEMPTY_0 = 0x00000200, - CI_INTSTATUS_FEMPTY_1 = 0x00000400, - CI_INTSTATUS_FEMPTY_2 = 0x00000800, - CI_INTSTATUS_RDAV_0 = 0x00001000, - CI_INTSTATUS_RDAV_1 = 0x00002000, - CI_INTSTATUS_RDAV_2 = 0x00004000, - CI_INTSTATUS_FTO = 0x00008000, - CI_INTSTATUS_ALL = 0x0000FFFF -} CI_INTERRUPT_STATUS; - -typedef enum { - CI_INT_IFO = 0x00000001, - CI_INT_EOF = 0x00000002, - CI_INT_SOF = 0x00000004, - CI_INT_CDD = 0x00000008, - CI_INT_CQD = 0x00000010, - CI_INT_PAR_ERR = 0x00000020, - CI_INT_EOL = 0x00000040, - CI_INT_FEMPTY = 0x00000080, - CI_INT_RDAV = 0x00000100, - CI_INT_FTO = 0x00000200, - CI_INT_ALL = 0x000003FF -} CI_INTERRUPT_MASK; -#define CI_INT_MAX 10 - -typedef enum CI_MODE { - CI_MODE_MP, // Master-Parallel - CI_MODE_SP, // Slave-Parallel - CI_MODE_MS, // Master-Serial - CI_MODE_EP, // Embedded-Parallel - CI_MODE_ES // Embedded-Serial -} CI_MODE; - - -typedef enum { - CI_FR_ALL = 0, // Capture all incoming frames - CI_FR_1_2, // Capture 1 out of every 2 frames - CI_FR_1_3, // Capture 1 out of every 3 frames - CI_FR_1_4, - CI_FR_1_5, - CI_FR_1_6, - CI_FR_1_7, - CI_FR_1_8 -} CI_FRAME_CAPTURE_RATE; - - -typedef enum { - CI_FIFO_THL_32 = 0, - CI_FIFO_THL_64, - CI_FIFO_THL_96 -} CI_FIFO_THRESHOLD; - -typedef struct { - unsigned int BFW; - unsigned int BLW; -} CI_MP_TIMING, CI_MS_TIMING; - -typedef struct { - unsigned int BLW; - unsigned int ELW; - unsigned int HSW; - unsigned int BFPW; - unsigned int FSW; - unsigned int BFW; - unsigned int EFW; - unsigned int VSW; -} CI_SP_TIMING; - -typedef enum { - CI_DATA_WIDTH4 = 0x0, - CI_DATA_WIDTH5 = 0x1, - CI_DATA_WIDTH8 = 0x2, - CI_DATA_WIDTH9 = 0x3, - CI_DATA_WIDTH10= 0x4 -} CI_DATA_WIDTH; - -//------------------------------------------------------------------------------------------------------- -// Configuration APIs -//------------------------------------------------------------------------------------------------------- - -void ci_set_frame_rate(CI_FRAME_CAPTURE_RATE frate); -CI_FRAME_CAPTURE_RATE ci_get_frame_rate(void); -void ci_set_image_format(CI_IMAGE_FORMAT input_format, CI_IMAGE_FORMAT output_format); -void ci_set_mode(CI_MODE mode, CI_DATA_WIDTH data_width); -void ci_configure_mp(unsigned int PPL, unsigned int LPF, CI_MP_TIMING* timing); -void ci_configure_sp(unsigned int PPL, unsigned int LPF, CI_SP_TIMING* timing); -void ci_configure_ms(unsigned int PPL, unsigned int LPF, CI_MS_TIMING* timing); -void ci_configure_ep(int parity_check); -void ci_configure_es(int parity_check); -void ci_set_clock(unsigned int clk_regs_base, int pclk_enable, int mclk_enable, unsigned int mclk_khz); -void ci_set_polarity(int pclk_sample_falling, int hsync_active_low, int vsync_active_low); -void ci_set_fifo( unsigned int timeout, CI_FIFO_THRESHOLD threshold, int fifo1_enable, - int fifo2_enable); -void ci_set_int_mask( unsigned int mask); -void ci_clear_int_status( unsigned int status); -void ci_set_reg_value( unsigned int reg_offset, unsigned int value); -int ci_get_reg_value(unsigned int reg_offset); - -void ci_reset_fifo(void); -unsigned int ci_get_int_mask(void); -unsigned int ci_get_int_status(void); -void ci_slave_capture_enable(void); -void ci_slave_capture_disable(void); - -//------------------------------------------------------------------------------------------------------- -// Control APIs -//------------------------------------------------------------------------------------------------------- -int ci_init(void); -void ci_deinit(void); -void ci_enable( int dma_en); -int ci_disable(int quick); - -//debug -void ci_dump(void); -// IRQ -irqreturn_t pxa_camera_irq(int irq, void *dev_id, struct pt_regs *regs); - -#endif Deleted: linux4palm/linux/branches/cleanup-branch-never-commit/include/asm-arm/arch-pxa/pxa_camera.h =================================================================== --- linux4palm/linux/branches/cleanup-branch-never-commit/include/asm-arm/arch-pxa/pxa_camera.h 2007-09-14 14:31:39 UTC (rev 1318) +++ linux4palm/linux/branches/cleanup-branch-never-commit/include/asm-arm/arch-pxa/pxa_camera.h 2007-09-14 15:29:25 UTC (rev 1319) @@ -1,74 +0,0 @@ -/* - pxa_camera - PXA camera driver header file - - Copyright (C) 2003, Intel Corporation - - 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., 675 Mass Ave, Cambridge, MA 02139, USA. -*/ - -#ifndef __LINUX_PXA_CAMERA_H_ -#define __LINUX_PXA_CAMERA_H_ - -#define WCAM_VIDIOCSCAMREG _IOW('v', 211, int) -#define WCAM_VIDIOCGCAMREG _IOR('v', 212, int) -#define WCAM_VIDIOCSCIREG _IOW('v', 213, int) -#define WCAM_VIDIOCGCIREG _IOR('v', 214, int) -#define WCAM_VIDIOCSINFOR _IOW('v', 215, int) -#define WCAM_VIDIOCGINFOR _IOR('v', 216, int) - -/* -Image format definition -*/ -#define CAMERA_IMAGE_FORMAT_RAW8 0 -#define CAMERA_IMAGE_FORMAT_RAW9 1 -#define CAMERA_IMAGE_FORMAT_RAW10 2 - -#define CAMERA_IMAGE_FORMAT_RGB444 3 -#define CAMERA_IMAGE_FORMAT_RGB555 4 -#define CAMERA_IMAGE_FORMAT_RGB565 5 -#define CAMERA_IMAGE_FORMAT_RGB666_PACKED 6 -#define CAMERA_IMAGE_FORMAT_RGB666_PLANAR 7 -#define CAMERA_IMAGE_FORMAT_RGB888_PACKED 8 -#define CAMERA_IMAGE_FORMAT_RGB888_PLANAR 9 -#define CAMERA_IMAGE_FORMAT_RGBT555_0 10 //RGB+Transparent bit 0 -#define CAMERA_IMAGE_FORMAT_RGBT888_0 11 -#define CAMERA_IMAGE_FORMAT_RGBT555_1 12 //RGB+Transparent bit 1 -#define CAMERA_IMAGE_FORMAT_RGBT888_1 13 - -#define CAMERA_IMAGE_FORMAT_YCBCR400 14 -#define CAMERA_IMAGE_FORMAT_YCBCR422_PACKED 15 -#define CAMERA_IMAGE_FORMAT_YCBCR422_PLANAR 16 -#define CAMERA_IMAGE_FORMAT_YCBCR444_PACKED 17 -#define CAMERA_IMAGE_FORMAT_YCBCR444_PLANAR 18 - -/* -Bpp definition -*/ - -#define YUV422_BPP 16 -#define RGB565_BPP 16 -#define RGB666_UNPACKED_BPP 32 -#define RGB666_PACKED_BPP 24 - -/* -VIDIOCCAPTURE Arguments -*/ -#define STILL_IMAGE 1 -#define VIDEO_START 0 -#define VIDEO_STOP -1 - - -#endif /* __LINUX_PXA_CAMERA_H_ */ - Deleted: linux4palm/linux/branches/cleanup-branch-never-commit/include/linux/aufs_type.h =================================================================== --- linux4palm/linux/branches/cleanup-branch-never-commit/include/linux/aufs_type.h 2007-09-14 14:31:39 UTC (rev 1318) +++ linux4palm/linux/branches/cleanup-branch-never-commit/include/linux/aufs_type.h 2007-09-14 15:29:25 UTC (rev 1319) @@ -1,100 +0,0 @@ -/* - * Copyright (C) 2005, 2006, 2007 Junjiro Okajima - * - * This program, aufs 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - */ - -/* $Id: aufs_type.h,v 1.59 2007/06/11 01:42:40 sfjro Exp $ */ - -#include <linux/ioctl.h> - -#ifndef __AUFS_TYPE_H__ -#define __AUFS_TYPE_H__ - -#define AUFS_VERSION "20070611" - -/* ---------------------------------------------------------------------- */ - -typedef short aufs_bindex_t; -#ifdef CONFIG_AUFS_BRANCH_MAX_127 -#define AUFS_BRANCH_MAX 127 -#elif CONFIG_AUFS_BRANCH_MAX_511 -#define AUFS_BRANCH_MAX 511 -#elif defined(CONFIG_AUFS_BRANCH_MAX_1023) -#define AUFS_BRANCH_MAX 1023 -#elif defined(CONFIG_AUFS_BRANCH_MAX_32767) -#define AUFS_BRANCH_MAX 32767 -#else -#error unknown CONFIG_AUFS_BRANCH_MAX value -#endif - -#define AUFS_NAME "aufs" -#define AUFS_FSTYPE AUFS_NAME - -#define AUFS_ROOT_INO 2 -#define AUFS_FIRST_INO 11 - -#define AUFS_WH_PFX ".wh." -#define AUFS_WH_PFX_LEN ((int)sizeof(AUFS_WH_PFX) - 1) -#define AUFS_XINO_FNAME "." AUFS_NAME ".xino" -#define AUFS_XINO_DEFPATH "/tmp/" AUFS_XINO_FNAME -#define AUFS_DIRWH_DEF 3 -#define AUFS_RDCACHE_DEF 10 /* seconds */ -#define AUFS_WKQ_NAME AUFS_NAME "d" -#ifdef CONFIG_AUFS_NWKQ_DEF -#define AUFS_NWKQ_DEF CONFIG_AUFS_NWKQ_DEF -#else -#define AUFS_NWKQ_DEF 4 -#endif - -#ifdef CONFIG_AUFS_COMPAT -#define AUFS_DIROPQ_NAME "__dir_opaque" -#else -#define AUFS_DIROPQ_NAME AUFS_WH_PFX ".opq" /* whiteouted doubly */ -#endif -#define AUFS_WH_DIROPQ AUFS_WH_PFX AUFS_DIROPQ_NAME - -/* will be whiteouted doubly */ -#define AUFS_WH_BASENAME AUFS_WH_PFX AUFS_NAME -#define AUFS_WH_PLINKDIR AUFS_WH_PFX "plink" - -/* ---------------------------------------------------------------------- */ - -/* ioctl */ -enum {AuCtlErr, AuCtlErr_Last}; -enum { - AuCtl_REFRESH, //AuCtl_REFRESHV, - //AuCtl_FLUSH_PLINK, - //AuCtl_CPUP, - AuCtl_CPDOWN, AuCtl_MVDOWN, - //AuCtl_DIROPQ -}; - -struct aufs_ctl_cp { - int bsrc, bdst; - int err; -}; - -#define Type 'A' -#define AUFS_CTL_REFRESH _IO(Type, AuCtl_REFRESH) -//#define AUFS_CTL_REFRESHV _IO(Type, AuCtl_REFRESHV) -//#define AUFS_CTL_FLUSH_PLINK _IOR(Type, AuCtl_FLUSH_PLINK) -//#define AUFS_CTL_CPUP _IOWR(Type, AuCtl_CPUP, struct aufs_ctl_cp) -#define AUFS_CTL_CPDOWN _IOWR(Type, AuCtl_CPDOWN, struct aufs_ctl_cp) -#define AUFS_CTL_MVDOWN _IOWR(Type, AuCtl_MVDOWN, struct aufs_ctl_cp) -//#define AUFS_CTL_DIROPQ _IO(Type, AuCtl_DIROPQ) -#undef Type - -#endif /* __AUFS_TYPE_H__ */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <hap...@us...> - 2007-09-14 14:31:50
|
Revision: 1318 http://hackndev.svn.sourceforge.net/hackndev/?rev=1318&view=rev Author: happy-slapin Date: 2007-09-14 07:31:39 -0700 (Fri, 14 Sep 2007) Log Message: ----------- cleanup: Devices Modified Paths: -------------- linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/Kconfig linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/Makefile linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/magician/magician.c linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/pxa27x.c linux4palm/linux/branches/cleanup-branch-never-commit/fs/Kconfig linux4palm/linux/branches/cleanup-branch-never-commit/include/asm-arm/arch-pxa/gpio.h linux4palm/linux/branches/cleanup-branch-never-commit/include/asm-arm/arch-pxa/h5400-gpio.h linux4palm/linux/branches/cleanup-branch-never-commit/include/asm-arm/arch-pxa/htcapache-gpio.h linux4palm/linux/branches/cleanup-branch-never-commit/include/asm-m32r/errno.h linux4palm/linux/branches/cleanup-branch-never-commit/include/asm-m32r/ioctls.h linux4palm/linux/branches/cleanup-branch-never-commit/include/asm-m32r/rtc.h linux4palm/linux/branches/cleanup-branch-never-commit/include/asm-m32r/syscall.h linux4palm/linux/branches/cleanup-branch-never-commit/include/asm-m32r/timex.h linux4palm/linux/branches/cleanup-branch-never-commit/include/asm-m32r/unaligned.h linux4palm/linux/branches/cleanup-branch-never-commit/include/linux/magic.h linux4palm/linux/branches/cleanup-branch-never-commit/include/linux/namei.h linux4palm/linux/branches/cleanup-branch-never-commit/sound/arm/htcapache_audio.c linux4palm/linux/branches/cleanup-branch-never-commit/sound/soc/pxa/h5000.c Modified: linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/Kconfig =================================================================== --- linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/Kconfig 2007-09-14 13:15:44 UTC (rev 1317) +++ linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/Kconfig 2007-09-14 14:31:39 UTC (rev 1318) @@ -54,6 +54,7 @@ source "arch/arm/mach-pxa/palmt650/Kconfig" source "arch/arm/mach-pxa/palmt680/Kconfig" source "arch/arm/mach-pxa/palmt700wx/Kconfig" +source "arch/arm/mach-pxa/plat-recon/Kconfig" config MACH_GHI270HG bool "Grayhill Duramax HG" Modified: linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/Makefile =================================================================== --- linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/Makefile 2007-09-14 13:15:44 UTC (rev 1317) +++ linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/Makefile 2007-09-14 14:31:39 UTC (rev 1318) @@ -58,6 +58,8 @@ obj-$(CONFIG_MACH_XSCALE_PALMTREO650) += palmt650/ obj-$(CONFIG_MACH_XSCALE_TREO680) += palmt680/ obj-$(CONFIG_MACH_T700WX) += palmt700wx/ +obj-$(CONFIG_MACH_RECON) += plat-recon/ +obj-$(CONFIG_MACH_LOOXC550) += looxc550/ # Support for blinky lights led-y := leds.o Modified: linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/magician/magician.c =================================================================== --- linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/magician/magician.c 2007-09-14 13:15:44 UTC (rev 1317) +++ linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/magician/magician.c 2007-09-14 14:31:39 UTC (rev 1318) @@ -186,20 +186,21 @@ struct htc_egpio_pinInfo egpio_pins[] = { /* Output pins that default on */ { - .pin_nr = EGPIO_MAGICIAN_GSM_RESET - MAGICIAN_EGPIO_BASE, + .gpio = EGPIO_MAGICIAN_GSM_RESET, .type = HTC_EGPIO_TYPE_OUTPUT, .output_initial = 1, }, { - .pin_nr = EGPIO_MAGICIAN_IN_SEL1 - MAGICIAN_EGPIO_BASE, + .gpio = EGPIO_MAGICIAN_IN_SEL1, .type = HTC_EGPIO_TYPE_OUTPUT, .output_initial = 1, }, /* Input pins with associated IRQ */ { - .pin_nr = EGPIO_MAGICIAN_EP_INSERT - MAGICIAN_EGPIO_BASE, + .gpio = EGPIO_MAGICIAN_EP_INSERT, .type = HTC_EGPIO_TYPE_INPUT, - .input_irq = 1 /* IRQ_MAGICIAN_EP_IRQ - IRQ_BOARD_START */, + .input_irq = MAGICIAN_EGPIO(3, 1), + /* 'pin' corresponding to IRQ_MAGICIAN_EP_IRQ */ }, }; Modified: linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/pxa27x.c =================================================================== --- linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/pxa27x.c 2007-09-14 13:15:44 UTC (rev 1317) +++ linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/pxa27x.c 2007-09-14 14:31:39 UTC (rev 1318) @@ -205,7 +205,6 @@ static struct platform_device *devices[] __initdata = { &ohci_device, - &pxacamera_device, }; static int __init pxa27x_init(void) Modified: linux4palm/linux/branches/cleanup-branch-never-commit/fs/Kconfig =================================================================== --- linux4palm/linux/branches/cleanup-branch-never-commit/fs/Kconfig 2007-09-14 13:15:44 UTC (rev 1317) +++ linux4palm/linux/branches/cleanup-branch-never-commit/fs/Kconfig 2007-09-14 14:31:39 UTC (rev 1318) @@ -1371,70 +1371,6 @@ If unsure, say N. -config SQUASHFS - tristate "SquashFS 3.2 - Squashed file system support" - select ZLIB_INFLATE - help - Saying Y here includes support for SquashFS 3.2 (a Compressed Read-Only File - System). Squashfs is a highly compressed read-only filesystem for Linux. - It uses zlib compression to compress both files, inodes and directories. - Inodes in the system are very small and all blocks are packed to minimise - data overhead. Block sizes greater than 4K are supported up to a maximum of 64K. - SquashFS 3.1 supports 64 bit filesystems and files (larger than 4GB), full - uid/gid information, hard links and timestamps. - - Squashfs is intended for general read-only filesystem use, for archival - use (i.e. in cases where a .tar.gz file may be used), and in embedded - systems where low overhead is needed. Further information and filesystem tools - are available from http://squashfs.sourceforge.net. - - If you want to compile this as a module ( = code which can be - inserted in and removed from the running kernel whenever you want), - say M here and read <file:Documentation/modules.txt>. The module - will be called squashfs. Note that the root file system (the one - containing the directory /) cannot be compiled as a module. - - If unsure, say N. - -config SQUASHFS_EMBEDDED - bool "Additional options for memory-constrained systems" - depends on SQUASHFS - default n - help - Saying Y here allows you to specify cache sizes and how Squashfs - allocates memory. This is only intended for memory constrained - systems. - - If unsure, say N. - -config SQUASHFS_FRAGMENT_CACHE_SIZE - int "Number of fragments cached" if SQUASHFS_EMBEDDED - depends on SQUASHFS - default "3" - help - By default SquashFS caches the last 3 fragments read from - the filesystem. Increasing this amount may mean SquashFS - has to re-read fragments less often from disk, at the expense - of extra system memory. Decreasing this amount will mean - SquashFS uses less memory at the expense of extra reads from disk. - - Note there must be at least one cached fragment. Anything - much more than three will probably not make much difference. - -config SQUASHFS_VMALLOC - bool "Use Vmalloc rather than Kmalloc" if SQUASHFS_EMBEDDED - depends on SQUASHFS - default n - help - By default SquashFS uses kmalloc to obtain fragment cache memory. - Kmalloc memory is the standard kernel allocator, but it can fail - on memory constrained systems. Because of the way Vmalloc works, - Vmalloc can succeed when kmalloc fails. Specifying this option - will make SquashFS always use Vmalloc to allocate the - fragment cache memory. - - If unsure, say N. - config VXFS_FS tristate "FreeVxFS file system support (VERITAS VxFS(TM) compatible)" depends on BLOCK @@ -1585,25 +1521,6 @@ Y here. This will result in _many_ additional debugging messages to be written to the system log. -config UNION_FS - tristate "Union file system (EXPERIMENTAL)" - depends on EXPERIMENTAL - help - Unionfs is a stackable unification file system, which appears to - merge the contents of several directories (branches), while keeping - their physical content separate. - - See <http://unionfs.filesystems.org/> for details - -config UNION_FS_XATTR - bool "Unionfs extended attributes" - depends on UNION_FS - help - Extended attributes are name:value pairs associated with inodes by - the kernel or by users (see the attr(5) manual page). - - If unsure, say N. - endmenu menu "Network File Systems" @@ -2139,3 +2056,4 @@ source "fs/dlm/Kconfig" endmenu + Modified: linux4palm/linux/branches/cleanup-branch-never-commit/include/asm-arm/arch-pxa/gpio.h =================================================================== --- linux4palm/linux/branches/cleanup-branch-never-commit/include/asm-arm/arch-pxa/gpio.h 2007-09-14 13:15:44 UTC (rev 1317) +++ linux4palm/linux/branches/cleanup-branch-never-commit/include/asm-arm/arch-pxa/gpio.h 2007-09-14 14:31:39 UTC (rev 1318) @@ -39,16 +39,9 @@ return; } -static inline int gpio_direction_input(unsigned gpio) -{ - return pxa_gpio_mode(gpio | GPIO_IN); -} +int gpio_direction_input(unsigned gpio); +int gpio_direction_output(unsigned gpio); -static inline int gpio_direction_output(unsigned gpio) -{ - return pxa_gpio_mode(gpio | GPIO_OUT); -} - static inline int __gpio_get_value(unsigned gpio) { return GPLR(gpio) & GPIO_bit(gpio); Modified: linux4palm/linux/branches/cleanup-branch-never-commit/include/asm-arm/arch-pxa/h5400-gpio.h =================================================================== --- linux4palm/linux/branches/cleanup-branch-never-commit/include/asm-arm/arch-pxa/h5400-gpio.h 2007-09-14 13:15:44 UTC (rev 1317) +++ linux4palm/linux/branches/cleanup-branch-never-commit/include/asm-arm/arch-pxa/h5400-gpio.h 2007-09-14 14:31:39 UTC (rev 1318) @@ -88,7 +88,7 @@ #define GPIO_NR_H5400_IRDA_SD 58 /* to hsdl3002 sd */ /* 59 not connected */ #define GPIO_NR_H5400_POWER_SD_N 60 /* controls power to SD */ -#define GPIO_NR_H5400_POWER_RS232_N 61 /* inverted FORCEON to rs232 transceiver */ +#define GPIO_NR_H5400_POWER_RS232_N_OR_FS 61 /* inverted FORCEON to rs232 transceiver or FCD*/ #define GPIO_NR_H5400_POWER_ACCEL_N 62 /* controls power to accel */ /* 63 is not connected */ #define GPIO_NR_H5400_OPT_NVRAM 64 /* controls power to expansion pack */ Modified: linux4palm/linux/branches/cleanup-branch-never-commit/include/asm-arm/arch-pxa/htcapache-gpio.h =================================================================== --- linux4palm/linux/branches/cleanup-branch-never-commit/include/asm-arm/arch-pxa/htcapache-gpio.h 2007-09-14 13:15:44 UTC (rev 1317) +++ linux4palm/linux/branches/cleanup-branch-never-commit/include/asm-arm/arch-pxa/htcapache-gpio.h 2007-09-14 14:31:39 UTC (rev 1318) @@ -7,41 +7,39 @@ * Micro-controller interface ****************************************************************/ -u32 htcapache_read_mc_reg(u32 reg); -void htcapache_write_mc_reg(u32 reg, u32 data); #define GPIO_NR_HTCAPACHE_MC_SDA 56 #define GPIO_NR_HTCAPACHE_MC_SCL 57 +#define GPIO_NR_HTCAPACHE_MC_IRQ 14 /**************************************************************** * EGPIO ****************************************************************/ -int htcapache_egpio_get(int bit); -void htcapache_egpio_set(int bit, int value); -int htcapache_egpio_to_irq(int bit); #define GPIO_NR_HTCAPACHE_EGPIO_IRQ 15 +#define HTCAPACHE_EGPIO_BASE 0x100 /* GPIO_BASE_INCREMENT */ +#define HTCAPACHE_EGPIO(reg,bit) (HTCAPACHE_EGPIO_BASE + 16*(reg) + (bit)) /**************************************************************** * Power ****************************************************************/ -#define EGPIO_NR_HTCAPACHE_PWR_IN_PWR 0 -#define EGPIO_NR_HTCAPACHE_PWR_IN_HIGHPWR 7 -#define EGPIO_NR_HTCAPACHE_PWR_CHARGE 40 -#define EGPIO_NR_HTCAPACHE_PWR_HIGHCHARGE 39 +#define EGPIO_NR_HTCAPACHE_PWR_IN_PWR HTCAPACHE_EGPIO(0, 0) +#define EGPIO_NR_HTCAPACHE_PWR_IN_HIGHPWR HTCAPACHE_EGPIO(0, 7) +#define EGPIO_NR_HTCAPACHE_PWR_CHARGE HTCAPACHE_EGPIO(2, 8) +#define EGPIO_NR_HTCAPACHE_PWR_HIGHCHARGE HTCAPACHE_EGPIO(2, 7) /**************************************************************** * Sound ****************************************************************/ -#define EGPIO_NR_HTCAPACHE_SND_POWER 21 // XXX - not sure -#define EGPIO_NR_HTCAPACHE_SND_RESET 24 // XXX - not sure -#define EGPIO_NR_HTCAPACHE_SND_PWRJACK 23 -#define EGPIO_NR_HTCAPACHE_SND_PWRSPKR 22 -#define EGPIO_NR_HTCAPACHE_SND_IN_JACK 2 +#define EGPIO_NR_HTCAPACHE_SND_POWER HTCAPACHE_EGPIO(1, 5) // XXX - not sure +#define EGPIO_NR_HTCAPACHE_SND_RESET HTCAPACHE_EGPIO(1, 8) // XXX - not sure +#define EGPIO_NR_HTCAPACHE_SND_PWRJACK HTCAPACHE_EGPIO(1, 7) +#define EGPIO_NR_HTCAPACHE_SND_PWRSPKR HTCAPACHE_EGPIO(1, 6) +#define EGPIO_NR_HTCAPACHE_SND_IN_JACK HTCAPACHE_EGPIO(0, 2) /**************************************************************** @@ -58,36 +56,27 @@ ****************************************************************/ #define GPIO_NR_HTCAPACHE_LED_FLASHLIGHT 87 -#define EGPIO_NR_HTCAPACHE_LED_VIBRA 35 -#define EGPIO_NR_HTCAPACHE_LED_KBD_BACKLIGHT 34 +#define EGPIO_NR_HTCAPACHE_LED_VIBRA HTCAPACHE_EGPIO(2, 3) +#define EGPIO_NR_HTCAPACHE_LED_KBD_BACKLIGHT HTCAPACHE_EGPIO(2, 2) /**************************************************************** - * LEDS - ****************************************************************/ - -#define GPIO_NR_HTCAPACHE_LED_FLASHLIGHT 87 -#define EGPIO_NR_HTCAPACHE_LED_VIBRA 35 -#define EGPIO_NR_HTCAPACHE_LED_KBD_BACKLIGHT 34 - - -/**************************************************************** * BlueTooth ****************************************************************/ -#define EGPIO_NR_HTCAPACHE_BT_POWER 27 -#define EGPIO_NR_HTCAPACHE_BT_RESET 26 +#define EGPIO_NR_HTCAPACHE_BT_POWER HTCAPACHE_EGPIO(1, 11) +#define EGPIO_NR_HTCAPACHE_BT_RESET HTCAPACHE_EGPIO(1, 10) /**************************************************************** * Wifi ****************************************************************/ -#define EGPIO_NR_HTCAPACHE_WIFI_POWER1 20 -#define EGPIO_NR_HTCAPACHE_WIFI_POWER2 17 -#define EGPIO_NR_HTCAPACHE_WIFI_POWER3 16 -#define EGPIO_NR_HTCAPACHE_WIFI_RESET 19 -#define EGPIO_NR_HTCAPACHE_WIFI_IN_IRQ 5 +#define EGPIO_NR_HTCAPACHE_WIFI_POWER1 HTCAPACHE_EGPIO(1, 4) +#define EGPIO_NR_HTCAPACHE_WIFI_POWER2 HTCAPACHE_EGPIO(1, 1) +#define EGPIO_NR_HTCAPACHE_WIFI_POWER3 HTCAPACHE_EGPIO(1, 0) +#define EGPIO_NR_HTCAPACHE_WIFI_RESET HTCAPACHE_EGPIO(1, 3) +#define EGPIO_NR_HTCAPACHE_WIFI_IN_IRQ HTCAPACHE_EGPIO(0, 5) /**************************************************************** @@ -103,24 +92,10 @@ ****************************************************************/ #define GPIO_NR_HTCAPACHE_USB_PUEN 99 -#define EGPIO_NR_HTCAPACHE_USB_PWR 37 +#define EGPIO_NR_HTCAPACHE_USB_PWR HTCAPACHE_EGPIO(2, 5) /**************************************************************** - * Front buttons - ****************************************************************/ - -#define GPIO_NR_HTCAPACHE_FKEY_IRQ 14 - - -/**************************************************************** - * Front buttons - ****************************************************************/ - -#define GPIO_NR_HTCAPACHE_FKEY_IRQ 14 - - -/**************************************************************** * Buttons on side ****************************************************************/ Modified: linux4palm/linux/branches/cleanup-branch-never-commit/include/asm-m32r/errno.h =================================================================== --- linux4palm/linux/branches/cleanup-branch-never-commit/include/asm-m32r/errno.h 2007-09-14 13:15:44 UTC (rev 1317) +++ linux4palm/linux/branches/cleanup-branch-never-commit/include/asm-m32r/errno.h 2007-09-14 14:31:39 UTC (rev 1318) @@ -4,4 +4,3 @@ #include <asm-generic/errno.h> #endif /* _ASM_M32R_ERRNO_H */ - Modified: linux4palm/linux/branches/cleanup-branch-never-commit/include/asm-m32r/ioctls.h =================================================================== --- linux4palm/linux/branches/cleanup-branch-never-commit/include/asm-m32r/ioctls.h 2007-09-14 13:15:44 UTC (rev 1317) +++ linux4palm/linux/branches/cleanup-branch-never-commit/include/asm-m32r/ioctls.h 2007-09-14 14:31:39 UTC (rev 1318) @@ -81,4 +81,3 @@ #define TIOCSER_TEMT 0x01 /* Transmitter physically empty */ #endif /* __ARCH_M32R_IOCTLS_H__ */ - Modified: linux4palm/linux/branches/cleanup-branch-never-commit/include/asm-m32r/rtc.h =================================================================== --- linux4palm/linux/branches/cleanup-branch-never-commit/include/asm-m32r/rtc.h 2007-09-14 13:15:44 UTC (rev 1317) +++ linux4palm/linux/branches/cleanup-branch-never-commit/include/asm-m32r/rtc.h 2007-09-14 14:31:39 UTC (rev 1318) @@ -1,8 +1,6 @@ #ifndef __RTC_H__ #define __RTC_H__ - - /* Dallas DS1302 clock/calendar register numbers. */ # define RTC_SECONDS 0 # define RTC_MINUTES 1 Modified: linux4palm/linux/branches/cleanup-branch-never-commit/include/asm-m32r/syscall.h =================================================================== --- linux4palm/linux/branches/cleanup-branch-never-commit/include/asm-m32r/syscall.h 2007-09-14 13:15:44 UTC (rev 1317) +++ linux4palm/linux/branches/cleanup-branch-never-commit/include/asm-m32r/syscall.h 2007-09-14 14:31:39 UTC (rev 1318) @@ -6,4 +6,3 @@ #define SYSCALL_VECTOR_ADDRESS "0xa0" #endif /* _ASM_M32R_SYSCALL_H */ - Modified: linux4palm/linux/branches/cleanup-branch-never-commit/include/asm-m32r/timex.h =================================================================== --- linux4palm/linux/branches/cleanup-branch-never-commit/include/asm-m32r/timex.h 2007-09-14 13:15:44 UTC (rev 1317) +++ linux4palm/linux/branches/cleanup-branch-never-commit/include/asm-m32r/timex.h 2007-09-14 14:31:39 UTC (rev 1318) @@ -7,7 +7,6 @@ * m32r architecture timex specifications */ - #define CLOCK_TICK_RATE (CONFIG_BUS_CLOCK / CONFIG_TIMER_DIVIDE) #define CLOCK_TICK_FACTOR 20 /* Factor of both 1000000 and CLOCK_TICK_RATE */ Modified: linux4palm/linux/branches/cleanup-branch-never-commit/include/asm-m32r/unaligned.h =================================================================== --- linux4palm/linux/branches/cleanup-branch-never-commit/include/asm-m32r/unaligned.h 2007-09-14 13:15:44 UTC (rev 1317) +++ linux4palm/linux/branches/cleanup-branch-never-commit/include/asm-m32r/unaligned.h 2007-09-14 14:31:39 UTC (rev 1318) @@ -8,7 +8,6 @@ #include <asm/string.h> - #define get_unaligned(ptr) \ ({ __typeof__(*(ptr)) __tmp; memmove(&__tmp, (ptr), sizeof(*(ptr))); __tmp; }) @@ -17,5 +16,4 @@ memmove((ptr), &__tmp, sizeof(*(ptr))); \ (void)0; }) - #endif /* _ASM_M32R_UNALIGNED_H */ Modified: linux4palm/linux/branches/cleanup-branch-never-commit/include/linux/magic.h =================================================================== --- linux4palm/linux/branches/cleanup-branch-never-commit/include/linux/magic.h 2007-09-14 13:15:44 UTC (rev 1317) +++ linux4palm/linux/branches/cleanup-branch-never-commit/include/linux/magic.h 2007-09-14 14:31:39 UTC (rev 1318) @@ -35,8 +35,6 @@ #define REISER2FS_SUPER_MAGIC_STRING "ReIsEr2Fs" #define REISER2FS_JR_SUPER_MAGIC_STRING "ReIsEr3Fs" -#define UNIONFS_SUPER_MAGIC 0xf15f083d - #define SMB_SUPER_MAGIC 0x517B #define USBDEVICE_SUPER_MAGIC 0x9fa2 Modified: linux4palm/linux/branches/cleanup-branch-never-commit/include/linux/namei.h =================================================================== --- linux4palm/linux/branches/cleanup-branch-never-commit/include/linux/namei.h 2007-09-14 13:15:44 UTC (rev 1317) +++ linux4palm/linux/branches/cleanup-branch-never-commit/include/linux/namei.h 2007-09-14 14:31:39 UTC (rev 1318) @@ -81,16 +81,8 @@ extern struct file *nameidata_to_filp(struct nameidata *nd, int flags); extern void release_open_intent(struct nameidata *); -extern struct dentry *lookup_one_len_nd(const char *, - struct dentry *, int, struct nameidata *); +extern struct dentry * lookup_one_len(const char *, struct dentry *, int); -/* SMP-safe */ -static inline struct dentry *lookup_one_len(const char *name, - struct dentry *dir, int len) -{ - return lookup_one_len_nd(name, dir, len, NULL); -} - extern int follow_down(struct vfsmount **, struct dentry **); extern int follow_up(struct vfsmount **, struct dentry **); Modified: linux4palm/linux/branches/cleanup-branch-never-commit/sound/arm/htcapache_audio.c =================================================================== --- linux4palm/linux/branches/cleanup-branch-never-commit/sound/arm/htcapache_audio.c 2007-09-14 13:15:44 UTC (rev 1317) +++ linux4palm/linux/branches/cleanup-branch-never-commit/sound/arm/htcapache_audio.c 2007-09-14 14:31:39 UTC (rev 1318) @@ -34,6 +34,7 @@ #include <asm/mach/irq.h> #include <asm/arch/pxa-regs.h> #include <asm/arch/htcapache-gpio.h> +#include <asm/arch/gpio.h> /* gpio_set_value */ #include "pxa2xx-i2sound.h" #include <sound/ak4641.h> @@ -42,27 +43,27 @@ static void audio_set_codec_power(int mode) { - htcapache_egpio_set(EGPIO_NR_HTCAPACHE_SND_POWER, mode); + gpio_set_value(EGPIO_NR_HTCAPACHE_SND_POWER, mode); } static void audio_set_codec_reset(int mode) { - htcapache_egpio_set(EGPIO_NR_HTCAPACHE_SND_RESET, !mode); + gpio_set_value(EGPIO_NR_HTCAPACHE_SND_RESET, !mode); } static void audio_set_headphone_power(int mode) { - htcapache_egpio_set(EGPIO_NR_HTCAPACHE_SND_PWRJACK, mode); + gpio_set_value(EGPIO_NR_HTCAPACHE_SND_PWRJACK, mode); } static void audio_set_speaker_power(int mode) { - htcapache_egpio_set(EGPIO_NR_HTCAPACHE_SND_PWRSPKR, mode); + gpio_set_value(EGPIO_NR_HTCAPACHE_SND_PWRSPKR, mode); } static inline int audio_hp_detect(void) { - return !htcapache_egpio_get(EGPIO_NR_HTCAPACHE_SND_IN_JACK); + return !gpio_get_value(EGPIO_NR_HTCAPACHE_SND_IN_JACK); } static irqreturn_t audio_hp_isr(int isr, void *data) @@ -76,7 +77,7 @@ unsigned long flags; int irq; - irq = htcapache_egpio_to_irq(EGPIO_NR_HTCAPACHE_SND_IN_JACK); + irq = gpio_to_irq(EGPIO_NR_HTCAPACHE_SND_IN_JACK); if (request_irq(irq, audio_hp_isr, SA_INTERRUPT | SA_SAMPLE_RANDOM, "Headphone Jack", NULL) != 0) return; @@ -89,7 +90,7 @@ static void audio_hp_detection_off(void) { - free_irq(htcapache_egpio_to_irq(EGPIO_NR_HTCAPACHE_SND_IN_JACK), NULL); + free_irq(gpio_to_irq(EGPIO_NR_HTCAPACHE_SND_IN_JACK), NULL); } static struct snd_ak4641 ak = { Modified: linux4palm/linux/branches/cleanup-branch-never-commit/sound/soc/pxa/h5000.c =================================================================== --- linux4palm/linux/branches/cleanup-branch-never-commit/sound/soc/pxa/h5000.c 2007-09-14 13:15:44 UTC (rev 1317) +++ linux4palm/linux/branches/cleanup-branch-never-commit/sound/soc/pxa/h5000.c 2007-09-14 14:31:39 UTC (rev 1318) @@ -26,7 +26,7 @@ #include <asm-arm/arch/gpio.h> #include <asm/arch-pxa/h5400-asic.h> #include <asm/arch-pxa/h5400-gpio.h> -#include <asm/hardware/samcop_base.h> +#include <linux/mfd/samcop_base.h> #include "pxa2xx-i2s.h" #include "pxa2xx-pcm.h" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <hap...@us...> - 2007-09-14 13:15:47
|
Revision: 1317 http://hackndev.svn.sourceforge.net/hackndev/?rev=1317&view=rev Author: happy-slapin Date: 2007-09-14 06:15:44 -0700 (Fri, 14 Sep 2007) Log Message: ----------- cleanup: Device cleanup Modified Paths: -------------- linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/htcapache/Kconfig linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/htcapache/Makefile linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/htcapache/htcapache.c Modified: linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/htcapache/Kconfig =================================================================== --- linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/htcapache/Kconfig 2007-09-14 13:08:25 UTC (rev 1316) +++ linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/htcapache/Kconfig 2007-09-14 13:15:44 UTC (rev 1317) @@ -9,6 +9,8 @@ select LEDS_CLASS select ADC select HTC_EGPIO + select HTC_BBKEYS + select LEDS_GPIO help Say Y here if you intend to run this kernel on a HTC Apache. Currently there is only basic support Modified: linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/htcapache/Makefile =================================================================== --- linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/htcapache/Makefile 2007-09-14 13:08:25 UTC (rev 1316) +++ linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/htcapache/Makefile 2007-09-14 13:15:44 UTC (rev 1317) @@ -4,7 +4,4 @@ obj-$(CONFIG_MACH_HTCAPACHE) += htcapache.o obj-$(CONFIG_MACH_HTCAPACHE) += htcapache-bl.o -obj-$(CONFIG_MACH_HTCAPACHE) += htcapache-mc.o -obj-$(CONFIG_MACH_HTCAPACHE) += htcapache-leds.o -obj-$(CONFIG_MACH_HTCAPACHE) += htcapache-frontkeys.o obj-$(CONFIG_MACH_HTCAPACHE) += htcapache-pm.o Modified: linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/htcapache/htcapache.c =================================================================== --- linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/htcapache/htcapache.c 2007-09-14 13:08:25 UTC (rev 1316) +++ linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/htcapache/htcapache.c 2007-09-14 13:15:44 UTC (rev 1317) @@ -8,34 +8,32 @@ */ #include <linux/kernel.h> -#include <linux/init.h> -#include <linux/device.h> -#include <linux/fb.h> -#include <linux/platform_device.h> #include <linux/delay.h> // mdelay -#include <linux/input.h> -#include <linux/ad7877.h> -#include <linux/touchscreen-adc.h> -#include <linux/gpio_keys.h> -#include <linux/adc_battery.h> -#include <linux/pda_power.h> -#include <linux/mfd/htc-egpio.h> +#include <linux/input.h> // KEY_* +#include <linux/ad7877.h> // struct ad7877_data +#include <linux/touchscreen-adc.h> // struct tsadc +#include <linux/gpio_keys.h> // struct gpio_keys_button +#include <linux/adc_battery.h> // struct battery_info +#include <linux/pda_power.h> // struct pda_power_pdata +#include <linux/mfd/htc-egpio.h> // struct htc_egpio_platform_data +#include <linux/mfd/htc-bbkeys.h> // struct htc_bbkeys_platform_data +#include <linux/leds.h> // struct gpio_led +#include <linux/platform_device.h> // struct platform_device -#include <asm/mach-types.h> -#include <asm/mach/arch.h> +#include <asm/gpio.h> // gpio_set_value +#include <asm/mach-types.h> // MACH_TYPE_HTCAPACHE +#include <asm/mach/arch.h> // MACHINE_START -#include <asm/arch/hardware.h> -#include <asm/arch/pxafb.h> -#include <asm/arch/pxa-regs.h> -#include <asm/arch/udc.h> -#include <asm/arch/htcapache-gpio.h> -#include <asm/arch/mmc.h> -#include <asm/arch/serial.h> -#include <asm/arch/pxa27x_keyboard.h> +#include <asm/arch/pxafb.h> // struct pxafb_mach_info +#include <asm/arch/udc.h> // PXA2XX_UDC_CMD_DISCONNECT +#include <asm/arch/htcapache-gpio.h> // GPIO_NR_HTCAPACHE_* +#include <asm/arch/mmc.h> // MMC_VDD_32_33 +#include <asm/arch/serial.h> // PXA_UART_CFG_POST_STARTUP +#include <asm/arch/pxa27x_keyboard.h> // struct pxa27x_keyboard_platform_data #include <asm/arch/irda.h> // struct pxaficp_platform_data -#include "../generic.h" -#include "../../../../drivers/net/wireless/acx/acx_hw.h" +#include "../generic.h" // pxa_map_io +#include "../../../../drivers/net/wireless/acx/acx_hw.h" // acx_hardware_data /**************************************************************** @@ -60,20 +58,20 @@ struct htc_egpio_pinInfo pins[] = { // Input pins with IRQs - {.pin_nr = EGPIO_NR_HTCAPACHE_PWR_IN_PWR + {.gpio = EGPIO_NR_HTCAPACHE_PWR_IN_PWR , .type = HTC_EGPIO_TYPE_INPUT , .input_irq = EGPIO_NR_HTCAPACHE_PWR_IN_PWR+8}, - {.pin_nr = EGPIO_NR_HTCAPACHE_PWR_IN_HIGHPWR + {.gpio = EGPIO_NR_HTCAPACHE_PWR_IN_HIGHPWR , .type = HTC_EGPIO_TYPE_INPUT , .input_irq = EGPIO_NR_HTCAPACHE_PWR_IN_HIGHPWR+8}, - {.pin_nr = EGPIO_NR_HTCAPACHE_SND_IN_JACK + {.gpio = EGPIO_NR_HTCAPACHE_SND_IN_JACK , .type = HTC_EGPIO_TYPE_INPUT , .input_irq = EGPIO_NR_HTCAPACHE_SND_IN_JACK+8}, - {.pin_nr = EGPIO_NR_HTCAPACHE_WIFI_IN_IRQ + {.gpio = EGPIO_NR_HTCAPACHE_WIFI_IN_IRQ , .type = HTC_EGPIO_TYPE_INPUT , .input_irq = EGPIO_NR_HTCAPACHE_WIFI_IN_IRQ+8}, // Output pins that default on - {.pin_nr = EGPIO_NR_HTCAPACHE_PWR_CHARGE + {.gpio = EGPIO_NR_HTCAPACHE_PWR_CHARGE , .type = HTC_EGPIO_TYPE_OUTPUT , .output_initial = 1}, // Disable charger }; @@ -81,7 +79,7 @@ struct htc_egpio_platform_data egpio_data = { .invertAcks = 1, .irq_base = IRQ_BOARD_START, - .gpio_base = GPIO_BASE_INCREMENT, + .gpio_base = HTCAPACHE_EGPIO_BASE, .nrRegs = 3, .pins = pins, .nr_pins = ARRAY_SIZE(pins), @@ -98,53 +96,87 @@ }; // Compatibility wrappers -#define IRQ_EGPIO(x) (IRQ_BOARD_START + (x) + 8) -int htcapache_egpio_get(int bit) { - return egpio_data.ops.get(&egpio.dev, bit); -} -EXPORT_SYMBOL(htcapache_egpio_get); -void htcapache_egpio_set(int bit, int value) { - egpio_data.ops.set(&egpio.dev, bit, value); -} -EXPORT_SYMBOL(htcapache_egpio_set); -int htcapache_egpio_to_irq(int bit) { - return egpio_data.ops.to_irq(&egpio.dev, bit); -} -EXPORT_SYMBOL(htcapache_egpio_to_irq); +#define IRQ_EGPIO(x) (IRQ_BOARD_START + (x) - HTCAPACHE_EGPIO_BASE + 8) /**************************************************************** - * LCD power + * Front keypad ****************************************************************/ +#define HTCAPACHE_BBKEYS_BASE (HTCAPACHE_EGPIO_BASE + GPIO_BASE_INCREMENT) +#define BBKEYS_GPIO(reg,bit) (HTCAPACHE_BBKEYS_BASE + 8*(reg) + (bit)) + +static struct resource bbkeys_resources[] = { + [0] = { + .start = IRQ_GPIO(GPIO_NR_HTCAPACHE_MC_IRQ), + .end = IRQ_GPIO(GPIO_NR_HTCAPACHE_MC_IRQ), + .flags = IORESOURCE_IRQ, + }, +}; + +static struct htc_bbkeys_platform_data bbkeys_data = { + .sda_gpio = GPIO_NR_HTCAPACHE_MC_SDA, + .scl_gpio = GPIO_NR_HTCAPACHE_MC_SCL, + .gpio_base = HTCAPACHE_BBKEYS_BASE, + + .ackreg = 3, + .key1reg = 4, + .key2reg = 5, + .buttons = { + -1, -1, -1, + KEY_ENTER, // Joystick press + KEY_DOWN, // Joystick down + KEY_LEFT, // Joystick left + KEY_UP, // Joystick up + KEY_RIGHT, // Joystick right + -1, -1, + KEY_LEFTMETA, // Windows key + KEY_OK, // Ok + KEY_RIGHTCTRL, // Right menu + KEY_ESC, // Hangup + KEY_LEFTCTRL, // Left menu + KEY_PHONE, // Call button + } +}; + +static struct platform_device bbkeys = { + .name = "htc-bbkeys", + .id = -1, + .resource = bbkeys_resources, + .num_resources = ARRAY_SIZE(bbkeys_resources), + .dev = { + .platform_data = &bbkeys_data, + }, +}; + + +/**************************************************************** + * LCD + ****************************************************************/ + static void lcd_power(int on, struct fb_var_screeninfo *si) { if (on) { printk(KERN_DEBUG "lcd power on\n"); - htcapache_write_mc_reg(0, 0x40); + gpio_set_value(BBKEYS_GPIO(0, 6), 1); udelay(2000); - htcapache_write_mc_reg(0, 0xc0); + gpio_set_value(BBKEYS_GPIO(0, 7), 1); udelay(2000); - htcapache_write_mc_reg(0, 0xd0); + gpio_set_value(BBKEYS_GPIO(0, 4), 1); udelay(2000); - htcapache_write_mc_reg(0, 0xf0); + gpio_set_value(BBKEYS_GPIO(0, 5), 1); } else { printk(KERN_DEBUG "lcd power off\n"); - htcapache_write_mc_reg(0, 0xd0); + gpio_set_value(BBKEYS_GPIO(0, 5), 0); udelay(2000); - htcapache_write_mc_reg(0, 0xc0); + gpio_set_value(BBKEYS_GPIO(0, 4), 0); udelay(2000); - htcapache_write_mc_reg(0, 0x40); + gpio_set_value(BBKEYS_GPIO(0, 7), 0); udelay(2000); - htcapache_write_mc_reg(0, 0x00); + gpio_set_value(BBKEYS_GPIO(0, 6), 0); } } - -/**************************************************************** - * Frame buffer - ****************************************************************/ - static struct pxafb_mode_info lcd_mode = { .pixclock = 192307, .xres = 240, @@ -220,8 +252,8 @@ static void set_charge(int flags) { - htcapache_egpio_set(EGPIO_NR_HTCAPACHE_USB_PWR - , flags == PDA_POWER_CHARGE_USB); + gpio_set_value(EGPIO_NR_HTCAPACHE_USB_PWR + , flags == PDA_POWER_CHARGE_USB); // XXX - enable/disable battery charger once charge complete // detection available. @@ -229,15 +261,15 @@ static int ac_on(void) { - int haspower = !htcapache_egpio_get(EGPIO_NR_HTCAPACHE_PWR_IN_PWR); - int hashigh = !htcapache_egpio_get(EGPIO_NR_HTCAPACHE_PWR_IN_HIGHPWR); + int haspower = !gpio_get_value(EGPIO_NR_HTCAPACHE_PWR_IN_PWR); + int hashigh = !gpio_get_value(EGPIO_NR_HTCAPACHE_PWR_IN_HIGHPWR); return haspower && hashigh; } static int usb_on(void) { - int haspower = !htcapache_egpio_get(EGPIO_NR_HTCAPACHE_PWR_IN_PWR); - int hashigh = !htcapache_egpio_get(EGPIO_NR_HTCAPACHE_PWR_IN_HIGHPWR); + int haspower = !gpio_get_value(EGPIO_NR_HTCAPACHE_PWR_IN_PWR); + int hashigh = !gpio_get_value(EGPIO_NR_HTCAPACHE_PWR_IN_HIGHPWR); return haspower && !hashigh; } @@ -301,8 +333,33 @@ * LEDS ****************************************************************/ +struct gpio_led apache_leds[] = { + { .name = "apache:vibra", .gpio = EGPIO_NR_HTCAPACHE_LED_VIBRA }, + { .name = "apache:kbd_bl", + .gpio = EGPIO_NR_HTCAPACHE_LED_KBD_BACKLIGHT }, + { .name = "apache:flashlight", + .gpio = GPIO_NR_HTCAPACHE_LED_FLASHLIGHT }, + { .name = "apache:phone_bl", .gpio = BBKEYS_GPIO(1, 5) }, + + { .name = "apacheLeft:green", .gpio = BBKEYS_GPIO(2, 2) }, + { .name = "apacheLeft:blue", .gpio = BBKEYS_GPIO(2, 3) }, + { .name = "apacheLeft:alter", .gpio = BBKEYS_GPIO(2, 4) }, + { .name = "apacheRight:green", .gpio = BBKEYS_GPIO(2, 5) }, + { .name = "apacheRight:red", .gpio = BBKEYS_GPIO(2, 6) }, + { .name = "apacheRight:alter", .gpio = BBKEYS_GPIO(2, 7) }, +}; + +static struct gpio_led_platform_data apache_led_info = { + .leds = apache_leds, + .num_leds = ARRAY_SIZE(apache_leds), +}; + static struct platform_device leds = { - .name = "htcapache-leds", + .name = "leds-gpio", + .id = -1, + .dev = { + .platform_data = &apache_led_info, + } }; @@ -320,9 +377,9 @@ pxa_gpio_mode(GPIO44_BTCTS_MD); pxa_gpio_mode(GPIO45_BTRTS_MD); - htcapache_egpio_set(EGPIO_NR_HTCAPACHE_BT_POWER, 1); + gpio_set_value(EGPIO_NR_HTCAPACHE_BT_POWER, 1); mdelay(5); - htcapache_egpio_set(EGPIO_NR_HTCAPACHE_BT_RESET, 1); + gpio_set_value(EGPIO_NR_HTCAPACHE_BT_RESET, 1); /* * BRF6150's RTS goes low when firmware is ready * so check for CTS=1 (nCTS=0 -> CTS=1). Typical 150ms @@ -334,8 +391,8 @@ printk("btuart: post_startup (%d)\n", tries); break; case PXA_UART_CFG_PRE_SHUTDOWN: - htcapache_egpio_set(EGPIO_NR_HTCAPACHE_BT_POWER, 0); - htcapache_egpio_set(EGPIO_NR_HTCAPACHE_BT_RESET, 0); + gpio_set_value(EGPIO_NR_HTCAPACHE_BT_POWER, 0); + gpio_set_value(EGPIO_NR_HTCAPACHE_BT_RESET, 0); printk("btuart: pre_shutdown\n"); break; } @@ -370,23 +427,23 @@ static int wlan_start(void) { - htcapache_egpio_set(EGPIO_NR_HTCAPACHE_WIFI_POWER1, 1); - htcapache_egpio_set(EGPIO_NR_HTCAPACHE_WIFI_POWER2, 1); - htcapache_egpio_set(EGPIO_NR_HTCAPACHE_WIFI_POWER3, 1); + gpio_set_value(EGPIO_NR_HTCAPACHE_WIFI_POWER1, 1); + gpio_set_value(EGPIO_NR_HTCAPACHE_WIFI_POWER2, 1); + gpio_set_value(EGPIO_NR_HTCAPACHE_WIFI_POWER3, 1); mdelay(250); - htcapache_egpio_set(EGPIO_NR_HTCAPACHE_WIFI_RESET, 1); - mdelay(100); - return 0; + gpio_set_value(EGPIO_NR_HTCAPACHE_WIFI_RESET, 1); + mdelay(100); + return 0; } static int wlan_stop(void) { - htcapache_egpio_set(EGPIO_NR_HTCAPACHE_WIFI_POWER1, 0); - htcapache_egpio_set(EGPIO_NR_HTCAPACHE_WIFI_POWER2, 0); - htcapache_egpio_set(EGPIO_NR_HTCAPACHE_WIFI_POWER3, 0); - htcapache_egpio_set(EGPIO_NR_HTCAPACHE_WIFI_RESET, 0); - return 0; + gpio_set_value(EGPIO_NR_HTCAPACHE_WIFI_POWER1, 0); + gpio_set_value(EGPIO_NR_HTCAPACHE_WIFI_POWER2, 0); + gpio_set_value(EGPIO_NR_HTCAPACHE_WIFI_POWER3, 0); + gpio_set_value(EGPIO_NR_HTCAPACHE_WIFI_RESET, 0); + return 0; } enum { @@ -546,38 +603,6 @@ /**************************************************************** - * Buttons on front - ****************************************************************/ - -static struct gpio_keys_button front_button_list[] = { - { .gpio = 15, .keycode = KEY_PHONE}, // Call button - { .gpio = 14, .keycode = KEY_LEFTCTRL}, // Left menu - { .gpio = 13, .keycode = KEY_ESC}, // Hangup - { .gpio = 12, .keycode = KEY_RIGHTCTRL}, // Right menu - { .gpio = 11, .keycode = KEY_OK}, // Ok - { .gpio = 10, .keycode = KEY_LEFTMETA}, // Windows key - { .gpio = 7, .keycode = KEY_RIGHT}, // Joystick right - { .gpio = 6, .keycode = KEY_UP}, // Joystick up - { .gpio = 5, .keycode = KEY_LEFT}, // Joystick left - { .gpio = 4, .keycode = KEY_DOWN}, // Joystick down - { .gpio = 3, .keycode = KEY_ENTER}, // Joystick press -}; - -static struct gpio_keys_platform_data front_buttons_data = { - .buttons = front_button_list, - .nbuttons = ARRAY_SIZE(front_button_list), -}; - -static struct platform_device front_buttons = { - .name = "htcapache-frontkeys", - .id = -1, - .dev = { - .platform_data = &front_buttons_data, - }, -}; - - -/**************************************************************** * USB client controller ****************************************************************/ @@ -660,6 +685,7 @@ static struct platform_device *devices[] __initdata = { &egpio, + &bbkeys, &htcapache_keyboard, &htcapache_buttons, &ad7877, @@ -669,15 +695,14 @@ &htcapache_bl, &leds, &acx_device, - &front_buttons, }; void htcapache_ll_pm_init(void); static void __init htcapache_init(void) { + platform_add_devices(devices, ARRAY_SIZE(devices)); set_pxa_fb_info(&lcd); - platform_add_devices(devices, ARRAY_SIZE(devices)); pxa_set_btuart_info(&btuart_funcs); pxa_set_udc_info(&htcapache_udc_mach_info); pxa_set_mci_info(&htcapache_mci_platform_data); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <hap...@us...> - 2007-09-14 13:08:28
|
Revision: 1316 http://hackndev.svn.sourceforge.net/hackndev/?rev=1316&view=rev Author: happy-slapin Date: 2007-09-14 06:08:25 -0700 (Fri, 14 Sep 2007) Log Message: ----------- cleanup: Device cleanup Modified Paths: -------------- linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/asus730/a730_flash.c linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/generic.c linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/h5400/h5400.c Modified: linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/asus730/a730_flash.c =================================================================== --- linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/asus730/a730_flash.c 2007-09-14 12:44:17 UTC (rev 1315) +++ linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/asus730/a730_flash.c 2007-09-14 13:08:25 UTC (rev 1316) @@ -117,9 +117,8 @@ static struct mtd_info *mtds_concat = NULL; static int mtds_found = 0; -#ifdef CONFIG_MTD_PARTITIONS static const char *part_probes[] = {"cmdlinepart", "RedBoot", NULL}; -#endif + static int mphysmap_map_device(struct map_info *map) { static const char *rom_probe_types[] = {"cfi_probe", "jedec_probe", "map_rom", NULL}; @@ -184,10 +183,9 @@ static int a730_physmap_flash_probe(struct device *dev) { int i; -#ifdef CONFIG_MTD_PARTITIONS struct mtd_partition* mtd_parts; int mtd_parts_nb; -#endif + for (i = 0; i < ARRAY_SIZE(mphysmap_static_maps); i++) { if (strcmp(mphysmap_static_maps[i].name, "") != 0 && mphysmap_static_maps[i].size != 0 && mphysmap_static_maps[i].bankwidth != 0) Modified: linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/generic.c =================================================================== --- linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/generic.c 2007-09-14 12:44:17 UTC (rev 1315) +++ linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/generic.c 2007-09-14 13:08:25 UTC (rev 1316) @@ -233,6 +233,21 @@ #include <linux/gpiodev2.h> struct gpio_ops gpio_desc[16]; + +int gpio_direction_input(unsigned gpio) +{ + if (gpio < GPIO_BASE_INCREMENT) + return pxa_gpio_mode(gpio | GPIO_IN); + return -EINVAL; +} + +int gpio_direction_output(unsigned gpio) +{ + if (gpio < GPIO_BASE_INCREMENT) + return pxa_gpio_mode(gpio | GPIO_OUT); + return -EINVAL; +} + /* * Return GPIO level */ @@ -252,7 +267,8 @@ { if (gpio < GPIO_BASE_INCREMENT) __gpio_set_value(gpio, value); - gpiodev2_set_value(gpio, value); + else + gpiodev2_set_value(gpio, value); } EXPORT_SYMBOL(pxa_gpio_set_value); Modified: linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/h5400/h5400.c =================================================================== --- linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/h5400/h5400.c 2007-09-14 12:44:17 UTC (rev 1315) +++ linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/h5400/h5400.c 2007-09-14 13:08:25 UTC (rev 1316) @@ -38,8 +38,7 @@ #include <linux/input_pda.h> #include <linux/adc.h> #include <linux/mfd/samcop_adc.h> -#include <linux/gpiodev_keys.h> -#include <linux/gpiodev_diagonal.h> +#include <linux/gpiodev_keys2.h> #include <linux/mtd/mtd.h> #include <linux/mtd/partitions.h> #include <linux/mtd/physmap.h> @@ -508,7 +507,7 @@ GPIO_NR_H5400_IRDA_SD | GPIO_OUT, /* GPIO58 */ 59 | GPIO_OUT, /* GPIO59 XXX docs say "usb charge on" input */ GPIO_NR_H5400_POWER_SD_N | GPIO_OUT, /* GPIO60 XXX not really active low? */ - GPIO_NR_H5400_POWER_RS232_N | GPIO_OUT | GPIO_DFLT_HIGH, + GPIO_NR_H5400_POWER_RS232_N_OR_FS | GPIO_OUT | GPIO_DFLT_HIGH, GPIO_NR_H5400_POWER_ACCEL_N | GPIO_OUT | GPIO_DFLT_HIGH, 63 | GPIO_OUT, /* GPIO63 NC */ GPIO_NR_H5400_OPT_NVRAM | GPIO_OUT , @@ -649,8 +648,8 @@ .gpacon2 = 0x5a, .gpadat = 0x0, .gpaup = 0x0, - .gpioint = { 0x66666666, 0x60006, 0x0, }, - .gpioflt = { 0x3fff0000, 0x3fff3fff, 0x3fff, 0, 0, 0x3fff3fff, 0, }, + .gpioint = { 0xeeeeeeee, 0x6766eeee, 0x0444444f, }, + .gpioflt = { 0x3fff0001, 0x3fff3fff, 0x3fff3fff, 0x3fff3fff, 0x3fff3fff, 0x3fff3fff, 0x000f3fff, }, .gpioenint = { 0x3f, 0x7f, }, }, .child_devs = samcop_child_devs, @@ -669,52 +668,68 @@ }; EXPORT_SYMBOL(h5400_samcop); -static struct gpiodev_keys_button h5400_button_table[] = { - { KEY_POWER, { &pxagpio_device.dev, GPIO_NR_H5400_POWER_BUTTON }, 1, "Power button" }, - { _KEY_RECORD, { &h5400_samcop.dev, SAMCOP_GPA_RECORD }, 1, "Record button" }, - { _KEY_CALENDAR, { &h5400_samcop.dev, SAMCOP_GPA_APPBTN1 }, 1, "Calendar button" }, - { _KEY_CONTACTS, { &h5400_samcop.dev, SAMCOP_GPA_APPBTN2 }, 1, "Contacts button" }, - { _KEY_MAIL, { &h5400_samcop.dev, SAMCOP_GPA_APPBTN3 }, 1, "Mail button" }, - { _KEY_HOMEPAGE, { &h5400_samcop.dev, SAMCOP_GPA_APPBTN4 }, 1, "Homepage button" }, - { KEY_VOLUMEUP, { &h5400_samcop.dev, SAMCOP_GPA_TOGGLEUP }, 1, "Volume up" }, - { KEY_VOLUMEDOWN, { &h5400_samcop.dev, SAMCOP_GPA_TOGGLEDOWN }, 1, "Volume down" }, +static struct gpiodev_keys2_gpio h5000_gpiodev_keys2_gpios[] = { + { "Power button", { &pxagpio_device.dev, GPIO_NR_H5400_POWER_BUTTON }, 0, }, + { "Record button", { &h5400_samcop.dev, SAMCOP_GPA_RECORD }, 1, }, + { "Calendar button", { &h5400_samcop.dev, SAMCOP_GPA_APPBTN1 }, 1, }, + { "Contacts button", { &h5400_samcop.dev, SAMCOP_GPA_APPBTN2 }, 1, }, + { "Mail button", { &h5400_samcop.dev, SAMCOP_GPA_APPBTN3 }, 1, }, + { "Homepage button", { &h5400_samcop.dev, SAMCOP_GPA_APPBTN4 }, 1, }, + { "Volume up", { &h5400_samcop.dev, SAMCOP_GPA_TOGGLEUP }, 1, }, + { "Volume down", { &h5400_samcop.dev, SAMCOP_GPA_TOGGLEDOWN }, 1, }, + { "Joypad NW", { &h5400_samcop.dev, SAMCOP_GPA_JOYSTICK1 }, 1, }, + { "Joypad NE", { &h5400_samcop.dev, SAMCOP_GPA_JOYSTICK2 }, 1, }, + { "Joypad SE", { &h5400_samcop.dev, SAMCOP_GPA_JOYSTICK3 }, 1, }, + { "Joypad SW", { &h5400_samcop.dev, SAMCOP_GPA_JOYSTICK4 }, 1, }, + { "Joypad action", { &h5400_samcop.dev, SAMCOP_GPA_JOYSTICK5 }, 1, }, }; - -static struct gpiodev_keys_platform_data h5400_pxa_keys_data = { - .buttons = h5400_button_table, - .nbuttons = ARRAY_SIZE(h5400_button_table), +static struct gpiodev_keys2_button h5000_gpiodev_keys2_buttons[] = { + { KEY_POWER, { "Power button", NULL }, 0, 0, }, + { _KEY_CALENDAR, { "Calendar button", NULL }, 0, 0, }, + { _KEY_CONTACTS, { "Contacts button", NULL }, 0, 0, }, + { _KEY_MAIL, { "Mail button", NULL }, 0, 0, }, + { _KEY_HOMEPAGE, { "Homepage button", NULL }, 0, 0, }, + /* Side buttons */ + { _KEY_RECORD, { "Record button", "Volume up", "Volume down", NULL }, 75, 1, }, + { KEY_VOLUMEUP, { "Volume up", NULL }, 75, 0, }, + { KEY_VOLUMEDOWN, { "Volume down", "Record button", NULL }, 75, 0, }, + /* Diagonal joypad */ + { KEY_ENTER, { "Joypad action", NULL }, 0, 0}, + /* One diagonal pressed */ + /* NE */ + { KEY_UP, { "Joypad NE", "Joypad action", NULL}, 0, 1}, + { KEY_RIGHT, { "Joypad NE", "Joypad action", NULL}, 0, 1}, + /* NW */ + { KEY_UP, { "Joypad NW", "Joypad action", NULL}, 0, 1}, + { KEY_LEFT, { "Joypad NW", "Joypad action", NULL}, 0, 1}, + /* SE */ + { KEY_DOWN, { "Joypad SE", "Joypad action", NULL}, 0, 1}, + { KEY_RIGHT, { "Joypad SE", "Joypad action", NULL}, 0, 1}, + /* SW */ + { KEY_DOWN, { "Joypad SW", "Joypad action", NULL}, 0, 1}, + { KEY_LEFT, { "Joypad SW", "Joypad action", NULL}, 0, 1}, + /* Two diagonals pressed */ + { KEY_UP, { "Joypad NE", "Joypad NW", "Joypad action", NULL }, 0, 2}, + { KEY_LEFT, { "Joypad NW", "Joypad SW", "Joypad action", NULL }, 0, 2}, + { KEY_DOWN, { "Joypad SW", "Joypad SE", "Joypad action", NULL }, 0, 2}, + { KEY_RIGHT, { "Joypad SE", "Joypad NE", "Joypad action", NULL }, 0, 2}, }; -static struct platform_device h5400_pxa_keys = { - .name = "gpiodev-keys", - .dev = { - .platform_data = &h5400_pxa_keys_data, - }, +static struct gpiodev_keys2_platform_data h5000_gpiodev_keys2_platform_data = { + .gpios = h5000_gpiodev_keys2_gpios, + .ngpios = ARRAY_SIZE(h5000_gpiodev_keys2_gpios), + .buttons = h5000_gpiodev_keys2_buttons, + .nbuttons = ARRAY_SIZE(h5000_gpiodev_keys2_buttons), }; -static struct gpiodev_diagonal_button h5400_joypad_table[] = { - { { &h5400_samcop.dev, SAMCOP_GPA_JOYSTICK1 }, 1, GPIODEV_DIAG_LEFT | GPIODEV_DIAG_UP, "Joypad left-up" }, - { { &h5400_samcop.dev, SAMCOP_GPA_JOYSTICK2 }, 1, GPIODEV_DIAG_RIGHT | GPIODEV_DIAG_UP, "Joypad right-up" }, - { { &h5400_samcop.dev, SAMCOP_GPA_JOYSTICK3 }, 1, GPIODEV_DIAG_RIGHT | GPIODEV_DIAG_DOWN, "Joypad right-down" }, - { { &h5400_samcop.dev, SAMCOP_GPA_JOYSTICK4 }, 1, GPIODEV_DIAG_LEFT | GPIODEV_DIAG_DOWN, "Joypad left-down" }, - { { &h5400_samcop.dev, SAMCOP_GPA_JOYSTICK5 }, 1, GPIODEV_DIAG_ACTION, "Joypad action" }, -}; - -static struct gpiodev_diagonal_platform_data h5400_pxa_joypad_data = { - .buttons = h5400_joypad_table, - .nbuttons = ARRAY_SIZE(h5400_joypad_table), - .dir_disables_enter = 1, -}; - -static struct platform_device h5400_pxa_joypad = { - .name = "gpiodev-diagonal", +static struct platform_device h5000_gpiodev_keys2 = { + .name = "gpiodev-keys2", .dev = { - .platform_data = &h5400_pxa_joypad_data, + .platform_data = &h5000_gpiodev_keys2_platform_data, }, }; - static void __init h5400_init (void) { @@ -723,8 +738,7 @@ platform_device_register (&h5000_flash[0]); platform_device_register (&h5000_flash[1]); platform_device_register (&h5400_samcop); - platform_device_register (&h5400_pxa_keys); - platform_device_register (&h5400_pxa_joypad); + platform_device_register (&h5000_gpiodev_keys2); pxa_set_udc_info (&h5400_udc_mach_info); pxa_set_dma_needs_bounce (h5400_dma_needs_bounce); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <hap...@us...> - 2007-09-13 18:59:43
|
Revision: 1314 http://hackndev.svn.sourceforge.net/hackndev/?rev=1314&view=rev Author: happy-slapin Date: 2007-09-13 11:59:42 -0700 (Thu, 13 Sep 2007) Log Message: ----------- splitpatch: Added more corner cases Modified Paths: -------------- linux4palm/tools/tags-cleanup/splitpatch.py Modified: linux4palm/tools/tags-cleanup/splitpatch.py =================================================================== --- linux4palm/tools/tags-cleanup/splitpatch.py 2007-09-13 18:25:09 UTC (rev 1313) +++ linux4palm/tools/tags-cleanup/splitpatch.py 2007-09-13 18:59:42 UTC (rev 1314) @@ -78,10 +78,21 @@ self.name = "" self.patch = Patch(patch) if len(self.patch.hunks) > 0: - self.data = self.patch.patchhead + "\n".join(self.patch.hunks) + self.data = self.patch.patchhead + "".join(self.patch.hunks) self.head = self.patch.patchhead.split("\n")[2].split(" ")[1].split("\t")[0] namelist = self.head.split("/") - self.name = "-".join(namelist[1:2]) + ".diff" + if namelist[1] == "fs": + self.name = "-".join(namelist[1:3]) + ".diff" + elif namelist[1] == "arch" and namelist[2] == "arm" and namelist[3] == "configs": + self.name = "-".join(namelist[1:5]) + ".diff" + elif namelist[1] == "arch" and namelist[2] == "arm" and namelist[3] == "mach-pxa": + self.name = "-".join(namelist[1:5]) + ".diff" + elif namelist[1] == "drivers" or namelist[1] == "include" namelist[1] == "sound": + self.name = "-".join(namelist[1:5]) + ".diff" + elif namelist[1] == "arch" and namelist[2] == "arm": + self.name = "-".join(namelist[1:4]) + ".diff" + else: + self.name = "-".join(namelist[1:2]) + ".diff" self.ignored = self.patch.ignored class PatchCollection: @@ -94,15 +105,17 @@ def flushfiles(self): data = {} for g in self.patches: - if data.has_key(g.name): - data[g.name] += g.data + g.ignored - else: - data[g.name] = g.data + g.ignored + if len(g.data) > 0: + if data.has_key(g.name): + data[g.name] += g.data + g.ignored + else: + data[g.name] = g.data + g.ignored for f, d in data.items(): - print "New file " + f - fd = open(f, "w") - fd.write(d) - fd.close() + if len(d) > 0: + print "New file " + f + fd = open(f, "w") + fd.write(d) + fd.close() fd = open(sys.argv[1], "r") This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <hap...@us...> - 2007-09-13 18:26:19
|
Revision: 1313 http://hackndev.svn.sourceforge.net/hackndev/?rev=1313&view=rev Author: happy-slapin Date: 2007-09-13 11:25:09 -0700 (Thu, 13 Sep 2007) Log Message: ----------- Cleanup Modified Paths: -------------- linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/pxa27x.c linux4palm/linux/branches/cleanup-branch-never-commit/arch/sh/kernel/process.c linux4palm/linux/branches/cleanup-branch-never-commit/init/do_mounts_rd.c linux4palm/linux/branches/cleanup-branch-never-commit/init/main.c Modified: linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/pxa27x.c =================================================================== --- linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/pxa27x.c 2007-09-13 18:21:07 UTC (rev 1312) +++ linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/pxa27x.c 2007-09-13 18:25:09 UTC (rev 1313) @@ -198,32 +198,6 @@ .resource = pxa27x_ohci_resources, }; -static struct resource pxacamera_resources[] = { - [0] = { - .start = 0x50000000, - .end = 0x50000fff, - .flags = IORESOURCE_MEM, - }, - [1] = { - .start = IRQ_CAMERA, - .end = IRQ_CAMERA, - .flags = IORESOURCE_IRQ, - }, -}; - -static u64 pxa_camera_dmamask = 0xffffffffUL; - -static struct platform_device pxacamera_device = { - .name = "pxa-camera", - .id = -1, //check this - .dev = { - .dma_mask = &pxa_camera_dmamask, - .coherent_dma_mask = 0xffffffff, - }, - .num_resources = ARRAY_SIZE(pxacamera_resources), - .resource = pxacamera_resources, -}; - void __init pxa_set_ohci_info(struct pxaohci_platform_data *info) { ohci_device.dev.platform_data = info; Modified: linux4palm/linux/branches/cleanup-branch-never-commit/arch/sh/kernel/process.c =================================================================== --- linux4palm/linux/branches/cleanup-branch-never-commit/arch/sh/kernel/process.c 2007-09-13 18:21:07 UTC (rev 1312) +++ linux4palm/linux/branches/cleanup-branch-never-commit/arch/sh/kernel/process.c 2007-09-13 18:25:09 UTC (rev 1313) @@ -9,26 +9,22 @@ * Copyright (C) 2006 Lineo Solutions Inc. support SH4A UBC * Copyright (C) 2002 - 2006 Paul Mundt */ - #include <linux/module.h> #include <linux/mm.h> #include <linux/elfcore.h> #include <linux/pm.h> #include <linux/kallsyms.h> #include <linux/kexec.h> - #include <asm/uaccess.h> #include <asm/mmu_context.h> #include <asm/ubc.h> static int hlt_counter; - int ubc_usercnt = 0; #define HARD_IDLE_TIMEOUT (HZ / 3) void (*pm_idle)(void); - void (*pm_power_off)(void); EXPORT_SYMBOL(pm_power_off); Modified: linux4palm/linux/branches/cleanup-branch-never-commit/init/do_mounts_rd.c =================================================================== --- linux4palm/linux/branches/cleanup-branch-never-commit/init/do_mounts_rd.c 2007-09-13 18:21:07 UTC (rev 1312) +++ linux4palm/linux/branches/cleanup-branch-never-commit/init/do_mounts_rd.c 2007-09-13 18:25:09 UTC (rev 1313) @@ -5,14 +5,6 @@ #include <linux/ext2_fs.h> #include <linux/romfs_fs.h> #include <linux/cramfs_fs.h> - -#ifdef CONFIG_SQUASHFS_LZMA - #include <linux/squashfslzma_fs.h> - #include <../fs/squashfs_lzma/sqmagic.h> -#else - #include <linux/squashfs_fs.h> -#endif - #include <linux/initrd.h> #include <linux/string.h> @@ -47,8 +39,6 @@ * numbers could not be found. * * We currently check for the following magic numbers: - * squashfs - * squashfs-lzma * minix * ext2 * romfs @@ -63,11 +53,6 @@ struct ext2_super_block *ext2sb; struct romfs_super_block *romfsb; struct cramfs_super *cramfsb; - struct squashfs_super_block *squashfsb; -#ifdef CONFIG_SQUASHFS_LZMA - struct squashfs_super_block *squashfslzmab; -#endif - int nblocks = -1; unsigned char *buf; @@ -79,10 +64,6 @@ ext2sb = (struct ext2_super_block *) buf; romfsb = (struct romfs_super_block *) buf; cramfsb = (struct cramfs_super *) buf; - squashfsb = (struct squashfs_super_block *) buf; -#ifdef CONFIG_SQUASHFS_LZMA - squashfslzmab = (struct squashfs_super_block *) buf; -#endif memset(buf, 0xe5, size); /* @@ -120,32 +101,6 @@ goto done; } - /* squashfs is at block zero too */ - if (squashfsb->s_magic == SQUASHFS_MAGIC) { - printk(KERN_NOTICE - "RAMDISK: squashfs filesystem found at block %d\n", - start_block); - if (squashfsb->s_major < 3) - nblocks = (squashfsb->bytes_used_2+BLOCK_SIZE-1)>>BLOCK_SIZE_BITS; - else - nblocks = (squashfsb->bytes_used+BLOCK_SIZE-1)>>BLOCK_SIZE_BITS; - goto done; - } - -#ifdef CONFIG_SQUASHFS_LZMA - /* squashfslzma is at block zero too */ - if (squashfslzmab->s_magic == SQUASHFS_MAGIC_LZMA) { - printk(KERN_NOTICE - "RAMDISK: SquashFS-LZMA filesystem found at block %d\n", - start_block); - if (squashfslzmab->s_major < 3) - nblocks = (squashfslzmab->bytes_used_2+BLOCK_SIZE-1)>>BLOCK_SIZE_BITS; - else - nblocks = (squashfslzmab->bytes_used+BLOCK_SIZE-1)>>BLOCK_SIZE_BITS; - goto done; - } -#endif - /* * Read block 1 to test for minix and ext2 superblock */ Modified: linux4palm/linux/branches/cleanup-branch-never-commit/init/main.c =================================================================== --- linux4palm/linux/branches/cleanup-branch-never-commit/init/main.c 2007-09-13 18:21:07 UTC (rev 1312) +++ linux4palm/linux/branches/cleanup-branch-never-commit/init/main.c 2007-09-13 18:25:09 UTC (rev 1313) @@ -728,13 +728,11 @@ spawn_softlockup_task(); } -#if !defined(CONFIG_LAB) static void run_init_process(char *init_filename) { argv_init[0] = init_filename; kernel_execve(init_filename, argv_init, envp_init); } -#endif /* This is a non __init function. Force it to be noinline otherwise gcc * makes it inline to init() and it becomes part of init.text section This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <hap...@us...> - 2007-09-13 18:21:09
|
Revision: 1312 http://hackndev.svn.sourceforge.net/hackndev/?rev=1312&view=rev Author: happy-slapin Date: 2007-09-13 11:21:07 -0700 (Thu, 13 Sep 2007) Log Message: ----------- Cleanup Removed Paths: ------------- linux4palm/linux/branches/cleanup-branch-never-commit/fs/aufs/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <hap...@us...> - 2007-09-13 17:53:35
|
Revision: 1311 http://hackndev.svn.sourceforge.net/hackndev/?rev=1311&view=rev Author: happy-slapin Date: 2007-09-13 10:53:33 -0700 (Thu, 13 Sep 2007) Log Message: ----------- Cleanup Removed Paths: ------------- linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/palmz72/camera.txt linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/palmz72/gpio_map.txt linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/palmz72/gpio_map_ext.txt linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/palmz72/i2c.txt linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/palmz72/pxaci.c Deleted: linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/palmz72/camera.txt =================================================================== --- linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/palmz72/camera.txt 2007-09-13 17:46:47 UTC (rev 1310) +++ linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/palmz72/camera.txt 2007-09-13 17:53:33 UTC (rev 1311) @@ -1,60 +0,0 @@ -GPLR0 GPLR1 GPLR2 GPLR3 - -No camera -0xFF511B05 0x3C7EDDFD 0xFF3F7328 0X8D1B6600 -0xFF511B15 0X3C7EDDFD 0XFF2F7328 0X8D1B6600 -0xff511b05 0x3c7efdfd 0xff2f7328 0x8d1b6600 -0xff511a85 0x3c7efda9 0x4a2d7328 0x8d1b6600 -0xff511a15 0x3c7efd19 0x8c3e7328 0x8d1b6600 -0xff511af5 0x3c7efdb9 0x8c2d7328 0x8d1b6600 - -Camera on -0XFF511B15 0X3C7ECB04 0X063C632A 0XBD0B6600 -0xff511b15 0x3cfe7328 0x002c630a 0x8d0b6600 -0xff511b85 0x3cfe1700 0x002c6308 0x8d0b6600 -0xff511b05 0x3cfe6288 0x633c612a 0x8d1b6600 -0xff511a15 0x3cfed304 0x443c410a 0x8d0b6600 -0xff511a05 0x3cfe8ee8 0xf72e4108 0x8d1b6600 - - XXXXXXXX XXXXX X XX XXX XXXXXXXX - - -GPLR1 -Camera off -dfd 1101 1111 1101 -da9 1101 1010 1001 -d19 1101 0001 1001 -db9 1101 1011 1001 - -Camera on -b04 1011 0000 0100 -328 0011 0010 1000 -700 0111 0000 0000 -288 0010 1000 1000 -304 0011 0000 0100 -ee8 1110 1110 1000 - - XX X XXXX XXX -Camera: off on -GPIO32 1 0 -GPIO41 0 1 # FF_RTS, strange... - -GPLR2 -Camera off -XFXX7XXX 1111 XXXX XXXX 0111 XXXX XXXX XXXX -XAXX7XXX 1010 XXXX XXXX 0111 XXXX XXXX XXXX -XCXX7XXX 1100 XXXX XXXX 0111 XXXX XXXX XXXX - -Camera on -X6XX6XXX 0110 XXXX XXXX 0110 XXXX XXXX XXXX -X0XX6XXX 0000 XXXX XXXX 0110 XXXX XXXX XXXX -X3XX6XXX 0011 XXXX XXXX 0110 XXXX XXXX XXXX -X4XX4XXX 0100 XXXX XXXX 0100 XXXX XXXX XXXX -X7XX4XXX 0111 XXXX XXXX 0100 XXXX XXXX XXXX - - XXX XXXX XXXX XXX XXXX XXXX XXXX - -Camera: off on -GPIO76 1 0 # L_PCLK_WR, seems just accidentally -GPIO91 1 0 - Deleted: linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/palmz72/gpio_map.txt =================================================================== --- linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/palmz72/gpio_map.txt 2007-09-13 17:46:47 UTC (rev 1310) +++ linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/palmz72/gpio_map.txt 2007-09-13 17:53:33 UTC (rev 1311) @@ -1,122 +0,0 @@ -GPIO pin Level Dir Function -GPIO_0 0 I 00 Low POWER detect? -GPIO_1 1 I 00 -GPIO_2 1 O 00 SYS_EN -GPIO_3 1 O 00 -GPIO_4 1 O 00 -GPIO_5 1 I 00 PWR_CAP<0> -GPIO_6 1 I 00 PWR_CAP<1> -GPIO_7 1 I 00 PWR_CAP<2> -GPIO_8 1 I 00 PWR_CAP<3> -GPIO_9 0 I 00 -GPIO_10 1 I 00 -GPIO_11 0 I 00 -GPIO_12 1 I 00 USB_PULLUP -GPIO_13 0 I 02 KP_DKIN7 // Voice Memo button -GPIO_14 0 I 00 SD card inserted -GPIO_15 0 I 00 USB_DETECT -GPIO_16 1 O 02 PWM_OUT0 -GPIO_17 1 O 00 Bluetooth: 1 when enabled in POS -GPIO_18 0 O 00 -GPIO_19 1 O 00 Screen goes white when 0 -GPIO_20 1 O 00 BL_POWER // Backlight goes off when 0 -GPIO_21 0 O 00 LCD border switch -GPIO_22 0 O 00 LCD border select -GPIO_23 0 O 02 SSPSCLK -GPIO_24 1 O 02 SSPSFRM -GPIO_25 0 O 02 SSPSTXD -GPIO_26 1 I 01 SSPRXD -GPIO_27 0 I 00 WM9712_IRQ -GPIO_28 0 I 01 AC97_BITCLK // AC97 -GPIO_29 0 I 01 AC97_SDATA_IN0 // AC97 -GPIO_30 0 O 02 AC97_SDATA_OUT // AC97 -GPIO_31 0 O 02 AC97_SYNC // AC97 -GPIO_32 0 O 00 -GPIO_33 0 O 00 -GPIO_34 1 I 00 -GPIO_35 1 I 01 FFCTS -GPIO_36 1 O 00 -GPIO_37 1 I 00 -GPIO_38 0 O 00 -GPIO_39 0 O 00 -GPIO_40 0 O 00 -GPIO_41 1 O 02 FF_RTS -GPIO_42 1 I 01 BTRXD -GPIO_43 1 O 02 BTTXD -GPIO_44 1 I 01 BTCTS -GPIO_45 1 O 02 BTRTS -GPIO_46 1 I 02 STD_RXD -GPIO_47 0 O 01 STD_TXD -GPIO_48 1 I 01 CIF_DD5 -GPIO_49 0 O 00 IR_SD -GPIO_50 1 I 01 CIF_DD3 -GPIO_51 1 I 01 CIF_DD2 -GPIO_52 1 I 01 CIF_DD4 -GPIO_53 0 O 02 CIF_MCLK -GPIO_54 1 I 03 CIF_PCLK -GPIO_55 0 I 01 CIF_DD1 -GPIO_56 1 O 00 -GPIO_57 0 O 00 -GPIO_58 1 O 02 LDD0 -GPIO_59 1 O 02 LDD1 -GPIO_60 1 O 02 LDD2 -GPIO_61 1 O 02 LDD3 -GPIO_62 1 O 02 LDD4 -GPIO_63 1 O 02 LDD5 -GPIO_64 1 O 02 LDD6 -GPIO_65 1 O 02 LDD7 -GPIO_66 1 O 02 LDD8 -GPIO_67 1 O 02 LDD9 -GPIO_68 1 O 02 LDD10 -GPIO_69 1 O 02 LDD11 -GPIO_70 1 O 02 LDD12 -GPIO_71 1 O 02 LDD13 -GPIO_72 1 O 02 LDD14 -GPIO_73 1 O 02 LDD15 -GPIO_74 1 O 02 L_LCLK_RD -GPIO_75 1 O 02 L_LCLK_A0 -GPIO_76 1 O 02 L_PCLK_WR -GPIO_77 1 O 02 L_BIAS -GPIO_78 0 O 00 -GPIO_79 0 O 00 -GPIO_80 1 I 00 -GPIO_81 1 I 02 CIF_DD0 -GPIO_82 0 O 00 -GPIO_83 0 O 00 Bluetooth: 1 when enabled in POS -GPIO_84 1 I 03 CIF_FV -GPIO_85 1 I 03 CIF_LV -GPIO_86 1 I 00 -GPIO_87 0 I 00 -GPIO_88 0 O 00 LED -GPIO_89 0 O 01 AC97_SYSCLK -GPIO_90 0 O 00 -GPIO_91 1 O 00 1->0 disables I2C0? -GPIO_92 0 O 00 -GPIO_93 1 I 02 CIF_DD6 -GPIO_94 0 I 00 -GPIO_95 0 O 00 USB_POWER -GPIO_96 1 O 00 LCD_POWER (LCD OFF when 0) -GPIO_97 0 I 03 KP_MKIN3 -GPIO_98 1 O 00 -GPIO_99 1 I 00 -GPIO100 0 I 01 KP_MKIN0 -GPIO101 0 I 01 KP_MKIN1 -GPIO102 0 I 01 KP_MKIN2 -GPIO103 1 O 02 KP_MKOUT0 -GPIO104 1 O 02 KP_MKOUT1 -GPIO105 1 O 02 KP_MKOUT2 -GPIO106 0 O 00 -GPIO107 1 I 00 -GPIO108 1 I 01 CIF_DD7 -GPIO109 0 O 00 -GPIO110 0 O 00 -GPIO111 0 O 00 -GPIO112 0 O 00 CAMERA? -GPIO113 1 O 00 -GPIO114 1 O 00 -GPIO115 0 I 00 -GPIO116 0 O 00 -GPIO117 1 O 01 SCL -GPIO118 1 O 01 SDA -GPIO119 0 O 00 -GPIO120 0 O 00 CAMERA? Deleted: linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/palmz72/gpio_map_ext.txt =================================================================== --- linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/palmz72/gpio_map_ext.txt 2007-09-13 17:46:47 UTC (rev 1310) +++ linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/palmz72/gpio_map_ext.txt 2007-09-13 17:53:33 UTC (rev 1311) @@ -1,62 +0,0 @@ -GPIO pin Level Dir Function -GPIO 0 0 I 00 -GPIO 1 1 I 00 -GPIO 2 1 O 00 -GPIO 3 1 O 00 -GPIO 4 1 O 00 -GPIO 5 1 I 00 -GPIO 6 1 I 00 -GPIO 7 1 I 00 -GPIO 8 1 I 00 -GPIO 9 0 I 00 -GPIO 10 1 I 00 -GPIO 11 0 I 00 -GPIO 12 1 I 00 -GPIO 14 0 I 00 -GPIO 15 0 I 00 -GPIO 17 1 O 00 -GPIO 18 0 O 00 -GPIO 19 1 O 00 -GPIO 20 1 O 00 -GPIO 21 0 O 00 -GPIO 22 0 O 00 -GPIO 27 0 I 00 -GPIO 32 0 O 00 -GPIO 33 0 O 00 -GPIO 34 1 I 00 -GPIO 36 1 O 00 -GPIO 37 1 I 00 -GPIO 38 0 O 00 -GPIO 39 0 O 00 -GPIO 40 0 O 00 -GPIO 49 0 O 00 -GPIO 56 1 O 00 -GPIO 57 0 O 00 -GPIO 78 0 O 00 -GPIO 79 0 O 00 -GPIO 80 1 I 00 -GPIO 82 0 O 00 -GPIO 83 0 O 00 -GPIO 86 1 I 00 -GPIO 87 0 I 00 -GPIO 88 0 O 00 -GPIO 90 0 O 00 -GPIO 91 1 O 00 -GPIO 92 0 O 00 -GPIO 94 0 I 00 -GPIO 95 0 O 00 -GPIO 96 1 O 00 -GPIO 98 1 O 00 -GPIO 99 1 I 00 -GPIO106 0 O 00 -GPIO107 1 I 00 -GPIO109 0 O 00 -GPIO110 0 O 00 -GPIO111 0 O 00 -GPIO112 0 O 00 -GPIO113 1 O 00 -GPIO114 1 O 00 -GPIO115 0 I 00 -GPIO116 0 O 00 -GPIO119 0 O 00 -GPIO120 0 O 00 Deleted: linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/palmz72/i2c.txt =================================================================== --- linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/palmz72/i2c.txt 2007-09-13 17:46:47 UTC (rev 1310) +++ linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/palmz72/i2c.txt 2007-09-13 17:53:33 UTC (rev 1311) @@ -1,28 +0,0 @@ -root@palmz72:/$ i2cdetect 1 -WARNING! This program can confuse your I2C bus, cause data loss and worse! -I will probe file /dev/i2c-1. -I will probe address range 0x03-0x77. -Continue? [Y/n] y - 0 1 2 3 4 5 6 7 8 9 a b c d e f -00: XX XX XX XX XX XX XX XX XX XX XX XX XX -10: XX XX XX XX 14 XX XX XX XX XX XX XX XX XX XX XX -20: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX -30: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX -40: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX -50: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX -60: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX -70: XX XX XX XX XX XX XX XX -root@palmz72:/$ i2cdetect 0 -WARNING! This program can confuse your I2C bus, cause data loss and worse! -I will probe file /dev/i2c-0. -I will probe address range 0x03-0x77. -Continue? [Y/n] y - 0 1 2 3 4 5 6 7 8 9 a b c d e f -00: XX XX XX XX XX XX XX XX XX XX XX XX XX -10: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX -20: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX -30: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX -40: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX -50: 50 51 52 53 54 55 56 57 XX XX XX XX XX XX XX XX -60: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX -70: XX XX XX XX XX XX XX XX Deleted: linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/palmz72/pxaci.c =================================================================== --- linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/palmz72/pxaci.c 2007-09-13 17:46:47 UTC (rev 1310) +++ linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/mach-pxa/palmz72/pxaci.c 2007-09-13 17:53:33 UTC (rev 1311) @@ -1,134 +0,0 @@ -#include <linux/module.h> -#include <linux/platform_device.h> -#include <asm/arch/pxa-regs.h> -#include <asm/arch/hardware.h> - -static int pxaci_enabled = 0; -static DEFINE_MUTEX(enable_mutex); - -static void show_ci_regs(void) -{ - printk(KERN_INFO "CI regs:\nCICR0=%08x CICR1=%08x\nCICR2=%08x CICR3=%08x\nCICR4=%08x\n", CICR0, CICR1, CICR2, CICR3, CICR4); - printk(KERN_INFO "CISR=%08x\n", CISR); -} - -static ssize_t pxaci_enable_show(struct device *dev, - struct device_attribute *attr, char *buf) -{ - printk(KERN_INFO "PXACIF: read\n"); - show_ci_regs(); - return sprintf(buf, "%u\n", pxaci_enabled); -} -/* -CICR0 = 0x800003f7 DMA_EN|~PAR_EN|~SL_CAP_EN|~ENB|~DIS|SIM=000 (master-parallel)|TOM|RDAVM|FEM|EOLM|PERRM|QDM|CDM|~SOFM|~EOFM -CICR1 = 0x009f8412 ~TBIT|RGBT_CONV=00 (No) | -CICR2 = 0 -CICR3 = 0x000000ef -CICR4 = 0x00880001 - -*/ - - -static ssize_t pxaci_enable_store(struct device *dev, struct device_attribute *attr, - const char *buf, size_t count) -{ - int state; - - printk(KERN_INFO "PXACIF: write\n"); - show_ci_regs(); - if (sscanf(buf, "%u", &state) != 1) - return -EINVAL; - - if ((state != 1) && (state != 0)) - return -EINVAL; - - mutex_lock(&enable_mutex); - if (state != pxaci_enabled) { - pxaci_enabled = state; - pxa_set_cken(CKEN24_CAMERA, state); - if(pxaci_enabled) { - CICR0 = 0x3ff; - CICR1 = 0x009f8412; - CICR2 = 0x0; - CICR3 = 0xef; - CICR4 = 0x00880001; - CICR0 = CICR0_ENB|0x3ff; - } else { - CICR0 = 0x3ff; - CICR1 = 0x009f8412; - CICR2 = 0x0; - CICR3 = 0xef; - CICR4 = 0x00880001; - } - } - mutex_unlock(&enable_mutex); - - return strnlen(buf, count); -} - -static DEVICE_ATTR(enable, S_IRUGO | S_IWUSR, pxaci_enable_show, pxaci_enable_store); - - -#ifdef CONFIG_PM -static int pxaci_suspend(struct platform_device *pdev, pm_message_t state) -{ - pxa_set_cken(CKEN24_CAMERA, 0); - return 0; -} - -static int pxaci_resume(struct platform_device *pdev) -{ - pxa_set_cken(CKEN24_CAMERA, pxaci_enabled); - return 0; -} -#else -#define pxaci_suspend NULL -#define pxaci_resume NULL -#endif - - -static int pxaci_probe(struct platform_device *pdev) -{ - int ret; - pxa_set_cken(CKEN24_CAMERA, 0); - show_ci_regs(); - ret = device_create_file(&pdev->dev, &dev_attr_enable); - printk(KERN_INFO "Initialized device PXACI\n"); - return 0; -} - -static int pxaci_remove(struct platform_device *pdev) -{ - pxa_set_cken(CKEN24_CAMERA, 0); - printk(KERN_INFO "Denitialized device PXACI\n"); - return 0; -} - -static struct platform_driver pxaci_driver = { - .probe = pxaci_probe, - .remove = pxaci_remove, - .suspend = pxaci_suspend, - .resume = pxaci_resume, - .driver = { - .name = "pxacif", - }, -}; - -static int __init pxacif_init(void) -{ - int pdreg = platform_driver_register(&pxaci_driver); - - return pdreg; -} - -static void __exit pxacif_exit(void) -{ - platform_driver_unregister(&pxaci_driver); -} - -module_init(pxacif_init); -module_exit(pxacif_exit); - -MODULE_AUTHOR("Sergey Lapin <sl...@ha...>"); -MODULE_DESCRIPTION("XScale Camera Interface Experiments Driver"); -MODULE_LICENSE("GPL"); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <hap...@us...> - 2007-09-13 17:27:43
|
Revision: 1309 http://hackndev.svn.sourceforge.net/hackndev/?rev=1309&view=rev Author: happy-slapin Date: 2007-09-13 10:27:38 -0700 (Thu, 13 Sep 2007) Log Message: ----------- Cleanup before hh.org merge Modified Paths: -------------- linux4palm/linux/branches/cleanup-branch-never-commit/Documentation/filesystems/00-INDEX linux4palm/linux/branches/cleanup-branch-never-commit/MAINTAINERS linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/Kconfig linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/Makefile linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/configs/asus620_static_defconfig linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/configs/asus730_static_defconfig linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/configs/aximx50_static_defconfig linux4palm/linux/branches/cleanup-branch-never-commit/drivers/media/video/Kconfig linux4palm/linux/branches/cleanup-branch-never-commit/drivers/media/video/Makefile linux4palm/linux/branches/cleanup-branch-never-commit/fs/Kconfig linux4palm/linux/branches/cleanup-branch-never-commit/fs/Makefile Removed Paths: ------------- linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/armboot/ linux4palm/linux/branches/cleanup-branch-never-commit/drivers/media/video/ov96xx.c linux4palm/linux/branches/cleanup-branch-never-commit/drivers/media/video/ov96xx_hw.h linux4palm/linux/branches/cleanup-branch-never-commit/fs/squashfs/ linux4palm/linux/branches/cleanup-branch-never-commit/fs/squashfs_lzma/ linux4palm/linux/branches/cleanup-branch-never-commit/fs/unionfs/ linux4palm/linux/branches/cleanup-branch-never-commit/include/media/ov96xx.h Modified: linux4palm/linux/branches/cleanup-branch-never-commit/Documentation/filesystems/00-INDEX =================================================================== --- linux4palm/linux/branches/cleanup-branch-never-commit/Documentation/filesystems/00-INDEX 2007-09-12 16:47:07 UTC (rev 1308) +++ linux4palm/linux/branches/cleanup-branch-never-commit/Documentation/filesystems/00-INDEX 2007-09-13 17:27:38 UTC (rev 1309) @@ -84,8 +84,6 @@ - info and mount options for the UDF filesystem. ufs.txt - info on the ufs filesystem. -unionfs/ - - info on the unionfs filesystem vfat.txt - info on using the VFAT filesystem used in Windows NT and Windows 95 vfs.txt Modified: linux4palm/linux/branches/cleanup-branch-never-commit/MAINTAINERS =================================================================== --- linux4palm/linux/branches/cleanup-branch-never-commit/MAINTAINERS 2007-09-12 16:47:07 UTC (rev 1308) +++ linux4palm/linux/branches/cleanup-branch-never-commit/MAINTAINERS 2007-09-13 17:27:38 UTC (rev 1309) @@ -3375,13 +3375,6 @@ W: http://www.kernel.dk S: Maintained -UNIONFS -P: Josef "Jeff" Sipek -M: js...@cs... -L: un...@fi... -W: http://unionfs.filesystems.org/ -S: Maintained - USB ACM DRIVER P: Oliver Neukum M: ol...@ne... Modified: linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/Kconfig =================================================================== --- linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/Kconfig 2007-09-12 16:47:07 UTC (rev 1308) +++ linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/Kconfig 2007-09-13 17:27:38 UTC (rev 1309) @@ -460,8 +460,6 @@ Enable support for iWMMXt context switching at run time if running on a CPU that supports it. -source arch/arm/armboot/Kconfig - # bool 'Use XScale PMU as timer source' CONFIG_XSCALE_PMU_TIMER config XSCALE_PMU bool Modified: linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/Makefile =================================================================== --- linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/Makefile 2007-09-12 16:47:07 UTC (rev 1308) +++ linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/Makefile 2007-09-13 17:27:38 UTC (rev 1309) @@ -166,7 +166,7 @@ endif # If we have a machine-specific directory, then include it in the build. -core-y += arch/arm/kernel/ arch/arm/mm/ arch/arm/common/ arch/arm/armboot/ +core-y += arch/arm/kernel/ arch/arm/mm/ arch/arm/common/ core-y += $(MACHINE) core-$(CONFIG_ARCH_S3C2410) += arch/arm/mach-s3c2400/ core-$(CONFIG_ARCH_S3C2410) += arch/arm/mach-s3c2412/ Modified: linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/configs/asus620_static_defconfig =================================================================== --- linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/configs/asus620_static_defconfig 2007-09-12 16:47:07 UTC (rev 1308) +++ linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/configs/asus620_static_defconfig 2007-09-13 17:27:38 UTC (rev 1309) @@ -1,7 +1,7 @@ # # Automatically generated make config: don't edit -# Linux kernel version: 2.6.21-hh12 -# Tue Jul 17 20:51:06 2007 +# Linux kernel version: 2.6.21-hh15 +# Mon Sep 10 20:36:40 2007 # CONFIG_ARM=y CONFIG_SYS_SUPPORTS_APM_EMULATION=y @@ -171,8 +171,7 @@ # CONFIG_MACH_MAGICIAN is not set # CONFIG_MACH_HTCAPACHE is not set # CONFIG_MACH_BLUEANGEL is not set -# CONFIG_MACH_HTCBEETLES is not set -# CONFIG_MACH_HW6900 is not set +# CONFIG_HTC_HW6X00 is not set # CONFIG_MACH_HTCATHENA is not set # CONFIG_ARCH_AXIMX3 is not set # CONFIG_ARCH_AXIMX5 is not set @@ -402,58 +401,16 @@ # # CONFIG_NET_PKTGEN is not set # CONFIG_HAMRADIO is not set -CONFIG_IRDA=y - -# -# IrDA protocols -# -CONFIG_IRLAN=y -CONFIG_IRCOMM=y -CONFIG_IRDA_ULTRA=y - -# -# IrDA options -# -CONFIG_IRDA_CACHE_LAST_LSAP=y -CONFIG_IRDA_FAST_RR=y -CONFIG_IRDA_DEBUG=y - -# -# Infrared-port device drivers -# - -# -# SIR device drivers -# -CONFIG_IRTTY_SIR=y - -# -# Dongle support -# -# CONFIG_DONGLE is not set - -# -# Old SIR device drivers -# -# CONFIG_IRPORT_SIR is not set - -# -# Old Serial dongle support -# - -# -# FIR device drivers -# -CONFIG_PXA_FICP=y +# CONFIG_IRDA is not set CONFIG_BT=y -CONFIG_BT_L2CAP=m -CONFIG_BT_SCO=m -CONFIG_BT_RFCOMM=m +CONFIG_BT_L2CAP=y +CONFIG_BT_SCO=y +CONFIG_BT_RFCOMM=y CONFIG_BT_RFCOMM_TTY=y -CONFIG_BT_BNEP=m +CONFIG_BT_BNEP=y CONFIG_BT_BNEP_MC_FILTER=y CONFIG_BT_BNEP_PROTO_FILTER=y -CONFIG_BT_HIDP=m +CONFIG_BT_HIDP=y # # Bluetooth device drivers @@ -486,21 +443,19 @@ # # Memory Technology Devices (MTD) # -CONFIG_MTD=y +CONFIG_MTD=m CONFIG_MTD_DEBUG=y CONFIG_MTD_DEBUG_VERBOSE=0 -CONFIG_MTD_CONCAT=y -CONFIG_MTD_PARTITIONS=y -# CONFIG_MTD_REDBOOT_PARTS is not set -# CONFIG_MTD_CMDLINE_PARTS is not set -# CONFIG_MTD_AFS_PARTS is not set +# CONFIG_MTD_CONCAT is not set +# CONFIG_MTD_PARTITIONS is not set # # User Modules And Translation Layers # -CONFIG_MTD_CHAR=y -CONFIG_MTD_BLKDEVS=y -CONFIG_MTD_BLOCK=y +CONFIG_MTD_CHAR=m +# CONFIG_MTD_BLKDEVS is not set +# CONFIG_MTD_BLOCK is not set +# CONFIG_MTD_BLOCK_RO is not set # CONFIG_FTL is not set # CONFIG_NFTL is not set # CONFIG_INFTL is not set @@ -554,17 +509,15 @@ # # NAND Flash Device Drivers # -CONFIG_MTD_NAND=y +CONFIG_MTD_NAND=m # CONFIG_MTD_NAND_VERIFY_WRITE is not set # CONFIG_MTD_NAND_ECC_SMC is not set -# CONFIG_MTD_NAND_H1900 is not set -CONFIG_MTD_NAND_IDS=y -CONFIG_MTD_NAND_DISKONCHIP=y +CONFIG_MTD_NAND_IDS=m +CONFIG_MTD_NAND_DISKONCHIP=m # CONFIG_MTD_NAND_DISKONCHIP_PROBE_ADVANCED is not set CONFIG_MTD_NAND_DISKONCHIP_PROBE_ADDRESS=0 # CONFIG_MTD_NAND_DISKONCHIP_BBTWRITE is not set # CONFIG_MTD_NAND_SHARPSL is not set -# CONFIG_MTD_NAND_NANDSIM is not set # # OneNAND Flash Device Drivers @@ -585,7 +538,8 @@ # Block devices # # CONFIG_BLK_DEV_COW_COMMON is not set -# CONFIG_BLK_DEV_LOOP is not set +CONFIG_BLK_DEV_LOOP=m +# CONFIG_BLK_DEV_CRYPTOLOOP is not set # CONFIG_BLK_DEV_NBD is not set CONFIG_BLK_DEV_RAM=y CONFIG_BLK_DEV_RAM_COUNT=4 @@ -668,6 +622,7 @@ # CONFIG_KEYBOARD_NEWTON is not set # CONFIG_KEYBOARD_STOWAWAY is not set # CONFIG_GPIODEV_KEYS is not set +# CONFIG_GPIODEV_KEYS2 is not set # CONFIG_GPIODEV_DIAGONAL is not set CONFIG_KEYBOARD_GPIO=y CONFIG_INPUT_MOUSE=y @@ -782,12 +737,24 @@ # CONFIG_ADC_AD7877 is not set # +# Compaq/iPAQ Drivers +# + +# +# Compaq/HP iPAQ Drivers +# +# CONFIG_IPAQ_SLEEVE is not set +# CONFIG_SLEEVE_DEBUG is not set + +# # Multifunction device drivers # # CONFIG_MFD_SM501 is not set # CONFIG_HTC_ASIC2 is not set # CONFIG_HTC_ASIC3 is not set +# CONFIG_HTC_PASIC3 is not set # CONFIG_HTC_EGPIO is not set +# CONFIG_HTC_BBKEYS is not set # CONFIG_HTC_ASIC3_DS1WM is not set # CONFIG_SOC_SAMCOP is not set # CONFIG_SOC_HAMCOP is not set @@ -807,6 +774,7 @@ # # LED drivers # +# CONFIG_LEDS_GPIO is not set # # LED Triggers @@ -814,6 +782,7 @@ CONFIG_LEDS_TRIGGERS=y CONFIG_LEDS_TRIGGER_TIMER=y # CONFIG_LEDS_TRIGGER_HWTIMER is not set +# CONFIG_LEDS_TRIGGER_BACKLIGHT is not set # CONFIG_LEDS_TRIGGER_HEARTBEAT is not set CONFIG_LEDS_TRIGGER_SHARED=y @@ -899,7 +868,7 @@ # # HID Devices # -CONFIG_HID=m +CONFIG_HID=y # CONFIG_HID_DEBUG is not set # @@ -1106,8 +1075,8 @@ # CONFIG_NLS_CODEPAGE_949 is not set # CONFIG_NLS_CODEPAGE_874 is not set # CONFIG_NLS_ISO8859_8 is not set -CONFIG_NLS_CODEPAGE_1250=y -CONFIG_NLS_CODEPAGE_1251=y +# CONFIG_NLS_CODEPAGE_1250 is not set +CONFIG_NLS_CODEPAGE_1251=m # CONFIG_NLS_ASCII is not set CONFIG_NLS_ISO8859_1=y # CONFIG_NLS_ISO8859_2 is not set @@ -1190,7 +1159,7 @@ # CONFIG_CRC16 is not set CONFIG_CRC32=y # CONFIG_LIBCRC32C is not set -CONFIG_REED_SOLOMON=y +CONFIG_REED_SOLOMON=m CONFIG_REED_SOLOMON_DEC16=y CONFIG_PLIST=y CONFIG_HAS_IOMEM=y Modified: linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/configs/asus730_static_defconfig =================================================================== --- linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/configs/asus730_static_defconfig 2007-09-12 16:47:07 UTC (rev 1308) +++ linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/configs/asus730_static_defconfig 2007-09-13 17:27:38 UTC (rev 1309) @@ -1,7 +1,7 @@ # # Automatically generated make config: don't edit -# Linux kernel version: 2.6.21-hh12 -# Tue Jul 17 20:51:07 2007 +# Linux kernel version: 2.6.21-hh15 +# Tue Sep 11 04:54:55 2007 # CONFIG_ARM=y CONFIG_SYS_SUPPORTS_APM_EMULATION=y @@ -167,6 +167,10 @@ # CONFIG_MACH_MAGICIAN is not set # CONFIG_MACH_HTCAPACHE is not set # CONFIG_MACH_BLUEANGEL is not set + +# +# HTC_HW6X00 +# # CONFIG_MACH_HTCBEETLES is not set # CONFIG_MACH_HW6900 is not set # CONFIG_MACH_HTCATHENA is not set @@ -408,68 +412,8 @@ # # CONFIG_NET_PKTGEN is not set # CONFIG_HAMRADIO is not set -CONFIG_IRDA=y - -# -# IrDA protocols -# -CONFIG_IRLAN=y -CONFIG_IRCOMM=y -CONFIG_IRDA_ULTRA=y - -# -# IrDA options -# -CONFIG_IRDA_CACHE_LAST_LSAP=y -CONFIG_IRDA_FAST_RR=y -CONFIG_IRDA_DEBUG=y - -# -# Infrared-port device drivers -# - -# -# SIR device drivers -# -CONFIG_IRTTY_SIR=y - -# -# Dongle support -# -# CONFIG_DONGLE is not set - -# -# Old SIR device drivers -# -# CONFIG_IRPORT_SIR is not set - -# -# Old Serial dongle support -# - -# -# FIR device drivers -# -CONFIG_PXA_FICP=y -CONFIG_BT=y -CONFIG_BT_L2CAP=m -CONFIG_BT_SCO=m -CONFIG_BT_RFCOMM=m -CONFIG_BT_RFCOMM_TTY=y -CONFIG_BT_BNEP=m -CONFIG_BT_BNEP_MC_FILTER=y -CONFIG_BT_BNEP_PROTO_FILTER=y -CONFIG_BT_HIDP=m - -# -# Bluetooth device drivers -# -# CONFIG_BT_HCIUART is not set -# CONFIG_BT_HCIDTL1 is not set -# CONFIG_BT_HCIBT3C is not set -# CONFIG_BT_HCIBLUECARD is not set -# CONFIG_BT_HCIBTUART is not set -# CONFIG_BT_HCIVHCI is not set +# CONFIG_IRDA is not set +# CONFIG_BT is not set # CONFIG_IEEE80211 is not set # @@ -518,8 +462,14 @@ # # RAM/ROM/Flash chip drivers # -# CONFIG_MTD_CFI is not set +CONFIG_MTD_CFI=y # CONFIG_MTD_JEDECPROBE is not set +CONFIG_MTD_GEN_PROBE=y +CONFIG_MTD_CFI_ADV_OPTIONS=y +CONFIG_MTD_CFI_NOSWAP=y +# CONFIG_MTD_CFI_BE_BYTE_SWAP is not set +# CONFIG_MTD_CFI_LE_BYTE_SWAP is not set +CONFIG_MTD_CFI_GEOMETRY=y CONFIG_MTD_MAP_BANK_WIDTH_1=y CONFIG_MTD_MAP_BANK_WIDTH_2=y CONFIG_MTD_MAP_BANK_WIDTH_4=y @@ -530,15 +480,24 @@ CONFIG_MTD_CFI_I2=y # CONFIG_MTD_CFI_I4 is not set # CONFIG_MTD_CFI_I8 is not set +# CONFIG_MTD_OTP is not set +CONFIG_MTD_CFI_INTELEXT=y +# CONFIG_MTD_CFI_AMDSTD is not set +# CONFIG_MTD_CFI_STAA is not set +CONFIG_MTD_CFI_UTIL=y # CONFIG_MTD_RAM is not set # CONFIG_MTD_ROM is not set # CONFIG_MTD_ABSENT is not set # CONFIG_MTD_OBSOLETE_CHIPS is not set +# CONFIG_MTD_XIP is not set # # Mapping drivers for chip access # # CONFIG_MTD_COMPLEX_MAPPINGS is not set +# CONFIG_MTD_PHYSMAP is not set +# CONFIG_MTD_ARM_INTEGRATOR is not set +# CONFIG_MTD_IPAQ is not set # CONFIG_MTD_SHARP_SL is not set # CONFIG_MTD_PLATRAM is not set @@ -562,14 +521,7 @@ # # NAND Flash Device Drivers # -CONFIG_MTD_NAND=y -# CONFIG_MTD_NAND_VERIFY_WRITE is not set -# CONFIG_MTD_NAND_ECC_SMC is not set -# CONFIG_MTD_NAND_H1900 is not set -CONFIG_MTD_NAND_IDS=y -# CONFIG_MTD_NAND_DISKONCHIP is not set -# CONFIG_MTD_NAND_SHARPSL is not set -# CONFIG_MTD_NAND_NANDSIM is not set +# CONFIG_MTD_NAND is not set # # OneNAND Flash Device Drivers @@ -590,7 +542,8 @@ # Block devices # # CONFIG_BLK_DEV_COW_COMMON is not set -# CONFIG_BLK_DEV_LOOP is not set +CONFIG_BLK_DEV_LOOP=m +# CONFIG_BLK_DEV_CRYPTOLOOP is not set # CONFIG_BLK_DEV_NBD is not set CONFIG_BLK_DEV_RAM=y CONFIG_BLK_DEV_RAM_COUNT=4 @@ -695,6 +648,7 @@ # CONFIG_KEYBOARD_NEWTON is not set # CONFIG_KEYBOARD_STOWAWAY is not set # CONFIG_GPIODEV_KEYS is not set +# CONFIG_GPIODEV_KEYS2 is not set # CONFIG_GPIODEV_DIAGONAL is not set # CONFIG_KEYBOARD_PXA27x is not set # CONFIG_KEYBOARD_GPIO is not set @@ -847,12 +801,24 @@ # CONFIG_ADC_AD7877 is not set # +# Compaq/iPAQ Drivers +# + +# +# Compaq/HP iPAQ Drivers +# +# CONFIG_IPAQ_SLEEVE is not set +# CONFIG_SLEEVE_DEBUG is not set + +# # Multifunction device drivers # # CONFIG_MFD_SM501 is not set # CONFIG_HTC_ASIC2 is not set # CONFIG_HTC_ASIC3 is not set +# CONFIG_HTC_PASIC3 is not set # CONFIG_HTC_EGPIO is not set +# CONFIG_HTC_BBKEYS is not set # CONFIG_HTC_ASIC3_DS1WM is not set # CONFIG_SOC_SAMCOP is not set # CONFIG_SOC_HAMCOP is not set @@ -872,6 +838,7 @@ # # LED drivers # +# CONFIG_LEDS_GPIO is not set # # LED Triggers @@ -880,6 +847,7 @@ CONFIG_LEDS_TRIGGER_TIMER=y # CONFIG_LEDS_TRIGGER_HWTIMER is not set # CONFIG_LEDS_TRIGGER_IDE_DISK is not set +# CONFIG_LEDS_TRIGGER_BACKLIGHT is not set # CONFIG_LEDS_TRIGGER_HEARTBEAT is not set CONFIG_LEDS_TRIGGER_SHARED=y @@ -1005,8 +973,7 @@ # # HID Devices # -CONFIG_HID=m -# CONFIG_HID_DEBUG is not set +# CONFIG_HID is not set # # USB support @@ -1155,7 +1122,18 @@ # CONFIG_BEFS_FS is not set # CONFIG_BFS_FS is not set # CONFIG_EFS_FS is not set -# CONFIG_JFFS2_FS is not set +CONFIG_JFFS2_FS=y +CONFIG_JFFS2_FS_DEBUG=0 +CONFIG_JFFS2_FS_WRITEBUFFER=y +# CONFIG_JFFS2_SUMMARY is not set +# CONFIG_JFFS2_FS_XATTR is not set +CONFIG_JFFS2_COMPRESSION_OPTIONS=y +CONFIG_JFFS2_ZLIB=y +CONFIG_JFFS2_RTIME=y +# CONFIG_JFFS2_RUBIN is not set +# CONFIG_JFFS2_CMODE_NONE is not set +CONFIG_JFFS2_CMODE_PRIORITY=y +# CONFIG_JFFS2_CMODE_SIZE is not set # CONFIG_CRAMFS is not set # CONFIG_VXFS_FS is not set # CONFIG_HPFS_FS is not set @@ -1218,8 +1196,8 @@ # CONFIG_NLS_CODEPAGE_949 is not set # CONFIG_NLS_CODEPAGE_874 is not set # CONFIG_NLS_ISO8859_8 is not set -CONFIG_NLS_CODEPAGE_1250=y -CONFIG_NLS_CODEPAGE_1251=y +# CONFIG_NLS_CODEPAGE_1250 is not set +CONFIG_NLS_CODEPAGE_1251=m # CONFIG_NLS_ASCII is not set CONFIG_NLS_ISO8859_1=y # CONFIG_NLS_ISO8859_2 is not set @@ -1302,6 +1280,8 @@ # CONFIG_CRC16 is not set CONFIG_CRC32=y # CONFIG_LIBCRC32C is not set +CONFIG_ZLIB_INFLATE=y +CONFIG_ZLIB_DEFLATE=y CONFIG_PLIST=y CONFIG_HAS_IOMEM=y CONFIG_HAS_IOPORT=y Modified: linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/configs/aximx50_static_defconfig =================================================================== --- linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/configs/aximx50_static_defconfig 2007-09-12 16:47:07 UTC (rev 1308) +++ linux4palm/linux/branches/cleanup-branch-never-commit/arch/arm/configs/aximx50_static_defconfig 2007-09-13 17:27:38 UTC (rev 1309) @@ -1,7 +1,7 @@ # # Automatically generated make config: don't edit -# Linux kernel version: 2.6.21-hh12 -# Tue Jul 17 20:51:07 2007 +# Linux kernel version: 2.6.21-hh15 +# Mon Sep 10 20:36:41 2007 # CONFIG_ARM=y CONFIG_SYS_SUPPORTS_APM_EMULATION=y @@ -166,8 +166,7 @@ # CONFIG_MACH_MAGICIAN is not set # CONFIG_MACH_HTCAPACHE is not set # CONFIG_MACH_BLUEANGEL is not set -# CONFIG_MACH_HTCBEETLES is not set -# CONFIG_MACH_HW6900 is not set +# CONFIG_HTC_HW6X00 is not set # CONFIG_MACH_HTCATHENA is not set # CONFIG_ARCH_AXIMX3 is not set # CONFIG_ARCH_AXIMX5 is not set @@ -402,64 +401,8 @@ # # CONFIG_NET_PKTGEN is not set # CONFIG_HAMRADIO is not set -CONFIG_IRDA=y - -# -# IrDA protocols -# -CONFIG_IRLAN=y -CONFIG_IRCOMM=y -CONFIG_IRDA_ULTRA=y - -# -# IrDA options -# -CONFIG_IRDA_CACHE_LAST_LSAP=y -CONFIG_IRDA_FAST_RR=y -CONFIG_IRDA_DEBUG=y - -# -# Infrared-port device drivers -# - -# -# SIR device drivers -# -CONFIG_IRTTY_SIR=y - -# -# Dongle support -# -# CONFIG_DONGLE is not set - -# -# Old SIR device drivers -# -# CONFIG_IRPORT_SIR is not set - -# -# Old Serial dongle support -# - -# -# FIR device drivers -# -CONFIG_PXA_FICP=y -CONFIG_BT=y -CONFIG_BT_L2CAP=m -CONFIG_BT_SCO=m -CONFIG_BT_RFCOMM=m -CONFIG_BT_RFCOMM_TTY=y -CONFIG_BT_BNEP=m -CONFIG_BT_BNEP_MC_FILTER=y -CONFIG_BT_BNEP_PROTO_FILTER=y -CONFIG_BT_HIDP=m - -# -# Bluetooth device drivers -# -# CONFIG_BT_HCIUART is not set -# CONFIG_BT_HCIVHCI is not set +# CONFIG_IRDA is not set +# CONFIG_BT is not set # CONFIG_IEEE80211 is not set # @@ -484,21 +427,19 @@ # # Memory Technology Devices (MTD) # -CONFIG_MTD=y +CONFIG_MTD=m CONFIG_MTD_DEBUG=y CONFIG_MTD_DEBUG_VERBOSE=0 -CONFIG_MTD_CONCAT=y -CONFIG_MTD_PARTITIONS=y -# CONFIG_MTD_REDBOOT_PARTS is not set -# CONFIG_MTD_CMDLINE_PARTS is not set -# CONFIG_MTD_AFS_PARTS is not set +# CONFIG_MTD_CONCAT is not set +# CONFIG_MTD_PARTITIONS is not set # # User Modules And Translation Layers # -CONFIG_MTD_CHAR=y -CONFIG_MTD_BLKDEVS=y -CONFIG_MTD_BLOCK=y +CONFIG_MTD_CHAR=m +# CONFIG_MTD_BLKDEVS is not set +# CONFIG_MTD_BLOCK is not set +# CONFIG_MTD_BLOCK_RO is not set # CONFIG_FTL is not set # CONFIG_NFTL is not set # CONFIG_INFTL is not set @@ -573,7 +514,8 @@ # Block devices # # CONFIG_BLK_DEV_COW_COMMON is not set -# CONFIG_BLK_DEV_LOOP is not set +CONFIG_BLK_DEV_LOOP=m +# CONFIG_BLK_DEV_CRYPTOLOOP is not set # CONFIG_BLK_DEV_NBD is not set CONFIG_BLK_DEV_RAM=y CONFIG_BLK_DEV_RAM_COUNT=4 @@ -656,6 +598,7 @@ # CONFIG_KEYBOARD_NEWTON is not set # CONFIG_KEYBOARD_STOWAWAY is not set # CONFIG_GPIODEV_KEYS is not set +# CONFIG_GPIODEV_KEYS2 is not set # CONFIG_GPIODEV_DIAGONAL is not set CONFIG_KEYBOARD_PXA27x=y CONFIG_KEYBOARD_GPIO=y @@ -780,12 +723,24 @@ # CONFIG_ADC_AD7877 is not set # +# Compaq/iPAQ Drivers +# + +# +# Compaq/HP iPAQ Drivers +# +# CONFIG_IPAQ_SLEEVE is not set +# CONFIG_SLEEVE_DEBUG is not set + +# # Multifunction device drivers # # CONFIG_MFD_SM501 is not set # CONFIG_HTC_ASIC2 is not set # CONFIG_HTC_ASIC3 is not set +# CONFIG_HTC_PASIC3 is not set # CONFIG_HTC_EGPIO is not set +# CONFIG_HTC_BBKEYS is not set # CONFIG_HTC_ASIC3_DS1WM is not set # CONFIG_SOC_SAMCOP is not set # CONFIG_SOC_HAMCOP is not set @@ -805,6 +760,7 @@ # # LED drivers # +# CONFIG_LEDS_GPIO is not set # # LED Triggers @@ -812,6 +768,7 @@ CONFIG_LEDS_TRIGGERS=y CONFIG_LEDS_TRIGGER_TIMER=y CONFIG_LEDS_TRIGGER_HWTIMER=y +# CONFIG_LEDS_TRIGGER_BACKLIGHT is not set # CONFIG_LEDS_TRIGGER_HEARTBEAT is not set CONFIG_LEDS_TRIGGER_SHARED=y @@ -897,8 +854,7 @@ # # HID Devices # -CONFIG_HID=m -# CONFIG_HID_DEBUG is not set +# CONFIG_HID is not set # # USB support @@ -1104,8 +1060,8 @@ # CONFIG_NLS_CODEPAGE_949 is not set # CONFIG_NLS_CODEPAGE_874 is not set # CONFIG_NLS_ISO8859_8 is not set -CONFIG_NLS_CODEPAGE_1250=y -CONFIG_NLS_CODEPAGE_1251=y +# CONFIG_NLS_CODEPAGE_1250 is not set +CONFIG_NLS_CODEPAGE_1251=m # CONFIG_NLS_ASCII is not set CONFIG_NLS_ISO8859_1=y # CONFIG_NLS_ISO8859_2 is not set Modified: linux4palm/linux/branches/cleanup-branch-never-commit/drivers/media/video/Kconfig =================================================================== --- linux4palm/linux/branches/cleanup-branch-never-commit/drivers/media/video/Kconfig 2007-09-12 16:47:07 UTC (rev 1308) +++ linux4palm/linux/branches/cleanup-branch-never-commit/drivers/media/video/Kconfig 2007-09-13 17:27:38 UTC (rev 1309) @@ -763,8 +763,4 @@ endmenu # V4L USB devices -config PXACI - depends on VIDEO_DEV - tristate "Camera Interface for PXA27x" - endmenu Modified: linux4palm/linux/branches/cleanup-branch-never-commit/drivers/media/video/Makefile =================================================================== --- linux4palm/linux/branches/cleanup-branch-never-commit/drivers/media/video/Makefile 2007-09-12 16:47:07 UTC (rev 1308) +++ linux4palm/linux/branches/cleanup-branch-never-commit/drivers/media/video/Makefile 2007-09-13 17:27:38 UTC (rev 1309) @@ -111,7 +111,5 @@ obj-$(CONFIG_USB_QUICKCAM_MESSENGER) += usbvideo/ obj-$(CONFIG_VIDEO_VIVI) += vivi.o -# obj-$(CONFIG_PXACI) += pxa_camera.o pxa_ci.o pxa_camera_ioctl.o -obj-$(CONFIG_PXACI) += ov96xx.o EXTRA_CFLAGS += -Idrivers/media/dvb/dvb-core Deleted: linux4palm/linux/branches/cleanup-branch-never-commit/drivers/media/video/ov96xx.c =================================================================== --- linux4palm/linux/branches/cleanup-branch-never-commit/drivers/media/video/ov96xx.c 2007-09-12 16:47:07 UTC (rev 1308) +++ linux4palm/linux/branches/cleanup-branch-never-commit/drivers/media/video/ov96xx.c 2007-09-13 17:27:38 UTC (rev 1309) @@ -1,268 +0,0 @@ -/* - * ov96xx.c - Omnivision 9640, 9650 CMOS sensor driver - * - * Copyright (C) 2003 Intel Corporation - * Copyright (C) 2004 Motorola Inc. - * Copyright (C) 2007 Philipp Zabel <phi...@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., 675 Mass Ave, Cambridge, MA 02139, USA. - * - */ - -#include <linux/clk.h> -#include <linux/delay.h> -#include <linux/module.h> -#include <linux/platform_device.h> - -#include <media/ov96xx.h> /* ov96xx_platform_data */ -#include <media/v4l2-dev.h> - -#include <asm/arch/gpio.h> - -#include <asm/ioctl.h> -#include <asm/irq.h> -#include <asm/hardware.h> -#include <asm/uaccess.h> - -#include "pxa_ci_types.h" -#include "ov96xx_hw.h" - -extern int i2c_ov96xx_init(void); -extern int i2c_ov96xx_cleanup(void); -extern int i2c_ov96xx_read(u8 addr, u8 *pvalue); -extern int i2c_ov96xx_write(u8 addr, u8 value); - -#define DEBUG 1 -#define DPRINTK(fmt,args...) \ - do { if (DEBUG) printk("in function %s "fmt,__FUNCTION__,##args);} while(0) - -struct ov96xx_data { - int version; - struct clk *clk; -}; - -void ov96xx_soft_reset(struct platform_device *pdev) -{ - struct ov96xx_data *ov96xx = platform_get_drvdata(pdev); - - i2c_ov96xx_write(OV96xx_COM7, 0x80); /* COM7 = 0x12 */ - mdelay(10); - - /* enable digital BLC */ - switch (ov96xx->version) { - case REV_OV9640: - case REV_OV9640_v3: - break; - case REV_OV9650_0: - i2c_ov96xx_write(OV96xx_TSLB, 0x0c); /* TSLB = 0x3a */ - i2c_ov96xx_write(OV96xx_COM6, 0x4a); /* COM6 = 0x0f */ - break; - case REV_OV9650: - i2c_ov96xx_write(OV96xx_TSLB, 0x0d); /* TSLB = 0x3a */ - i2c_ov96xx_write(OV96xx_COM6, 0x42); /* COM6 = 0x0f */ - break; - } - - dbg_print("end initial register"); -} - -int ov96xx_check_revision(struct platform_device *pdev) -{ - struct ov96xx_data *ov96xx = platform_get_drvdata(pdev); - u8 val; - - i2c_ov96xx_read(OV96xx_PID, &val); - DPRINTK("PID = %x\n", val); - - if (val != PID_OV96xx) - return -ENODEV; - - mdelay(2000); - i2c_ov96xx_read(OV96xx_REV, &val); - DPRINTK("REV = %x\n", val); - - switch (val) { - case REV_OV9640: - printk("detected OV9640\n"); - break; - case REV_OV9640_v3: - printk("detected OV9640 v3\n"); - break; - case REV_OV9650_0: - printk("detected OV9650-0\n"); - break; - case REV_OV9650: - printk("detected OV9650\n"); - break; - default: - printk("couldn't detect OV96xx\n"); - return -ENODEV; - } - ov96xx->version = val; - return val; -} - -void ov96xx_power(struct platform_device *pdev, int powerup) -{ - struct ov96xx_platform_data *pdata = pdev->dev.platform_data; - - if (powerup) { - gpio_set_value(pdata->power_gpio, pdata->power_gpio_active_high); - if (pdata->reset_gpio) { - gpio_set_value(pdata->reset_gpio, 1); - mdelay(20); - gpio_set_value(pdata->reset_gpio, 0); - } - } else { - gpio_set_value(pdata->power_gpio, !pdata->power_gpio_active_high); - } - mdelay(100); -} - -static int ov96xx_probe(struct platform_device *pdev) -{ - struct ov96xx_data *ov96xx; - struct ov96xx_platform_data *pdata; - int ret; - int rate, i; - u8 val; - - if (!pdev) - return -ENODEV; - - pdata = pdev->dev.platform_data; - if (!pdata->power_gpio) - return -EINVAL; - - ov96xx = kzalloc(sizeof (struct ov96xx_data), GFP_KERNEL); - if (!ov96xx) - return -ENOMEM; - - platform_set_drvdata(pdev, ov96xx); - - ov96xx->clk = clk_get(&pdev->dev, "CI_MCLK"); - if (IS_ERR(ov96xx->clk)) { - DPRINTK("couldn't get CI master clock\n"); - ret = -ENOENT; - goto err; - } - - rate = clk_get_rate(ov96xx->clk); - printk("clock rate = %d\n", rate); - - /* enable clock, camera */ - clk_enable(ov96xx->clk); - ov96xx_power(pdev, 1); - - /* enable i2c */ - i2c_ov96xx_init(); - - /* check revision */ - //mdelay(2000); - mdelay(100); - ov96xx_check_revision(pdev); - - /* dump all registers */ - for (i=0; i<0xff; i++) { - if ((i%16) == 0) { - printk("\n%02x: ", i); - } - i2c_ov96xx_read(i, &val); - printk("%02x ", val); - } - printk("\n"); - - ov96xx_power(pdev, 0); - - /* disable clock */ - clk_disable(ov96xx->clk); - - /* disable i2c */ - i2c_ov96xx_cleanup(); - - return 0; -err: - kfree(ov96xx); - return ret; -} - -#ifdef CONFIG_PM -static int ov96xx_suspend(struct platform_device *pdev, pm_message_t state) -{ - /* - * stopping DMA transfers and disabling interrupts / clocks - * is the business of the capture interface driver - */ - - return 0; -} - -static int ov96xx_resume(struct platform_device *pdev) -{ -/* struct ov96xx_data *ov96xx = platform_get_drvdata(pdev); */ - - /* - * enabling interrupts / clocks and resuming DMA transfers - * is the business of the capture interface driver - */ -#if 0 - camera_init(ov96xx->cam_ctx); - //ov96xx_restore_property(cam_ctx, 0); - if (resume_dma == 1) { - camera_start_video_capture(cam_ctx, 0); - resume_dma = 0; - } -#endif - return 0; -} -#else -#define ov96xx_suspend NULL -#define ov96xx_resume NULL -#endif - -static int ov96xx_remove(struct platform_device *pdev) -{ - struct ov96xx_data *ov96xx = platform_get_drvdata(pdev); - - kfree(ov96xx); - return 0; -} - -static struct platform_driver ov96xx_driver = { - .driver = { - .name = "ov96xx", - }, - .probe = ov96xx_probe, - .remove = ov96xx_remove, - .suspend = ov96xx_suspend, - .resume = ov96xx_resume -}; - -static int __init ov96xx_init(void) -{ - return platform_driver_register(&ov96xx_driver); -} - -static void __exit ov96xx_exit(void) -{ - platform_driver_unregister(&ov96xx_driver); -} - -module_init(ov96xx_init); -module_exit(ov96xx_exit); - -MODULE_DESCRIPTION("OV96xx CMOS sensor driver"); -MODULE_LICENSE("GPL"); - Deleted: linux4palm/linux/branches/cleanup-branch-never-commit/drivers/media/video/ov96xx_hw.h =================================================================== --- linux4palm/linux/branches/cleanup-branch-never-commit/drivers/media/video/ov96xx_hw.h 2007-09-12 16:47:07 UTC (rev 1308) +++ linux4palm/linux/branches/cleanup-branch-never-commit/drivers/media/video/ov96xx_hw.h 2007-09-13 17:27:38 UTC (rev 1309) @@ -1,237 +0,0 @@ -/* - * ov96xx_hw.h - Omnivision 9640, 9650 CMOS sensor driver - * - * Copyright (C) 2003, Intel Corporation - * Copyright (C) 2004 Motorola Inc. - * - * 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., 675 Mass Ave, Cambridge, MA 02139, USA. - * - * Merge of OV9640,OV9650 (C) 2007 Philipp Zabel - * - */ - -#ifndef __OV_96xx_HW_H__ -#define __OV_96xx_HW_H__ - -/* Revision constants */ -#define PID_OV96xx 0x96 -#define REV_OV9640 0x48 -#define REV_OV9640_v3 0x49 -#define REV_OV9650_0 0x51 -#define REV_OV9650 0x52 - -/* Return codes */ -#define OV_ERR_NONE 0x00 -#define OV_ERR_TIMEOUT -1 -#define OV_ERR_PARAMETER -2 -#define OV_COMM_ERR -3 - -/* Output Size & Format */ -/* -#define OV_SIZE_NONE 0 -#define OV_SIZE_QQVGA 0x01 -#define OV_SIZE_QVGA ( OV_SIZE_QQVGA << 1 ) -#define OV_SIZE_VGA ( OV_SIZE_QQVGA << 2 ) -#define OV_SIZE_SXGA ( OV_SIZE_QQVGA << 3 ) -#define OV_SIZE_QQCIF 0x10 -#define OV_SIZE_QCIF ( OV_SIZE_QQCIF << 1 ) -#define OV_SIZE_CIF ( OV_SIZE_QQCIF << 2 ) -#define OV_FORMAT_NONE 0 -#define OV_FORMAT_YUV_422 1 -#define OV_FORMAT_RGB_565 2 -*/ -enum OV_SIZE { - OV_SIZE_NONE=0 , - OV_SIZE_QQVGA , - OV_SIZE_QVGA , - OV_SIZE_VGA , - OV_SIZE_SXGA , - OV_SIZE_QQCIF , - OV_SIZE_QCIF , - OV_SIZE_CIF -}; -enum OV_FORMAT { - OV_FORMAT_NONE=0 , - OV_FORMAT_YUV_422, - OV_FORMAT_RGB_565, -}; - -/* Camera Mode */ -#define VIEWFINDER_MODE 0x10 -#define STILLFRAME_MODE 0x20 - -/* Others */ -#define OV96xx_TIMEOUT 1000 // ms to timeout. - -/* OV96xx Register Definitions */ -#define OV96xx_GAIN 0x00 -#define OV96xx_BLUE 0x01 -#define OV96xx_RED 0x02 -#define OV96xx_VREF 0x03 -#define OV96xx_COM1 0x04 -#define OV96xx_BAVE 0x05 // U/B Average Level -#define OV96xx_GEAVE 0x06 // Y/Ge Average Level -#define OV96xx_GOAVE 0x07 // Y/Go Average Level -#define OV96xx_RAVE 0x08 // V/R Average level -#define OV96xx_COM2 0x09 // Common control 2 -#define OV96xx_PID 0x0A // Product ID -#define OV96xx_REV 0x0B // Revision -#define OV96xx_COM3 0x0C -#define OV96xx_COM4 0x0D -#define OV96xx_COM5 0x0E -#define OV96xx_COM6 0x0F -#define OV96xx_AECH 0x10 -#define OV96xx_CLKRC 0x11 -#define OV96xx_COM7 0x12 -#define OV96xx_COM8 0x13 -#define OV96xx_COM9 0x14 -#define OV96xx_COM10 0x15 -#define OV96xx_WS 0x16 -#define OV96xx_HSTART 0x17 -#define OV96xx_HSTOP 0x18 -#define OV96xx_VSTRT 0x19 -#define OV96xx_VSTOP 0x1A -#define OV96xx_PSHFT 0x1B -#define OV96xx_MIDH 0x1C -#define OV96xx_MIDL 0x1D -#define OV9640_DLY 0x1E -#define OV9650_MVLP 0x1E -#define OV96xx_LAEC 0x1F -#define OV96xx_BOS 0x20 -#define OV96xx_GBOS 0x21 -#define OV96xx_GROS 0x22 -#define OV96xx_ROS 0x23 -#define OV96xx_AEW 0x24 -#define OV96xx_AEB 0x25 -#define OV96xx_VPT 0x26 -#define OV96xx_BBIAS 0x27 -#define OV96xx_GbBIAS 0x28 -#define OV9640_GrBIAS 0x29 -#define OV9650_GrCOM 0x29 -#define OV96xx_EXHCH 0x2A -#define OV96xx_EXHCL 0x2B -#define OV96xx_RBIAS 0x2C -#define OV96xx_ADVFL 0x2D -#define OV96xx_ADVFH 0x2E -#define OV96xx_YAVE 0x2F -#define OV96xx_HSYST 0x30 -#define OV96xx_HSYEN 0x31 -#define OV96xx_HREF 0x32 -#define OV96xx_CHLF 0x33 -#define OV96xx_ARBLM 0x34 -#define OV96xx_VRHL 0x35 -#define OV96xx_VIDO 0x36 -#define OV96xx_ADC 0x37 -#define OV96xx_ACOM 0x38 -#define OV96xx_OFON 0x39 -#define OV96xx_TSLB 0x3A -#define OV96xx_COM11 0x3B -#define OV96xx_COM12 0x3C -#define OV96xx_COM13 0x3D -#define OV96xx_COM14 0x3E -#define OV96xx_EDGE 0x3F -#define OV96xx_COM15 0x40 -#define OV96xx_COM16 0x41 -#define OV96xx_COM17 0x42 -#define OV96xx_AWBTH1 0x43 -#define OV96xx_AWBTH2 0x44 -#define OV96xx_AWBTH3 0x45 -#define OV96xx_AWBTH4 0x46 -#define OV96xx_AWBTH5 0x47 -#define OV96xx_AWBTH6 0x48 -#define OV96xx_MTX1 0x4F -#define OV96xx_MTX2 0x50 -#define OV96xx_MTX3 0x51 -#define OV96xx_MTX4 0x52 -#define OV96xx_MTX5 0x53 -#define OV96xx_MTX6 0x54 -#define OV96xx_MTX7 0x55 -#define OV96xx_MTX8 0x56 -#define OV96xx_MTX9 0x57 -#define OV96xx_MTXS 0x58 -#define OV96xx_AWBC1 0x59 -#define OV96xx_AWBC2 0x5A -#define OV96xx_AWBC3 0x5B -#define OV96xx_AWBC4 0x5C -#define OV96xx_AWBC5 0x5D -#define OV96xx_AWBC6 0x5E -#define OV96xx_AWBC7 0x5F -#define OV96xx_AWBC8 0x60 -#define OV96xx_AWBC9 0x61 -#define OV96xx_LCC1 0x62 -#define OV96xx_LCC2 0x63 -#define OV96xx_LCC3 0x64 -#define OV96xx_LCC4 0x65 -#define OV96xx_LCC5 0x66 -#define OV96xx_MANU 0x67 -#define OV96xx_MANV 0x68 -#define OV96xx_HV 0x69 -#define OV96xx_MBD 0x6A -#define OV96xx_DBLV 0x6B -#define OV96xx_GSP0 0x6C -#define OV96xx_GSP1 0x6D -#define OV96xx_GSP2 0x6E -#define OV96xx_GSP3 0x6F -#define OV96xx_GSP4 0x70 -#define OV96xx_GSP5 0x71 -#define OV96xx_GSP6 0x72 -#define OV96xx_GSP7 0x73 -#define OV96xx_GSP8 0x74 -#define OV96xx_GSP9 0x75 -#define OV96xx_GSP10 0x76 -#define OV96xx_GSP11 0x77 -#define OV96xx_GSP12 0x78 -#define OV96xx_GSP13 0x79 -#define OV96xx_GSP14 0x7A -#define OV96xx_GSP15 0x7B -#define OV96xx_GST0 0x7C -#define OV96xx_GST1 0x7D -#define OV96xx_GST2 0x7E -#define OV96xx_GST3 0x7F -#define OV96xx_GST4 0x80 -#define OV96xx_GST5 0x81 -#define OV96xx_GST6 0x82 -#define OV96xx_GST7 0x83 -#define OV96xx_GST8 0x84 -#define OV96xx_GST9 0x85 -#define OV96xx_GST10 0x86 -#define OV96xx_GST11 0x87 -#define OV96xx_GST12 0x88 -#define OV96xx_GST13 0x89 -#define OV96xx_GST14 0x8A - -/* End of OV9640 register */ -#define OV9640_REGEND ( OV96xx_GST14 + 1 ) - -/* OV9650 Register Definitions */ -#define OV9650_COM21 0x8B -#define OV9650_COM22 0x8C -#define OV9650_COM23 0x8D -#define OV9650_COM24 0x8E -#define OV9650_DBLC1 0x8F -#define OV9650_DBLCB 0x90 -#define OV9650_DBLCR 0x91 -#define OV9650_DMLNL 0x92 -#define OV9650_DMLNH 0x93 - -#define OV9650_AECHM 0xA1 - -/* End of OV9650 register */ -#define OV9650_LASTREG 0xAA - -/* End flag of register */ -#define OV9650_REGEND ( 0xff ) - -#endif Modified: linux4palm/linux/branches/cleanup-branch-never-commit/fs/Kconfig =================================================================== --- linux4palm/linux/branches/cleanup-branch-never-commit/fs/Kconfig 2007-09-12 16:47:07 UTC (rev 1308) +++ linux4palm/linux/branches/cleanup-branch-never-commit/fs/Kconfig 2007-09-13 17:27:38 UTC (rev 1309) @@ -1086,8 +1086,6 @@ To compile this file system support as a module, choose M here: the module will be called affs. If unsure, say N. -source "fs/aufs/Kconfig" - config ECRYPT_FS tristate "eCrypt filesystem layer support (EXPERIMENTAL)" depends on EXPERIMENTAL && KEYS && CRYPTO && NET @@ -1437,8 +1435,6 @@ If unsure, say N. -source "fs/squashfs_lzma/Kconfig" - config VXFS_FS tristate "FreeVxFS file system support (VERITAS VxFS(TM) compatible)" depends on BLOCK Modified: linux4palm/linux/branches/cleanup-branch-never-commit/fs/Makefile =================================================================== --- linux4palm/linux/branches/cleanup-branch-never-commit/fs/Makefile 2007-09-12 16:47:07 UTC (rev 1308) +++ linux4palm/linux/branches/cleanup-branch-never-commit/fs/Makefile 2007-09-13 17:27:38 UTC (rev 1309) @@ -68,8 +68,6 @@ obj-$(CONFIG_JBD2) += jbd2/ obj-$(CONFIG_EXT2_FS) += ext2/ obj-$(CONFIG_CRAMFS) += cramfs/ -obj-$(CONFIG_SQUASHFS) += squashfs/ -obj-$(CONFIG_SQUASHFS_LZMA) += squashfs_lzma/ obj-$(CONFIG_RAMFS) += ramfs/ obj-$(CONFIG_HUGETLBFS) += hugetlbfs/ obj-$(CONFIG_CODA_FS) += coda/ @@ -115,6 +113,4 @@ obj-$(CONFIG_HPPFS) += hppfs/ obj-$(CONFIG_DEBUG_FS) += debugfs/ obj-$(CONFIG_OCFS2_FS) += ocfs2/ -obj-$(CONFIG_AUFS) += aufs/ -obj-$(CONFIG_UNION_FS) += unionfs/ obj-$(CONFIG_GFS2_FS) += gfs2/ Deleted: linux4palm/linux/branches/cleanup-branch-never-commit/include/media/ov96xx.h =================================================================== --- linux4palm/linux/branches/cleanup-branch-never-commit/include/media/ov96xx.h 2007-09-12 16:47:07 UTC (rev 1308) +++ linux4palm/linux/branches/cleanup-branch-never-commit/include/media/ov96xx.h 2007-09-13 17:27:38 UTC (rev 1309) @@ -1,5 +0,0 @@ -struct ov96xx_platform_data { - int power_gpio; - int power_gpio_active_high; - int reset_gpio; -}; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <hap...@us...> - 2007-09-12 16:47:10
|
Revision: 1308 http://hackndev.svn.sourceforge.net/hackndev/?rev=1308&view=rev Author: happy-slapin Date: 2007-09-12 09:47:07 -0700 (Wed, 12 Sep 2007) Log Message: ----------- Adding script to clean tags Added Paths: ----------- linux4palm/tools/tags-cleanup/ linux4palm/tools/tags-cleanup/splitpatch.py Added: linux4palm/tools/tags-cleanup/splitpatch.py =================================================================== --- linux4palm/tools/tags-cleanup/splitpatch.py (rev 0) +++ linux4palm/tools/tags-cleanup/splitpatch.py 2007-09-12 16:47:07 UTC (rev 1308) @@ -0,0 +1,125 @@ +#!/usr/bin/env python +import sys, sre + +class Hunk: + def __init__(self, hunk): + self.hunk = hunk + self.lines = self.hunk.split("\n") + self.linecount = len(self.lines) + self.insertions = 0 + self.deletions = 0 + self.added = [] + self.removed = [] + self.ID = sre.compile("\$Id:{0,1}.*\$") + self.Revision = sre.compile("\$Revision:{0,1}.*\$") + self.Author = sre.compile("\$Author:{0,1}.*\$") + self.Date = sre.compile("\$Date:{0,1}.*\$") + self.ok = 0 + for i in range(0, self.linecount): + if self.lines[i].startswith("+"): + self.insertions += 1 + self.added.append(self.lines[i]) + if self.lines[i].startswith("-"): + self.deletions += 1 + self.removed.append(self.lines[i]) + self.checkhunk() + def rm_ident(self, string): + string = self.Revision.sub("", string) + string = self.ID.sub("", string) + string = self.Author.sub("", string) + string = self.Date.sub("", string) + return string + def checkhunk(self): + if self.insertions != self.deletions: + self.ok = 1 + return self.ok + + for i in range(0, self.insertions): + tmp1 = self.rm_ident(self.added[i][1:]) + tmp2 = self.rm_ident(self.removed[i][1:]) + if tmp1 != tmp2: + self.ok = 1 + break + return self.ok + + +class Patch: + def __init__(self, patch): + self.hunks = [] + self.okhunks = [] + self.hunkno = -1 + self.patch = patch + self.lines = patch.split("\n") + self.patchhead = "" + self.ignored = "" + for i in range(0, len(self.lines)): + if self.lines[i].startswith("+++ ") or self.lines[i].startswith("--- ") or self.lines[i].startswith("diff "): + self.patchhead += self.lines[i] + "\n" + elif self.lines[i].startswith("@"): + self.hunkno += 1 + self.hunks.append(self.lines[i] + "\n") + elif self.lines[i].startswith(" ") or self.lines[i].startswith("+") \ + or self.lines[i].startswith("-") or self.lines[i].startswith("\\"): + self.hunks[self.hunkno] += self.lines[i] + "\n" + else: + if len(self.lines[i]) > 0: + self.ignored += "WARNING: |%s|\n" % (self.lines[i]) + for i in range(0, len(self.hunks)): + n = Hunk(self.hunks[i]) + if n.ok: + self.okhunks.append(n.hunk) + self.hunks = self.okhunks + self.okhunks = [] + +class ParsePatch: + def __init__(self, patch): + self.data = "" + self.head = "" + self.name = "" + self.patch = Patch(patch) + if len(self.patch.hunks) > 0: + self.data = self.patch.patchhead + "\n".join(self.patch.hunks) + self.head = self.patch.patchhead.split("\n")[2].split(" ")[1].split("\t")[0] + namelist = self.head.split("/") + self.name = "-".join(namelist[1:2]) + ".diff" + self.ignored = self.patch.ignored + +class PatchCollection: + def __init__(self): + self.patches = [] + + def append(self, patch): + self.patches.append(ParsePatch(patch)) + + def flushfiles(self): + data = {} + for g in self.patches: + if data.has_key(g.name): + data[g.name] += g.data + g.ignored + else: + data[g.name] = g.data + g.ignored + for f, d in data.items(): + print "New file " + f + fd = open(f, "w") + fd.write(d) + fd.close() + +fd = open(sys.argv[1], "r") + +lines = fd.read().split("\n") +patches = [] +patchno = -1 + +for i in range(0, len(lines)): + if lines[i].startswith("diff "): + patchno += 1 + patches.append(lines[i] + "\n") + else: + patches[patchno] += lines[i] + "\n" + +pcol = PatchCollection() +for i in range(0, len(patches)): + pcol.append(patches[i]) + +pcol.flushfiles() +fd.close() Property changes on: linux4palm/tools/tags-cleanup/splitpatch.py ___________________________________________________________________ Name: svn:executable + * Name: svn:keywords + This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <hap...@us...> - 2007-09-12 16:34:29
|
Revision: 1307 http://hackndev.svn.sourceforge.net/hackndev/?rev=1307&view=rev Author: happy-slapin Date: 2007-09-12 09:34:18 -0700 (Wed, 12 Sep 2007) Log Message: ----------- Cleanup branch is created to have consistent state on upstream process. Never commit there - attach patches to bugzilla or mail me directly. Added Paths: ----------- linux4palm/linux/branches/cleanup-branch-never-commit/ Copied: linux4palm/linux/branches/cleanup-branch-never-commit (from rev 1306, linux4palm/linux/trunk) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <z7...@us...> - 2007-09-12 10:10:09
|
Revision: 1306 http://hackndev.svn.sourceforge.net/hackndev/?rev=1306&view=rev Author: z72ka Date: 2007-09-12 03:10:03 -0700 (Wed, 12 Sep 2007) Log Message: ----------- palmz72: Updated defconfig (added border driver as module, GPIO udc driver), updated USB to GPIO udc driver - better USB initializing Modified Paths: -------------- linux4palm/linux/trunk/arch/arm/configs/palmz72_defconfig linux4palm/linux/trunk/arch/arm/mach-pxa/palmz72/palmz72.c Modified: linux4palm/linux/trunk/arch/arm/configs/palmz72_defconfig =================================================================== --- linux4palm/linux/trunk/arch/arm/configs/palmz72_defconfig 2007-09-12 08:23:07 UTC (rev 1305) +++ linux4palm/linux/trunk/arch/arm/configs/palmz72_defconfig 2007-09-12 10:10:03 UTC (rev 1306) @@ -1,7 +1,7 @@ # # Automatically generated make config: don't edit -# Linux kernel version: 2.6.21-hnd2 -# Tue Jul 17 01:10:55 2007 +# Linux kernel version: 2.6.21-hnd3 +# Wed Sep 12 11:26:32 2007 # CONFIG_ARM=y CONFIG_SYS_SUPPORTS_APM_EMULATION=y @@ -165,31 +165,32 @@ # CONFIG_MACH_MAGICIAN is not set # CONFIG_MACH_HTCAPACHE is not set # CONFIG_MACH_BLUEANGEL is not set -# CONFIG_MACH_HTCBEETLES is not set -# CONFIG_MACH_HW6900 is not set +# CONFIG_HTC_HW6X00 is not set # CONFIG_MACH_HTCATHENA is not set # CONFIG_ARCH_AXIMX3 is not set # CONFIG_ARCH_AXIMX5 is not set # CONFIG_MACH_X50 is not set # CONFIG_ARCH_ROVERP1 is not set # CONFIG_ARCH_ROVERP5P is not set -# CONFIG_MACH_XSCALE_PALMLD is not set -# CONFIG_MACH_XSCALE_PALMTREO650 is not set -# CONFIG_MACH_XSCALE_TREO680 is not set -# CONFIG_MACH_T700WX is not set # CONFIG_MACH_TUNGE2 is not set +# CONFIG_MACH_OMAP_PALMTC is not set # CONFIG_MACH_T3XSCALE is not set # CONFIG_MACH_XSCALE_PALMTT5 is not set # CONFIG_MACH_XSCALE_PALMTX is not set +# CONFIG_MACH_XSCALE_PALMLD is not set +# CONFIG_MACH_ZIRE31 is not set +CONFIG_GPIOED=m +CONFIG_GPIOEDNG=m CONFIG_MACH_PALMZ72=y CONFIG_PALMZ72_PM=y CONFIG_PALMZ72_BATTERY=m -# CONFIG_MACH_OMAP_PALMTC is not set -# CONFIG_MACH_ZIRE31 is not set -CONFIG_GPIOED=m -CONFIG_GPIOEDNG=m +CONFIG_PALMZ72_BORDER=m +# CONFIG_MACH_XSCALE_PALMTREO650 is not set +# CONFIG_MACH_XSCALE_TREO680 is not set +# CONFIG_MACH_T700WX is not set # CONFIG_MACH_GHI270HG is not set # CONFIG_MACH_GHI270 is not set +# CONFIG_MACH_LOOXC550 is not set # CONFIG_PXA_SHARPSL is not set # CONFIG_MACH_TRIZEPS4 is not set CONFIG_PXA27x=y @@ -839,11 +840,22 @@ # CONFIG_ADC is not set # +# Compaq/iPAQ Drivers +# + +# +# Compaq/HP iPAQ Drivers +# +# CONFIG_IPAQ_SLEEVE is not set +# CONFIG_SLEEVE_DEBUG is not set + +# # Multifunction device drivers # # CONFIG_MFD_SM501 is not set # CONFIG_HTC_ASIC2 is not set # CONFIG_HTC_ASIC3 is not set +# CONFIG_HTC_PASIC3 is not set # CONFIG_HTC_EGPIO is not set # CONFIG_HTC_ASIC3_DS1WM is not set # CONFIG_SOC_SAMCOP is not set @@ -872,6 +884,7 @@ CONFIG_LEDS_TRIGGER_TIMER=y # CONFIG_LEDS_TRIGGER_HWTIMER is not set CONFIG_LEDS_TRIGGER_MMC_CARD=y +# CONFIG_LEDS_TRIGGER_BACKLIGHT is not set # CONFIG_LEDS_TRIGGER_HEARTBEAT is not set # CONFIG_LEDS_TRIGGER_SHARED is not set @@ -914,7 +927,6 @@ CONFIG_BACKLIGHT_CLASS_DEVICE=y # CONFIG_LCD_CLASS_DEVICE is not set CONFIG_BACKLIGHT_CORGI=y -# CONFIG_BACKLIGHT_PXAPWM is not set CONFIG_FB=y CONFIG_FIRMWARE_EDID=y # CONFIG_FB_DDC is not set @@ -1063,7 +1075,7 @@ CONFIG_USB_G_SERIAL=m # 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 Modified: linux4palm/linux/trunk/arch/arm/mach-pxa/palmz72/palmz72.c =================================================================== --- linux4palm/linux/trunk/arch/arm/mach-pxa/palmz72/palmz72.c 2007-09-12 08:23:07 UTC (rev 1305) +++ linux4palm/linux/trunk/arch/arm/mach-pxa/palmz72/palmz72.c 2007-09-12 10:10:03 UTC (rev 1306) @@ -41,6 +41,7 @@ #include <asm/arch/palmz72-gpio.h> #include <asm/arch/palmz72-init.h> #include <asm/arch/pxa_camera.h> +#include <asm/arch/pxa2xx_udc_gpio.h> #include <sound/driver.h> #include <sound/core.h> @@ -103,39 +104,34 @@ * USB * *******/ -static int palmz72_udc_is_connected(void) +static int palmz72_udc_power( int power ) { - int ret = !(GET_GPIO(GPIO_NR_PALMZ72_USB_DETECT)); - if (ret) - printk (KERN_INFO "palmz72_udc: device detected [USB_DETECT: %d]\n",ret); - else - printk (KERN_INFO "palmz72_udc: no device detected [USB_DETECT: %d]\n",ret); - - return ret; + if (power) { + SET_GPIO(GPIO_NR_PALMZ72_USB_POWER, 1); + SET_GPIO(GPIO_NR_PALMZ72_USB_PULLUP, 1); + } else { + SET_GPIO(GPIO_NR_PALMZ72_USB_PULLUP, 0); + SET_GPIO(GPIO_NR_PALMZ72_USB_POWER, 0); + } + + return power; } -static void palmz72_udc_command (int cmd) -{ - switch (cmd) { - case PXA2XX_UDC_CMD_DISCONNECT: - SET_GPIO(GPIO_NR_PALMZ72_USB_PULLUP, 0); - SET_GPIO(GPIO_NR_PALMZ72_USB_POWER, 0); - printk(KERN_INFO "palmz72_udc: got command PXA2XX_UDC_CMD_DISCONNECT\n"); - break; - case PXA2XX_UDC_CMD_CONNECT: - SET_GPIO(GPIO_NR_PALMZ72_USB_POWER, 1); - SET_GPIO(GPIO_NR_PALMZ72_USB_PULLUP, 1); - printk(KERN_INFO "palmz72_udc: got command PXA2XX_UDC_CMD_CONNECT\n"); - break; - default: - printk("palmz72_udc: unknown command '%d'\n", cmd); - } -} -static struct pxa2xx_udc_mach_info palmz72_udc_mach_info __initdata = { - .udc_is_connected = palmz72_udc_is_connected, - .udc_command = palmz72_udc_command, +struct pxa2xx_udc_gpio_info palmz72_udc_info = { + .detect_gpio = {&pxagpio_device.dev, GPIO_NR_PALMZ72_USB_DETECT}, + .detect_gpio_negative = 1, + .power_ctrl = { + .power = &palmz72_udc_power, + }, }; +static struct platform_device palmz72_udc = { + .name = "pxa2xx-udc-gpio", + .dev = { + .platform_data = &palmz72_udc_info + } +}; + /********** * Keypad * **********/ @@ -453,6 +449,7 @@ &ov9640, #endif &palmz72_border, + &palmz72_udc, }; /*********************************************************************** @@ -518,7 +515,6 @@ set_pxa_fb_info( &palmz72_lcd_screen ); pxa_set_btuart_info(&bcm2035_pxa_bt_funcs); pxa_set_mci_info( &palmz72_mci_platform_data ); - pxa_set_udc_info( &palmz72_udc_mach_info ); pxa_set_ficp_info( &palmz72_ficp_platform_data ); platform_add_devices( devices, ARRAY_SIZE(devices) ); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <z7...@us...> - 2007-09-12 08:23:16
|
Revision: 1305 http://hackndev.svn.sourceforge.net/hackndev/?rev=1305&view=rev Author: z72ka Date: 2007-09-12 01:23:07 -0700 (Wed, 12 Sep 2007) Log Message: ----------- palmz72: Enhancing backlight function and correct syntax, clear code around corgi backlight Modified Paths: -------------- linux4palm/linux/trunk/arch/arm/mach-pxa/palmz72/palmz72.c Modified: linux4palm/linux/trunk/arch/arm/mach-pxa/palmz72/palmz72.c =================================================================== --- linux4palm/linux/trunk/arch/arm/mach-pxa/palmz72/palmz72.c 2007-09-11 09:03:13 UTC (rev 1304) +++ linux4palm/linux/trunk/arch/arm/mach-pxa/palmz72/palmz72.c 2007-09-12 08:23:07 UTC (rev 1305) @@ -328,22 +328,38 @@ * Backlight * *************/ -static void palmz72_bl_on(void) +static void palmz72_bl_power(int on) { SET_PALMZ72_GPIO(BL_POWER, 1); pxa_set_cken(CKEN0_PWM0, 1); pxa_set_cken(CKEN1_PWM1, 1); - mdelay(50); } -static void palmz72_bl_off(void) +static void palmz72_set_bl_intensity(int intensity) { - SET_PALMZ72_GPIO(BL_POWER, 0); - pxa_set_cken(CKEN0_PWM0, 0); - pxa_set_cken(CKEN1_PWM1, 0); - mdelay(50); + palmz72_bl_power(intensity ? 1 : 0); + if(intensity) { + PWM_CTRL0 = 0x3f; + PWM_PERVAL0 = PALMZ72_PERIOD; + PWM_PWDUTY0 = intensity; + } } +static struct corgibl_machinfo palmz72_bl_machinfo = { + .max_intensity = PALMZ72_MAX_INTENSITY, + .default_intensity = PALMZ72_MAX_INTENSITY, + .set_bl_intensity = palmz72_set_bl_intensity, + .limit_mask = PALMZ72_LIMIT_MASK, +}; + +static struct platform_device palmz72_backlight = { + .name = "corgi-bl", + .id = 0, + .dev = { + .platform_data = &palmz72_bl_machinfo, + }, +}; + /*************** * framebuffer * ***************/ @@ -410,35 +426,6 @@ }; #endif -/* LCD backlight */ - -static void palmz72_set_bl_intensity(int intensity) -{ - if(intensity) { - palmz72_bl_on(); - PWM_CTRL0 = 0x3f; - PWM_PERVAL0 = PALMZ72_PERIOD; - PWM_PWDUTY0 = intensity; - } else { - palmz72_bl_off(); - } -} - -static struct corgibl_machinfo palmz72_bl_machinfo = { - .max_intensity = PALMZ72_MAX_INTENSITY, - .default_intensity = PALMZ72_MAX_INTENSITY, - .set_bl_intensity = palmz72_set_bl_intensity, - .limit_mask = PALMZ72_LIMIT_MASK -}; - -static struct platform_device palmz72_backlight = { - .name = "corgi-bl", - .id = 0, - .dev = { - .platform_data = &palmz72_bl_machinfo, - }, -}; - static struct platform_device palmz72_ci = { .name = "pxacif", .id = -1, This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <sle...@us...> - 2007-09-11 09:03:18
|
Revision: 1304 http://hackndev.svn.sourceforge.net/hackndev/?rev=1304&view=rev Author: sleep_walker Date: 2007-09-11 02:03:13 -0700 (Tue, 11 Sep 2007) Log Message: ----------- palmtt3: bugfix #41 candidate Modified Paths: -------------- linux4palm/linux/trunk/drivers/mfd/tsc2101.c Modified: linux4palm/linux/trunk/drivers/mfd/tsc2101.c =================================================================== --- linux4palm/linux/trunk/drivers/mfd/tsc2101.c 2007-09-10 08:13:39 UTC (rev 1303) +++ linux4palm/linux/trunk/drivers/mfd/tsc2101.c 2007-09-11 09:03:13 UTC (rev 1304) @@ -687,19 +687,22 @@ spin_lock_irqsave(&devdata->lock, flags); - //if (!tsc2101_ts_penup(devdata)) { if (devdata->platform->pendown()) { + /* if touchscreen is just touched */ devdata->pendown = 1; tsc2101_readdata(devdata, &ts_data); - tsc2101_ts_report(devdata, ts_data.x, ts_data.y, ts_data.p, 1); + tsc2101_ts_report(devdata, ts_data.x, ts_data.y, ts_data.p, /*1*/ !!ts_data.p); mod_timer(&(devdata->ts_timer), jiffies + HZ / 100); } else if (devdata->pendown > 0 && devdata->pendown < 3) { + /* if touchscreen was touched short time ago and it's possible that it's only surface indirectness */ mod_timer(&(devdata->ts_timer), jiffies + HZ / 100); devdata->pendown++; } else { - if (devdata->pendown) + /* if touchscreen was touched long time ago - it was probably released */ + if (devdata->pendown) { + tsc2101_readdata(devdata, &ts_data); tsc2101_ts_report(devdata, 0, 0, 0, 0); - + } devdata->pendown = 0; set_irq_type(devdata->platform->irq,IRQT_FALLING); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <z7...@us...> - 2007-09-10 08:13:43
|
Revision: 1303 http://hackndev.svn.sourceforge.net/hackndev/?rev=1303&view=rev Author: z72ka Date: 2007-09-10 01:13:39 -0700 (Mon, 10 Sep 2007) Log Message: ----------- palmz72: Added missing file Added Paths: ----------- linux4palm/linux/trunk/arch/arm/mach-pxa/palmz72/palmz72_border.c Added: linux4palm/linux/trunk/arch/arm/mach-pxa/palmz72/palmz72_border.c =================================================================== --- linux4palm/linux/trunk/arch/arm/mach-pxa/palmz72/palmz72_border.c (rev 0) +++ linux4palm/linux/trunk/arch/arm/mach-pxa/palmz72/palmz72_border.c 2007-09-10 08:13:39 UTC (rev 1303) @@ -0,0 +1,115 @@ +/* + * PalmOne Zire 72 LCD Border switch + * (Based on Palm LD LCD border switch) + * + * Author: Marek Vasut <mar...@gm...> + * Modification for Palm Zire 72: Jan Herman <z7...@ha...> + * + * 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., 51 Franklin Street, Fifth Floor, Boston, + * MA 02110-1301, USA. + */ + +#include <linux/module.h> +#include <linux/kernel.h> +#include <linux/platform_device.h> +#include <linux/delay.h> + +#include <asm/arch/hardware.h> +#include <asm/arch/palmz72-gpio.h> + +static ssize_t palmz72_border_write(struct device *dev, struct device_attribute *attr, + const char *buf, size_t count) +{ + signed long state = simple_strtol(buf, NULL, 10); + + if ( state >= 1 ) + SET_PALMZ72_GPIO(BORDER_SELECT, 1); + else + SET_PALMZ72_GPIO(BORDER_SELECT, 0); + + msleep(50); + SET_PALMZ72_GPIO(BORDER_SWITCH, 1); + + if ((state == 1) || (state == 0)) /* default - switch border on/off */ + msleep(200); + else { /* hidden functionality - colored border */ + if (state >= 0) + msleep(state); + else + msleep(-state); + } + + SET_PALMZ72_GPIO(BORDER_SWITCH, 0); + + return count; +} + +static ssize_t palmz72_border_read(struct device *dev, + struct device_attribute *attr, + char *buf) +{ + return strlcpy(buf, GET_PALMZ72_GPIO(BORDER_SELECT) ? "1\n" : "0\n", 3); +} + +static DEVICE_ATTR(border_power, 0644, palmz72_border_read, palmz72_border_write); + +static struct attribute *palmz72_border_attrs[] = { + &dev_attr_border_power.attr, + NULL +}; + +static struct attribute_group palmz72_border_attr_group = { + .attrs = palmz72_border_attrs, +}; + +static int __devinit palmz72_border_probe(struct platform_device *pdev) +{ + return sysfs_create_group(&pdev->dev.kobj, &palmz72_border_attr_group); +} + +static int palmz72_border_remove(struct platform_device *pdev) +{ + sysfs_remove_group(&pdev->dev.kobj, &palmz72_border_attr_group); + return 0; +} + +static struct platform_driver palmz72_border_driver = { + .probe = palmz72_border_probe, + .remove = palmz72_border_remove, + .suspend = NULL, + .resume = NULL, + .driver = { + .name = "palmz72-border", + } +}; + +static int __init palmz72_border_init(void) +{ + printk(KERN_INFO "LCD border driver registered\n"); + return platform_driver_register(&palmz72_border_driver); +} + +static void palmz72_border_exit(void) +{ + printk(KERN_INFO "LCD border driver unregistered\n"); + platform_driver_unregister(&palmz72_border_driver); +} + +module_init(palmz72_border_init); +module_exit(palmz72_border_exit); + +MODULE_LICENSE("GPL"); +MODULE_AUTHOR("Jan Herman <z7...@ha...>"); +MODULE_DESCRIPTION("PalmOne Zire72 Border switch"); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <z7...@us...> - 2007-09-10 07:17:02
|
Revision: 1302 http://hackndev.svn.sourceforge.net/hackndev/?rev=1302&view=rev Author: z72ka Date: 2007-09-10 00:16:56 -0700 (Mon, 10 Sep 2007) Log Message: ----------- palmz72: Added border switch driver Modified Paths: -------------- linux4palm/linux/trunk/arch/arm/mach-pxa/palmz72/Kconfig linux4palm/linux/trunk/arch/arm/mach-pxa/palmz72/Makefile linux4palm/linux/trunk/arch/arm/mach-pxa/palmz72/gpio_map.txt linux4palm/linux/trunk/arch/arm/mach-pxa/palmz72/palmz72.c linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmz72-gpio.h Modified: linux4palm/linux/trunk/arch/arm/mach-pxa/palmz72/Kconfig =================================================================== --- linux4palm/linux/trunk/arch/arm/mach-pxa/palmz72/Kconfig 2007-09-03 07:19:52 UTC (rev 1301) +++ linux4palm/linux/trunk/arch/arm/mach-pxa/palmz72/Kconfig 2007-09-10 07:16:56 UTC (rev 1302) @@ -21,3 +21,9 @@ help Enable support for PalmOne Zire 72 battery to APM. ATM use it only as module, otherwise it hangs. + +config PALMZ72_BORDER + tristate "Palm Zire 72 Display border switch" + depends on MACH_PALMZ72 + help + Enable support for turning LCD border on/off Modified: linux4palm/linux/trunk/arch/arm/mach-pxa/palmz72/Makefile =================================================================== --- linux4palm/linux/trunk/arch/arm/mach-pxa/palmz72/Makefile 2007-09-03 07:19:52 UTC (rev 1301) +++ linux4palm/linux/trunk/arch/arm/mach-pxa/palmz72/Makefile 2007-09-10 07:16:56 UTC (rev 1302) @@ -5,3 +5,4 @@ obj-$(CONFIG_MACH_PALMZ72) += palmz72.o obj-$(CONFIG_PALMZ72_PM) += palmz72_pm.o obj-$(CONFIG_PALMZ72_BATTERY) += palmz72_battery.o +obj-$(CONFIG_PALMZ72_BORDER) += palmz72_border.o Modified: linux4palm/linux/trunk/arch/arm/mach-pxa/palmz72/gpio_map.txt =================================================================== --- linux4palm/linux/trunk/arch/arm/mach-pxa/palmz72/gpio_map.txt 2007-09-03 07:19:52 UTC (rev 1301) +++ linux4palm/linux/trunk/arch/arm/mach-pxa/palmz72/gpio_map.txt 2007-09-10 07:16:56 UTC (rev 1302) @@ -20,8 +20,8 @@ GPIO_18 0 O 00 GPIO_19 1 O 00 Screen goes white when 0 GPIO_20 1 O 00 BL_POWER // Backlight goes off when 0 -GPIO_21 0 O 00 -GPIO_22 0 O 00 +GPIO_21 0 O 00 LCD border switch +GPIO_22 0 O 00 LCD border select GPIO_23 0 O 02 SSPSCLK GPIO_24 1 O 02 SSPSFRM GPIO_25 0 O 02 SSPSTXD Modified: linux4palm/linux/trunk/arch/arm/mach-pxa/palmz72/palmz72.c =================================================================== --- linux4palm/linux/trunk/arch/arm/mach-pxa/palmz72/palmz72.c 2007-09-03 07:19:52 UTC (rev 1301) +++ linux4palm/linux/trunk/arch/arm/mach-pxa/palmz72/palmz72.c 2007-09-10 07:16:56 UTC (rev 1302) @@ -316,6 +316,14 @@ .dev = { .platform_data = &palmz72_audio_ops }, }; +/************** + * LCD Border * + **************/ +struct platform_device palmz72_border = { + .name = "palmz72-border", + .id = -1, +}; + /************* * Backlight * *************/ @@ -457,6 +465,7 @@ #if 0 &ov9640, #endif + &palmz72_border, }; /*********************************************************************** Modified: linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmz72-gpio.h =================================================================== --- linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmz72-gpio.h 2007-09-03 07:19:52 UTC (rev 1301) +++ linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmz72-gpio.h 2007-09-10 07:16:56 UTC (rev 1302) @@ -89,6 +89,11 @@ #define GPIO_NR_PALMZ72_BL_POWER 20 +/* LCD Border */ + +#define GPIO_NR_PALMZ72_BORDER_SWITCH 21 +#define GPIO_NR_PALMZ72_BORDER_SELECT 22 + /* Others */ #define GPIO_NR_PALMZ72_GPIO_RESET 1 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mar...@us...> - 2007-09-03 15:17:52
|
Revision: 1301 http://hackndev.svn.sourceforge.net/hackndev/?rev=1301&view=rev Author: marex_z71 Date: 2007-09-03 00:19:52 -0700 (Mon, 03 Sep 2007) Log Message: ----------- HTC_Beetles: cleanups, fixes etc. Modified Paths: -------------- linux4palm/linux/trunk/arch/arm/mach-pxa/htcsable/htcsable_buttons.c linux4palm/linux/trunk/arch/arm/mach-pxa/htcsable/htcsable_kbd.c Modified: linux4palm/linux/trunk/arch/arm/mach-pxa/htcsable/htcsable_buttons.c =================================================================== --- linux4palm/linux/trunk/arch/arm/mach-pxa/htcsable/htcsable_buttons.c 2007-09-02 13:11:19 UTC (rev 1300) +++ linux4palm/linux/trunk/arch/arm/mach-pxa/htcsable/htcsable_buttons.c 2007-09-03 07:19:52 UTC (rev 1301) @@ -42,9 +42,9 @@ } static struct platform_driver htcsable_buttons_driver = { - .driver = { - .name = "htcsable_buttons", - }, + .driver = { + .name = "htcsable_buttons", + }, .probe = htcsable_buttons_probe, }; Modified: linux4palm/linux/trunk/arch/arm/mach-pxa/htcsable/htcsable_kbd.c =================================================================== --- linux4palm/linux/trunk/arch/arm/mach-pxa/htcsable/htcsable_kbd.c 2007-09-02 13:11:19 UTC (rev 1300) +++ linux4palm/linux/trunk/arch/arm/mach-pxa/htcsable/htcsable_kbd.c 2007-09-03 07:19:52 UTC (rev 1301) @@ -13,8 +13,8 @@ #include <linux/input_pda.h> #include <linux/interrupt.h> #include <linux/irq.h> -#include <asm/arch/h4000-gpio.h> -#include <asm/arch/h4000-asic.h> +#include <asm/arch/htcsable-gpio.h> +#include <asm/arch/htcsable-asic.h> #include <asm/arch/pxa-regs.h> #include <asm/hardware.h> #include <asm/arch/bitfield.h> @@ -27,7 +27,7 @@ static irqreturn_t htcsable_pwr_btn(int irq, void* data) { int pressed; - pressed = !GET_H4000_GPIO(POWER_BUTTON_N); + pressed = !GET_HTCSABLE_GPIO(KEY_ON_N); input_report_key(htcsable_kbd, KEY_POWER, pressed); input_sync(htcsable_kbd); @@ -47,9 +47,9 @@ htcsable_kbd->evbit[0] = BIT(EV_KEY) | BIT(EV_REP); set_bit(KEY_POWER, htcsable_kbd->keybit); - request_irq(IRQ_GPIO(GPIO_NR_H4000_POWER_BUTTON_N), htcsable_pwr_btn, - IRQF_SAMPLE_RANDOM, "Power button", NULL); - set_irq_type(IRQ_GPIO(GPIO_NR_H4000_POWER_BUTTON_N), IRQT_BOTHEDGE); + request_irq(IRQ_GPIO(GPIO_NR_HTCSABLE_KEY_ON_N), htcsable_pwr_btn, + IRQF_SAMPLE_RANDOM, "Power button", NULL); + set_irq_type(IRQ_GPIO(GPIO_NR_HTCSABLE_KEY_ON_N), IRQT_BOTHEDGE); input_register_device(htcsable_kbd); @@ -59,7 +59,7 @@ static int htcsable_kbd_remove(struct platform_device * pdev) { input_unregister_device(htcsable_kbd); - free_irq(IRQ_GPIO(GPIO_NR_H4000_POWER_BUTTON_N), NULL); + free_irq(IRQ_GPIO(GPIO_NR_HTCSABLE_KEY_ON_N), NULL); return 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 13:38:35
|
Revision: 1300 http://hackndev.svn.sourceforge.net/hackndev/?rev=1300&view=rev Author: marex_z71 Date: 2007-09-02 06:11:19 -0700 (Sun, 02 Sep 2007) Log Message: ----------- PalmTE2: convert palmte2 to corgi-bl, make some additional corrections Modified Paths: -------------- linux4palm/linux/trunk/arch/arm/mach-pxa/palmte2/palmte2.c Added Paths: ----------- linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmte2-init.h Modified: linux4palm/linux/trunk/arch/arm/mach-pxa/palmte2/palmte2.c =================================================================== --- linux4palm/linux/trunk/arch/arm/mach-pxa/palmte2/palmte2.c 2007-09-02 13:09:24 UTC (rev 1299) +++ linux4palm/linux/trunk/arch/arm/mach-pxa/palmte2/palmte2.c 2007-09-02 13:11:19 UTC (rev 1300) @@ -19,6 +19,7 @@ #include <linux/device.h> #include <linux/platform_device.h> #include <linux/fb.h> +#include <linux/corgi_bl.h> #include <asm/arch/audio.h> #include <asm/arch/hardware.h> @@ -27,9 +28,9 @@ #include <asm/arch/pxa-regs.h> #include <asm/arch/udc.h> #include <asm/arch/mmc.h> -#include <asm/arch/pxapwm-bl.h> #include <asm/arch/serial.h> #include <asm/arch/palmte2-gpio.h> +#include <asm/arch/palmte2-init.h> #include <linux/gpio_keys.h> #include <sound/driver.h> @@ -66,20 +67,29 @@ /* * Backlight */ -static struct pxapwmbl_platform_data palmte2_backlight_data = { - .pwm = 0, - .max_intensity = 0x160, - .default_intensity = 0x11a, - .limit_mask = 0x7f, - .prescaler = 7, - .period = 0x16c, + +static void palmte2_set_bl_intensity(int intensity) +{ + if(intensity) { + PWM_CTRL0 = 0x7; + PWM_PERVAL0 = PALMTE2_PERIOD; + PWM_PWDUTY0 = intensity; + } +} + +static struct corgibl_machinfo palmte2_bl_machinfo = { + .max_intensity = PALMTE2_MAX_INTENSITY, + .default_intensity = PALMTE2_MAX_INTENSITY, + .set_bl_intensity = palmte2_set_bl_intensity, + .limit_mask = PALMTE2_LIMIT_MASK, }; static struct platform_device palmte2_backlight = { - .name = "pxapwm-bl", - .dev = { - .platform_data = &palmte2_backlight_data, - }, + .name = "corgi-bl", + .id = 0, + .dev = { + .platform_data = &palmte2_bl_machinfo, + }, }; /* @@ -89,20 +99,14 @@ void bcm2035_bt_reset(int on) { printk(KERN_NOTICE "Switch BT reset %d\n", on); - if (on) - SET_PALMTE2_GPIO(BT_RESET, 1); - else - SET_PALMTE2_GPIO(BT_RESET, 0); + SET_PALMTE2_GPIO(BT_RESET, on ? 1 : 0); } EXPORT_SYMBOL(bcm2035_bt_reset); void bcm2035_bt_power(int on) { printk(KERN_NOTICE "Switch BT power %d\n", on); - if (on) - SET_PALMTE2_GPIO(BT_POWER, 1); - else - SET_PALMTE2_GPIO(BT_POWER, 0); + SET_PALMTE2_GPIO(BT_POWER, on ? 1 : 0); } EXPORT_SYMBOL(bcm2035_bt_power); Added: linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmte2-init.h =================================================================== --- linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmte2-init.h (rev 0) +++ linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmte2-init.h 2007-09-02 13:11:19 UTC (rev 1300) @@ -0,0 +1,29 @@ +/* + * palmte2-init.h + * + * Init values for PalmOne Tungsten E2 Handheld Computer + * + * 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 version 2 as + * published by the Free Software Foundation. + * + * + * + */ + +#ifndef _INCLUDE_PALMTE2_INIT_H_ + +#define _INCLUDE_PALMTE2_INIT_H_ + +/* BACKLIGHT */ + +#define PALMTE2_MAX_INTENSITY 0xFE +#define PALMTE2_DEFAULT_INTENSITY 0x7E +#define PALMTE2_LIMIT_MASK 0x7F +#define PALMTE2_PRESCALER 0x3F +#define PALMTE2_PERIOD 0x112 + +#endif /* _INCLUDE_PALMTE2_INIT_H_ */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mar...@us...> - 2007-09-02 13:37:40
|
Revision: 1298 http://hackndev.svn.sourceforge.net/hackndev/?rev=1298&view=rev Author: marex_z71 Date: 2007-09-02 06:06:32 -0700 (Sun, 02 Sep 2007) Log Message: ----------- PalmTE2: update defconfig to switch to corgi-bl Modified Paths: -------------- linux4palm/linux/trunk/arch/arm/configs/palmte2_defconfig Modified: linux4palm/linux/trunk/arch/arm/configs/palmte2_defconfig =================================================================== --- linux4palm/linux/trunk/arch/arm/configs/palmte2_defconfig 2007-09-02 12:41:12 UTC (rev 1297) +++ linux4palm/linux/trunk/arch/arm/configs/palmte2_defconfig 2007-09-02 13:06:32 UTC (rev 1298) @@ -1,7 +1,7 @@ # # Automatically generated make config: don't edit -# Linux kernel version: 2.6.21-hnd2 -# Thu Jul 19 22:20:33 2007 +# Linux kernel version: 2.6.21-hnd3 +# Sun Sep 2 15:04:46 2007 # CONFIG_ARM=y CONFIG_SYS_SUPPORTS_APM_EMULATION=y @@ -48,9 +48,7 @@ CONFIG_SYSFS_DEPRECATED=y # CONFIG_RELAY is not set CONFIG_BLK_DEV_INITRD=y -CONFIG_INITRAMFS_SOURCE="/home/palm/initrd/initramfs" -CONFIG_INITRAMFS_ROOT_UID=0 -CONFIG_INITRAMFS_ROOT_GID=0 +# CONFIG_INITRAMFS_SOURCE is not set CONFIG_CC_OPTIMIZE_FOR_SIZE=y CONFIG_SYSCTL=y # CONFIG_EMBEDDED is not set @@ -160,29 +158,29 @@ # CONFIG_MACH_MAGICIAN is not set # CONFIG_MACH_HTCAPACHE is not set # CONFIG_MACH_BLUEANGEL is not set -# CONFIG_MACH_HTCBEETLES is not set -# CONFIG_MACH_HW6900 is not set +# CONFIG_HTC_HW6X00 is not set # CONFIG_MACH_HTCATHENA is not set # CONFIG_ARCH_AXIMX3 is not set # CONFIG_ARCH_AXIMX5 is not set # CONFIG_MACH_X50 is not set # CONFIG_ARCH_ROVERP1 is not set # CONFIG_ARCH_ROVERP5P is not set -# CONFIG_MACH_XSCALE_PALMLD is not set -# CONFIG_MACH_XSCALE_PALMTREO650 is not set -# CONFIG_MACH_XSCALE_TREO680 is not set -# CONFIG_MACH_T700WX is not set CONFIG_MACH_TUNGE2=y +# CONFIG_MACH_OMAP_PALMTC is not set # CONFIG_MACH_T3XSCALE is not set # CONFIG_MACH_XSCALE_PALMTT5 is not set # CONFIG_MACH_XSCALE_PALMTX is not set -# CONFIG_MACH_PALMZ72 is not set -# CONFIG_MACH_OMAP_PALMTC is not set +# CONFIG_MACH_XSCALE_PALMLD is not set # CONFIG_MACH_ZIRE31 is not set # CONFIG_GPIOED is not set # CONFIG_GPIOEDNG is not set +# CONFIG_MACH_PALMZ72 is not set +# CONFIG_MACH_XSCALE_PALMTREO650 is not set +# CONFIG_MACH_XSCALE_TREO680 is not set +# CONFIG_MACH_T700WX is not set # CONFIG_MACH_GHI270HG is not set # CONFIG_MACH_GHI270 is not set +# CONFIG_MACH_LOOXC550 is not set # CONFIG_PXA_SHARPSL is not set # CONFIG_MACH_TRIZEPS4 is not set CONFIG_PXA25x=y @@ -623,11 +621,22 @@ # CONFIG_ADC is not set # +# Compaq/iPAQ Drivers +# + +# +# Compaq/HP iPAQ Drivers +# +# CONFIG_IPAQ_SLEEVE is not set +# CONFIG_SLEEVE_DEBUG is not set + +# # Multifunction device drivers # # CONFIG_MFD_SM501 is not set # CONFIG_HTC_ASIC2 is not set # CONFIG_HTC_ASIC3 is not set +# CONFIG_HTC_PASIC3 is not set # CONFIG_HTC_EGPIO is not set # CONFIG_HTC_ASIC3_DS1WM is not set # CONFIG_SOC_SAMCOP is not set @@ -650,6 +659,7 @@ # # LED Triggers # +# CONFIG_LEDS_TRIGGER_BACKLIGHT is not set # # Multimedia devices @@ -667,8 +677,7 @@ CONFIG_BACKLIGHT_LCD_SUPPORT=y CONFIG_BACKLIGHT_CLASS_DEVICE=y CONFIG_LCD_CLASS_DEVICE=y -# CONFIG_BACKLIGHT_CORGI is not set -CONFIG_BACKLIGHT_PXAPWM=y +CONFIG_BACKLIGHT_CORGI=y CONFIG_FB=y CONFIG_FIRMWARE_EDID=y # CONFIG_FB_DDC is not set This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mar...@us...> - 2007-09-02 13:26:59
|
Revision: 1299 http://hackndev.svn.sourceforge.net/hackndev/?rev=1299&view=rev Author: marex_z71 Date: 2007-09-02 06:09:24 -0700 (Sun, 02 Sep 2007) Log Message: ----------- PalmZ72: use damned C-style comments ... :-F~~~ Modified Paths: -------------- linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmz72-init.h Modified: linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmz72-init.h =================================================================== --- linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmz72-init.h 2007-09-02 13:06:32 UTC (rev 1298) +++ linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmz72-init.h 2007-09-02 13:09:24 UTC (rev 1299) @@ -18,7 +18,7 @@ #define _INCLUDE_PALMZ72_INIT_H_ -// BACKLIGHT +/* BACKLIGHT */ #define PALMZ72_MAX_INTENSITY 0xFE #define PALMZ72_DEFAULT_INTENSITY 0x7E @@ -27,16 +27,16 @@ #define PALMZ72_PERIOD 0x112 -// BATTERY +/* BATTERY */ -#define PALMZ72_BAT_MAX_VOLTAGE 4100 // 4.09V current voltage at max charge as from PalmOS -#define PALMZ72_BAT_MIN_VOLTAGE 3670 // 3.67V critical voltage as from Zlauncher -#define PALMZ72_BAT_MAX_CURRENT 0 // unknokn -#define PALMZ72_BAT_MIN_CURRENT 0 // unknown -#define PALMZ72_BAT_MAX_CHARGE 1 // unknown -#define PALMZ72_BAT_MIN_CHARGE 1 // unknown -#define PALMZ72_BAT_MEASURE_DELAY (HZ * 1) -#define PALMZ72_MAX_LIFE_MINS 240 // my Zire72 on-life in minutes +#define PALMZ72_BAT_MAX_VOLTAGE 4100 /* 4.09V current voltage at max charge as from PalmOS */ +#define PALMZ72_BAT_MIN_VOLTAGE 3670 /* 3.67V critical voltage as from Zlauncher */ +#define PALMZ72_BAT_MAX_CURRENT 0 /* unknokn */ +#define PALMZ72_BAT_MIN_CURRENT 0 /* unknown */ +#define PALMZ72_BAT_MAX_CHARGE 1 /* unknown */ +#define PALMZ72_BAT_MIN_CHARGE 1 /* unknown */ +#define PALMZ72_BAT_MEASURE_DELAY (HZ * 1) +#define PALMZ72_MAX_LIFE_MINS 240 /* my Zire72 on-life in minutes */ #endif This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |