Commit Graph

170 Commits

Author SHA1 Message Date
jmcneill
453e6ce9bc Support for "opp-microvolt" with more than one cell 2018-11-01 14:47:36 +00:00
aymeric
e63eecd71b Deactivate the watchdog timer during attach.
Recent u-boot starts up the watchdog timer, and we don't detect this so
e.g. my DE0 nanosoc reboots after about 20 seconds. Applying a reset to
the watchdog circuit is the only way to stop it according to the
documentation.
2018-10-28 15:06:10 +00:00
skrll
88f463399d Fix sense of test in fdtbus_intr_disestablish.
Reported by yarl-baudig on port-arm.
2018-10-21 05:32:39 +00:00
jakllsch
450b8daf0f Add amdccp(4) driver for AMD Cryptographic Coprocessor, as found on the
A11xx Opterons.  Driver currently provides RNG service only.
2018-10-19 21:09:09 +00:00
jmcneill
d329762b06 Don't use a4x bus tag 2018-10-15 23:53:47 +00:00
jmcneill
5e1be26af9 Rename pl061gpio to plgpio and split the device logic from the FDT glue. 2018-10-15 23:50:48 +00:00
aymeric
ea38a76902 Make compile 2018-10-14 18:28:55 +00:00
skrll
40b6d94127 Provide an FDTBASE option which allows kernels to access FDT parsing
functions without requiring full blown FDTisation.

This will be used by ODROID-C1 in move to generic start code.
2018-10-06 16:28:21 +00:00
jmcneill
ebb89df1fe Fix 64-bit build 2018-09-29 15:56:25 +00:00
jakllsch
31eb212203 Set "i2c-indirect-config" to false in the right place so that iic(4)
better behaves itself.
2018-09-26 20:03:36 +00:00
jakllsch
6f07e5262f Add dwiic_fdt attachment for "snps,designware-i2c". 2018-09-26 19:06:33 +00:00
jmcneill
76af637362 Support rescan and child detachment 2018-09-23 19:32:03 +00:00
jmcneill
459047f448 Use machdep.cpu for the first instance 2018-09-20 09:19:56 +00:00
jakllsch
6a84e9bccb fdtvar.h: Use _KERNEL_OPT wrapper where necessary. 2018-09-15 13:42:41 +00:00
jmcneill
fa8f1d440c Attach cpu nodes with status "disabled" if they have an enable-method
property. This is a valid configuration according to the devicetree
specification.
2018-09-09 21:15:21 +00:00
jmcneill
5ad7c977bd Add fdt_add_bus_match, which is like fdt_add_bus but allows for the caller to filter child nodes on their own 2018-09-09 21:14:04 +00:00
aymeric
51b425ef08 Pass clock provider's phandle to fdtbus_clock_controller_func.decode()
and update callers.

This allows to accomodate clock managers whose clocks are identified
directly by a clock instead of a pair (clock provider, index).

