summaryrefslogtreecommitdiffstats
path: root/sys/arm/rockchip
Commit message (Collapse)AuthorAgeFilesLines
* Implement GPIO_GET_BUS() method for all GPIO drivers.loos2015-01-311-7/+18
| | | | | Add helper routines to deal with attach and detach of gpiobus and gpioc devices that are common to all drivers.
* Clean up and fix the device detach routine and the failure path on GPIOloos2015-01-311-7/+6
| | | | | | drivers. This paves the way for upcoming work.
* Rename bus_space-v6.c to bus_space_base.c, because it's not v6-specifician2015-01-211-1/+1
| | | | | and now some v5 Marvell systems are using it. Only define fdt_bus_tag if option FDT is defined.
* Enable Synopsys DesignWare Mobile Storage Host Controllerganbold2015-01-201-0/+2
| | | | | | | | driver on Rockchip boards. It currently supports PIO mode and dma mode needs external dma controller to be used. Submitted by: jmcneill Approved by: stas (mentor)
* Rename gic_init_secondary to arm_init_secondary_ic to help with the mergeandrew2015-01-111-1/+1
| | | | of the arm_intrng project branch.
* Fix the handling of pull-up and pull-down for RK3188.loos2015-01-071-24/+46
| | | | | | | For this to work the driver needs to know the bank it has attached to since the registers for the first 12 pins are at a different location. Move the lock initialization to simplify the code.
* Reduce the maximum number of pins for the Rockchip RK3188, this driverloos2015-01-071-93/+34
| | | | | | | | | | | | | | isn't supposed to manage all the GPIO pins in the system from a single instance, instead it will attach to each one of the four available GPIO controllers and only deal with one bank at time (32 pins per bank). Rework part of the driver to take advantage of that, this simplify the code a lot. Also fix a bug in rk30_gpio_get_function() which wouldn't return the correct values. While here fix a typo in register name.
* Remove -Wa,-march=armv7a from arm kernel configs, it makes clang 3.5 sadian2015-01-011-1/+1
| | | | and apparently isn't needed now that we're using the integrated assembler.
* Add -march=armv7a to the kernel compile for all ARM systems which are v7a.ian2014-12-211-0/+1
| | | | Submitted by: Michal Meloun <meloun@miracle.cz>
* Moves all the duplicate code to a single function.loos2014-11-181-14/+0
| | | | | Verify for invalid modes and unwanted flags before pass the new flags to driver.
* Make the GPIO children attach to the first unit available and not only toloos2014-10-281-2/+2
| | | | | | | | | unit 0. It seems that this 'simplification' was copied to all GPIO drivers in tree. This fix a bug where a GPIO controller could fail to attach its children (gpioc and gpiobus) if another GPIO driver attach first.
* Rename OF_xref_phandle() to OF_node_from_xref() and add a new functionian2014-09-011-1/+1
| | | | | | that provides the inverse translation, OF_xref_from_node(). Discussed with: nwhitehorn
* Factor out kernel configuration for DWC OTG FDT attach code.hselasky2014-05-291-1/+0
|
* 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@
* Rename platform_gpio_init to be SoC specific, and make it static as it'sandrew2014-05-101-4/+4
| | | | only called from this file.
* Add the codes for enabling CPU cores of Rockchip RK3188 SoC.ganbold2014-05-093-0/+194
| | | | | | Enable SMP for Radxa Rock board. Approved by: stas (mentor)
* Switch to use arm_devmap_add_entry() to setup static device mapping.ganbold2014-05-021-19/+3
| | | | Approved by: stas (mentor)
* Switch to my freebsd.org emal address in copyright.ganbold2014-03-259-9/+9
| | | | Approved by: stas (mentor)
* 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-024-0/+12
| | | | | | | | | | | | | 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.
* Remove STARTUP_PAGETABLE_ADDR from the ARM configs and replace it withandrew2014-01-281-2/+0
| | | | | | | | | memory at the end of the kernel. This helps reduce the SoC and board specific configuration required. Reviewed by: bsdimp Tested by: jmg (armeb), br
* Add gpio parse routines according to sys/boot/fdt/dts/bindings-gpio.txt.ganbold2013-12-091-0/+146
| | | | Reviewed by: stas@
* Enable reset mechanism for rk3188.ganbold2013-11-251-1/+4
| | | | Approved by: ray@
* Add watchdog driver for rk3188.ganbold2013-11-253-0/+234
| | | | Approved by: ray@
* Switch allwinner A10/A20 and rockchip ports to use common ARMv6/v7 bus_space ↵ray2013-11-062-114/+1
| | | | | | tag. Tested by: ganbold
* 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-3/+4
| | | | | | | 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).
* Oops, one more instance of ARM_NOCACHE_KVA_SIZE was hiding under the couch.ian2013-10-271-1/+1
| | | | This should have been cleaned up along with r257201.
* Remove #include <machine/frame.h> from all the arm code that doesn'tian2013-10-274-4/+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.
* Import basic support for Rockchip RK3188 SoC.ganbold2013-10-2310-0/+1336
Reviewed by: ray@
OpenPOWER on IntegriCloud