summaryrefslogtreecommitdiff
path: root/sys/dev/syscon
AgeCommit message (Collapse)Author
2024-12-06Replace calls to bus_generic_attach with bus_attach_childrenJohn Baldwin
Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D47675
2024-02-18syscon_power: do reboot after shutdown_panic is executedAndriy Gapon
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
2024-01-10syscon: Move syscon code in dev/sysconEmmanuel Vadot
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
2017-12-23Move syscon into extres frameworkKyle Evans
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
2017-12-23syscon: Introduce kobj and split out fdt bitsKyle Evans
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
2017-12-11Correct a typo in syscon driver 'modify' logicKyle Evans
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
2017-12-11Add generic 'syscon' driverKyle Evans
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