summaryrefslogtreecommitdiff
path: root/firmware/system.c (follow)
Commit message (Collapse)AuthorAge
...
* Removed unused variable.Jens Arnold2005-10-14
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7630 a1c6a512-1295-4272-9138-f99709370657
* Coldfire: (1) Keep the correct CRSEL and CLSEL values in the PLLCR register ↵Jens Arnold2005-10-14
| | | | | | for CPUFREQ_DEFAULT. Fixes non-working treble & bass controls in radio screen. (2) Save a bit more power by powering down the PLL at CPUFREQ_DEFAULT. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7629 a1c6a512-1295-4272-9138-f99709370657
* Iriver: No write protection for flash ROM area, correct number of waitstates.Jens Arnold2005-10-10
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7611 a1c6a512-1295-4272-9138-f99709370657
* Ported the memory guard debug feature to coldfire, using the breakpoint ↵Jens Arnold2005-10-08
| | | | | | logic. There are 3 shortcomings compared to SH1: (1) While the setting itself survives RoLo, it cannot be read back because the debug module programming model is write only. (2) system_reboot() from a 'Debug' exception doesn't work because the CPU enters emulation mode, and the only way leaving this mode is via an rte instruction. (3) (fixable) Catching write accesses to the flash doesn't actually do anything because the flash memory area is set write protected in CSMR2, so a write attempt stalls the bus. * Cosmetic changes in system.c git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7600 a1c6a512-1295-4272-9138-f99709370657
* Coldfire: New timer handling on CPU frequency change, adjusting the ↵Jens Arnold2005-10-03
| | | | | | prescaler on the fly, for both tick and user timer. Precondition is that the higher frequencies are integer multiples of the base: now NORMAL is 45 MHz and MAX is 124 MHz. Removes the need for applications with longer timer periods (>= 10 ms) to boost the CPU all the time, e.g. the grayscale lib. Timer counts are now always based on the base frequency (CPU_FREQ). * Adjusted the RAM refresh timers to the new frequencies (all frequencies for H100) * All: Fixed the tick timer count being off by one. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7576 a1c6a512-1295-4272-9138-f99709370657
* Moved the system_reboot() call to the correct placeLinus Nielsen Feltzing2005-09-06
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7483 a1c6a512-1295-4272-9138-f99709370657
* Call system_reboot() instead of rolo_load() in the UIE handlerLinus Nielsen Feltzing2005-09-06
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7479 a1c6a512-1295-4272-9138-f99709370657
* iriver: Moved the I2C prescaler setting to i2c_init(), and removed it from ↵Linus Nielsen Feltzing2005-08-11
| | | | | | set_cpu_frequency(). The Coldfire I2C controller can't handle on-the-fly prescaler changes. Also removed the unnecessary slave address setting in i2c_init. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7304 a1c6a512-1295-4272-9138-f99709370657
* Added CPU_COLDFIRE define - one step closer to iAudio-portChristian Gmeiner2005-07-18
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7186 a1c6a512-1295-4272-9138-f99709370657
* iriver: Reduced LCD write cycle length to 65ns, almost halving the execution ↵Linus Nielsen Feltzing2005-07-17
| | | | | | time for lcd_update, from 1.8ms to 1ms in 120MHz git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7181 a1c6a512-1295-4272-9138-f99709370657
* iriver: Adjusted to optimal I2C bit ratesLinus Nielsen Feltzing2005-07-17
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7179 a1c6a512-1295-4272-9138-f99709370657
* Removed an extra semicolonLinus Nielsen Feltzing2005-07-12
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7118 a1c6a512-1295-4272-9138-f99709370657
* Adjusted refresh timer for H110Linus Nielsen Feltzing2005-07-08
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7069 a1c6a512-1295-4272-9138-f99709370657
* (1) Set cpu to 11 Mhz when we "crash" to prevent overheating.Tomas Salfischberger2005-07-06
| | | | | | | (2) Bind the ON button to reboot when we are in the crashed state. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7044 a1c6a512-1295-4272-9138-f99709370657
* New power-conserving CPU idle modeLinus Nielsen Feltzing2005-07-05
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7023 a1c6a512-1295-4272-9138-f99709370657
* Initial support for iriver backlight dimming. Unfortunately dimmingMiika Pekkarinen2005-06-18
| | | | | | | remote control's EL-backlight is not possible. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6747 a1c6a512-1295-4272-9138-f99709370657
* ColdFire: DCR is a 16-bit registerLinus Nielsen Feltzing2005-06-08
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6604 a1c6a512-1295-4272-9138-f99709370657
* Added system_reboot() for iRiverLinus Nielsen Feltzing2005-05-20
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6491 a1c6a512-1295-4272-9138-f99709370657
* Wrong setting of AUDIOSEL caused double pitch 120MHz playbackLinus Nielsen Feltzing2005-04-14
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6282 a1c6a512-1295-4272-9138-f99709370657
* I2C clock settings and ATA timing for iRiverLinus Nielsen Feltzing2005-03-18
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6206 a1c6a512-1295-4272-9138-f99709370657
* Dedicated CPU frequency debug screen for CPU's with PLLLinus Nielsen Feltzing2005-03-07
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6161 a1c6a512-1295-4272-9138-f99709370657
* iRiver: Increased the max CPU frequency to 120MHzLinus Nielsen Feltzing2005-03-03
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6125 a1c6a512-1295-4272-9138-f99709370657
* gmini: variable CPU frequencyJean-Philippe Bernardy2005-03-03
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6118 a1c6a512-1295-4272-9138-f99709370657
* Added new coldfire assembly LPC decoder routine to libFLAC.Thom Johansen2005-03-03
| | | | | | | Added clear accumulator policy. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6108 a1c6a512-1295-4272-9138-f99709370657
* Adjustable CPU frequency for iRiverLinus Nielsen Feltzing2005-03-01
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6093 a1c6a512-1295-4272-9138-f99709370657
* fixed setup of the gmini GPIOJean-Philippe Bernardy2005-02-23
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6047 a1c6a512-1295-4272-9138-f99709370657
* Gmini SMSC chip improvementsJean-Philippe Bernardy2005-02-22
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6030 a1c6a512-1295-4272-9138-f99709370657
* GminiJean-Philippe Bernardy2005-02-19
| | | | | | | | * advances in the handling of the smsc chip * moved stuff to where it belongs git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6023 a1c6a512-1295-4272-9138-f99709370657
* Gmini work:Jean-Philippe Bernardy2005-02-19
| | | | | | | | | * Better USB * Better comments * Better coding style git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6022 a1c6a512-1295-4272-9138-f99709370657
* better PLL support & slight fix (probably in keepalive handling)Jean-Philippe Bernardy2005-02-15
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5951 a1c6a512-1295-4272-9138-f99709370657
* Variants for gmini dma transfersJean-Philippe Bernardy2005-02-08
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5852 a1c6a512-1295-4272-9138-f99709370657
* provide system_memory_guard() and system_reboot() dummies for coldfire targetDaniel Stenberg2005-02-02
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5749 a1c6a512-1295-4272-9138-f99709370657
* Some more gmini hw supportJean-Philippe Bernardy2005-01-24
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5644 a1c6a512-1295-4272-9138-f99709370657
* Button driver overhaul: (1) Unified the button driver functions as much as ↵Jens Arnold2004-12-01
| | | | | | possible (2) Proper #defines for FM recorder button ADC channels (3) Got rid of old port B #defines only valid for recorder (4) button filtering for all models (5) RoLo with ON after panic should now work for FM/V2 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5472 a1c6a512-1295-4272-9138-f99709370657
* Correct handling of unhandled exceptions for coldfireLinus Nielsen Feltzing2004-11-02
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5376 a1c6a512-1295-4272-9138-f99709370657
* Coldfire: the timers can only be autovectored, let's put the tick timer at ↵Linus Nielsen Feltzing2004-10-27
| | | | | | level 3 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5366 a1c6a512-1295-4272-9138-f99709370657
* Ported interrupt vector handling to ColdfireLinus Nielsen Feltzing2004-10-15
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5285 a1c6a512-1295-4272-9138-f99709370657
* Bus controller inits are valid for all models. Corrected WCR1 init according ↵Jens Arnold2004-10-12
| | | | | | to the datasheet (dontcare bits shall be written as 1) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5256 a1c6a512-1295-4272-9138-f99709370657
* Properly initialize the bus controller for Ondio as well. Fixes coldstart ↵Jens Arnold2004-10-10
| | | | | | from flash on Ondio SP, both classic and RomBox git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5248 a1c6a512-1295-4272-9138-f99709370657
* New debug feature: Use the SH1 user break controller to catch illegal memory ↵Jens Arnold2004-08-30
| | | | | | accesses git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5026 a1c6a512-1295-4272-9138-f99709370657
* Next round of const policeingJens Arnold2004-07-20
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4902 a1c6a512-1295-4272-9138-f99709370657
* We had a few set_irq_level(15) left in the code, instead of the new ↵Jörg Hohensohn2004-03-13
| | | | | | set_irq_level(HIGHEST_IRQ_LEVEL). Only one was really used, in system_reboot(), creating a (unlikely) race condition. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4374 a1c6a512-1295-4272-9138-f99709370657
* nice hint by Jens Arnold: using RAS Down Mode for the DRAM makes the box ↵Jörg Hohensohn2004-03-13
| | | | | | 10-15% faster git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4373 a1c6a512-1295-4272-9138-f99709370657
* Made set_irq_level() an inline function, and optimized it by removing the ↵Linus Nielsen Feltzing2004-03-02
| | | | | | bit shifts git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4330 a1c6a512-1295-4272-9138-f99709370657
* The cli()/sti() functions are not safe. We should have removed them long ago.Linus Nielsen Feltzing2004-02-25
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4314 a1c6a512-1295-4272-9138-f99709370657
* Explicit setup of the bus controller wait states. This is supposed to fix ↵Linus Nielsen Feltzing2003-10-27
| | | | | | the issue when the flashed recorder hangs when recording. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3991 a1c6a512-1295-4272-9138-f99709370657
* when rebooting, de-init such that the coldstart detection would kick in ↵Jörg Hohensohn2003-07-17
| | | | | | again (fixes Rombox ATA problems when shutting off with charger) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3840 a1c6a512-1295-4272-9138-f99709370657
* Added restart option to system exception screen (press ON)Björn Stenberg2003-06-29
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3768 a1c6a512-1295-4272-9138-f99709370657
* Code Police is never wrong. Ugh!Björn Stenberg2003-02-23
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3325 a1c6a512-1295-4272-9138-f99709370657
* lcd_setfont() is for bitmap LCDs onlyDaniel Stenberg2002-09-16
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2295 a1c6a512-1295-4272-9138-f99709370657