IRC log for #htc-linux on 20090629

00:04.26*** join/#htc-linux cr2 (n=cr2@ip-90-187-226-68.web.vodafone.de)
00:04.35cr2tmzt: snd->snd_epts = (struct msm_snd_endpoints *)pdev->dev.platform_data;
00:04.52tmztyes
00:04.55tmztbut there just integers
00:05.03cr2how they are defined for g1 ?
00:05.12cr2i doubt that we define them
00:05.31tmztI tried the ones from trout
00:05.42tmztI don't think rpc was working then though
00:06.28cr2we have 1 and 0xd
00:06.45cr2at least i've seen them in rpccall log
00:07.19cr2this looks ok
00:07.23cr2633         SND(0, "HANDSET"),
00:07.24cr2634         SND(1, "SPEAKER"),
00:07.43cr2there is no msm_snd because there are no SND ;)
00:08.10tmztah
00:08.18cr2644         SND(13, "HTC BH M100"),
00:08.20tmztreally?
00:08.23cr2this is 0xd
00:08.27tmzthow does it enumerate?
00:08.39cr2[02:04] <cr2> tmzt: snd->snd_epts = (struct msm_snd_endpoints *)pdev->dev.platform_data;
00:08.49tmztthose endpoints are related to acoustic I think
00:09.12cr2it has an ioctl returning the number of endpoints, and *char info
00:09.28cr2well, it's your domain :)
00:10.14cr2i need to try playing to headset, and recording. from headset.
00:10.39tmztbluetooth has to be setup first
00:10.50cr2644         SND(13, "HTC BH M100"),
00:11.00tmztBH M100?
00:11.03cr2this seems to be the standard headset. at least for raph100
00:11.25tmztthey use this instead of routing?
00:12.32cr2The HTC BH M100 has everything you need in a Bluetooth headset.
00:12.36cr2strange
00:13.04cr2maybe i've looked at somebodies else rpccall smem
00:13.39tmztI think it might use that if it doesn't recognize the headset
00:13.50cr2tmzt: you call an rpc for routing.
00:14.04cr2ok
00:14.11tmztthen what is endpoint actually used for?
00:14.20cr2but i think that we may just take the g1 list
00:14.41tmztI asked swetland about it last year and the response was it was tuned for those headsets
00:14.57cr2you call an ioctl on msm_snd and it sends an rpc
00:15.19cr2the "tuned" audioparams are loaded into sram
00:15.24tmztyeah
00:15.28cr2s/sram/smem/
00:15.52cr2AudioPara* and HTC acoustic
00:19.28cr2ok, i'll leave it for tomorrow/today
00:19.44cr2also the rfkill, and the BT alt gpios patch.
00:19.48cr2good night
00:27.31Kevin2tmzt: Does the patch at http://dpaste.com/60982/ help?  If you have a haret log of a session with "watch gpios" in it, then you can run the new tool: ./testdump.py < haretlog  -- and it will dump the gpio registers at the end.
00:28.52tmztmaybe, that looks about right
00:29.23tmztI can convert that to what I need
00:43.25dcordes_byebye
00:47.20*** join/#htc-linux ali12341 (n=al@robotfuzz.co.uk)
00:55.42*** join/#htc-linux swc|666 (n=infidel2@unaffiliated/swc666/x-4934821)
01:08.52*** join/#htc-linux Patrick_Bateman (n=infidel2@unaffiliated/swc666/x-4934821)
01:09.45*** join/#htc-linux swc|666 (n=infidel2@unaffiliated/swc666/x-4934821)
01:11.04*** join/#htc-linux swc|666 (n=infidel2@unaffiliated/swc666/x-4934821)
01:15.00*** join/#htc-linux ImCoKeMaN (n=imcokema@pool-74-99-144-198.hrbgpa.fios.verizon.net)
01:52.45*** join/#htc-linux infernix (i=nix@unaffiliated/infernix)
01:56.40*** join/#htc-linux timebomb (n=tb@e179196103.adsl.alicedsl.de)
02:39.40*** join/#htc-linux stickboy (n=anonymou@ool-457e4101.dyn.optonline.net)
02:41.57tmzttsc2003 driver: http://marc.info/?l=linux-kernel&m=124515657307667&w=2
03:09.07*** join/#htc-linux mrmoku` (n=mrmoku@ppp-93-104-46-250.dynamic.mnet-online.de)
03:47.23*** join/#htc-linux jaSOnGg (n=IamSOG@218.19.240.75)
03:50.22xsacha-tvtmzt, hey
03:51.49xsacha-tvi found that my LED driver has very very detailed documentation.. it has nice diagrams, explains every gpio, pin function, explains how to read and write to the i2c bus and the electrical format and even has a register list :)
03:51.59xsacha-tvi was wondering with the register list, how do i find the offset?
03:52.51xsacha-tvi have the leds, vibrator and keypad working already but it has very interesting stuff about lighting patterns, wave forms and so on
04:11.05tmztoffset?
04:11.23xsacha-tvto read from memory?
04:11.35tmztmemory?
04:14.35xsacha-tvhmm isnt that where the registers are?
04:15.35*** join/#htc-linux goxboxlive1 (n=jrs@mail2.hjellnesconsult.no)
04:15.52xsacha-tvit shows writing to the registers to change the lighting patterns
04:25.58tmztthe registers are accessed over i2c
04:26.08xsacha-tvoh ok
04:26.28tmztyou need to write an i2c chip driver
04:26.31xsacha-tvi dont know how to use i2c.. is there some sort of writei2c command?
04:26.34xsacha-tvah
04:26.46tmztit shouldn't be spsecic to your device
04:26.58xsacha-tvwell it's not that important. i was just hoping to increase the brightness of blue, for example
04:27.07tmztjust expose the various settings through mfd
04:27.07xsacha-tvwinmo makes blue very dull and almost black
04:27.48tmztthen write a led/backlight driver
04:27.53tmztwhich uses it
04:27.58xsacha-tvok
04:36.35*** join/#htc-linux BHSPitMonkey (n=stephen@unaffiliated/bhspitmonkey)
04:39.22*** join/#htc-linux droid001 (n=mc@p4FDCD7B9.dip.t-dialin.net)
04:48.50*** join/#htc-linux Amaranth (n=travis@ubuntu/member/Amaranth)
04:49.13Amaranthwow, more people than I thought
04:53.56xsacha-tvi found my battery driver uses I2C too, in detail here: http://datasheets.maxim-ic.com/en/ds/MAX8660-MAX8661.pdf
04:54.35xsacha-tvso ill work on those I2C things now. there's an old MAX68xx battery I2C driver but mine is MAX86xx
04:56.11xsacha-tvI2C looks complicated though.. acknowledge bits and 'pulling high' 'pulling low'
04:57.33Amaranthhas anyone ever had linux boot directly on their phone instead of booting from winmo?
04:58.02tmztno except omap
04:58.07tmztwith eol
04:58.13tmztwhat phone?
04:58.32Amaranthkaiser
04:58.41tmztok
05:00.05tmztwe are working on something like that
05:00.24tmztfor kais you probably want to see if dzo has any plans
05:00.27Amaranthi'm sure it'd be complicated since you need some way to update/recover
05:00.43tmztno, spl already does that
05:00.49Amaranthoh, right
05:01.01Amaranthsome kind of RUU-like too then
05:02.29tmztruu is a client for the spl
05:02.38tmztwe would like use htc-flasher
05:03.24Amaranthoh, I thought RUU was the name of the tool
05:03.45Amaranthjust got the kaiser on friday, already flashed it 4 times and installed a couple different android builds on it
05:03.54Amaranthnow I'm trying to make my own
05:04.07tmztok
05:04.34AmaranthI notice the wiki is pretty bare, is there any other place for information on how all this works?
05:08.11tmzthtc-linux.org?
05:08.24tmztwiki.xda-developers.com
05:08.37tmzthow what work exactly?
05:12.18Amaranthtmzt: I dunno, just an overview of what is working and how it was done
05:12.18Amaranthsomewhere to start
05:12.43Amaranthoh, htc-linux.org has different stuff, the topic only links to the wiki
05:23.27tmztyeah
05:24.07tmztI can try to answer questions
05:24.32tmztbut I can't really go through everything right now
05:25.55tmztworking: sd card, display, keyboard, radio/modem, gprs, 3g??
05:26.12tmztaudio routing might be working on kaiser, not sure
05:26.34tmztuh, usb client
05:26.56tmztnot bluetooth or wifi I think, but that should be doable
05:29.29tmztas for how it was done, research on windows dirvers and bootloader code
05:29.37tmzttracing read/writes
05:30.12tmztgoogle android tree with basic support for msm7201A released near the end of 2007
05:32.27Amaranthwifi is actually my main interest at this point
05:32.45Amaranthand getting a build that 1) has a terminal and 2) isn't crashy
05:32.58Amaranthit looks like there is some progress on wifi, was hoping I'd find out more here
05:33.30tmztok
05:33.34xsacha-tvtmzt: my silly samsung tv died :(
05:33.39tmzt?
05:33.43xsacha-tvgonna get it repaired
05:33.47tmztwhat did you do?
05:33.55xsacha-tvnothing! was just watching tv
05:34.10xsacha-tvthe picture died (like the screen backlight) but audio stays on
05:34.18xsacha-tva broken inverter for backlight or something
05:34.27tmztwell, for wifi to work we need to fix mmc clocks
05:34.33tmztoh
05:34.40tmztyeah, sounds right
05:34.47xsacha-tvit's only 2.5 months old:(
05:36.32xsacha-tvnever had a product break on me before.. i usually chuck em out before they break i guess
05:37.29xsacha-tvmy old nokia brick phone is still going. i chucked out my 1988 amiga a couple of years ago
05:38.01xsacha-tvoh well, .. any ideas what i can do for tips on I2c?
05:38.27xsacha-tvshould i work on the old max6875 driver and adapt it for max8660?
05:39.31*** join/#htc-linux marex (n=marex@vasut.kolej.mff.cuni.cz)
05:51.33*** join/#htc-linux pleemans (n=toi@mailhost.infoco.be)
06:02.21tmztxa: probably
06:02.29tmztxsacha-tv:
06:02.43xsacha-tvhi
06:04.12xsacha-tvi've created drivers/i2c/chips/max8660.c , looked at zylonite_battery.dll http://pastebin.com/mf2bcec9 and got some max8660 documentation: http://datasheets.maxim-ic.com/en/ds/MAX8660-MAX8661.pdf
06:04.18xsacha-tvso starting now
06:04.18tmztif the chips are similar enough try addiding the new chip to the old driver
06:04.38xsacha-tvdont think they are that similar
06:05.25xsacha-tv<PROTECTED>
06:07.28*** join/#htc-linux kiozen (n=oeichler@p54921771.dip0.t-ipconnect.de)
06:09.46tmztsounds like 0x81 is the chip address
06:10.12xsacha-tvthats the old max6875 though
06:11.02xsacha-tvon the diagram it says 2-wire I2C, Standard I2C (GPIO32/33) + Power I2C
06:11.17xsacha-tvmean anything:?
06:11.18tmztyou might not even have eeprom
06:11.29xsacha-tvi cant find 'eep' anywhere in documentation
06:13.13tmzt?
06:13.16tmztoh
06:13.27xsacha-tvthere's 2 pages dedicated to explaining how to write to I2C in documentation but it doesnt mention reading..
06:14.25xsacha-tvthis is strange but it says: "Note that the R bit is always zero since the MAX8660/MAX8661 are write only."
06:14.51xsacha-tvR/W (W has a line on top) bit
06:15.43xsacha-tvdon't i want to read values, not write?
06:17.37ali12341shouldn't you be using the kernel i2c code for this?
06:19.37tmztyou write to read
06:19.55xsacha-tvi want to use i2c_smbus_read_i2c_block_data
06:19.59tmztali, any ideas?
06:20.08tmztmaybe
06:20.35xsacha-tvi get that i need to write for it to tell me stuff, but i need to read too right?
06:20.52ali12341there is no reading and writing
06:20.55xsacha-tvthe old max6875 had a CMD_BLK_READ (0x84) that i cant find in the documentation
06:21.00ali12341there is only sending a message and getting a reply
06:21.25xsacha-tvwell yeah i get the sending write bit, but how do i receive reply?
06:21.39ali12341the kernel i2c driver handles it for you
06:21.52*** join/#htc-linux timebomb (n=tb@e179196103.adsl.alicedsl.de)
06:22.05xsacha-tvthe second parameter is a CMD_BLK_READ though, i dont have it
06:23.49xsacha-tvi notice the winmo driver does AND 0xFF (get last 8 bits) and then applies some 10101011 mask (last bit is high for acknowledge)
06:24.01xsacha-tvkernel handles this for me?
06:25.06ali12341the kernel driver handles all the wire details
06:25.33ali12341all you have to do is send the right values
06:25.59ali12341what i2c controller is used?
06:26.11xsacha-tvpxa?
06:26.28ali12341ok, it has a driver already, right?
06:26.49xsacha-tvyes
06:27.00ali12341and you enabled it in the kernel config?
06:27.03xsacha-tvyes
06:27.09ali12341do you have /dev/i2c/0?
06:27.19xsacha-tvprobably
06:28.44ali12341do you have i2c-tools?
06:28.50ali12341for example i2cdump
06:29.20xsacha-tvno
06:30.12xsacha-tvi dont have a /dec/i2c :(
06:30.33xsacha-tv/dev/i2c *
06:30.46ali12341did you compile the driver as modules?
06:30.59xsacha-tvthe controller?
06:31.02ali12341yes
06:31.05xsacha-tvno
06:32.23ali12341did you enable i2c-dev in the kernel?
06:32.57xsacha-tvI2C_CHARDEV ?
06:33.09ali12341probably
06:33.14xsacha-tvyes, enabled
06:33.30ali12341pastebin the .config please
06:34.06xsacha-tvhttp://pastebin.com/m1bf80e0f
06:35.26ali12341maybe you just need to mknod it
06:36.33ali12341mknod /dev/i2c-0 c 89 0
06:37.52xsacha-tvi2c/0 right?
06:38.32ali12341doesnt matter
06:38.35xsacha-tvmy /dev is blank by the way
06:38.41ali12341well that's not good
06:39.17xsacha-tv:\
06:39.43*** join/#htc-linux infernix (i=nix@unaffiliated/infernix)
06:39.47xsacha-tvit creates everything on startup
06:40.15ali12341of course
06:40.25ali12341you need to run mknod on the live system
06:41.50tmzti2c-0
06:43.36xsacha-tvi get <7>i2c-core: driver [max6875] registered
06:44.08tmztdisable that driver
06:44.20ali12341also disable the bit banging gpio driver
06:44.55ali12341and pxa slave
06:45.11ali12341and ocores and simtec
06:45.41xsacha-tvok
06:52.15xsacha-tvall i get now is <6>i2c /dev entries driver   <7>i2c-core: driver [dev_driver] registered
06:59.10*** join/#htc-linux pe7er (n=Adium@f053195042.adsl.alicedsl.de)
07:00.44tmztgood
07:00.59xsacha-tvi had that before as well though
07:03.50tmztbut you have the char driver now right?
07:05.15xsacha-tvwhere is it ? /dev/char?
07:05.25xsacha-tvif i have it now, i had it before :\ nothing changed
07:09.54tmztyou have to mknod it
07:13.43*** join/#htc-linux BabelO (n=fcr@unaffiliated/babelo)
07:16.38xsacha-tvevery time i boot? what do i do with it? i have nothing running over i2c right now
07:30.13xsacha-tv<PROTECTED>
07:31.51tmztthis is for testing
07:32.04tmztyou will use a kernel chip driver later
07:36.52*** join/#htc-linux MethoS (n=clemens@dyndsl-085-016-163-188.ewe-ip-backbone.de)
08:03.06*** join/#htc-linux onen|openBmap (n=quassel@p57BC63D7.dip.t-dialin.net)
08:05.24xsacha-tvgrr, studied this documentation and still cant figure out how to read the replies
08:06.38xsacha-tvit doesnt mention any read byte but says it uses smbus.. smbus required a read byte to read
08:06.57xsacha-tvthen it says write bit is always 0 because it's a write-only device.. im so confused
08:09.02xsacha-tvread bit for max6875 was 0x84.. i could try that
08:09.03ali12341you cant read from it
08:09.29xsacha-tvdont get technical on me, it calls it reading :P
08:09.34ali12341"read bit" is 1 bit, 1 or 0
08:09.41xsacha-tvread byte*
08:09.58ali12341smbus means all messages are 1 byte long
08:10.13ali12341you dont need to read any documentation at that level
08:10.18ali12341because the kernel handles it for you
08:10.28xsacha-tvwell the kernel wants a read byte
08:11.04ali12341read Documentation/i2c/smbus-protocol
08:11.41xsacha-tvi2c_smbus_read_block_data(struct i2c_client *client, u8 command, u8 *values);
08:11.49xsacha-tvthat command has to be the read byte
08:12.09xsacha-tvbut i dont know what it's meant to be
08:13.31ali12341that is for reading a block of reigsters at the same time
08:13.35ali12341read the docs
08:14.05xsacha-tvyeah i need that
08:14.23ali12341you can't read a block of registers, you can't read anything from it if it is write only
08:14.32xsacha-tv*sigh*
08:19.39ali12341i2c-tools has a tool called i2cset
08:20.24ali12341this is the command line: i2cset [-f] [-y] I2CBUS CHIP-ADDRESS DATA-ADDRESS VALUE
08:20.34ali12341so you can already control your chip using it, like this:
08:20.48ali12341I2CBUS is /dev/i2c-0
08:21.16ali12341CHIP-ADDRESS is the slave address of the device which according to the datasheet can only be 0x68 or 0x6a depending how it is wired
08:21.44ali12341DATA-ADDRESS is one of the registers from page 34
08:21.51ali12341and VALUE is the value you want to write
08:22.56ali12341i2c_smbus_write_byte_data is the equivalent kernel api
08:25.16ali12341extern s32 i2c_smbus_write_byte_data(struct i2c_client * client, u8 command, u8 value);
08:26.33ali12341command is the register and value is the value
08:26.53ali12341client is a handle to the device which you have to initialize using the other i2c functions
08:28.19xsacha-tvbut... how do i get a reply?
08:28.29ali12341you dont. ever
08:28.36ali12341the device is write only
08:28.43xsacha-tvwhats the point of this chip. i want voltage/charge level from it
08:28.49ali12341it doesnt do that
08:28.53xsacha-tv:|
08:28.57ali12341the datasheet is very clear
08:29.36ali12341the chip is a power control chip for DC-DC conversion
08:29.58ali12341basically it is used to turn off external devices like bluetooth, wifi, leds etc
08:30.24ali12341the battery level might be another chip on the same i2c bus or it might not
08:30.34xsacha-tvhm, strange. it's the only thing connected to the battery?
08:30.45xsacha-tvi'll look harder then
08:30.59ali12341the battery may have an internal i2c chip
08:34.17*** join/#htc-linux stephan_ (n=stephan@rgnb-5d87d973.pool.einsundeins.de)
09:07.31*** join/#htc-linux pe7er (n=Adium@f053195042.adsl.alicedsl.de)
09:10.21*** join/#htc-linux timebomb (n=tb@85.182.255.196)
09:14.37*** join/#htc-linux pleemans (n=toi@mailhost.infoco.be)
09:29.07*** join/#htc-linux stephan__ (n=stephan@rgnb-5d87c882.pool.einsundeins.de)
09:59.35*** join/#htc-linux pe7er (n=Adium@f053195042.adsl.alicedsl.de)
10:16.17*** join/#htc-linux nebi (n=nebi@217.142.147.19)
10:25.03*** part/#htc-linux stephan__ (n=stephan@rgnb-5d87c882.pool.einsundeins.de)
10:29.06*** join/#htc-linux KindofBlue (n=KindofBl@rgnb-5d87c882.pool.einsundeins.de)
10:39.47KindofBlueHello, I have a HTC Universal running with Debian(Titchy) and Kernel 2.6.21-hh20.
10:42.57*** join/#htc-linux ptitjes (n=didier@212.73.198-77.rev.gaoland.net)
10:59.31*** join/#htc-linux KindofBlue (n=KindofBl@rgnb-5d874633.pool.einsundeins.de)
11:16.29*** join/#htc-linux m0zzie (n=m0zzie@60-241-53-34.static.tpgi.com.au)
11:24.55*** join/#htc-linux dcordes (n=dcordes@unaffiliated/dcordes)
12:27.44*** join/#htc-linux Amaranth (n=travis@74.221.34.123)
12:35.54*** join/#htc-linux BabelO_ (n=fcr@unaffiliated/babelo)
12:45.32*** join/#htc-linux cmonex (n=xy6091@tuhre5zz6u.adsl.datanet.hu)
12:59.32*** join/#htc-linux marex (n=marex@vasut.kolej.mff.cuni.cz)
13:15.47*** join/#htc-linux KindofBlue (n=KindofBl@rgnb-5d87da61.pool.einsundeins.de)
13:17.55KindofBlueHello, I have a HTC Universal running with Debian(Titchy) and Kernel 2.6.21-hh20.
13:18.27KindofBlueWith 2.6.21-hh20 it consumes 30mA in suspend (WinCE 3 mA) this means ca. 2 days (linux) to 20 days (WinCE).
13:18.40KindofBlue<PROTECTED>
13:18.55KindofBlue<PROTECTED>
13:19.16KindofBlueIs there anybody, who has a newer Kernel working on Universal ?
13:19.42*** join/#htc-linux methril|work (n=Methril@213.27.233.98)
13:22.51*** part/#htc-linux pe7er (n=Adium@f053195042.adsl.alicedsl.de)
13:24.09*** join/#htc-linux Slyon (n=lukas@p4FDB384E.dip0.t-ipconnect.de)
13:34.16*** join/#htc-linux Moku (n=John@92.228.159.53)
13:48.34*** join/#htc-linux Shinto (n=John@f048127026.adsl.alicedsl.de)
13:50.21*** part/#htc-linux Slyon (n=lukas@p4FDB384E.dip0.t-ipconnect.de)
13:55.49*** join/#htc-linux Moku (n=John@f049031185.adsl.alicedsl.de)
14:13.23*** join/#htc-linux MethoS (n=clemens@host-091-096-215-205.ewe-ip-backbone.de)
14:16.16*** join/#htc-linux Shinto (n=John@f048106186.adsl.alicedsl.de)
14:23.22*** join/#htc-linux sdt555 (n=titus@147.145.40.44)
14:30.40*** join/#htc-linux Moku (n=John@f054193144.adsl.alicedsl.de)
14:35.32*** join/#htc-linux Shinto (n=John@e181253254.adsl.alicedsl.de)
14:36.59*** join/#htc-linux MethoS (n=clemens@host-091-096-215-205.ewe-ip-backbone.de)
14:37.58*** part/#htc-linux sdt555 (n=titus@147.145.40.44)
14:47.18*** join/#htc-linux Shinto (n=John@f049080178.adsl.alicedsl.de)
14:53.08*** join/#htc-linux Tinyboom (n=nahh@62.84-49-90.nextgentel.com)
14:53.52*** join/#htc-linux MethoS (n=clemens@host-091-096-215-205.ewe-ip-backbone.de)
14:55.25*** join/#htc-linux MethoS (n=clemens@host-091-096-215-205.ewe-ip-backbone.de)
14:58.51*** join/#htc-linux MethoS (n=clemens@host-091-096-215-205.ewe-ip-backbone.de)
15:00.17*** join/#htc-linux MethoS (n=clemens@host-091-096-215-205.ewe-ip-backbone.de)
15:01.32*** join/#htc-linux MethoS (n=clemens@host-091-096-215-205.ewe-ip-backbone.de)
15:06.18*** join/#htc-linux MethoS (n=clemens@host-091-096-215-205.ewe-ip-backbone.de)
15:09.35*** join/#htc-linux MethoS (n=clemens@host-091-096-215-205.ewe-ip-backbone.de)
15:12.57*** join/#htc-linux MethoS (n=clemens@host-091-096-215-205.ewe-ip-backbone.de)
15:16.07*** join/#htc-linux MethoS (n=clemens@host-091-096-215-205.ewe-ip-backbone.de)
15:18.51*** join/#htc-linux MethoS (n=clemens@host-091-096-215-205.ewe-ip-backbone.de)
15:21.24*** join/#htc-linux MethoS (n=clemens@host-091-096-215-205.ewe-ip-backbone.de)
15:30.02*** join/#htc-linux pleemans (n=toi@mailhost.infoco.be)
15:34.58*** join/#htc-linux Moku (n=John@78.48.7.86)
15:50.35*** join/#htc-linux skodde (n=skodde@unaffiliated/skodde)
16:10.13*** join/#htc-linux tcccp (i=hey@2001:470:c926:666:666:666:666:666)
16:10.16tcccpre
16:15.34*** join/#htc-linux pH5 (n=ph5@e178197124.adsl.alicedsl.de)
16:23.18*** join/#htc-linux vts (n=vts@62-47-203-138.adsl.highway.telekom.at)
16:36.12*** join/#htc-linux pe7er (n=Adium@f053195042.adsl.alicedsl.de)
16:37.36*** join/#htc-linux surgex0 (i=surge@pool-98-118-158-217.bflony.fios.verizon.net)
16:38.55*** part/#htc-linux vts (n=vts@62-47-203-138.adsl.highway.telekom.at)
16:48.47*** join/#htc-linux pe7er (n=Adium@f053195042.adsl.alicedsl.de)
16:59.19*** join/#htc-linux kiozen (n=oeichler@rgnb-5d87c2f3.pool.einsundeins.de)
17:04.08*** join/#htc-linux surge (i=surge@pool-98-118-158-217.bflony.fios.verizon.net)
17:05.07*** join/#htc-linux surge (i=surge@pool-98-118-158-217.bflony.fios.verizon.net)
17:08.38*** join/#htc-linux vts (n=vts@62-47-203-138.adsl.highway.telekom.at)
17:08.42*** part/#htc-linux vts (n=vts@62-47-203-138.adsl.highway.telekom.at)
17:08.49*** join/#htc-linux vts (n=vts@62-47-203-138.adsl.highway.telekom.at)
17:08.53*** part/#htc-linux vts (n=vts@62-47-203-138.adsl.highway.telekom.at)
17:34.23*** join/#htc-linux IamSOG (n=IamSOG@218.20.216.58)
17:46.54*** join/#htc-linux swc|666 (n=infidel2@unaffiliated/swc666/x-4934821)
17:47.58*** join/#htc-linux Echo31 (n=olivier@mir31-4-82-240-194-54.fbx.proxad.net)
17:52.52Echo31Hi pH5
17:53.32pH5hej Echo31
17:55.38*** join/#htc-linux vts (n=vts@62-47-211-96.adsl.highway.telekom.at)
17:55.42*** join/#htc-linux TonyDanza_ (n=root@CPE0018394c86b6-CM001ceab59d68.cpe.net.cable.rogers.com)
17:55.50TonyDanza_hey all
17:56.34pH5hej TonyDanza_
17:58.32TonyDanza_so i'm considering moving to an HTC dream (aka G1) from an iphone 2G
17:59.07TonyDanza_however i havnt really seen a whole bunch in the way of 3rd party apps... maybe i'm looking in the wrong places but it dosnt look like there is a huge community behind andriod yet
18:01.55TonyDanza_I'm mainly looking for andriod replacements for my commonly used iphone apps (terminal for SSH etc... irc, MSN messenger)
18:02.11pH5TonyDanza_: did you try #android?
18:02.19pH5this channel is about kernel development
18:07.11TonyDanza_ah
18:07.35TonyDanza_cool. i'll check that out. thanks
18:07.38*** part/#htc-linux TonyDanza_ (n=root@CPE0018394c86b6-CM001ceab59d68.cpe.net.cable.rogers.com)
18:15.52*** join/#htc-linux StarLite (n=nnscript@s55916ca6.adsl.wanadoo.nl)
18:31.43Echo31pH5: I found the correct constants for cpld2 .    http://fr.pastebin.ca/1478616
18:33.12pH5god no, that turns everything on. doesn't .initial_values=0x0003 work?
18:33.29pH5this cpld is strictly output-only?
18:33.57pH5and why NR_BUILTIN_GPIO, what is .gpio_base of cpld1?
18:34.03Echo31pH5: I will retry with .initial_values=0x0003
18:35.26Echo31pH5: I don't yet initialize cpd1
18:35.37pH5ok
18:37.32pH5Echo31: and looking at http://www.htc-linux.org/wiki/index.php?title=CPLD2, HTC_EGPIO_OUTPUT is wrong, too.
18:37.51Echo31pH5: it is failed with .initial_values=0x0003
18:38.04pH5only bits 0-8 are output pins, so .direction should be something like 0x01ff
18:38.31pH5Echo31: really failed or only backlight off?
18:38.39pH5(which is bit 5)
18:39.16Echo31ph5: perhaps blacklight off
18:39.39pH5check that, maybe use 0x0023 until you have fixed up the backlight driver
18:40.29Echo31pH5: .initial_values=0x0003 and .direction= 0x01ff   ->  backlight off : i can try 0023
18:44.37Echo31pH5: It is ok with .initial_values=0x0023 and .direction= 0x01ff
18:44.57pH5ok, let's use that for now
18:46.44Echo31pH5: now, i have to attack cpld1
18:47.08*** join/#htc-linux dicki (n=dicki@cpc3-rdng6-0-0-cust831.winn.cable.ntl.com)
19:01.07Echo31pH5: for cpld1 starting, can I initialize only the 4 first output registers? .initial_values is it necessary ?
19:08.04*** join/#htc-linux pleemans (n=toi@d54C2AAB7.access.telenet.be)
19:08.11*** part/#htc-linux dicki (n=dicki@cpc3-rdng6-0-0-cust831.winn.cable.ntl.com)
19:28.58*** join/#htc-linux cr2 (n=cr2@ip-90-186-120-36.web.vodafone.de)
19:29.25cr2kiozen: here ?
19:30.08kiozencr2: hi
19:30.43cr2hi kiozen
19:30.49cr2some news about n560
19:31.02cr2the pwm1 is lcd contrast
19:31.19kiozenoh it has contrast?
19:31.22cr2and some guy has written the driver for leds
19:31.49cr2he has merged too much from loox720, but still it's some progress.
19:32.31kiozencool
19:32.44kiozenBabelO is doing track recording right now
19:32.51cr2is n520 verx different from n560 ?
19:33.00kiozenafaik yes
19:33.01cr2in M ?
19:33.06kiozenyes M
19:33.22kiozenand I should finetune waypoints
19:33.31kiozenand backlight  handling
19:33.38cr2i think they changed the LCD parameters for n520, but reuse the n560 core
19:33.42cr2ok
19:33.49cr2think about contrast :)
19:34.12*** part/#htc-linux vts (n=vts@62-47-211-96.adsl.highway.telekom.at)
19:34.18cr2even jornada820 had lcd contrast, but then all devices were made bkl-only
19:34.29kiozenshould I update kernel fom cvs
19:34.31kiozen?
19:35.15cr2pH5: does 2.6.30 magician support resume and pxa uart power ?
19:35.53cr2kiozen: something needs to be decided. should we port n560 to 2.6.30 ?
19:36.25kiozenI vote for yes, because bt is buggy like hell right now
19:36.38cr2ok
19:37.04cr2with the cpld for athena we will have enough experience for n560
19:37.19cr2afair the n560 cpld does not have irqs ?
19:37.46kiozenyou ask the wrong one :)
19:38.17pH5cr2: I've got resume working in my dev tree.
19:38.44pH5instead of uart power, I've got an rfkill driver to power the calypso chip.
19:39.09cr2kiozen: http://www.akshaal.info
19:39.25pH5but there's a patch by marex pending iirc
19:39.49cr2pH5: we have bt and gps on uarts. rfkill for gps too ?
19:40.21kiozencr2: cool
19:41.01cr2kiozen: the leds and contrast are cool, the rest looks like a big mess in his patches
19:41.31cr2kiozen: and he missed several things about bitbang spi & things
19:41.32kiozenlol
19:41.54cr2i may check the loox720 resume patch, though
19:42.46cr2kiozen: he uses the 720 cpld driver with htc-egpio. and resume code from 720 and from n560. that can't be good.
19:43.02cr2i'd like to know if he can resume...
19:43.28Echo31Hi cr2
19:44.07pH5cr2: nah, certainly not. even for bt/gsm power it's not really the right thing (at least if the chips have a powered-but-rf-silence setting).
19:44.33cr2hi Echo31
19:44.47cr2pH5: yeah, but nobody has a better idea ;)
19:44.52pH5if the gps powers up fast, powering via uart open is ok (like ir transceivers)
19:45.04pH5otherwise we are supposed to do it in userspace if i understood correctly.
19:45.23pH5it's now possible to export gpio pins to sysfs
19:45.27Echo31cr2: with the help of pH5, finally, i can initialize  athena cpld2
19:45.56*** join/#htc-linux vts (n=vts@62-47-211-96.adsl.highway.telekom.at)
19:45.59*** part/#htc-linux vts (n=vts@62-47-211-96.adsl.highway.telekom.at)
19:46.02cr2pH5: ok, that's a possible solution too.  rfkill is a hack.
19:46.41cr2but the driver should still check if the power is applied, and reject to start if it is not.
19:47.12cr2Echo31: great :) what about cpld1 ? it's just a last small step :)
19:48.33cr2kiozen: did we document the gpio 114,115,116 state machine for switching the pxa speed ?
19:49.21kiozen114  ???  output, turbo mode=1,standart=0, power-saving=1 or 0
19:49.22kiozen115 ??? output, turbo mode=1,standart=1, power-saving=0
19:49.24kiozen116 ??? output, turbo mode=0,standart=1, power-saving=0
19:50.08cr2i had some notes, but after moving to Munich i can't find anything. even for athena ;)
19:51.24cr2kiozen: if you change from one frequency to another ( there are 3 states ?), then these gpios are changed in a certain sequence. it's easy to trace them
19:51.51cr2i think 624MHz, 104MHz and something in between
19:54.21kiozenyes if I recall right there are 4 steps
19:54.47kiozenbut speed scaling always seemed to work
19:54.59cr24 is "floating"
19:55.47Echo31cr2: For now on cpld1, the following constants of .initial_values , the LCD displays strange colors, and it powers off.
19:56.26cr2Echo31: post the full config
19:56.42cr2Echo31: i'll look for the pd 0x08000000 0x20 dumps
19:59.49Echo31cr2: i tried the code hereafter for cpld1 : http://fr.pastebin.ca/1478709
20:02.22cr2Echo31: the direction needs to be fixed
20:02.48cr2what is 0x20 bit for cpld ?
20:04.04cr25   0x0020   backlight pwr (on=1)
20:04.14cr2is it really necessary on boot ?
20:05.01cr2imvho it's a good practice to shutdown the bkl, lcd, wifi, bt and so on in haret boot script
20:05.28cr2we can't do it for the lcd right now, but the bkl should not be a problem.
20:05.32Echo31cr2: i don't know. I tried few possible values
20:05.47cr2Echo31: for what ?
20:06.22cr2Echo31: does it boot with 0x3 value ?
20:06.35Echo31cr2: I have tried of value for LCD pwr on
20:06.36cr2backlight will be down, but it's not dramatic
20:06.51cr2yes, lcd is 0x3
20:07.32cr2for cpld there are charging gpios. i think we didn't really trace them yet ?
20:07.42cr2s/cpld/cpld1/
20:08.36cr2compiled snd for raph100 :)
20:11.20Echo31cr2: the cpld2 works only 0x0023 et 0x01ff
20:13.29cr2Echo31: backlight bit 0x20 is always on ?
20:14.17Echo31cr2: for the Gpin ?
20:14.21cr2what is 'pd 0x09000000 4' with backlight off ?
20:14.27pH5cr2: if this is power to the backlight, that 0x0020 cpld gpio should be requested/handled/freed by the pwm-backlight's .init/.notify/.exit methods.
20:15.07cr2pH5: it's a 'backlight related' gpio. there are some others too.
20:15.54cr2tmzt: /dev/msm_snd is there now.
20:16.00pH5on magician I have 2 gpios for the backlight
20:16.36cr2tmzt: but there is no userspace code to call its ioctls, though it's not difficult to write it from scratch.
20:17.20cr2pH5: i think we'd fix more important things first, before the bkl :)
20:18.00pH5cr2: so leave the initial value at 0x23 for now, until the backlight is handled properly
20:18.12cr2Echo31: if disabling the 0x20 bit does not break the LCD, we should disable it.
20:18.19cr2pH5: ok
20:19.27pH5otoh, if it is driven by a pxa pwm on athena too, this really is one low-hanging fruit :)
20:19.31cr2Echo31: let's look at the cpld1 directions, then the code looks reasonable to me.
20:19.41cr2pH5: yes, pwm0
20:20.20cr2pH5: on n560 the bkl is on pwm0 and contrast is on pwm1. can the current code handle that ?
20:22.58cr2pH5: what is the real purpose of an "input" gpio for cpld ?
20:23.09pH5cr2: I don't think there's a driver for that in mainline yet.
20:23.12cr2pH5: if it's a non-irq gpio of course
20:23.26cr2ok, then we need to think about it.
20:23.55pH5basically, you'll have to implement an lcd_device for that
20:24.01cr2the input gpio prevents writing to it, that's ok
20:24.22cr2but i still can read the state of an output gpio...
20:24.25pH5exactly. that's all, to tell the gpio API that gpio_direction_output calls should fail
20:24.40cr2ok
20:24.44pH5sure, usually that's the driven state
20:25.32Echo31cr2: You want change for cpld2 .initial_values=0x0023 to .initial_values=0x0003
20:25.46cr2ok, then we may declare input only the unknown gpios and irq
20:26.08cr2Echo31: yes.
20:26.18pH5Echo31: eventually, yes. then you'll have to add that gpio to the pwm-backlight driver so it can enable it.
20:26.29pH5cr2: yes, that's what I would suggest.
20:26.32Echo31cr2: the LCD powers off
20:26.34cr2Echo31: the bl driver should take care about its power.
20:26.46cr2Echo31: ok, leave it enabled.
20:27.00cr2must be some common lcd/bkl power pin.
20:27.32pH5is athena transflective?
20:27.45cr2Echo31: can you boot with backlight off ?
20:29.00Echo31cr2: perhaps, but how i can check it.
20:29.06cr2Echo31: i mean if the LCD is completely off, or it's just hard to read with bkl off
20:29.24cr2hmm. not with mainline haret ;)
20:30.15cr2Echo31: put the bkl brighness to a minimum/disable it in wince settings
20:32.16cr2lol
20:32.17Echo31cr2: The Athena AP4 is not easy to change this value. I try
20:32.53cr2playwav -rec /tmp/rec.wav says "ARM9 has CRASHED"
20:33.54pH5lol
20:34.41cr2Echo31: ok, let's finish with cpld1 first
20:35.16Echo31cr2: ok
20:35.32cr2the direction is ok.
20:35.39cr2initial values.
20:36.31cr2why is G 0x20 ? is it a wince value ?
20:37.13cr2pH5: does the "initial_value" make sense for an input gpio ?
20:37.20pH5no
20:37.39Echo31cr2: because; the cable usb is plugged
20:37.46cr2for D
20:37.48cr2<PROTECTED>
20:37.59cr2GPIOD7   0x0080   lcd bkl related (on=1)
20:38.37cr2Echo31: GPIOG5   0x0020   1582 present, CPLD2 location (get)
20:39.09pH5given that, I think the htc-egpio driver should either use (.initial_values & .direction) as initial values and/or at warn when (.initial_values & ~.(direction)) != 0
20:39.11cr2Echo31: it's an input gpio that tells you that CPLD1 is at 0x09000000
20:39.15Echo31cr2: It is my usb client
20:39.51cr2Echo31: then your device setup is different from mine.
20:39.54Echo31cr2: ok
20:40.18cr2usb detect is here for me: GPIOE4   0x0010   USB cable irqack
20:40.57cr2Echo31: "preserving" the input gpio does not make sense anyway.
20:41.13pH5cr2: that's probably only the edge detect. there could be an input level bit, too
20:41.53cr2pH5: didn't see any. also not in the wince drivers
20:43.37cr2Echo31, pH5 the rest looks good for me
20:43.37*** join/#htc-linux stickboy (n=anonymou@ool-457e4101.dyn.optonline.net)
20:43.37cr2Echo31: can you remove this 0x20 and boot with this config ?
20:43.51Echo31cr2: i change Gpin 0x20 to 0
20:44.07cr2ok
20:44.37cr2pH5: any comments ?
20:46.11cr2Echo31: the usb client will not work anyway.
20:46.14pH5well, the irqack register shouldn't be registered with the gpio api
20:46.30pH5if it contains the edge detect status
20:47.03cr2pH5: it's tested (for demux) and cleared.
20:47.12Echo31cr2: the LCD become white , pink and after black
20:47.54cr2Echo31: what is the wince "initial" setup ?
20:48.33cr2GPIOD2   0x0004   LCD panel bit2 (get)
20:48.43cr2GPIOD4   0x0010   LCD panel bit4 (get)
20:48.44pH5cr2: yeah, so that egpio_cpld1_chips[4] should be removed from the list
20:48.53cr2we should preserve these bits
20:49.00Echo31cr2: I remove the part on the irqack
20:49.13cr2pH5: ok
20:49.14pH5cr2: what does (get) mean? isn't that an input
20:49.17pH5?
20:49.40cr2pH5: it's not written , but queried
20:49.40pH5also, I'd remove those .initial_values = 0x00 lines, that's just noise.
20:50.08cr2pH5: but with these 2 LCD bits, it's strange. because sometimes they are written.
20:50.09pH5cr2,Echo31: then .direction shouldn't be HTC_EGPIO_OUTPUT for the D bank
20:50.15pH5ah, ok
20:50.53*** join/#htc-linux swc|666 (n=infidel2@unaffiliated/swc666/x-4934821)
20:51.03Echo31cr2 : I remove only the  initial_values for irqack?
20:51.32cr2pH5: first i've thought it's an LCD panel id, but later saw some piece of code that writes there.
20:51.41pH5Echo31: no, the complete E bank htc_egpio_chip shall be removed
20:52.03Echo31cr2: The last time, you said a output
20:52.36cr2Echo31: what values for these 2 bits you have in wince ? have your checked your wince dmesg ?
20:52.46cr2i'll look in my logs
20:54.36*** join/#htc-linux pe7er (n=Adium@f053195042.adsl.alicedsl.de)
20:55.16Echo31cr2: I remove Ebank and i shift the gpio_base
20:58.04cr2ok
20:58.20cr2can't find my athena dmesg
20:59.44cr2<PROTECTED>
20:59.51cr2<PROTECTED>
21:00.07cr2let's check
21:00.35Echo31cr2: after the changes, athena boots, the LCD become grey and after white
21:00.47cr234 , ca , 5b, 90, 00, ff , 21, a
21:01.05cr2Echo31: we need to preserver the 2 LCD bits
21:01.46cr2A=34, B=ca, C=5b, D=90, E=00, F=21, G=a, H=0 afair
21:02.00*** join/#htc-linux onen|openBmap (n=quassel@mry91-1-89-87-198-158.dsl.club-internet.fr)
21:02.41cr2[Sa Jun 27 2009] [14:31:44] <cr2>       HaRET(1)# pd 0x08000000 0x100
21:02.43cr2[Sa Jun 27 2009] [14:31:44] <cr2>       08000000 | 00000004 00500013 00fe0000 000a0021 | ......P.....!...
21:02.44cr2[Sa Jun 27 2009] [14:31:44] <cr2>       08000010 | 00000000 00000000 00000000 00000000 | ................
21:02.50cr2yes, 0
21:03.19Echo31cr2: i take your contants of each bank ( E is removed)
21:03.40cr2no, i need to look what do they mean
21:04.40cr2GPIOA3   0x0008   battery related (bic,orr) msleep10+spi
21:04.50cr2this bit is set. charging ?
21:05.24cr23 is bt power. not needed
21:05.58cr2B=0
21:06.59cr2C=0
21:08.01cr2GPIOD4   0x0010   LCD panel bit4 (get)
21:08.04cr2this bit is set
21:08.27cr2GPIOD7   0x0080   lcd bkl related (on=1)
21:08.34cr2this one was not set for me
21:08.45cr2GPIOD6   0x0040   SD power (on=1)
21:08.48cr2but i had this one
21:09.09cr2ok, so bit2=0 and bit4=1
21:09.18cr2E dropped
21:09.33cr2F input
21:09.57cr2fe/ff
21:10.26cr2so, these isp1582 bits are set.
21:10.39cr2G input
21:11.01cr2a=8+2
21:11.11cr2unknown
21:11.21cr2hm. sorry
21:12.42cr221
21:12.45cr2GPIOG0   0x0001   battery related (get)
21:12.50cr2status ?
21:13.02cr2Echo31: is our battery full charged ?
21:13.41Echo31cr2: now the led is orange ( soon green)
21:13.47cr2also keep in mind that the +0xe register is missing
21:14.14cr2Echo31: dump the cpld1 regs, when the led is green
21:14.52cr2<PROTECTED>
21:14.54cr2<PROTECTED>
21:15.01cr2Echo31: = 8 ?
21:15.07cr2pH5: right ?
21:16.11Echo31cr2: now i have
21:16.11Echo31[6] ={
21:16.11Echo31.reg_start = 7,// Bank H  Output
21:16.11Echo31
21:16.23Echo31cr2: E is dropped
21:16.26cr2Echo31: i think it should be 8
21:16.42cr2pH5: need a comment :)
21:17.14cr2Echo31: it's offset is 8*2=0x10
21:17.45Echo31cr2: it is the 8th register
21:17.54cr2yes
21:18.38cr2should be I actually
21:18.54tmztcool
21:18.59tmztwhat was missing?
21:20.25cr2tmzt: what android code calls msm_snd ioctls ?
21:20.43cr2tmzt: to select the input/output device
21:21.11Echo31cr2 : for you  offset = .reg_start ?
21:21.27cr2tmzt: i suggest to create a wiki table for the ADSP queues and such things.
21:21.51cr2Echo31: yes, but we need to ask pH5. i'm too lazy to look into the actual code.
21:22.23cr2tmzt: so we may have a side-by-side comparison of dzo amss4, amss6210,amss6220,...
21:22.27tmztI think acoustic
21:22.42tmztwhatever it is we don't have source
21:23.00cr2which .so ?
21:23.04tmztit might be libhardware actual, but legacy doesn't have it
21:23.14tmztnot sure
21:23.21tmztJr: ping
21:23.37pH5what's the problem? the H bank was reg_start=8 before, which was correct
21:24.19cr2pH5: i see in the patch .reg_start = 7,     // H  Output
21:25.01pH5yeah, please disregard
21:25.16pH5the eighth register is number 7
21:25.28cr2tmzt: eh ? /dev/msm_audpre
21:25.46cr2pH5: H is +0x10
21:25.55cr2pH5: in the list
21:26.34cr2tmzt: and /dev/msm_pcm_ctl
21:27.07cr2<PROTECTED>
21:27.27cr2HANDSET
21:27.28cr2HEADSET
21:27.30cr2CARKIT
21:27.33pH5so H is the 9th register?
21:27.47pH5if so, .reg_start = 8
21:28.25cr2tmzt: _ZN7android31check_and_set_audpre_parametersEPci
21:28.32cr2pH5: yes, that's what i say
21:28.36Echo31H is 7th or 8th ?
21:28.43cr28th
21:28.51cr2from 0, so it's 9th :)
21:29.23cr2tmzt: _ZN7android30check_and_set_audpp_parametersEPci
21:29.29pH5but I thought this thing only has 8 registers, 4 + irqack + 3 more?
21:29.47*** part/#htc-linux Echo31 (n=olivier@mir31-4-82-240-194-54.fbx.proxad.net)
21:30.41cr2pH5: yes, but there is a hole at +0xe
21:31.05pH5aha
21:31.14*** join/#htc-linux Echo31 (n=olivier@mir31-4-82-240-194-54.fbx.proxad.net)
21:31.27cr2tmzt: yeah, objdump -d --demangle=gnu libhtc_acoustic.so
21:31.40cr2tmzt: 00003190 <snd_get_endpoint>:
21:31.59Echo31cr2: find the updated code http://fr.pastebin.ca/1478826
21:32.43cr2<PROTECTED>
21:32.44cr2<PROTECTED>
21:32.56cr2pH5: what should be at the .end ?
21:33.26pH5.end = .start + size - 1
21:33.41cr2ok
21:33.52cr2Echo31: G and H don't need .initial
21:33.57pH5in your case 0x10-1 seems to be the right choice?
21:34.39cr2Echo31: add the comment to 0x10 .initial that it's LCD panel bit
21:34.41Echo31cr2:  i remove initial of G and H
21:35.12cr2pH5: 0x10 ?
21:35.46cr2pH5: isn't it 0x12 ?
21:36.03pH5yeah. I think I'm going to resign from this discussion now :)
21:36.15cr2:)
21:36.38cr2pH5: it's just a complex driver with no docs.
21:40.35*** join/#htc-linux Squarc (n=Squarc@82-217-32-29.cable.quicknet.nl)
21:42.57cr2Echo31: does it boot now ?
21:45.48Echo31cr2: the LCD is grey and after brightness
21:47.20cr2Echo31: add the bkl bit to .initial
21:48.10Echo31cr2: on cpld2
21:48.26cr2GPIOD7   0x0080   lcd bkl related (on=1)
21:48.35cr2on cpld1
21:48.41Echo31cr2: ok
21:48.42cr2and 0x23 for cpld2
21:51.20Echo31cr2; the LCD become red and after black
21:51.27cr2hmm
21:52.14cr2something is wrong then
21:53.24Echo31cr2: I resend the code http://fr.pastebin.ca/1478871
21:55.01cr2change to 0x12
21:55.07cr2<PROTECTED>
21:55.09cr2?
21:56.46*** join/#htc-linux Jim_P (n=Miranda@p57BB277F.dip.t-dialin.net)
21:58.43Echo31cr2: the same thing
22:02.36cr2yeah. dfficult without a serial console
22:06.15*** join/#htc-linux Squarc (n=Squarc@82-217-32-29.cable.quicknet.nl)
22:12.38Echo31cr2: Perhaps a undefined gpio from cpld1  with a  incorrect init_value
22:12.39tmztdoes usb work?
22:12.59tmztnewer kernels should support usb console
22:13.05tmztwith serial gadget
22:13.59Echo31tmzt : with  usb host
22:15.44cr2tmzt: usb client does not work
22:15.50cr2it's isp1582/3 chipset
22:16.31cr2there is old philips-written driver, but it's not very useful
22:17.36*** join/#htc-linux Squarc1 (n=Squarc@82-217-32-29.cable.quicknet.nl)
22:20.33tmztah
22:21.34cr2Echo31: if you don't touch the cpld gpios, nothing should actually happen
22:23.03cr2Echo31: how does your cpld2 declaration looks like ? can you post the whole file ?
22:24.05Echo31cr2: ok
22:25.46Echo31cr2: find http://fr.pastebin.ca/1478904
22:26.28cr2.gpio_base = NR_BUILTIN_GPIO + 64  ?
22:26.47cr2why 64 ?
22:26.50Echo31cr2: I can remove 8 for the  gpio_base of cpld2
22:27.16Echo31cr2: it was 8*8 now 8*7
22:27.57cr2the irq pins do not count ?
22:28.40*** join/#htc-linux MrKeuner (n=This@unaffiliated/mrkeuner)
22:29.08cr2ok
22:29.18Echo31cr2: for 64 , I don't think a big importance
22:29.35*** join/#htc-linux MethoS (n=clemens@host-091-096-215-205.ewe-ip-backbone.de)
22:30.28cr2you should not create holes
22:30.37cr2<PROTECTED>
22:30.38cr2<PROTECTED>
22:31.46Echo31cr2: where are the holes?
22:32.28cr28*8
22:33.29cr2again .initial_values for HTC_EGPIO_INPUT
22:33.57Echo31cr2: if I comment cpld1, the cpld2 works with 8*8
22:34.09cr2tmzt: so, what is your idea to debug adsp ?
22:34.43cr2Echo31: cpld1 only ?
22:35.25Echo31cr2: I can try.
22:37.58Echo31cccr2: It is the same behaviour that cpld1+cpld2
22:50.54*** part/#htc-linux MrKeuner (n=This@unaffiliated/mrkeuner)
23:05.28*** join/#htc-linux nebi (n=nebi@217.142.147.19)
23:07.00tmztcr2: I think we can dump rpc packets in the kernel on a g1
23:09.26cr2tmzt: does not help -> different amss
23:09.51cr2on wince i have traced all the packets.
23:10.22cr2it's more about the adsp config differences.
23:11.50cr2this adsp driver is a google cuckoo's egg
23:14.20cr2good night
23:17.56*** join/#htc-linux darkstar62 (n=darkstar@97-126-107-190.tukw.qwest.net)

Generated by irclog2html.pl Modified by Tim Riker to work with infobot.