summaryrefslogtreecommitdiffstats
path: root/src/target/firmware/calypso
AgeCommit message (Collapse)AuthorFilesLines
2013-01-05fw: keypad driver overhaul, support for different keymapsSteve Markgraf1-49/+18
Now the Pirelli DP-L10 keymap is supported. Signed-off-by: Steve Markgraf <steve@steve-m.de>
2013-01-05fw: introduce per-board uart mappingSteve Markgraf1-5/+7
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2013-01-02fw/build: Add ENV_ APP_ BOARD_ prefix to variables to cleanup namespaceSylvain Munaut1-2/+2
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2012-02-03Removing all traces of the old display drivers.Christian Vogel1-5/+0
2012-01-28Hold function for power button to turn off the phoneAndreas Eversberg1-4/+13
In order to allow applications to use the power button, the keypad handler will wait half a second if the key is pressed and hold, until the power is turned off. This way the application does not need to handle it. The power off function will then wait until the button is released, so the phone will not start again while the button is still pressed.
2011-11-27i2c: fix maximum address an I2C chip can assignAlan Carvalho de Assis1-1/+1
I2C bus support up to 128 devices (mask 0x7F), but current calypso driver is masked it to 64 (0x3F). I discover it because Motorola W220 has an I/O expander PCA9537 at address 0x49 which could be reached. Signed-off-by: Alan Carvalho de Assis <acassis@gmail.com> Signed-off-by: Steve Markgraf <steve@steve-m.de>
2011-11-15fw/i2c: Fix two printd-related typosSteve Markgraf1-2/+2
Thanks to Stefan Mandl for pointing those out. Signed-off-by: Steve Markgraf <steve@steve-m.de>
2011-11-13target/fw/sim: SIM Layer 1 driverSylvain Munaut1-358/+359
Originally written by dexter and then Andreas did a lot of cleanup work to bring it into shape for inclusion in master Written-by: Philipp Maier <zero-kelvin@gmx.de> Written-by: Andreas Eversberg <jolly@eversberg.eu> Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-11-09fw/calypso: Fix backlight bl_mode_pwl method (typo)Sylvain Munaut1-1/+1
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-08-03fw/calypso/dsp: Fix wrong hardcoded boot code constantSylvain Munaut1-1/+1
No functional impact tough. Thanks to Job <baseband@hackwerk.org> on the ML for pointing this out Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-07-16calypso/uart.c: Fix array bounds checkingHarald Welte1-1/+1
Found by Smatch: calypso/uart.c +433 uart_baudrate(7) error: buffer overflow 'divider' 7 <= 7
2011-07-16calypso/irq: Fix array bounds checkingHarald Welte1-1/+1
Found by Smatch: calypso/irq.c +200 irq_register_handler(5) error: buffer overflow 'irq_handlers' 32 <= 32
2011-05-05uart.h: move header out of calypso-directoryWolfram Sang1-1/+1
Everything defined is a pretty generic interface and can be used by mediatek, too. Signed-off-by: Wolfram Sang <wolfram@the-dreams.de>
2011-05-05lib: move delay.c from calypso to libWolfram Sang2-17/+1
Nothing calypso-related in there and needed for Mediatek, too. Signed-off-by: Wolfram Sang <wolfram@the-dreams.de>
2011-04-26src: use new libosmogsm and include/osmocom/[gsm|core] path to headersPablo Neira Ayuso1-1/+1
This patch changes include paths to get osmocom-bb working with the current libosmocore tree. Among all these renames, you can notice several tweaks that I added on purpose, and that require some explanation, they are: * hexdump() in osmocon.c and osmoload.c has been renamed to avoid clashing with hexdump() defined in libosmocore. * gsmmap now depends on libosmogsm. Actually I had to cleanup Makefile.am because I was experiencing weird linking problems, probably due to a bug in the autotools. With the change included in this patch, I got it compiled and linked here correctly. This patch has been tested with the phone Motorola C123 and the following images files: * firmware/board/compal_e88/hello_world.compalram.bin * firmware/board/compal_e88/layer1.compalram.bin Using the osmocon, bcch_scan and mobile tools. Signed-off-by: Pablo Neira Ayuso <pablo@gnumonks.org>
2011-04-24fw/calypso: Add a new driver for the buzzer controlSylvain Munaut2-1/+87
Written-by: Jose Luis Pereira <onaips@gmail.com> Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-03-19target/fw/dsp: add delay as workaround for dsp_dumpSteve Markgraf1-0/+3
Without the delay we would fill the sercomm buffer faster than its content can be sent, and the phone would end up in a panic and hang. Signed-off-by: Steve Markgraf <steve@steve-m.de>
2011-01-12fw/calypso/dsp: Add comment about meaning of bit 11 of ndb->d_tch_modeSylvain Munaut1-1/+1
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-01-11fixed typos in commentsThomas Waldmann6-12/+12
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2011-01-02Testing for the idle i2c bus was done backwards, we haveChristian Vogel1-2/+2
to wait for the bit to become 0, not 1.
2010-11-17target uart: remove REG_OFFS() macro side-effectAlex Badea1-1/+1
Don't assign to the variable given as argument. This prevents clobbering the local 'reg' variables in uart_reg_{read,write}(), which would in turn prevent the latch bits from being restored correctly. Signed-off-by: Alex Badea <vamposdecampos@gmail.com>
2010-11-17target uart: fix preservation of LCRAlex Badea1-4/+4
Store old_lcr only when switching to LCR == 0xBF. We don't want to clobber old_lcr when switching back, otherwise we can't restore the previous LCR value. Signed-off-by: Alex Badea <vamposdecampos@gmail.com>
2010-11-07target/fw/dsp: Implement section loading with bootloaderSylvain Munaut1-0/+35
This works for both the default ROM bootloader and for our custom one. This will allow to implement easy patch loading. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-11-07target/fw/dsp: Create a common function to start running codeSylvain Munaut1-8/+10
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-10-25target/fw/calypso: Fix dsp_load_tch_param to set fn_report for TCH/HSylvain Munaut1-3/+22
The previous code was only valid for TCH/F ... Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-10-25target/fw/dsp: Add utility function to memcpy to/from the APISylvain Munaut1-0/+57
Copying to/from the DSP API shared memory must be done using 16 bits word only. Using those method, we avoid the hassle of repeating the code when we copy buffer back and forth. API address must be 16 bits aligned but for our purpose, it's good enough. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-09-28target/dsp: Add dsp audio initializationDieter Spaar1-0/+77
Written-by: Dieter Spaar <spaar@mirider.augusta.de> Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-09-28target/dsp: Adjust dsp parameters for TCH FR CodecDieter Spaar1-1/+1
Written-by: Dieter Spaar <spaar@mirider.augusta.de> Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-09-17fw/dsp: Add function to load dsp ciphering parametersSylvain Munaut1-0/+16
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-09-17fw: Update dsl_load_tch_params to set the fn_sid, fn_report and fn_a5Sylvain Munaut1-12/+31
Mix between Dieter's version in tch branch and how the TSM30 does it. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-07-20firmware: fixed irq-less keypad supportIngo Albrecht1-3/+9
2010-07-20firmware: fixed and commented backlight driverIngo Albrecht1-1/+3
2010-07-18[calypso] Rework of keypad interrupt handler.Andreas.Eversberg1-32/+56
The keys are correctly detected and debounced. There is no delay_ms in the interrupt handler anymore. When a key is pressed, the columns of the keypad are polled and debounced via timer interrupt. If no key is pressed, the timer interrupt is ignored again.
2010-07-15firmware: sim controller driver by dexterIngo Albrecht2-1/+741
2010-07-15cleanup duplicated delay functionsSteve Markgraf2-1/+17
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2010-04-12UART initialisation, serial port errorsChristian Vogel1-0/+10
Additional initialisations for the UART to make the data corruption from the PC to the Phone go away. I've seen a lot of systematic character swaps on the serial port, especially in the vincinity of 0-bytes. As the XON/XOFF registers are the only thing in the UART that look like they would consider the actual data sent, I've added this initialisation to uart.c This makes the problem go away completely on my C123. To check for it I've added CRCs to the HDLC protocol and checked for bad frames, and also compared them in a (patched) osmocon that just sends random garbate in a special DLCI. The bad frames I observed always looked like this (number in parenthesis define number of omitted bytes, for brevity): <------ good bytes ----------> <-recvd|sent-> <----- identical again ------> d0 e0 00 00..(107)..f7 ce 17 c4 < 0c 00|00 0c > db 70 ba cb..(67)..d8 6d 3a 1f 31 e1 00 00..(47)..38 ca 2f e5 < 0c 00|00 0c > f8 a3 77 5f..(127)..5b 72 ff 4a <-- good -> <--- bad -----> <---- good again -------------> dc e1 00 00 < 0c 00|00 0c > 87 cb 24 83..(178)..2f 69 b3 51 ae e2 00 00..(167)..bd 18 6f a1 < 0c 00|00 0c > 2f 53 d2 b2..(7)..da c7 1b 63 dc e3 00 00..(131)..8e 2c b0 a8 < 0c 00|00 0c > 40 62 56 5f..(43)..f0 3a 47 f7 Formerly I was observing about 10 packets for every 2000 sent (with 192 bytes of payload each). Now, with the added initialisation, I see (as the time of writing this email) 12000 packets with 192 bytes each sent, with 0 bytes missing, corrupted, flipped).
2010-04-10fix disabling of the calypso bootrom on targets with nIBOOT tied to low:Steve Markgraf1-4/+3
* bit 8 always needs to be 1 when overriding the setting of the nIBOOT pin, so now we set both bits (9 and 8) to 1, and clear bit 9 if we want to enable the romloader * to be sure, this was tested on a target with nIBOOT high (C155) and a Alcatel VLE5 pulled to low, and works fine Signed-off-by: Steve Markgraf <steve@steve-m.de>
2010-03-21calypsu UART: add additional debug output in UART RX error caseHarald Welte1-1/+22
2010-03-15firmware: fixed bootrom disablingIngo Albrecht1-2/+1
2010-03-15firmware: watchdog-based system resetIngo Albrecht1-3/+30
2010-03-12Introduce LCD display_driver infrastructureHarald Welte1-3/+3
* introduce display_driver layer * port st7558 and ssd1783 drivers to display_driver * allow for run-time selection of display driver from board/init.c * replace st7558_puts() calls with display_puts() calls
2010-03-12uwire: add a chip-select for CS0, needed by the J100i displaySteve Markgraf1-0/+7
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2010-03-07start to use libosmocore within the firmwareHarald Welte1-0/+1
* remove linuxlist.h copy and use osmocore * don't put 'struct gsm_time' into l1ctl packets * include rx_level and snr for each burst in l1ctl * properly build libosmocore.a for target * move gsmtime functions into libosmocore * move ctype.h to standard location
2010-03-07fix even more compiler warningsHarald Welte5-8/+12
2010-03-07fix compiler warningsHarald Welte1-7/+7
2010-03-07Added Solomon SSD1783 display driver for Motorola C155Harald Welte1-1/+1
Signed-off-by: Steve Markgraf <steve@steve-m.de> Conflicts: src/target/firmware/Makefile
2010-03-07Allow use of uart driver without interrupts.Ingo Albrecht1-7/+19
2010-03-07Allow use of keypad driver without interrupts.Ingo Albrecht1-6/+8
2010-03-07New build system.Ingo Albrecht1-16/+3
2010-03-01move macros to where they belongHarald Welte1-10/+1