diff options
author | Tom Rini <trini@konsulko.com> | 2019-10-04 12:22:43 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2019-10-04 12:22:43 -0400 |
commit | 62861c70d3128680823fa091dcc2f6fee3bca30c (patch) | |
tree | 1effa13c5319dcb55f5167d707d1662c0de9503b /arch/arm/mach-k3/common.c | |
parent | 2baa731d0076b9aff721a2c737c479f65cc931e9 (diff) | |
parent | d90fc9c3deb6a9941a9cd0ba764e9c74e5060186 (diff) |
Merge branch '2019-10-04-master-imports'
- Assorted TI platform fixes
- Revert the change that broke environment flag validation
- Assorted typo fixes
- Assorted Kconfig dependency fixes
- Other minor bug fixes
Diffstat (limited to 'arch/arm/mach-k3/common.c')
-rw-r--r-- | arch/arm/mach-k3/common.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/arch/arm/mach-k3/common.c b/arch/arm/mach-k3/common.c index 3e36d90acef..c16afc654fb 100644 --- a/arch/arm/mach-k3/common.c +++ b/arch/arm/mach-k3/common.c @@ -137,6 +137,26 @@ int fdt_fixup_msmc_ram(void *blob, char *parent_path, char *node_name) return 0; } + +int fdt_disable_node(void *blob, char *node_path) +{ + int offs; + int ret; + + offs = fdt_path_offset(blob, node_path); + if (offs < 0) { + debug("Node %s not found.\n", node_path); + return 0; + } + ret = fdt_setprop_string(blob, offs, "status", "disabled"); + if (ret < 0) { + printf("Could not add status property to node %s: %s\n", + node_path, fdt_strerror(ret)); + return ret; + } + return 0; +} + #endif #ifndef CONFIG_SYSRESET |