Commit Graph

8409 Commits

Author SHA1 Message Date
Till Straumann
8da6d77d10 2007-11-30 Till Straumann <strauman@slac.stanford.edu>
* irq/irq.h, irq/irq_init.c: Removed the definition
	of ASM_IRQ_VECTOR_BASE; this symbol was only use to
	initialize the irqBase member of the rtems_irq_global_settings
	struct. However, irqBase is an rtems_irq_symbolic_name,
	so using BSP_LOWEST_OFFSET is more appropriate.
2007-11-30 20:28:02 +00:00
Till Straumann
10483cba75 2007-11-30 Till Straumann <strauman@slac.stanford.edu>
* irq/irq.h, irq/irq.c (removed), irq/no_pic.c (added),
	irq/irq_init.c, Makefile.am: The PSIM BSP (currently)
	has no support for an interrupt controller or interrupts
	other than the decrementer. Removed all definitions for PCI + ISA
	interrupts and all unnecessary code (leftovers from copying).
	Separated PIC-specific bits into 'no_pic.c' which allows us
	to use 'irq.c' (i.e., more code) from 'shared'.
2007-11-30 19:55:46 +00:00
Till Straumann
431bcd7513 2007-11-30 Till Straumann <strauman@slac.stanford.edu>
* startup/linkcmds.c, start/start.S: call __eabi() from start.S
	and make sure linkcmds defines _SDA_BASE_ + _SDA2_BASE_ so that
	sysv + eabi are properly supported.
2007-11-30 19:45:40 +00:00
Joel Sherrill
a9c7159574 2007-11-30 Joel Sherrill <joel.sherrill@OARcorp.com>
* startup/bspstart.c: BSP_DIRTY_MEMORY should be tested for zero not
	just defined.
2007-11-30 18:16:16 +00:00
Joel Sherrill
0da3998706 2007-11-30 Daniel Hellstrom <daniel@gaisler.com>
* shared/include/grspw.h, shared/spw/grspw.c: GRSPW SpaceWire Driver.
	Fixes typecast to volatile integer instead of to integer. Added
	scanning for GRSPW2 Core, The GRSPW2 core is run in legacy mode.
2007-11-30 16:53:21 +00:00
Joel Sherrill
5b42368a5c 2007-11-30 Daniel Hellstrom <daniel@gaisler.com>
* shared/can/occan.c: LEON2/3 OCCAN CAN driver. Fixes typecast to
	volatile integer where needed. Fixes bug where closing the driver and
	opening it again could make the driver not starting transmission due
	to the software fifo was not cleared.
2007-11-30 16:52:15 +00:00
Joel Sherrill
6f237224b7 2007-11-30 Daniel Hellstrom <daniel@gaisler.com>
* rasta/rasta.c: LEON2 PCI RASTA driver. Changes RASTA PCI interrupt to
	5 from 4. This is to avoid conflict with the LAN9C111 network MAC
	driver using interrupt 4.
2007-11-30 16:51:00 +00:00
Joel Sherrill
e3481dcd4f 2007-11-30 Daniel Hellstrom <daniel@gaisler.com>
* shared/can/grcan.c, shared/can/grcan_rasta.c,
	shared/include/ambapp.h: GRCAN CAN driver. Fixes Interrupt
	enabling/disabling in the driver, interrupt may not be restored
	correctly. Implements the baud rate calculation routine. Removed
	unnecessary printk. Fixed scanning to support GRCAN and GRHCAN
	hardware. Added GRCAN device number to ambapp.h.
2007-11-30 16:48:13 +00:00
Till Straumann
a725a4d71f 2007-11-29 Till Straumann <strauman@slac.stanford.edu>
* startup/bspstart.c, Makefile.am: Initialize BATs and enable MMU
	to come closer to what other BSPs do. This allows us to use the
	shared irq_asm.S. No more individual assembly code :-)
2007-11-30 01:23:04 +00:00
Till Straumann
486d6ec686 2007-11-29 Till Straumann <strauman@slac.stanford.edu>
* mpc6xx/mmu/bat.c, mpc6xx/mmu/bat.h: Added support
	for setting & reading IBATs.
