Bug 206228

Summary: [patch] Add fdt_reset based on the fdt_clock implementation
Product: Base System Reporter: Stanislav Galabov <sgalabov>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me CC: sgalabov, sgalabov
Priority: --- Keywords: patch
Version: CURRENT   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
Add fdt_reset based on fdt_clock none

Description Stanislav Galabov 2016-01-14 08:23:00 UTC
Created attachment 165547 [details]
Add fdt_reset based on fdt_clock

The attached patch adds fdt_reset functionality in much the same way as the sys/dev/fdt/fdt_clock* functionality by ian@.

Basically, a driver that provides reset controller functionality (provider) to other drivers (consumers), can (un)register itself by calling fdt_reset_(un)register_provider.

Once registered, consumers can simply call fdt_reset_(de)assert_all(consumer), where consumer is the consumer's device_t in order to get their associated resets (de)asserted.
Comment 1 Stanislav Galabov freebsd_committer freebsd_triage 2016-03-01 12:42:43 UTC
The required functionality will be implemented using the extres framework.