summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* bsps: Update due to API changesSebastian Huber2012-04-072-7/+7
|
* GRETH: use shared-irq service instead of BSP specific set_vec()Daniel Hellstrom2012-04-061-5/+2
| | | | | | | | | | The ISR code is updated to use argument instead of global greth structure, now that the greth private is available in the ISR. The shared-irq routines will unmask the IRQ, so the forced LEON3 BSP unmask/clear IRQ is removed. Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
* SMC91111: updated to use shared IRQ serviceDaniel Hellstrom2012-04-062-8/+6
| | | | Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
* LEON3 - Fix spacingJoel Sherrill2012-04-062-2/+2
|
* LEON3: added IRQAMP supportDaniel Hellstrom2012-04-062-3/+18
|
* LEON3: halt boot if IRQ controller not foundDaniel Hellstrom2012-04-061-4/+9
| | | | Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
* SPARC BSPs: implemented shared-irq using libbsp/shared layerDaniel Hellstrom2012-04-0623-4/+634
| | | | | | | | | | | | | | | The implementation use IRQ number instead of vector number since some IRQs does not have a unique vector, for example the extended interrupts all enter the same trap vector entry. Added support for the LEON3 extended interrupt controller when using the shared IRQ layer. ERC32 patches untested. Signed-off-by: Daniel Hellstrom <daniel@gaisler.com> Regenerate
* LEON3: console use register pointers instead of UART indexesDaniel Hellstrom2012-04-052-33/+33
| | | | Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
* LEON3: cleanup console UART indexing handlingDaniel Hellstrom2012-04-052-61/+126
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The UART indexing was rather a mess when MP was enabled. The changes introduces two weak variables syscon_uart_index and debug_uart_index so that the user can override the default system debug console (printk) and system console UART (/dev/console). The two weak variables is updated on boot to reflect the "real" UART index. MINOR DEVICE-FS-NAME UART 0 /dev/console Default /dev/console_a, user selectable 1 /dev/console_a APBUART[0] (missing by default) 2 /dev/console_b APBUART[1] ... /dev/console_a is by default renamed /dev/console and assigned minor=0, but user can select /dev/console_['a'+N] to be renamed to /dev/console by setting syscon_uart_index=N. On a MP system the console renamed to /dev/console is selected by CPU index (LEON3_Cpu_Index). /dev/console_['a' + LEON3_Cpu_Index] is renamed unless overrided. Resource sharing is performed by the user, one should not open/access a console that another OS instance uses. This patch also moves the initialization of the UART to the open() call, note that before APBUART[0] was always enabled as debug uart even on MP systems. The debug UART is initialized at boot time. Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
* Add MIPS/Malta BSP.Jennifer Averett2012-04-0425-0/+3270
|
* PR 1993 - Convert MIPS to PIC IRQ modelJennifer Averett2012-04-0462-198/+2775
|
* bsp/mpc55xx: Add and use chip featuresSebastian Huber2012-04-031-5/+5
| | | | Add defines MPC55XX_HAS_SIU and MPC55XX_HAS_SIU_LITE.
* bsp/tqm8xx: Install header file <bsp/irq-info.h>Sebastian Huber2012-04-022-0/+5
|
* bsp/qemuppc: Install header file <bsp/irq-info.h>Sebastian Huber2012-04-022-1/+6
|
* bsps: Fix for clock driverSebastian Huber2012-04-021-27/+0
| | | | | | Do not use the e300 core decrementer auto-reload feature. We have to use the normal decrementer handler since otherwise it is impossible to pass test sptests/spnsext01.
* bsp/gen83xx: Fix console driver configurationSebastian Huber2012-04-021-1/+1
|
* bsp/gen83xx: Removed fileSebastian Huber2012-04-021-57/+0
|
* bsp/gen83xx: RegenerateSebastian Huber2012-04-021-36/+40
|
* bsps: More accurate PowerPC clock driverSebastian Huber2012-04-027-20/+47
| | | | | | The clock driver used previously the bsp_clicks_per_usec value. For a 33333333Hz time base frequency this leads to a relative error of one per cent for example due to integer truncation.
* bsp/gen83xx: Support cache BSP optionsSebastian Huber2012-04-022-3/+6
|
* bsp/gen83xx: Support for MPC830XSebastian Huber2012-04-021-1/+5
|
* bsp/gen83xx: Add sections for BSD supportSebastian Huber2012-04-021-0/+10
|
* bsp/gen83xx: Install new header fileSebastian Huber2012-04-021-10/+12
|
* bsp/virtex5: RegenerateSebastian Huber2012-04-021-0/+4
|
* Add Virtex4 and Virtex5 BSPsRic Claus2012-03-3031-0/+4201
| | | | | | | | | | | | | | | | | This commit covers at least PR2020, 2022, and 2023. This patch adds all of the code for both BSPs, modifications to libcpu/powerpc for the ppc440, and some updates to the BSPs from follow up review and testing. These BSPs should be good baselines for future development. The configurations used by Ric are custom and have a non-standard NIC. They also do not have a UART. Thus the current console driver just prints to a RAM buffer. The NIC and UART support are left for future work. When the UART support is added, moving the existing "to RAM" console driver to a shared location is likely desirable because boards with no debug UART port are commonly deployed. This would let printk() go to RAM.
* Resolve link problems with psim irq-serverJennifer Averett2012-03-3012-109/+578
|\ | | | | | | Add IRQ support components needed by new BSD code.
| * Resolve link problems with psim irq-serverJennifer Averett2012-03-304-2/+43
| |
| * PC386 - Add files missed in previous commitJoel Sherrill2012-03-292-40/+90
| |
| * PC386 Add RTD316 and Exar 17D15x multi-port serial card supportJoel Sherrill2012-03-294-0/+442
| | | | | | | | | | | | | | | | | | | | - RTD316 is a PC-104 board with one Z85C30 SCC for two synchronous or asynchronous serial ports. http://www.rtd.com/PC104/UM/network/CM316HR.htm - Exar 17D15X is a chip with 2, 4, or 8 NS16550 compatible serial ports with a PCI interface. It may be found on many multi-port serial ports including: http://www.rtd.com/PC104/UM/network/CM17320HR.htm
| * LEON3: various cleanups in leon.hDaniel Hellstrom2012-03-291-63/+1
| | | | | | | | | | | | Removed old LEON2 definitions never used in LEON3 leon.h. Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
| * LEON3: IRQ index mask was bad, but always shifted out anywayDaniel Hellstrom2012-03-291-1/+1
| | | | | | | | Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
| * LEON3: clock timer indexing should be consequentDaniel Hellstrom2012-03-291-3/+3
| | | | | | | | Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
* | Address Conflicts:Jennifer Averett2012-03-292-2/+7
|\ \ | |/ |/| | | c/src/lib/libbsp/powerpc/psim/startup/linkcmds
| * Added irq server and link commands for new libbsd support.Jennifer Averett2012-03-163-11/+24
| |
* | SPARC: bsp_early_malloc() routine for startup memory allocationDaniel Hellstrom2012-03-298-13/+80
| | | | | | | | | | | | | | | | | | | | | | | | If bsp_early_malloc() is called early during boot room will be allocated after BSS END. If the function is called after boot is will call malloc() instead. The returned memory is not freeable and always 8-byte aligned. If the bsp_early_malloc() isn't called the function is not dragged in and the workspace will be unmodified in size. Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
* | LEON3: fix GRETH interrupt initialization bugDaniel Hellstrom2012-03-291-4/+4
| | | | | | | | | | | | | | Fixed a bug where the vector number is used to clean and unmask the IRQ at the IRQ controller, the irq number must be used. Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
* | GRETH: added support for non-snooping GRETH 10/100 systemsDaniel Hellstrom2012-03-274-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When data cache snooping is not present the cache needs flushing, the SPARC LEON CPUs does not have to ability to flush individual cache rows and flushing all cache is expensive. Instead the LDA instruction is used to force cache miss on individual loads during the IP-align copy operation required anyway. GRETH GBIT non-snooping systems are still unsupported, since it use zero-copy (can deal with unaligned DMA). Let the bsp.h select if the GRETH driver is supported. Currently only the LEON2/LEON3 platforms BSPs builds the driver. Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
* | bsp/lm3s69xx: Reflect new Qemu patchSebastian Huber2012-03-241-6/+1
| |
* | bsps: Shared ARMv7-M interrupt supportSebastian Huber2012-03-2411-129/+184
| |
* | bsps: Add shared default IRQ handlerSebastian Huber2012-03-2433-158/+141
| |
* | bsp/lm3s69xx: FormatSebastian Huber2012-03-242-58/+52
| |
* | bsp/lm3s69xx: Use shared timer stub driverSebastian Huber2012-03-242-36/+1
| |
* | bsp/lm3s69xx: Use shared start.SSebastian Huber2012-03-243-132/+12
| |
* | bsps: Shared ARMv7-M clock driverSebastian Huber2012-03-245-14/+47
| |
* | bsp/lm3s69xx: New Qemu patchSebastian Huber2012-03-241-0/+29
| |
* | bsps: Provide optional prototypeSebastian Huber2012-03-241-9/+12
| |
* | bsp/lpc24xx: Use proper clock valueSebastian Huber2012-03-241-1/+5
| |
* | bsp/lpc24xx: More CAN pin definitionsSebastian Huber2012-03-241-4/+16
| |
* | SMC91111: ERC32 was never supported by driverDaniel Hellstrom2012-03-212-0/+4
| | | | | | | | | | | | | | | | | | Moved the intelligence whether the driver is supported or not completely to the BSP, now that bsp.h is included (even though it is a driver... hmm). The ERC32 was never supported, so HAS_SMC91111 is not added to erc32/include/bsp.h. Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
* | shared-irq: add support for custom BSP vector verificationDaniel Hellstrom2012-03-212-0/+10
| | | | | | | | Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>