aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/syscon
Commit message (Collapse)AuthorAgeFilesLines
* Replace calls to bus_generic_attach with bus_attach_childrenJohn Baldwin2024-12-061-1/+2
| | | | | Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D47675
* syscon_power: do reboot after shutdown_panic is executedAndriy Gapon2024-02-181-1/+3
| | | | | | | | | | A syscon_power instance can handle either poweroff or reboot, but not both. If the instance handles reboot then set its priority to be after shutdown_panic. This is to provide uniform experience with other platforms. MFC after: 3 weeks
* syscon: Move syscon code in dev/sysconEmmanuel Vadot2024-01-106-0/+996
| | | | | | | | | | | We've removed kernel option EXT_RESOURCES almost two years ago. While it was ok to have some code under a common 'extres' subdirectory at first, we now have a lot of consumer of it and we made it mandatory so no need to have it under a cryptic name. Reviewed by: mhorne Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D43196
* Move syscon into extres frameworkKyle Evans2017-12-234-537/+0
| | | | | | | | | This should help reduce confusion between syscon/syscons a little bit. syscon is a resource generally modeled by FDT platforms, and not to be confused with syscons. Notes: svn path=/head/; revision=327107
* syscon: Introduce kobj and split out fdt bitsKyle Evans2017-12-234-9/+306
| | | | | | | | | | | | | | | Allow more flexibility by kobj'ifying syscon and splitting out fdt specific bits in preparation of a move to the extres framework. The generic fdt driver has been moved to syscon_generic.c and the fdt requirement has been removed from the syscon interface, as is common to the extres framework. Reviewed by: strejda Differential Revision: https://reviews.freebsd.org/D13521 Notes: svn path=/head/; revision=327106
* Correct a typo in syscon driver 'modify' logicKyle Evans2017-12-111-1/+1
| | | | | | | | | | Not previously caught because the current consumer (not yet in tree) doesn't use the 'modify' bits (yet). Reported by: rpokala Notes: svn path=/head/; revision=326783
* Add generic 'syscon' driverKyle Evans2017-12-112-0/+240
Upstream dts for allwinner will require a syscon driver, since the emac node coming in 4.15 will be using xref to /soc/syscon for configuring the emac clock. Add a generic syscon driver to attach to /soc/syscon for use by if_awg, providing basic read/write functionality to consumers. syscon driver will also be used by arm64 at least for A64+H5 emac/if_awg. Written by: mmel Reviewed by: manu Differential Revision: https://reviews.freebsd.org/D13295 Notes: svn path=/head/; revision=326773