Amaury Pouly
1b6e8cba62
imx233: make sure dma descriptors are cache friendly
...
Because DMA descriptors needs to be committed and discarded from
the cache, if they are not cache aligned and/or if their size
is not a multiple of cache ligne, nasty side effects could occur
with adjacents data. The same applies to DMA buffers which are
still potentially broken. Add a macro to ensure that these
constraints will not break by error in the future.
Change-Id: I1dd69a5a9c29796c156d953eaa57c0d281e79846
2012-05-20 01:35:25 +02:00
Amaury Pouly
1adc474771
imx233: fix sd window size test
...
Change-Id: I8e35e108871677d4ad85c9c702d1d7e67b598c7e
2012-05-20 01:35:24 +02:00
Amaury Pouly
e1713fd902
imx233: remove useless alignments in linker scripts
...
Change-Id: I7fc5445f405e1a3e8830ddec2f7652e66a03a633
2012-05-20 01:35:24 +02:00
Amaury Pouly
391f3ea2ae
Cosmetics
...
Change-Id: I6ad5b6c2e4f8f57db2068fe372ab4ecadf4d03a9
2012-05-20 01:35:24 +02:00
Amaury Pouly
58f8bddf88
zenxfi2: add fmradio i2c glue
...
Change-Id: Ifa8781b3c416002355b17591a4fdbed8a20979a8
2012-05-20 01:35:24 +02:00
Michael Sevakis
c2e9c93563
lcd-ssd1303: Fix big oops putting height where there should've been width.
...
Rid code of dar commasar and substitute huggy braces while we're at it. :P
Change-Id: If91974b93660bb0de32a0c92629eb83cea99d266
2012-05-19 17:21:54 -04:00
Michael Sevakis
b1dcd298c7
ssd1303: make sure sansa clip and whatever others clip updates properly.
...
Sometimes I do want to update outside the screen boundaries and it was
messing it up; such things should not cause display problems.
Change-Id: Ic9deec609b19e5a1c603601b20c66599dd44f892
2012-05-19 14:05:11 -04:00
Amaury Pouly
e401683482
zenxfi3&stfm1000: implement fmradio i2c and debug screen
...
Change-Id: I83dbdee13185d9adcf590dc213da5a8c97adb2ba
2012-05-19 18:04:25 +02:00
Amaury Pouly
a42f5736b1
Restore backtrace which was accidentely commented out
...
Change-Id: Ic6e945ffa5b83a38efdbecc3aea2433b1d91bb45
2012-05-19 16:55:07 +02:00
Amaury Pouly
12c64a4b79
Initial commit for the Creative ZEN X-Fi2 and X-Fi3 ports
...
These are really similar devices so one commit for both is ok.
Change-Id: I8bd1d3fef1eb6d00aaadfb7af56c771f62d0c9c3
2012-05-19 16:10:52 +02:00
Amaury Pouly
8b53c0f9a9
imx233: completely rework the sd driver
...
Change-Id: I456df0d9f5eaee435bdfd5a3f667055715e53d2a
2012-05-19 16:10:52 +02:00
Amaury Pouly
3f59cf9708
imx233: fix compilation for target with HAVE_BUTTON_DATA defined
...
Change-Id: I9d92320b1e545b7ac3983b7f9904f281028cc22d
2012-05-19 16:10:52 +02:00
Amaury Pouly
85d5c19347
imx233: add touchscreen driver
...
Change-Id: I406076d110e33cdae871222191d82262fabcf16a
2012-05-19 16:10:52 +02:00
Amaury Pouly
247e611f49
imx233: add stub nand driver
...
Change-Id: I6ed3d274b27eb56afb8289cba1b11bceb74bac12
2012-05-19 16:10:52 +02:00
Amaury Pouly
9d87113958
imx233: add pwm driver
...
Change-Id: Ib920b119f52b492247d75e97c5ec9298146d583c
2012-05-19 16:10:52 +02:00
Amaury Pouly
55e01b8de4
imx233: enhance lradc driver with touchscreen specific stuff
...
Change-Id: I83759a00257274c0cbde5a78306256abd2c83800
2012-05-19 16:10:52 +02:00
Amaury Pouly
01216c5ad3
imx233: add lcdif width define
...
Change-Id: I7649dd15b938e2eb6a2e9d3709fa268def72498a
2012-05-19 16:10:52 +02:00
Amaury Pouly
70253f80bc
imx233: fix i2c to be more correct
...
Change-Id: Ib707a0b87d01f24eeccc39c6cbc1c015456fd503
2012-05-19 16:10:52 +02:00
Amaury Pouly
07138ba2ba
imx233: move the freescale partition handling to its own file
...
The freescale firmware partitions has a lots of quirks that
need to be dealt with, so do it the proper way.
Change-Id: I8a5bd3fb462a4df143bc6c931057f3ffedd4b3d3
2012-05-19 16:10:52 +02:00
Amaury Pouly
61b129ac1e
imx233: add gpmi stubs
...
Change-Id: I5ddcf392e6ffc27513170b1ee768c96cdc5a83d4
2012-05-19 16:10:52 +02:00
Amaury Pouly
bbbfd9f3d3
imx233: add dma channel defines
...
Change-Id: I462cfa338ded85aca4bb00ec91f144bb17136dbe
2012-05-19 16:10:52 +02:00
Amaury Pouly
d57e1e048e
imx233: add icoll debug screen
...
Change-Id: Icbd91c2ea24dcf61cc6a649122263a4354f09ff4
2012-05-19 16:10:52 +02:00
Amaury Pouly
068443caaf
imx233: move away timer defines from imx233.h
...
Change-Id: I9f721ae12a3ddf72c4e90ad0754a5c2b819847bb
2012-05-19 16:10:52 +02:00
Amaury Pouly
9ced006c06
imx233: move icoll stuff to its own file
...
The icoll code now has an IRQ storm detection mechanism which
will prevent the device from hard freezing in case it happen.
Change-Id: I9861238dce61d29af1e48f9c534ec63a7f23465c
2012-05-19 16:10:51 +02:00
Amaury Pouly
553aeae9c6
imx233: fix clkctrl naming
...
Move to a more consistent naming convention like the other devices
Change-Id: I4ddbbee27ee9f5ae775c5776592ec7ce02b30948
2012-05-19 16:10:51 +02:00
Amaury Pouly
9022c69b64
fuze+: fix lcd_on comment and storage qualifier
...
Change-Id: Iaf06ecd30559ac07b760f6a01ff920fdbacb398e
2012-05-19 16:10:51 +02:00
Amaury Pouly
25feb00a64
imx233: rework adc battery temperature sensor handling
...
Change-Id: I770729d7246b0ad8bc6fc5d6e45861325f6b790c
2012-05-19 16:10:51 +02:00
Amaury Pouly
692338629b
imx233: move rtc init from drivers/ to firmware/
...
Change-Id: Id816987a4bb1191d5c9cf8a85c51d75fbb2da7c8
2012-05-19 12:57:42 +02:00
Amaury Pouly
2837555e09
imx233: add rtc functions related to msec
...
Change-Id: I3ed7469150920f3d7ac6c4218c2165fec547a422
2012-05-19 12:57:42 +02:00
Amaury Pouly
1d21e54fc4
fuze+: add RDS support
...
I successfully identified the STC/RDS pin as B2P27.
Strangely the OF uses polling instead of interrupts
but since they routed it, let's use it! On the fuze+
the fmradio i2c uses bit toggling so we can't read
the RDS data in the interrupt context. Instead we
defer the work to a thread.
Change-Id: Iedfa425320e6c91b4351b72e97c732696bdb2b73
Reviewed-on: http://gerrit.rockbox.org/236
Reviewed-by: Bertrik Sikken <bertrik@sikken.nl>
Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
2012-05-12 13:09:06 +02:00
Amaury Pouly
645680d62b
imx233: add pinctrl debug code to track pin uses
...
Past development has proved that one can mistakely use
the same pin for two uses without noticing. Since this
causes extremely hard to find bugs, the infrastructure
will allow to register pin uses and panic when a conflict
is detected. The pinctrl debug now shows the pin uses
when its support is compiled in.
Change-Id: Idb2d5235ce09207d77aa474d6f158e72b933761a
2012-05-10 00:13:11 +02:00
Nils Wallménius
2dda258f99
Remove STATICIRAM hack
...
It was only needed by the old arm toolchain that we no longer use or support.
Change-Id: Id0e6c67477f8834a637079b03cde5fbf9da68b1c
Reviewed-on: http://gerrit.rockbox.org/233
Reviewed-by: Nils Wallménius <nils@rockbox.org>
2012-05-08 22:46:12 +02:00
Amaury Pouly
3c26f131df
fuze+: don't touch B1P{22,24} in lcd code since these are used by the tuner
...
Change-Id: Icdb328b939902c4f8e57a76d27296d58b9548aab
2012-05-08 14:07:40 +02:00
Rafaël Carré
7ca2081036
remove debug-target.h
2012-05-07 00:55:59 -04:00
Rafaël Carré
cf090209a4
Sansa AMS: more compat irq names
2012-05-07 00:02:13 -04:00
Rafaël Carré
2eccc02d7d
sansa AMS: i2s_reset() is never used
2012-05-06 23:47:05 -04:00
Rafaël Carré
65bb8e4452
Remove extraneous parens
2012-05-06 23:13:34 -04:00
Michael Sevakis
b4eec0dd42
Make INITDATA_ATTR work on everything that has INIT_ATTR enabled for code.
...
Change-Id: If9936bfbbd3bc3eb2a3e3e290701b8517eabfb13
2012-05-01 01:28:50 -04:00
Marcin Bukat
bde57c5df7
rk27xx: ungate all clocks before jumping into rolo'ed code. This should fix booting OF this way
...
Change-Id: I2c1676227a7218708d9858648c262d5fccb922f7
2012-04-30 23:17:29 +02:00
Rafaël Carré
d7ead706a7
AMSv1: rename USB interrupt handler
...
Fix FS#12660 (broken in c9c13497
)
2012-04-30 14:24:34 -04:00
Andrew Ryabinin
b6f8a01be0
Missing semicolon.
...
Change-Id: I6b6bfcfdc34662052169ddd1e54369de67438545
2012-04-30 22:18:55 +04:00
Andrew Ryabinin
58dd21daea
hm60x: Calibrated discharge curve.
...
Change-Id: I1f2ba69d37931d9ac62479c0e68f8ba251d30819
2012-04-30 22:09:45 +04:00
Rafaël Carré
c9c1349773
usb-s3c6400: merge the 2 drivers
...
Player-specific code remaining: usb_drv_(init,exit)
The iPods lack a MMU, so:
- physical, virtual, and uncached addresses are identical
- since we can't access uncached memory we discard caches when receiving data
Still not quite reliable on nano2g
Change-Id: Iebb79df64818b9ae3b68eccb8be8975ebd6c21ea
2012-04-28 16:01:57 -04:00
Marcin Bukat
2bafdae6b1
rk27xx: Do not turn off clocks in bootloader as this breaks OF loading
...
Change-Id: I8e2fb06e82f33c3cf841a125c13e56401c58b12d
2012-04-27 16:19:42 +02:00
Andrew Ryabinin
ab01d5d8c2
Fix red.
...
Change-Id: I4e132dfd8c4821715e123decbfb6b130903d6d4a
2012-04-26 14:32:06 +04:00
Andrew Ryabinin
56e406d9b6
hm60x/hm801: Increase backlight frequency. This will remove background hiss.
...
Change-Id: I3b51dc5592c069745a62f21f6f9004c79a1f3985
Reviewed-on: http://gerrit.rockbox.org/225
Tested-by: Andrew Ryabinin <ryabinin.a.a@gmail.com>
Reviewed-by: Marcin Bukat <marcin.bukat@gmail.com>
2012-04-26 12:25:37 +02:00
Andrew Ryabinin
1060d30bdd
hm60x: Fix charger detection.
...
Change-Id: Icde96e90303a9b6f3d399f3c25f24cc0b7d8576b
2012-04-22 00:00:24 +04:00
Andrew Ryabinin
f5559042f1
rk27xx: Fix warnings.
...
Change-Id: I05e3b946b921592bc17eff5ca705bfc1e71b2f0f
2012-04-20 13:20:07 +04:00
Andrew Ryabinin
fe5f9e0619
Fix typo.
...
Change-Id: Ib9bd947ac71370e11e7e3d67dbc5f16da0b15ae3
2012-04-20 13:11:43 +04:00
Andrew Ryabinin
220f9385da
rk27xx: Remove debug use of timer1 in sd driver.
...
Change-Id: I720426de3c66c10273fff5f3a01ef6b692218a29
2012-04-20 13:04:51 +04:00