2007-11-30 01:05:08 +00:00
Joel Sherrill
12ae8a16a5 2007-11-28 Joel Sherrill <joel.sherrill@OARcorp.com>
* ppc403/clock/clock.c: Now compiles and links.
2007-11-28 22:03:43 +00:00
Joel Sherrill
d046f1ed65 2007-11-28 Joel Sherrill <joel.sherrill@OARcorp.com>
* startup/bspstart.c: Now compiles and links.
2007-11-28 22:02:57 +00:00
Joel Sherrill
641c3bd3bc 2007-11-28 Joel Sherrill <joel.sherrill@OARcorp.com>
* startup/bspstart.c: Fix mistake in previous work.
2007-11-28 21:45:45 +00:00
Joel Sherrill
c4cc81993a 2007-11-28 Joel Sherrill <joel.sherrill@OARcorp.com>
* mpc5xx/clock/clock.c, mpc5xx/timer/timer.c, mpc8260/clock/clock.c,
	mpc8260/cpm/brg.c, mpc8260/timer/timer.c, mpc8xx/clock/clock.c,
	mpc8xx/console-generic/console-generic.c, mpc8xx/timer/timer.c,
	new-exceptions/raw_exception.c, old-exceptions/cpu.c,
	ppc403/clock/clock.c, ppc403/console/console.c,
	ppc403/console/console.c.polled, ppc403/console/console405.c,
	ppc403/ictrl/ictrl.c, ppc403/irq/ictrl.c, ppc403/timer/timer.c,
	ppc403/tty_drv/tty_drv.c: Eliminate PowerPC specific elements from
	the CPU Table. They have been replaced with variables named bsp_XXX
	as needed.
2007-11-28 21:45:06 +00:00
Joel Sherrill
28f398e717 2007-11-28 Joel Sherrill <joel.sherrill@OARcorp.com>
* shared/startup/bspstart.c: Eliminate PowerPC specific elements from
	the CPU Table. They have been replaced with variables named bsp_XXX
	as needed.
2007-11-28 21:44:49 +00:00
Joel Sherrill
07e9642ce0 2007-11-28 Joel Sherrill <joel.sherrill@OARcorp.com>
* startup/bspstart.c: Eliminate PowerPC specific elements from the CPU
	Table. They have been replaced with variables named bsp_XXX as
	needed.
2007-11-28 21:44:46 +00:00
Joel Sherrill
b9f34ad768 2007-11-28 Joel Sherrill <joel.sherrill@OARcorp.com>
* startup/bspstart.c, startup/bspstart.c.nocache: Eliminate PowerPC
	specific elements from the CPU Table. They have been replaced with
	variables named bsp_XXX as needed.
2007-11-28 21:44:35 +00:00
Joel Sherrill
62577f9317 2007-11-28 Joel Sherrill <joel.sherrill@OARcorp.com>
* clock/clock.c, startup/bspstart.c: Eliminate PowerPC specific
	elements from the CPU Table. They have been replaced with variables
	named bsp_XXX as needed.
2007-11-28 21:44:29 +00:00
Till Straumann
54444d5faa 2007-11-28 Till Straumann <strauman@slac.stanford.edu>
* shared/src/cache.c: removed redundant mpc8xx versions
	of flush/invalidate 1 cache line routines.
2007-11-28 20:56:21 +00:00
Glenn Humphrey
615563906a 2007-11-27 Glenn Humphrey <glenn.humphrey@OARcorp.com>
* rtems.adb, rtems.ads: Fixed errors in the barrier binding.
2007-11-27 21:22:44 +00:00
Till Straumann
6c81fcc2a1 2007-11-29 Till Straumann <strauman@slac.stanford.edu>
* shared/flash/flash.c, shared/flash/flashPgm.h:
	added calls to obtain info about flash bank start,
	size and block size.
2007-11-27 21:14:26 +00:00
Till Straumann
2a444594b7 2007-11-29 Till Straumann <strauman@slac.stanford.edu>
* Makefile.am, shared/flash, shared/flash/flash.c,
	shared/flash/flashPgm.h, shared/flash/flashPgmPvt.h,
	shared/flash/intelFlash.c, shared/flash/spansionFlash.c:
	Added flash programmer API, implementation and chip drivers
	for some intel + spansion flash chips (as found on mvme5500,
	mvme6100 and mvme3100 boards).
	A more appopriate place would probably be libchip but
	I don't know if the API is acceptable and if the implementation
	is generic enough (e.g., no CFI support) so I leave it here
	for now.
