Bug 206228 - [patch] Add fdt_reset based on the fdt_clock implementation
Summary: [patch] Add fdt_reset based on the fdt_clock implementation
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2016-01-14 08:23 UTC by Stanislav Galabov
Modified: 2016-03-01 12:42 UTC (History)
2 users (show)

See Also:


Attachments
Add fdt_reset based on fdt_clock (8.79 KB, patch)
2016-01-14 08:23 UTC, Stanislav Galabov
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.