ok jmcneill@ on port-arm
2018-09-09 07:21:17 +00:00
jmcneill
f092d0ca97 Add fdtbus_intr_establish_raw and fdtbus_intr_str_raw, for establishing
interrupts directly using an interrupt controller's phandle and specifier.
2018-09-06 22:54:05 +00:00
jmcneill
58e62e22aa Use PRIx64 (fixes 64-bit build) 2018-09-03 23:19:01 +00:00
jmcneill
254a9a348e Add generic AHCI SATA controller bus glue 2018-09-03 23:15:12 +00:00
jmcneill
af0c930185 Don't print an error message for shared opp tables 2018-09-01 23:41:16 +00:00
jmcneill
bd8cd1136e Add support for opp-v2 tables and multiple instances of the cpufreqdt
driver.
2018-09-01 19:36:53 +00:00
skrll
e2ddbcb5ea Remove useless header arm/broadcom/bcm2835reg.h
From Aymeric Vincent on port-arm
2018-08-15 07:46:15 +00:00
jmcneill
cdd95abb51 Add support for RK3399 2018-08-12 19:10:14 +00:00
jmcneill
e54cae7795 Use more generic rk3288 compatible string, and do clock assignments when present 2018-08-12 16:34:28 +00:00
jmcneill
69bb614b1d Register shutdown handlers 2018-08-12 16:33:58 +00:00
macallan
f24adce462 if the framebuffer address isn't page aligned, set fbi_fboffset appropriately 2018-07-23 00:51:40 +00:00
christos
06603f680f Use PRI?64 instead of ll? 2018-07-17 00:42:06 +00:00
jmcneill
e3ea5e4839 Get rid of unnecessary calls to kmem_alloc 2018-07-15 16:59:16 +00:00
jmcneill
ac8ac2323a Return the interrupt controller's cookie directly from fdtbus_intr_establish 2018-07-15 13:24:05 +00:00
jmcneill
aba8b2b275 Add basic pwm-fan driver. This doesn't have any smarts yet other than
turning the fan on at 100% duty cycle.
2018-07-04 23:08:06 +00:00
jmcneill
7bc212888c Add support for Samsung Exynos USB3 DRD. 2018-07-03 16:05:31 +00:00
jmcneill
e3e4ea3b84 Fix name of snps,dis_u2_susphy_quirk property 2018-07-03 08:52:36 +00:00
jmcneill
36bbde029b When searching for interrupt parent, stop as soon as we see an
interrupt-controller property on a node other than the starting node.
2018-07-02 17:50:02 +00:00
jmcneill
c0539982d4 Fix a regression with interrupt-map handling in previous. 2018-07-02 16:06:50 +00:00
jmcneill
bdc2495a4a sc_clock_freq is in Hz, not kHz 2018-07-02 13:45:23 +00:00
jmcneill
1b7f74d662 interrupt-map bug fixes 2018-07-02 12:17:05 +00:00
jmcneill
7bf47000d2 Fix 32-bit build 2018-07-01 21:21:56 +00:00
jmcneill
2ed90eab7d Add fdtbus_attach_i2cbus, used to attach an i2cbus to an fdt device node. 2018-07-01 18:16:40 +00:00
jmcneill
233c5d85ef Use queue(3) API to manage lists. NFCI. 2018-06-30 20:34:43 +00:00
jmcneill
5375fcbde9 Simplify list initialization 2018-06-30 20:16:56 +00:00
jmcneill
1ca6c5c5ec Add helper to lookup syscon by phandle 2018-06-30 18:07:12 +00:00
jmcneill
30e8ea9402 Store node path in device properties "fdt-path" property:
# drvctl -p ehci0 fdt-path
    /soc/usb@5101000

While here, remove fdt_scan_bus (no longer required) and some debug printfs.
2018-06-30 17:28:09 +00:00
jmcneill
7c5742513d cpus: use fdt_add_bus 2018-06-30 16:30:35 +00:00
jmcneill
78c7f9844a Allow nodes to attach child devices using the same sorting rules as used
by the simplebus driver.
2018-06-30 16:22:56 +00:00
jmcneill
8d4a1027a6 When attaching child devices, consider the best match for all passes
instead of just the current pass. Fixes an issue where a driver with a
lower match number and early pass number will attach instead of a better
match on a later pass.
2018-06-30 13:44:50 +00:00
jmcneill
5b0333eb17 Add support for system controller nodes. 2018-06-30 12:35:18 +00:00
jmcneill
a3f3f06c62 Add driver for DesignWare Watchdog Timer. Untested as I can't seem to find
the parent clock for this in the RK3328 documentation.
2018-06-30 10:50:30 +00:00
msaitoh
cd131a6318 Detect USB 3.1. 2018-06-29 17:48:24 +00:00
jmcneill
b75b1688db If max-frequency is not specified, use UINT_MAX instead of the rate programmed by the bootloader. 2018-06-22 10:17:04 +00:00