2007-11-27 20:36:22 +00:00
Till Straumann
118df76a8c 2007-11-20 Till Straumann <strauman@slac.stanford.edu>
* libchip/rtc/ds1375.c, libchip/rtc/ds1375-rtc.h:
		added CVS ID.
2007-11-27 19:44:54 +00:00
Joel Sherrill
fa920f122d 2007-11-26 Joel Sherrill <joel.sherrill@oarcorp.com>
* clock/ckinit.c, startup/bspstart.c: Eliminate the
	clicks_per_microsecond field in the SuperH CPU Table and define
	another mechanism for drivers to obtain this information.
2007-11-26 23:02:17 +00:00
Joel Sherrill
26d47f8e73 2007-11-26 Joel Sherrill <joel.sherrill@oarcorp.com>
* startup/bspstart.c: Eliminate the clicks_per_microsecond field in the
	SuperH CPU Table and define another mechanism for drivers to obtain
	this information.
2007-11-26 23:02:15 +00:00
Joel Sherrill
99f67930c2 2007-11-26 Joel Sherrill <joel.sherrill@oarcorp.com>
* sh7032/clock/ckinit.c, sh7032/delay/delay.c, sh7032/timer/timer.c,
	sh7045/clock/ckinit.c, sh7045/timer/timer.c, sh7750/clock/ckinit.c,
	sh7750/timer/timer.c: Eliminate the clicks_per_microsecond field in
	the SuperH CPU Table and define another mechanism for drivers to
	obtain this information.
2007-11-26 23:02:03 +00:00
Joel Sherrill
b72f579982 2007-11-26 Joel Sherrill <joel.sherrill@oarcorp.com>
* clock/ckinit.c: Eliminate the clicks_per_microsecond field in the
	MIPS CPU Table and define another mechanism for drivers to obtain
	this information.
2007-11-26 22:58:07 +00:00
Joel Sherrill
c63f6e2efc 2007-11-26 Joel Sherrill <joel.sherrill@oarcorp.com>
* clock/ckinit.c, startup/bspstart.c: Eliminate the
	clicks_per_microsecond field in the MIPS CPU Table and define another
	mechanism for drivers to obtain this information.
2007-11-26 22:36:18 +00:00
Joel Sherrill
9d7fa71a51 2007-11-26 Joel Sherrill <joel.sherrill@oarcorp.com>
* libchip/network/if_fxp.c: Spacing.
2007-11-26 22:25:53 +00:00
Joel Sherrill
4c3d3cdbfd 2007-11-26 Joel Sherrill <joel.sherrill@oarcorp.com>
* bootcard.c: Add comment.
2007-11-26 22:09:27 +00:00
Joel Sherrill
dde1eb364f 2007-11-26 Joel Sherrill <joel.sherrill@oarcorp.com>
* console/config.c: Fix typo.
2007-11-26 22:08:20 +00:00
Joel Sherrill
6fc48b2cba 2007-11-26 Joel Sherrill <joel.sherrill@oarcorp.com>
* startup/bspstart.c: Eliminate the interrupt_table_segment and
	interrupt_table_offset fields in the i386 CPU Table since they are
	never read.
2007-11-26 22:07:37 +00:00
Joel Sherrill
4bbf6ecbd8 2007-11-26 Joel Sherrill <joel.sherrill@oarcorp.com>
* shmsupp/getcfg.c: Fix spacing.
2007-11-26 21:52:53 +00:00
Joel Sherrill
bf5ef93d30 2007-11-26 Joel Sherrill <joel.sherrill@oarcorp.com>
* clock/ckinit.c, include/bsp.h: Fix spacing.
2007-11-26 21:52:51 +00:00
Joel Sherrill
4b69980046 2007-11-26 Joel Sherrill <joel.sherrill@oarcorp.com>
* startup/bspstart.c: Fix spacing.
2007-11-26 21:28:16 +00:00
Joel Sherrill
1693c131a1 2007-11-26 Joel Sherrill <joel.sherrill@oarcorp.com>
* startup/bspstart.c: Eliminate the interrupt_vector_table field in the
	m68k CPU Table since it is never read.
