Hmmm... Strange : this work is based on the latest HH kernel...
Anyway, these 2 files are attached to this mail.
Do you succeed in building opie-image or gpe-image ?
I get errors at the end...
| + ipkg-cl -f
/home/aneto/gaufille/progs/axim/distrib/familiar/familiar-build/build-ipaq-pxa270-gpe/tmp/work/arm-linux/gpe-image-1.0-r21/temp/ipkg.conf
-o
/home/aneto/gaufille/progs/axim/distrib/familiar/familiar-build/build-ipaq-pxa270-gpe/tmp/rootfs
update
| Downloading
file:/home/aneto/gaufille/progs/axim/distrib/familiar/familiar-build/build-ipaq-pxa270-gpe/tmp/deploy/ipk/Packages
| Updated list of available packages in
/home/aneto/gaufille/progs/axim/distrib/familiar/familiar-build/build-ipaq-pxa270-gpe/tmp/rootfs//usr/lib/ipkg/lists/oe
| + '[' '!' -z 'locale-base-de-de locale-base-fr-fr locale-base-en-gb' ']'
| + ipkg-cl -f
/home/aneto/gaufille/progs/axim/distrib/familiar/familiar-build/build-ipaq-pxa270-gpe/tmp/work/arm-linux/gpe-image-1.0-r21/temp/ipkg.conf
-o
/home/aneto/gaufille/progs/axim/distrib/familiar/familiar-build/build-ipaq-pxa270-gpe/tmp/rootfs
install glibc-localedata-i18n
| Nothing to be done
| An error ocurred, return value: 4.
| Collected errors:
| Cannot find package glibc-localedata-i18n.
| Check the spelling or perhaps run 'ipkg update'
NOTE: Task failed:
/home/aneto/gaufille/progs/axim/distrib/familiar/familiar-build/build-ipaq-pxa270-gpe/tmp/work/arm-linux/gpe-image-1.0-r21/temp/log.do_rootfs.3927
NOTE: package gpe-image-1.0-r21: task do_rootfs: failed
ERROR: TaskFailed event exception, aborting
NOTE: package gpe-image-1.0: failed
ERROR: Build of gpe-image failed
But it seems that the glibc-localedata-i18n package has been correctly
built... Any idea ?
Pierre
Jean-Nicolas GRAUx a écrit :
> Hi Pierre, i tried to apply your latest patch from clean Linux kernel
> Head but got many HUNK errors mainly when trying to merge the following
> files :
>
> drivers/misc/adc/ads7846_adc_ssp.c
> include/asm-arm/arch-pxa/aximx50-gpio.h
>
> Could you send the entire file ?
> Thanks.
> Nicolas.
>
>
> Could you send the entire files
>
>
>> ------------------------------
>>
>> Message: 2
>> Date: Sat, 03 Feb 2007 01:01:51 +0100
>> From: Pierre GAUFILLET <[EMAIL PROTECTED]>
>> Subject: [Aximx50-port] new patch
>> To: [email protected]
>> Message-ID: <[EMAIL PROTECTED]>
>> Content-Type: text/plain; charset="utf-8"
>>
>> Hi,
>>
>> you will find attached a new X50 patch.
>> It is mainly a modified version of the device-independent
>> ADS7846/TSC2046 driver released by Paul a few days ago :
>> - Kconfig takes into account all X50 variants (not really required for
>> now, but allow to manage cleanly the axim family),
>> - aximx50.c. includes the touchscreen driver information, and some
>> unuseful udc code has been removed,
>> - ads7846ts_ssp.c : read_xydata is now less value-dependent, and a
>> mechanism derived from the tsc2046 driver to detect pen release (based
>> on gpio) has been added. ADS/TSC commands are now on 24 bits,
>> - ads7846_adc_ssp.c : re-use initialization from tsc2046 driver,
>>
>> As I can not build familiar, I did not test it with tslib tools, but it
>> should work. If someone could confirm...
>>
>> Paul : I don't think this patch should be integrated as is, but it may
>> help you to adapt your driver.
>>
>> Comments and remarks are welcome,
>>
>> Pierre
>>
>>
>> -------------- next part --------------
>> A non-text attachment was scrubbed...
>> Name: aximx50-200702030014.patch
>> Type: text/x-patch
>> Size: 22045 bytes
>> Desc: not available
>> Url :
>> http://www.handhelds.org/hypermail/aximx50-port/current/attachments/20070203/c0ea5377/aximx50-200702030014.bin
>>
>>
>
>
>
/*
* include/asm-arm/arch-pxa/aximx50-gpio.h
* History:
*
* 2007-01-25 Pierre Gaufillet Creation
*
*/
#ifndef _X50_GPIO_H_
#define _X50_GPIO_H_
#include <asm/arch/pxa-regs.h>
#define GET_X50_GPIO(gpio) \
(GPLR(GPIO_NR_X50_ ## gpio) & GPIO_bit(GPIO_NR_X50_ ## gpio))
#define SET_X50_GPIO(gpio, setp) \
do { \
if (setp) \
GPSR(GPIO_NR_X50_ ## gpio) = GPIO_bit(GPIO_NR_X50_ ## gpio); \
else \
GPCR(GPIO_NR_X50_ ## gpio) = GPIO_bit(GPIO_NR_X50_ ## gpio); \
} while (0)
#define SET_X50_GPIO_N(gpio, setp) \
do { \
if (setp) \
GPCR(GPIO_NR_X50_ ## gpio ## _N) = GPIO_bit(GPIO_NR_X50_ ## gpio ## _N); \
else \
GPSR(GPIO_NR_X50_ ## gpio ## _N) = GPIO_bit(GPIO_NR_X50_ ## gpio ## _N); \
} while (0)
#define X50_IRQ(gpio) \
IRQ_GPIO(GPIO_NR_X50_ ## gpio)
/*********************************************************************/
#define GPIO_NR_X50_AC_IN_N 11 /* Input = 1 when externally powered */
#define GPIO_NR_X50_PEN_IRQ_N 94 /* Input = 0 when stylus down */
#endif /* _X50_GPIO_H */
/*
* ADS7846 SSP communication driver
*
* Copyright (C) 2006 Paul Sokolovsky
* Copyright (C) 2005-2006 Pawel Kolodziejski
* Copyright (C) 2003 Joshua Wise
*
* Use consistent with the GNU GPL is permitted,
* provided that this copyright notice is
* preserved in its entirety in all copies and derived works.
*
*/
#include <linux/module.h>
#include <linux/version.h>
#include <linux/init.h>
#include <linux/fs.h>
#include <linux/interrupt.h>
#include <linux/sched.h>
#include <linux/device.h>
#include <linux/delay.h>
#include <linux/platform_device.h>
#include <asm/mach/map.h>
#include <asm/mach-types.h>
#include <asm/arch/hardware.h>
#include <asm/irq.h>
#include <asm/mach/irq.h>
#include <asm/arch/pxa-regs.h>
#include <asm/arch/ssp.h>
static spinlock_t ads7846_ssp_lock = SPIN_LOCK_UNLOCKED;
u32 ads7846_ssp_putget(u32 data)
{
u32 ret;
unsigned long flags;
int timeout;
spin_lock_irqsave(&ads7846_ssp_lock, flags);
timeout = 100000;
while (!(SSSR_P1 & SSSR_TNF) && --timeout);
if (timeout == 0) {
printk("%s: warning: timeout while waiting for SSSR_TNF\n", __FUNCTION__);
};
SSDR_P1 = data;
udelay(1);
timeout = 100000;
while (!(SSSR_P1 & SSSR_RNE) && --timeout);
if (timeout == 0) {
printk("%s: warning: timeout while waiting for SSSR_RNE\n", __FUNCTION__);
};
ret = SSDR_P1;
spin_unlock_irqrestore(&ads7846_ssp_lock, flags);
return ret;
}
EXPORT_SYMBOL(ads7846_ssp_putget);
static void ads7846_init_chip(void)
{
printk("%s\n", __FUNCTION__);
/* now to set up GPIOs... */
GPDR(GPIO23_SCLK) |= GPIO_bit(GPIO23_SCLK);
GPDR(GPIO24_SFRM) |= GPIO_bit(GPIO24_SFRM);
GPDR(GPIO25_STXD) |= GPIO_bit(GPIO25_STXD);
GPDR(GPIO26_SRXD) &= ~GPIO_bit(GPIO26_SRXD);
pxa_gpio_mode(GPIO23_SCLK_MD);
pxa_gpio_mode(GPIO24_SFRM_MD);
pxa_gpio_mode(GPIO25_STXD_MD);
pxa_gpio_mode(GPIO26_SRXD_MD);
SSCR0_P1 = 0;
pxa_set_cken(CKEN23_SSP1, 1);
SSCR0_P1 |= (7 << 0) /*SSCR0_DataSize(12)*/; /* 24 bits */
SSCR0_P1 |= SSCR0_Motorola /*SSCR0_National*/; /* Motorola SPI Interface */
SSCR0_P1 |= SSCR0_SerClkDiv(7); /* ~100 KHz */
SSCR0_P1 |= SSCR0_EDSS; /* Extended Data Size Select */
SSCR1_P1 = 0;
SSPSP_P1 = 0;
/* Clear the Status */
SSSR_P1 = SSSR_P1 & 0x00fcfffc;
SSCR0_P1 |= SSCR0_SSE;
}
static int ads7846_ssp_probe(struct platform_device *dev)
{
printk("%s\n", __FUNCTION__);
ads7846_init_chip();
return 0;
}
static int ads7846_ssp_remove(struct platform_device *dev)
{
printk("%s\n", __FUNCTION__);
SSCR0 &= ~SSCR0_SSE;
pxa_set_cken(CKEN23_SSP1, 0);
return 0;
}
static struct platform_driver ads7846_ssp_driver = {
.probe = ads7846_ssp_probe,
.remove = ads7846_ssp_remove,
.driver = {
.name = "ads7846-ssp",
},
};
static int ads7846_ssp_init(void)
{
printk(KERN_NOTICE "ADS7846/TSC2046 analogic/digital converter Driver\n");
return platform_driver_register(&ads7846_ssp_driver);
}
#ifdef MODULE
static void ads7846_ssp_exit(void)
{
platform_driver_unregister(&ads7846_ssp_driver);
}
module_init(ads7846_ssp_init);
module_exit(ads7846_ssp_exit);
#else /* start early for dependencies */
subsys_initcall(ads7846_ssp_init);
#endif
MODULE_LICENSE("GPL");
MODULE_AUTHOR("Pawel Kolodziejski, Paul Sokolovsky");
MODULE_DESCRIPTION("ADS7846 SSP channel driver");
--
_______________________________________________
Aximx50-port mailing list
[email protected]
https://www.handhelds.org/mailman/listinfo/aximx50-port