summaryrefslogtreecommitdiffstats
path: root/sys/arm/amlogic
Commit message (Collapse)AuthorAgeFilesLines
* Include "opt_platform.h" to fix kernel build for amlogic devices.ganbold2015-10-201-0/+2
|
* Rename arm_init_secondary_ic() -> arm_pic_init_secondary(). The latter isian2015-10-181-1/+1
| | | | | | the name the function will have when the new ARM_INTRNG code is integrated, and doing this rename first will make it easier to toggle the new interrupt handling code on/off with a config option for debugging.
* Add alternate descriptors support for if_dwc.loos2015-09-201-2/+0
| | | | | | | | | | | | | | | | | | This also adds a newbus interface that allows a SoC to override the following settings: - if_dwc specific SoC initialization; - if_dwc descriptor type; - if_dwc MII clock. This seems to be an old version of the hardware descriptors but it is still in use in a few SoCs (namely Allwinner A20 and Amlogic at least). Tested on Cubieboard2 and Banana pi. Tested for regressions on Altera Cyclone by br@ (old version). Obtained from: NetBSD
* CALLOUT_MPSAFE has lost its meaning since r141428, i.e., for more than tenjkim2015-05-221-1/+1
| | | | | | | | | | years for head. However, it is continuously misused as the mpsafe argument for callout_init(9). Deprecate the flag and clean up callout_init() calls to make them more consistent. Differential Revision: https://reviews.freebsd.org/D2613 Reviewed by: jhb MFC after: 2 weeks
* Add missing break statement.ganbold2015-05-211-1/+3
| | | | Submitted by: John Wehle
* Add driver for usbclock generator for earlier amlogic chip.ganbold2015-05-212-0/+429
| | | | | Differential Revision: https://reviews.freebsd.org/D2590 Submitted by: John Wehle
* Remove unnecessary break statements.ganbold2015-05-213-3/+0
| | | | Submitted by: John Wehle
* The RTC initialization values are based on the SoC which can beganbold2015-05-211-33/+18
| | | | | | | | | | determined at runtime so there's no need to set the values in each DTS. Tested on YYHD18 (aml8726-m3), VSATV102 (aml8726-m6), and ODROIDC1 (aml8726-m8b). Differential Revision: https://reviews.freebsd.org/D2588 Submitted by: John Wehle
* Clean up the Amlogic interrupt controller driver to handle the case whereandrew2015-05-183-22/+11
| | | | | | | | we have both the Amlogic pic and a GIC. This may be the case in some configurations. Differential Revision: https://reviews.freebsd.org/D2432 Submitted by: John Wehle <john@feith.com>
* Disable WPI in case of aml8726-m3.ganbold2015-05-121-0/+14
| | | | | | | | | The aml8726-m3 SoC is identified as a Cortex A9-r2 rev 4 CPU and it hangs sometimes during the boot when WFI is used by the kernel. Differential Revision: https://reviews.freebsd.org/D2473 Submitted by: John Wehle Suggested by: ian@
* Use the new gic option on all configs that need it.andrew2015-05-101-1/+0
|
* This follows the gic and ti/aintc code by adding additional barriers to theganbold2015-05-081-0/+6
| | | | | | | Amlogic pic driver. Differential Revision: https://reviews.freebsd.org/D2472 Submitted by: John Wehle
* This patch adds support for the extended baud rate registerganbold2015-05-062-7/+54
| | | | | | | | available on the aml8726-m6 (and later) SoC which allows for lower speeds. Differential Revision: https://reviews.freebsd.org/D2433 Submitted by: John Wehle
* Update Amlogic MMC driver:ganbold2015-04-282-152/+180
| | | | | | | | | | | | | | | | | | | | | | | | 1) Advertise the actual min / max speeds the hardware is capable of supporting given the reference clock used by the board. 2) Rather than attempting to extend the hardware's timeout register in software (the hardware doesn't have sufficient bits to directly support long timeouts), simply implement the same timeout approach used in the SDXC driver. 3) Set the timeout for a linked command (e.g. STOP TRANSMISSION) based on the previous multiblock read / write. The changes have been smoke tested on both the ODROID-C1 and the VSATV102-M6 using the following cards: * PQI 2GB microSD * SanDisk 2GB microSD * PQI 8GB SDHC (not a microSD so only tested on the ATV-102) * PNY 8GB microSDHC * SanDisk Ultra 32GB microSDHC Submitted by: John Wehle
* Remove the need for board specific std files on aml8726 by moving theandrew2015-04-232-14/+0
| | | | options they set to the main kernel config.
* Move KERNVIRTADDR to the common std.aml8726.andrew2015-04-233-18/+9
|
* - Move files selected in files.smp to files.aml8726 and remove it.andrew2015-04-234-7/+2
| | | | - Remove a redundant file from files.aml8726
* Add support for the uart classes to set their default register shift value.andrew2015-04-111-1/+2
| | | | | | | | | | | This is needed with the pl011 driver. Before this change it would default to a shift of 0, however the hardware places the registers at 4-byte addresses meaning the value should be 2. This patch fixes this for the pl011 when configured using the fdt. The other drivers have a default value of 0 to keep this a no-op. MFC after: 1 week
* This modifies several FreeBSD drivers to use the GNU approach toganbold2015-04-116-31/+110
| | | | | | | | supply clk81 information. It also changes the hardware strings in some of the drivers to match what's present in the GNU files. Submitted by: John Wehle Reviewed by: imp
* This modifies several FreeBSD drivers to use the hardware stringsganbold2015-04-113-3/+3
| | | | | | | present in the GNU dts files. Submitted by: John Wehle Reviewed by: imp
* Include vm/pmap.h for pmap_kextract.andrew2015-04-042-0/+6
|
* Add necessary changes to support various Amlogic SoC devicesganbold2015-03-3134-0/+10771
specially aml8726-m6 and aml8726-m8b SoC based devices. aml8726-m6 SoC exist in devices such as Visson ATV-102. Hardkernel ODROID-C1 board has aml8726-m8b SoC. The following support is included: Basic machdep code SMP Interrupt controller Clock control driver (aka gate) Pinctrl Timer Real time clock UART GPIO I2C SD controller SDXC controller USB Watchdog Random number generator PLL / Clock frequency measurement Frame buffer Submitted by: John Wehle Approved by: stas (mentor)
OpenPOWER on IntegriCloud