2007-11-26 21:20:33 +00:00
Joel Sherrill
a4ebf1f481 2007-11-26 Joel Sherrill <joel.sherrill@OARcorp.com>
* runtest.in: Filter out Memory exception error messages.
2007-11-26 19:45:16 +00:00
Joel Sherrill
d9b0895dff 2007-11-26 Joel Sherrill <joel.sherrill@OARcorp.com>
* shared/console/uart.c: Fix typo and spacing.
2007-11-26 19:33:55 +00:00
Joel Sherrill
1066597789 2007-11-26 Eric Norum <norume@aps.anl.gov>
* network/network.c: Fix LED configuration to match uCDIMM.
2007-11-26 17:48:33 +00:00
Till Straumann
f5dea7005a 2007-11-21 Till Straumann <strauman@slac.stanford.edu>
* shared/console/uart.c: when draining UART during
	initialization (wait for possible printk() activity
	to finish) look at TEMT (fifo, holding-reg and shift-reg)
	rather than THRE (fifo, holding-reg only). This resolved
	some scrambled output issues for me.

	Enhanced semantics: if BSP initializes BSPBaseBaud to a negative
	value then the driver interprets the modulus as a speed value
	and uses the current setting of the divisor to compute the
	clock speed (BSPBaseBaud). This is useful if you have a board
	that you know is initialized e.g., to 9600 but you
	don't know the clock speed.
2007-11-22 06:10:53 +00:00
Chris Johns
cb32666020 2007-11-22 Chris Johns <chrisj@rtems.org>
* m68k/mcf5235/include/mcf5235.h: Remove '/' from define label.
2007-11-22 04:40:41 +00:00
Till Straumann
5a8e5df7d4 2007-11-21 Till Straumann <strauman@slac.stanford.edu>
* Makefile.am, motorola_powerpc/Makefile.am,
	* shared/pci/detect_raven_bridge.c, Makefile.am,
	* shared/pci/generic_clear_hberrs.c: separated the generic
	version of _BSP_clear_hostbridge_errors() into its own
	file.
2007-11-21 08:03:30 +00:00
Till Straumann
d371a97e58 2007-11-20 Till Straumann <strauman@slac.stanford.edu>
* libchip/rtc/ds1375.c, libchip/rtc/ds1375-rtc.h:
	Avoid using 'stdio' before the system is up and fully
	initialized.
2007-11-21 06:23:12 +00:00
Till Straumann
381a2f18fc 2007-11-20 Till Straumann <strauman@slac.stanford.edu>
* libchip/rtc/ds1375.c, libchip/rtc/ds1375-rtc.h,
	* libchip/Makefile.am, libchip/preinstall.am:
	added new driver for Maxim DS1375 i2c RTC.
2007-11-20 20:16:43 +00:00
Till Straumann
ff9d8898e5 2007-11-13 Till Straumann <strauman@slac.stanford.edu>
* shared/src/cache.c: moved generic operations
	(flush/invalidate 1 data line, invalidate 1 inst. line)
	from #ifdef <cpu_flavor> to general section (all CPUs).
2007-11-14 00:42:18 +00:00
Till Straumann
a10c721462 2007-11-13 Till Straumann <strauman@slac.stanford.edu>
* shared/src/cache_.h: include <libcpu/cache.h> only
	#ifdef _OLD_EXCEPTIONS - no need for <libcpu/cache.h>
	otherwise.
2007-11-14 00:40:20 +00:00
Till Straumann
b472166df6 2007-11-13 Till Straumann <strauman@slac.stanford.edu>
* shared/include/byteorder.h: fixed wrong pointer-type
	of ld_le32() (uint16_t* -> uint32_t*).
2007-11-14 00:36:59 +00:00
Joel Sherrill
d880c88e22 2007-11-09 Joel Sherrill <joel.sherrill@oarcorp.com>
* ada.am: Now builds cleanly with GCC trunk.
2007-11-09 17:09:41 +00:00
Joel Sherrill
edf4ee47df 2007-11-07 Joel Sherrill <joel.sherrill@OARcorp.com>
* aclocal.m4: Removed. Is automatically generated by bootstrap.
2007-11-07 15:31:10 +00:00
Joel Sherrill
5a364be362 2007-11-03 Ray Xu <rayx.cn@gmail.com>
*lpc22xx/irq/bsp_irq_asm.S: Add veneer for ARM<->Thumb
        lpc22xx/irq/bsp_irq_init.c: add VIC address init
2007-11-06 22:54:21 +00:00