mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 18:41:58 +09:00
ANDROID: of/property: Add device link support for iommus
Add support for parsing iommus DT property to create device links between IOMMU suppliers and their consumers. Bug: 140290589 Signed-off-by: Saravana Kannan <saravanak@google.com> Change-Id: I7aa1b4315010fa5f3dc49c0903d164478ecdd1a7
This commit is contained in:
@@ -1106,6 +1106,13 @@ static struct device_node *parse_interconnects(struct device_node *np,
|
||||
"#interconnect-cells");
|
||||
}
|
||||
|
||||
static struct device_node *parse_iommus(struct device_node *np,
|
||||
const char *prop_name, int index)
|
||||
{
|
||||
return parse_prop_cells(np, prop_name, index, "iommus",
|
||||
"#iommu-cells");
|
||||
}
|
||||
|
||||
static int strcmp_suffix(const char *str, const char *suffix)
|
||||
{
|
||||
unsigned int len, suffix_len;
|
||||
@@ -1151,6 +1158,7 @@ static const struct supplier_bindings bindings[] = {
|
||||
{ .parse_prop = parse_clocks, },
|
||||
{ .parse_prop = parse_interconnects, },
|
||||
{ .parse_prop = parse_regulators, },
|
||||
{ .parse_prop = parse_iommus, },
|
||||
{},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user