aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/syscon/syscon.c
Commit message (Collapse)AuthorAgeFilesLines
* syscon: Move syscon code in dev/sysconEmmanuel Vadot2024-01-101-0/+313
| | | | | | | | | | | 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-231-185/+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-231-1/+1
| | | | | | | | | | | | | | | 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-111-0/+185
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