Rob Purchase
bca9703b83
D2: Fixes for 16Gb models with four NAND banks: update MAX_BANKS, configure the chip select GPIO as output and use a couple of #defines to tidy things up.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17705 a1c6a512-1295-4272-9138-f99709370657
2008-06-09 08:11:11 +00:00
Rob Purchase
3f7f5d7431
D2: Stop panic screen from crashing instantly (seems this has been broken for a while).
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17670 a1c6a512-1295-4272-9138-f99709370657
2008-05-31 11:30:24 +00:00
Michael Sevakis
adf2e4c9a0
Targets with HAVE_LCD_ENABLE: Provide a means to receive notifications when the lcd is enabled and the image is refreshed so overlayed drawing can also be refreshed. Chiefly mpegplayer needs this so it can redraw the YUV data after the backlight is turned on while paused or when using 'Set Start Time'.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17640 a1c6a512-1295-4272-9138-f99709370657
2008-05-28 10:17:16 +00:00
Rob Purchase
03de6c67ab
TCC78x NAND driver: Split the initial bank scan into two passes (appears to improve block translation reliability). Also some cleanups for readability, eg remove chip vs. bank ambiguity and remove leftover debug code.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17598 a1c6a512-1295-4272-9138-f99709370657
2008-05-21 21:07:49 +00:00
Rob Purchase
ab40aa9477
Remove the last D2 yellows (user timer is not yet implemented).
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17391 a1c6a512-1295-4272-9138-f99709370657
2008-05-05 19:43:01 +00:00
Bertrik Sikken
9cd291989b
Disabled unused ata_led function.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17342 a1c6a512-1295-4272-9138-f99709370657
2008-05-03 23:37:48 +00:00
Bertrik Sikken
6a0340fc21
More static / header file cleanup.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17341 a1c6a512-1295-4272-9138-f99709370657
2008-05-03 23:18:56 +00:00
Jens Arnold
0e73b8a0a9
Remove wrong usage of '.global'. These symbols are imported, not exported.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17290 a1c6a512-1295-4272-9138-f99709370657
2008-04-29 06:47:34 +00:00
Jens Arnold
2bbacf89fe
Make sure the linker considers crt0*.o before all files specified on the command line by using STARTUP() instead of INPUT() in the .lds. Using INPUT() makes the linker process crt0*.o after all files specified on the command line, making linking fail if there are librockbox.a members which are only referenced by crt0*.o. Remove the hackaround that was needed for building the gigabeat S bootloader before (aka UIE() problem).
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17289 a1c6a512-1295-4272-9138-f99709370657
2008-04-29 06:19:32 +00:00
Rob Purchase
297e0504da
FS#8708: D2/m:robe500 touchscreen keymaps by Andreas Mueller.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17261 a1c6a512-1295-4272-9138-f99709370657
2008-04-27 15:30:19 +00:00
Rob Purchase
18b004b330
Enable 'touchscreen areas' on the D2, based on JdGordon's m:robe code. Disable the bootloader debug screen, as that stuff is all available from the Debug menu now.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17257 a1c6a512-1295-4272-9138-f99709370657
2008-04-27 13:30:11 +00:00
Rob Purchase
fd773cbda6
A few preparations for the D2 PCM driver: move driver up to TCC780x level, move FIQ handler into PCM driver, add some new register defines, and remove those goddamn warnings.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17209 a1c6a512-1295-4272-9138-f99709370657
2008-04-21 20:16:18 +00:00
Rob Purchase
d88c5667d9
Kill some D2 yellows with a simplistic Rolo implementation and NAND driver cleanup. Correct some comments in crt0.s and remove two erroneous null words from rockbox.bin
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17127 a1c6a512-1295-4272-9138-f99709370657
2008-04-15 20:02:24 +00:00
Jonathan Gordon
970cfee394
woops... fix red and some svn keywords.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17115 a1c6a512-1295-4272-9138-f99709370657
2008-04-15 11:00:38 +00:00
Jonathan Gordon
5b5a626bb6
Setup the touchpads to have two modes - stylus and button - and set them in button mode by default.
...
in button mode the touchpad is split into a 3x3 grid for 9 seperate buttons which can be used by the action system like real buttons.
Unify the keymap file for the touchpads in button mode. the target keymap file only needs to worry about real buttons.
(As these ports mature each screen will need to be fixed seperatly to be able to use stylus mode (the lists can already but don't change mode just yet.)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17114 a1c6a512-1295-4272-9138-f99709370657
2008-04-15 10:35:11 +00:00
Rob Purchase
8f464068af
Fix cut'n'pasterelated yellows.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17089 a1c6a512-1295-4272-9138-f99709370657
2008-04-12 18:34:35 +00:00
Rob Purchase
b14c2de523
D2: Charging detection, plus basic PCF50606 interrupt handler.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17088 a1c6a512-1295-4272-9138-f99709370657
2008-04-12 18:17:15 +00:00
Rob Purchase
ddfd787c54
D2: Implement battery voltage readout from PCF50606 (levels not yet calibrated). Adjust I2C delay to ensure this also works when boosted.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17085 a1c6a512-1295-4272-9138-f99709370657
2008-04-12 16:18:28 +00:00
Rob Purchase
b70239e15b
D2: Remove USB detection as it's not actually on GPIOC26 (that's a charging indicator). Remove those warnings as I'm well aware USB isn't implemented.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17078 a1c6a512-1295-4272-9138-f99709370657
2008-04-11 21:23:51 +00:00
Rob Purchase
2fee08aff3
D2: Implement power-off by putting the PCF50606 to sleep (and reduce timeout to 10 ticks). Set PCF outputs on init as per OF. Fix erroneous BOOTDIR definition and make HW Info screen show some more useful info.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17039 a1c6a512-1295-4272-9138-f99709370657
2008-04-08 20:43:04 +00:00
Rob Purchase
f4deea6027
D2: Update dual boot to use the hold switch. Update bootloader to show messages until HOLD released, keep holding POWER to show old debug screen (these modes will eventually be removed).
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17032 a1c6a512-1295-4272-9138-f99709370657
2008-04-08 08:01:18 +00:00
Rob Purchase
d74117450c
Make the TCC780x ADC driver work again in the bootloader.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17031 a1c6a512-1295-4272-9138-f99709370657
2008-04-07 22:48:19 +00:00
Michael Sevakis
05099149f1
Enable nocache sections using the linker. PP5022/4 must use SW_CORELOCK now with shared variables in DRAM (it seems swp(b) is at least partially broken on all PP or I'm doing something very wrong here :\). For core-shared data use SHAREDBSS/DATA_ATTR. NOCACHEBSS/DATA_ATTR is available whether or not single core is forced for static peripheral-DMA buffer allocation without use of the UNCACHED_ADDR macro in code and is likely useful on a non-PP target with a data cache (although not actually enabled in config.h and the .lds's in this commit).
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16981 a1c6a512-1295-4272-9138-f99709370657
2008-04-06 04:34:57 +00:00
Rob Purchase
36f8fba209
Tick/IRQ driven ADCs for TCC780x. Solves the weird button behaviour mentioned on the D2 wiki page.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16974 a1c6a512-1295-4272-9138-f99709370657
2008-04-04 23:43:31 +00:00
Rob Purchase
91202e1804
D2: Adjustable backlight brightness (sometimes fails when boosted, suggests I2C timing needs adjustment). Tweak lcd_enable() to behave more like other targets.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16967 a1c6a512-1295-4272-9138-f99709370657
2008-04-04 20:55:58 +00:00
Rob Purchase
6fd72c750f
Introduce sanity check and extra nop to stabilise TCC780x set_cpu_frequency(). Re-enable HAVE_ADJUSTABLE_CPU_FREQ and kill a few warnings by setting HAVE_SW_TONE_CONTROLS.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16904 a1c6a512-1295-4272-9138-f99709370657
2008-03-31 22:43:20 +00:00
Michael Sevakis
75f2d441e9
Change the remaining set_interrupt_status usage to the more parsimonious disable/enable/restore.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16897 a1c6a512-1295-4272-9138-f99709370657
2008-03-31 06:00:23 +00:00
Rob Purchase
3d36f4e938
Implement set_cpu_frequency() for TCC780x, but leave it disabled for now as switching can cause an occasional freeze. Reduce default speed from maximum to 48Mhz.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16882 a1c6a512-1295-4272-9138-f99709370657
2008-03-29 20:40:38 +00:00
Rob Purchase
edf6d90ca4
Updated TCC780x NAND driver. Still work-in-progress but lots better than the previous version.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16878 a1c6a512-1295-4272-9138-f99709370657
2008-03-29 17:18:53 +00:00
Marcoen Hirschberg
82c52302bd
split boot.lds and move it into the target tree
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16855 a1c6a512-1295-4272-9138-f99709370657
2008-03-27 23:58:03 +00:00
Jens Arnold
68a21689ae
Consistent naming scheme the various blit functions. * Removed lcd_blit_mono() for colour targets. Plugin API became incompatible, so sort, clean up & bump. * Implemented lcd_blit_mono() for M3.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16775 a1c6a512-1295-4272-9138-f99709370657
2008-03-24 00:35:53 +00:00
Rob Purchase
b8b03370e4
D2: Implement LCD driver framebuffer as per E200/Gigabeat F. Kill a few warnings.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16763 a1c6a512-1295-4272-9138-f99709370657
2008-03-23 19:56:11 +00:00
Rob Purchase
4dc2d8ddba
Enable tick IRQs on TCC780x. The main menu is now working on the D2.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16749 a1c6a512-1295-4272-9138-f99709370657
2008-03-22 19:41:51 +00:00
Rob Purchase
f061ba4ebb
D2: Implement HAS_BUTTON_HOLD.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16748 a1c6a512-1295-4272-9138-f99709370657
2008-03-22 15:55:19 +00:00
Rob Purchase
58b5ce2275
D2: Fix inverted USB detection.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16746 a1c6a512-1295-4272-9138-f99709370657
2008-03-22 14:51:09 +00:00
Karl Kurbjun
ef62d6891a
Split up app.lds to the respective target directories. The portalplayer devices replicate app.lds since their target tree doesn't follow a syntax typical to the newer arm targets - the portalplayers could be cleaned up further. boot.lds and plugin.lds still need to be cleaned up.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16651 a1c6a512-1295-4272-9138-f99709370657
2008-03-13 03:48:23 +00:00
Rob Purchase
9603e4e92f
D2: Fix IRAM usage, but disable it for now as Tremor does not fit ('make zip' works now). Fix duplicate CONFIG_LCD value.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16623 a1c6a512-1295-4272-9138-f99709370657
2008-03-10 21:39:04 +00:00
Rob Purchase
562b9de7cb
D2: Make lcd_init_device() actually turn on the LCD, in preparation for booting the main image. Previously this required an explicit lcd_enable(true).
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16523 a1c6a512-1295-4272-9138-f99709370657
2008-03-05 00:21:56 +00:00
Christian Gmeiner
5df1273741
a very basic power_off function
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16319 a1c6a512-1295-4272-9138-f99709370657
2008-02-16 13:01:30 +00:00
Christian Gmeiner
55e7f11c44
I need to overwork this - sorry
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16318 a1c6a512-1295-4272-9138-f99709370657
2008-02-16 12:47:42 +00:00
Christian Gmeiner
868fcce96c
Shutdown needs about 2 seconds, but it seems to work :)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16317 a1c6a512-1295-4272-9138-f99709370657
2008-02-16 12:44:15 +00:00
Christian Gmeiner
b650bc592a
fix compiling of debug menu for tcc780x
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16316 a1c6a512-1295-4272-9138-f99709370657
2008-02-15 12:37:36 +00:00
Rob Purchase
addb5228ec
D2: Further work-in-progress on the NAND driver.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16308 a1c6a512-1295-4272-9138-f99709370657
2008-02-13 23:50:44 +00:00
Rob Purchase
637e26e8e4
D2: Add auto-detection of the SAMSUNG flash chips used in the 2/4/8Gb
...
models.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16177 a1c6a512-1295-4272-9138-f99709370657
2008-01-27 18:50:09 +00:00
Rob Purchase
5991478628
Read ID codes & raw page data from D2 NAND flash (work in progress;
...
no logical->physical address translation yet)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16167 a1c6a512-1295-4272-9138-f99709370657
2008-01-25 21:37:59 +00:00
Rob Purchase
8a91c19f70
Fix typo (and update the build table...)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16147 a1c6a512-1295-4272-9138-f99709370657
2008-01-22 23:19:12 +00:00
Rob Purchase
47ea030e2e
Initial Cowon D2 commit:
...
* bootloader test program (basic LCD & button drivers, reads touchscreen)
* work-in-progress stubs for main build
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16090 a1c6a512-1295-4272-9138-f99709370657
2008-01-14 22:04:48 +00:00