summaryrefslogtreecommitdiffstats
path: root/sys/arm/versatile
Commit message (Collapse)AuthorAgeFilesLines
* opt_global.h is included automatically in the build. No need toimp2014-11-182-3/+0
| | | | | | explicitly include it in these places. Sponsored by: Netflix
* Move if_smc_fdt.c to live in sys/dev/smc. It's not specific to the ARMandrew2014-09-102-136/+0
| | | | Versatile hardware.
* Don't destroy bus_dma maps created by bus_dmamem_alloc(). In some cases,jhb2014-06-101-2/+0
| | | | | | | | | don't create a map before calling bus_dmamem_alloc() (such maps were leaked). It is believed that the extra destroy of the map was generally harmless since bus_dmamem_alloc() often uses special maps for which bus_dmamap_destroy() is a no-op (e.g. on x86). Reviewed by: scottl
* Add the start of the ARM platform code. This is based on the PowerPCandrew2014-05-171-5/+6
| | | | | | | | | | platform code, it is expected these will be merged in the future when the ARM code is more complete. Until more boards can be tested only use this with the Raspberry Pi and rrename the functions on the other SoCs. Reviewed by: ian@
* Eliminate irq_dispatch.S. Move the data items it contained into arm/intr.cian2014-03-101-1/+0
| | | | | | | | and the functionality it provided into arm/exception.S. Rename the main irq handling routine from arm_handler_execute() to arm_irq_handler() to make it more congruent with how other exception handlers are named, and also update its signature to reflect what has long been reality: it is passed just a trapframe pointer, no interrupt number argument.
* Move all the files named foo/common.c to foo/foo_common.c, asimp2014-03-082-1/+1
| | | | | | appropriate for each of the 'foo' in the tree. This will allow us to compile them together (although symbol conflicts prevent us from doing that today, this just fixes the file name collision).
* Follow r261352 by updating all drivers which are children of simplebusian2014-02-026-0/+19
| | | | | | | | | | | | | to check the status property in their probe routines. Simplebus used to only instantiate its children whose status="okay" but that was improper behavior, fixed in r261352. Now that it doesn't check anymore and probes all its children; the children all have to do the check because really only the children know how to properly interpret their status property strings. Right now all existing drivers only understand "okay" versus something- that's-not-okay, so they all use the new ofw_bus_status_okay() helper.
* Fix race condition in DELAY for SP804 timer.zbb2014-01-011-6/+21
| | | | | | | | | | Fix race condition in DELAY function: sc->tc was not initialized yet when time_counter pointer was set, what resulted in NULL pointer dereference. Export sysfreq to dts. Submitted by: Wojciech Macek <wma@semihalf.com> Obtained from: Semihalf
* Correct license statements to reflect the fact that these files were alljhb2013-12-101-1/+3
| | | | | | derived from sys/arm/mv/bus_space.c. Approved by: core
* Call initarm_lastaddr() later in the init sequence, after establishingian2013-11-051-1/+7
| | | | | | | | | | | | | | | | | | | static device mappings, rather than as the first of the initializations that a platform can hook into. This allows a platform to allocate KVA from the top of the address space downwards for things like static device mapping, and return the final "last usable address" result after that and other early init work is done. Because some platforms were doing work in initarm_lastaddr() that needs to be done early, add a new initarm_early_init() routine and move the early init code to that routine on those platforms. Rename platform_devmap_init() to initarm_devmap_init() to match all the other init routines called from initarm() that are designed to be implemented by platform code. Add a comment block that explains when these routines are called and the type of work expected to be done in each of them.
* Move remaining code and data related to static device mapping into theian2013-11-041-2/+3
| | | | | | | new devmap.[ch] files. Emphasize the MD nature of these things by using the prefix arm_devmap_ on the function and type names (already a few of these things found their way into MI code, hopefully it will be harder to do by accident in the future).
* Sweep up a bit of arm-land fallout after r257244; include necessaryian2013-10-281-3/+4
| | | | headers directly that are no longer available via accidental include.
* Retire arm_remap_nocache() and the data and constants associated with it.ian2013-10-271-1/+1
| | | | | | The only remaining user was the code that allocates bounce pages for armv4 busdma. It's not clear why bounce pages would need uncached memory, but if that ever changes, kmem_alloc_attr() would be the way to get it.
* Remove #include <machine/frame.h> from all the arm code that doesn'tian2013-10-276-6/+0
| | | | | | really need it. That would be almost everywhere it was included. Add it in a couple files that really do need it and were previously getting it by accident via another header.
* Remove all #include <machine/pmap.h> from arm code. It's alreadyian2013-10-271-1/+0
| | | | | | | included by vm/pmap.h, which is a prerequisite for arm/machine/pmap.h so there's no reason to ever include it directly. Thanks to alc@ for pointing this out.
* In sys/arm/versatile/versatile_pci.c, add a default handler, to fix adim2013-10-101-0/+3
| | | | | | gcc warning about uninitialized use of a variable. Approved by: re (gjb)
* - Fix IMAPx registers values calculationgonzo2013-06-291-20/+24
| | | | | | | | | - Initialize SMAPx registers too although they're unused in QEMU - Do not pass IO/MEM resources to upper bus for activation, handle them locally. Previously ACTIVATE method of upper bus was no-op so nothing bad happened. But now FDT maps physaddr to vaddr and it causes troubles: fdtbus_activate_resource resource assumes that bustag/bushandle are already set which in this case is wrong.
* Enable patth-through of IRQ30 and IRQ31 to PIC just as comment statesgonzo2013-06-291-1/+1
|
* MFcalloutng:mav2013-02-281-13/+6
| | | | | | | Switch eventtimers(9) from using struct bintime to sbintime_t. Even before this not a single driver really supported full dynamic range of struct bintime even in theory, not speaking about practical inexpediency. This change legitimates the status quo and cleans up the code.
* Fix background color calculationgonzo2013-01-051-1/+1
| | | | Spotted by: ray@
* Add custom renderer for poor man's cursor support for framebuffer consolegonzo2012-12-281-2/+133
|
* Replace generic ARM11 option with more specificgonzo2012-12-201-0/+1
| | | | | | | support for ARM1136 and ARM1176 Submitted by: Daisuke Aoyama <aoyama at peach.ne.jp> Obtained from: NetBSD
* Add support for QEMU's version of Versatile Platform Boardgonzo2012-12-1313-0/+3246
OpenPOWER on IntegriCloud