summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/arm/tms570 (follow)
Commit message (Collapse)AuthorAgeFilesLines
* bsps: Improve interrupt vector enable/disable APISebastian Huber2017-06-201-34/+6
| | | | | | Change bsp_interrupt_vector_enable() and bsp_interrupt_vector_disable() to not return a status code. Add bsp_interrupt_assert() and use it to validate the vector number in the vector enable/disable implementations.
* arm/tms570: Update preinstall.am after bootstrap.Chris Johns2017-05-241-0/+4
|
* bsp/tms570: include package balls and PINMMR registers mapping for ↵Pavel Pisa2017-04-292-0/+1115
| | | | | | | | | | | | TMS5704357 ZWT chip. The extended mechanism for switching input path by separated alternative registers is already implemented in TMS570 pin multiplexer driver used for TMS570LS31xx rtems/c/src/lib/libbsp/arm/tms570/pinmux/pinmux.c But the code has not been tested on real TMS570LC43xx hardware yet.
* tms570/../*-testsuite.tcfg: Add linpackJoel Sherrill2017-04-043-0/+9
|
* arm: Optimize context switchSebastian Huber2017-03-281-12/+0
| | | | | | | | | Set CPU_ENABLE_ROBUST_THREAD_DISPATCH to TRUE. In this case the interrupts are always enabled during a context switch even after interrupt processing (see #2751). Remove the CPSR from the context control since it contains only volatile bits. Close #2954.
* bsp/tms570: Use shared benchmark timerSebastian Huber2017-03-272-62/+1
|
* bsp/tms570: Simplify CPU counter supportSebastian Huber2017-03-271-63/+13
| | | | Only touch the cycle counter settings. Do not enable user mode access.
* bsp/tms570: Simplify <bsp.h>Sebastian Huber2017-03-271-12/+0
|
* bsp/tms570: Remove OPERATION_COUNT defineSebastian Huber2017-03-271-3/+0
| | | | This is the wrong place to define it.
* bsp/tms570: Fix CPU counter frequencySebastian Huber2017-03-092-27/+12
| | | | | The CPU counter runs with the processor frequency. Use RTEMS_SYSINIT_ITEM() to initialize the CPU counter.
* bsp/tms570: Support printk() earlySebastian Huber2017-03-093-48/+105
| | | | | Allow use of printk() early in the initalization and without a console driver.
* testsuite: Add test states to the testsuit configuration files.Chris Johns2016-12-071-18/+18
| | | | | | | | | | | | | | | | Change the testsuite configuration files to hold state information about a test. The states are: exclude - Do not build the test expected-fail - The test is expected to fail indeterminate - The test may pass or may fail A message is printed just after the test's BEGIN message to indicate there is a special state for the test. No state message means the test is expected to pass. This support requires tests are correctly written to the use standard support to begin and end a test.
* libdebugger: Build for ARM's without a CP15.Chris Johns2016-12-022-0/+14
|
* arm/tms570: document BSP setup with included hardware initialization.Pavel Pisa2016-09-221-22/+100
|
* arm/tms570: update bootstrap generated preinstall.amPavel Pisa2016-09-221-0/+13
|
* arm/tms570: include TMS570_USE_HWINIT_STARTUP option to select bare metal ↵Pavel Pisa2016-09-222-0/+26
| | | | startup and selftest.
* arm/tms570: include hardware initialization and selftest based on Ti ↵Pavel Pisa2016-09-2216-0/+3519
| | | | | | | | | | | | | | | | | | | | HalCoGen generated files. The configuration is specific for TMS570LS3137 based HDK. Pins configuration can be easily changed in rtems/c/src/lib/libbsp/arm/tms570/hwinit/init_pinmux.c file. The list tms570_selftest_par_list in the file rtems/c/src/lib/libbsp/arm/tms570/hwinit/bspstarthooks-hwinit.c specifies peripherals which health status is examined by parity self-test at BSP start-up. It can be easily modified for other TMS570 family members variants same as the selection of other tests in bspstarthooks-hwinit.c.
* arm/tms570: define base addresses of all TMS570LS3137 SPI interfaces.Pavel Pisa2016-09-221-1/+5
| | | | | | | | Generated header file ti_herc/reg_spi.h contains complete registers and fields set for Ti MibSPI peripheral. Care has to be taken that only TMS570_SPI1, TMS570_SPI3 and TMS570_SPI5 are of this complete multibuffer type. TMS570_SPI2 and TMS570_SPI4 have substantial part of registers removed but else they are compatible.
* termios: Use IMFS nodes for new Termios devicesSebastian Huber2016-09-191-2/+0
| | | | | | | | This makes the new Termios devices independent of device major/minor numbers. It enables BSP independent Termios device drivers which may reside in the cpukit domain. These drivers require an IMFS and do not work with the device file system. However, the device file system should go away in the future.
* bsp/tms570: ensure that change of SCI baudrate is not applied in the middle ↵Pavel Pisa2016-07-221-2/+23
| | | | | | | | | | | | | | | | | of character Tx. The rtems_monitor_task() setups/updates termios attributes of the opened TTY and if there is ongoing some other output it leads to the stuck. It would be better to use some termios API function which would call drainOutput() in rtems/cpukit/libcsupport/src/termios.c. But functionality is not accessible outside of core termios implementation. The loop waiting for last character to be sent has to be there anyway because hardware does not provide Tx machine/shift register empty interrupt.
* bsp/tms570: regenerate preinstall makefile by bootstrap -p.Pavel Pisa2016-06-211-0/+8
|
* bsp/tms570: include complete peripheral initialization to SCI driver.Pavel Pisa2016-06-211-2/+36
| | | | Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
* bsp/tms570: update pinmux to provide support for initialization lists and ↵Pavel Pisa2016-06-214-69/+196
| | | | clear of alt outputs.
* bsp/tms570: include package balls and PINMMR registers mapping for ↵Pavel Pisa2016-06-212-0/+700
| | | | TMS570LS3135ZWT chip.
* arm/tms570: Remove include of <rtems/console.h> from <bsp.h> and fix warningsJoel Sherrill2016-03-291-1/+0
|
* arm/tms570/include/bsp.h: Do not include <rtems/clockdrv.h>Joel Sherrill2016-03-251-1/+0
|
* arm/tms570: Add per-section compilation and linking supportJoel Sherrill2016-03-101-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | updates #2577. For the tms570ls3137_hdk BSP variant without this option, sample executables sizes were as follows: text data bss dec hex filename 63760 1708 260224 325692 4f83c ticker.exe 40197 1452 260480 302129 49c31 minimum.exe 557376 1972 260000 819348 c8094 cxx_iostream.exe 400269 5792 256192 662253 a1aed fileio.exe 304684 12608 249632 566924 8a68c pppd.exe 132744 2344 259616 394704 605d0 capture.exe 75578 1796 260160 337534 5267e nsecs.exe 113844 2084 259872 375800 5bbf8 paranoia.exe 126688 1732 260224 388644 5ee24 cdtest.exe 61480 1708 260224 323412 4ef54 base_sp.exe 63220 1716 260224 325160 4f628 unlimited.exe 68420 1668 260288 330376 50a88 hello.exe 181144 6492 255744 443380 6c3f4 loopback.exe For the tms570ls3137_hdk BSP variant with this option, sample executables sizes were as follows: text data bss dec hex filename 59824 1696 260256 321776 4e8f0 ticker.exe 24268 1372 260576 286216 45e08 minimum.exe 346612 1936 260032 608580 94944 cxx_iostream.exe 388973 5780 256192 650945 9eec1 fileio.exe 283096 12456 249760 545312 85220 pppd.exe 127016 2324 259648 388988 5ef7c capture.exe 71966 1784 260160 333910 51856 nsecs.exe 109904 2072 259872 371848 5ac88 paranoia.exe 120816 1720 260224 382760 5d728 cdtest.exe 57416 1696 260256 319368 4df88 base_sp.exe 58188 1688 260256 320132 4e284 unlimited.exe 63064 1616 260320 325000 4f588 hello.exe 167884 6392 255840 430116 69024 loopback.exe For the tms570ls3137_hdk_intram BSP variant without this option, sample executables sizes were as follows: text data bss dec hex filename 63760 1708 196384 261852 3fedc ticker.exe 40197 1452 220192 261841 3fed1 minimum.exe 132744 2344 126752 261840 3fed0 capture.exe 75578 1796 184484 261858 3fee2 nsecs.exe 113844 2084 145920 261848 3fed8 paranoia.exe 126688 1732 133440 261860 3fee4 cdtest.exe 61480 1708 198656 261844 3fed4 base_sp.exe 63220 1716 196900 261836 3fecc unlimited.exe 68420 1668 191744 261832 3fec8 hello.exe For the tms570ls3137_hdk_intram BSP variant with this option, sample executables sizes were as follows: text data bss dec hex filename 59824 1696 200320 261840 3fed0 ticker.exe 24268 1372 236196 261836 3fecc minimum.exe 127016 2324 132512 261852 3fedc capture.exe 71966 1784 188096 261846 3fed6 nsecs.exe 109904 2072 149856 261832 3fec8 paranoia.exe 120816 1720 139296 261832 3fec8 cdtest.exe 57416 1696 202720 261832 3fec8 base_sp.exe 58188 1688 201956 261832 3fec8 unlimited.exe 63064 1616 197152 261832 3fec8 hello.exe For the tms570ls3137_hdk_sdram BSP variant without this option, sample executables sizes were as follows: text data bss dec hex filename 63760 1708 8323104 8388572 7fffdc ticker.exe 40197 1452 8346912 8388561 7fffd1 minimum.exe 557376 1972 7829220 8388568 7fffd8 cxx_iostream.exe 400275 5792 7982500 8388567 7fffd7 fileio.exe 304684 12608 8071264 8388556 7fffcc pppd.exe 132744 2344 8253472 8388560 7fffd0 capture.exe 75578 1796 8311204 8388578 7fffe2 nsecs.exe 113844 2084 8272640 8388568 7fffd8 paranoia.exe 126688 1732 8260160 8388580 7fffe4 cdtest.exe 61480 1708 8325376 8388564 7fffd4 base_sp.exe 63220 1716 8323620 8388556 7fffcc unlimited.exe 68420 1668 8318464 8388552 7fffc8 hello.exe 181144 6492 8200928 8388564 7fffd4 loopback.exe For the tms570ls3137_hdk_sdram BSP variant with this option, sample executables sizes were as follows: text data bss dec hex filename 59824 1696 8327040 8388560 7fffd0 ticker.exe 24268 1372 8362916 8388556 7fffcc minimum.exe 346612 1936 8040004 8388552 7fffc8 cxx_iostream.exe 388979 5780 7993796 8388555 7fffcb fileio.exe 283096 12456 8092996 8388548 7fffc4 pppd.exe 127016 2324 8259232 8388572 7fffdc capture.exe 71966 1784 8314816 8388566 7fffd6 nsecs.exe 109904 2072 8276576 8388552 7fffc8 paranoia.exe 120816 1720 8266016 8388552 7fffc8 cdtest.exe 57416 1696 8329440 8388552 7fffc8 base_sp.exe 58188 1688 8328676 8388552 7fffc8 unlimited.exe 63064 1616 8323872 8388552 7fffc8 hello.exe 167884 6392 8214272 8388548 7fffc4 loopback.exe For the tms570ls3137_hdk_with_loader BSP variant without this option, sample executables sizes were as follows: text data bss dec hex filename 63760 1708 260224 325692 4f83c ticker.exe 40197 1452 260480 302129 49c31 minimum.exe 557376 1972 260000 819348 c8094 cxx_iostream.exe 400281 5792 256192 662265 a1af9 fileio.exe 304684 12608 249632 566924 8a68c pppd.exe 132744 2344 259616 394704 605d0 capture.exe 75578 1796 260160 337534 5267e nsecs.exe 113844 2084 259872 375800 5bbf8 paranoia.exe 126688 1732 260224 388644 5ee24 cdtest.exe 61480 1708 260224 323412 4ef54 base_sp.exe 63220 1716 260224 325160 4f628 unlimited.exe 68420 1668 260288 330376 50a88 hello.exe 181144 6492 255744 443380 6c3f4 loopback.exe For the tms570ls3137_hdk_with_loader BSP variant with this option, sample executables sizes were as follows: text data bss dec hex filename 59824 1696 260256 321776 4e8f0 ticker.exe 24268 1372 260576 286216 45e08 minimum.exe 346612 1936 260032 608580 94944 cxx_iostream.exe 388985 5780 256192 650957 9eecd fileio.exe 283096 12456 249760 545312 85220 pppd.exe 127016 2324 259648 388988 5ef7c capture.exe 71966 1784 260160 333910 51856 nsecs.exe 109904 2072 259872 371848 5ac88 paranoia.exe 120816 1720 260224 382760 5d728 cdtest.exe 57416 1696 260256 319368 4df88 base_sp.exe 58188 1688 260256 320132 4e284 unlimited.exe 63064 1616 260320 325000 4f588 hello.exe 167884 6392 255840 430116 69024 loopback.exe
* Use linker set for libio initializationSebastian Huber2016-02-031-2/+0
| | | | Update #2408.
* bsps: Delete superfluous bsp_pretasking_hook()Sebastian Huber2015-12-101-1/+0
| | | | | | Use the bsp_predriver_hook() instead. Update #2408.
* bsp/tms570: ensure that linker symbol comparison to NULL is not optimized out.Pavel Pisa2015-12-011-2/+12
| | | | Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
* bsp/tms570: unite code duplication in pinmux and clean SCI close per review ↵Premysl Houdek2015-11-183-18/+21
| | | | | | remarks. Signed-off-by: Premysl Houdek <kom541000@gmail.com>
* bsp/tms570: use common tms570ls3137.inc file for all board ling variants.Pavel Pisa2015-11-185-64/+24
| | | | Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
* bsp/tms570: separate Flash variants to one which boots directly and one for ↵Premysl Houdek2015-11-184-0/+57
| | | | | | | | | | | | boot loader. The default tms570ls3137_hdk variant is for building RTEMS application image starting directly from start of Flash. Variant tms570ls3137_hdk_with_loader skips 256kB at start of Flash to allow use with application loader. Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
* bsp/tms570: use POM only when application image does not start at address 0.Pavel Pisa2015-11-187-14/+159
| | | | | | | | | | | | | | | | | | | | | Parameters overlay module is initialized and cleared first. It is used later to replace exception target vectors only if that is required. The application loader code with CPU and SDRAM setup code has to provide well defined pattern of instructions at addresses 0x00000000 and 0x0000001f, because only data read accesses can be processed reliably by POM. The expected instruction pattern can be seen in the next example https://github.com/hornmich/tms570ls3137-hdk-sdram/blob/master/SDRAM_SCI_configuration/source/sys_intvecs.asm Comments with detailed description of code, background and reasons for selected approach have been included in TMS570 bsp startup code. Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz> Signed-off-by: Premysl Houdek <kom541000@gmail.com>
* bsp/tms570: updated reserved space for vector overlay in internal RAMPremysl Houdek2015-11-183-4/+6
|
* bsp/tms570: fixed sci driver freeze when closing terminal bugPremysl Houdek2015-11-181-3/+5
| | | | | | tms570_sci_interrupt_last_close: do not wait for old data transmit. Signed-off-by: Premysl Houdek <kom541000@gmail.com>
* bsp/tms570: Pinmux support and EMAC pin definition addedPremysl Houdek2015-11-184-1/+216
| | | | Signed-off-by: Premysl Houdek <kom541000@gmail.com>
* bsp/tms570: EMAC control header file corrected and EMAC interrupt vector addedPremysl Houdek2015-11-186-236/+295
| | | | | Signed-off-by: Premysl Houdek <kom541000@gmail.com> Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
* bsp/tms570 Use bitfields instead of hard-coded valuesPremysl Houdek2015-07-204-32/+52
| | | | Signed-off-by: Premysl Houdek <kom541000@gmail.com>
* bsp/tms570: skipped 32bit field definitions and corrected single bit fieldsPremysl Houdek2015-07-2036-3298/+2641
| | | | | | | | there is no need to define access macros for field covering whole registers. In addition, BSP_FLD32 does not work right for field 32bit length. Signed-off-by: Premysl Houdek <kom541000@gmail.com>
* bsp/tms570: source changes reflecting new headers.Premysl Houdek2015-07-1611-230/+335
| | | | Signed-off-by: Premysl Houdek <kom541000@gmail.com>
* bsp/tms570: fix get time resolution after infrastructure change to timecounter.Pavel Pisa2015-07-161-6/+35
| | | | | | | | | | | | | | | | | The update fixes breakage of TMS570 support after Alexander Krutwig switch of RTEMS time read to timecounter mechanism bsps: Convert clock drivers to use a timecounter Mechanism to specify odd (non 1 Mhz) time base update frequencies implemented after objections of Martin Galvan. Code is adjusted to convert RTEMS configuration parameter microseconds_per_tick to such odd base if TMS570_PREFERRED_TC_FREQUENCY is specified appropriately. Signed-off-by: Premysl Houdek <kom541000@gmail.com> Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
* bsp/tms570: New/generated header files for TMS570 SoC peripherals registers.Premysl Houdek2015-07-1637-0/+14362
| | | | | | | | | | | The header files are generated by script make_header.py. Current script's version can be found at: https://github.com/AoLaD/rtems-tms570-utils/tree/headers/headers/python Registers offsets and fields have been extracted from reference manual. Signed-off-by: Premysl Houdek <kom541000@gmail.com>
* Multiple bsp_specs: Change *(old_endfile) to %(old_endfile)Joel Sherrill2015-05-211-1/+1
| | | | | | Fix typo. closes 2345.
* bsp/tms570: TypoSebastian Huber2015-05-211-1/+1
|
* bsps: Convert clock drivers to use a timecounterAlexander Krutwig2015-05-201-27/+13
| | | | Update #2271.
* tms570/startup/bspreset.c: Add include <bsp/bootcard.h> to fix warningJoel Sherrill2015-04-151-14/+15
|
* TMS570: Add board reset code to bsp_resetMartin Galvan2015-03-312-22/+34
|
* TMS570: Enable FPU in makefile.Martin Galvan2015-03-271-1/+1
|
* Add fsscandir01 variants as needed to more BSPs testsuite configurationJoel Sherrill2015-03-061-0/+1
|