From: thaGod <th...@gm...> - 2007-10-29 18:32:26
|
>Yes, i2c underwent some major changes in the later kernels. Not sure >the nature of them, since I haven't looked at anything i2c-connected in >serveral months... Solved by changing in tsc2003.c: static unsigned short normal_i2c[] = {0x48, 0x49, 0x4a, 0x4b, I2C_CLIENT_ISA_END }; static unsigned int normal_isa[] = { I2C_CLIENT_END }; to static unsigned short normal_i2c[] = {0x48, 0x49, 0x4a, 0x4b, I2C_CLIENT_END }; static unsigned int normal_isa[] = { I2C_CLIENT_END }; This is using the latest i2c.h. I found an intermediate version of i2c-sensor.h that worked for me. http://developer.osdl.org/dev/robustmutexes/REPOS/fusyn.hg/?cmd=file;file=include/linux/i2c-sensor.h;filenode=7041b1a90249bf1e72154493f3e2632d708eaef1;style=raw Everything related to i2c ranges was removed in the newer versions. moving right along... Erick Bill Gatliff wrote: > > thaGod wrote: >> Ok, I've got it worked in where I want it and I've started working on >> getting >> it to compile. The first hurdle appears to be some changes in i2c.h: >> > > Yes, i2c underwent some major changes in the later kernels. Not sure > the nature of them, since I haven't looked at anything i2c-connected in > serveral months... > > >> drivers/i2c/chips/tsc2003.c:337: warning: implicit declaration of >> function >> 'set_irq_type' >> drivers/i2c/chips/tsc2003.c:337: error: 'IRQ_TYPE_EDGE_FALLING' >> undeclared >> (first use in this function) >> > > This could be genirq-related. > >> drivers/i2c/chips/tsc2003.c:471: warning: implicit declaration of >> function >> 'to_platform_device' >> > > Interesting. Could be perhaps that i2c headers used to include the > necessary additional files, but don't now. > >> I'm comparing the old version of i2c.h (which I believe is the one you >> have >> used) with the latest version and it seems to have changed fairly >> significantly. I doubt I can get away with replacing the new with the >> old, >> but I will try it just to rule it out. I'll do this first and then get to >> work on tracing all the changes and getting things updated. >> > > Yes. The code you have was written against 2.6.12. > >> Also, I think the use of linux/config.h is depreciated? I simply added a >> symlink to autoconf.h. i2c-sensors.h was not included in the 2.6.21 >> kernel >> that gumstix is using. That's as far as I've gotten. >> > > I don't know if it's deprecated, or not. Seems like you'd need to get > CONFIG_* macros from somewhere... > > > b.g. > > -- > Bill Gatliff > bg...@bi... > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > gumstix-users mailing list > gum...@li... > https://lists.sourceforge.net/lists/listinfo/gumstix-users > > -- View this message in context: http://www.nabble.com/TI-TSC2003-touchscreen-controller-%28supplied-with-Gumstix-Samsung-display%29-tf4666655.html#a13473825 Sent from the Gumstix mailing list archive at Nabble.com. |