diff options
author | Ahmad Fatoum <ahmad@a3f.at> | 2020-11-28 22:39:30 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2020-12-10 10:47:15 +0100 |
commit | fd904611a60bffaa3416a617c1720885d175c7a0 (patch) | |
tree | 7a11665911fdf8f67fafff7dcffdf962cbbd3d97 /drivers/of | |
parent | 1278eb7e3dc12a0940b8f087225675b6ccd9b700 (diff) | |
download | barebox-fd904611a60bffaa3416a617c1720885d175c7a0.tar.gz barebox-fd904611a60bffaa3416a617c1720885d175c7a0.tar.xz |
ARM: rpi: Add Raspberry Pi Zero W mini-uart support
Unlike the Raspberry Pi 1 and Raspberry Pi Zero, the Raspberry Pi Zero W
has its console pins on the header connected to the mini-uart, not the
PL011. The secondary PL011 UART is connected to the bluetooth module.
Set the mini-uart as default console and disable the PL011. That way we
can use the Raspberry Pi 1 image for the Zero W as well.
Signed-off-by: Ahmad Fatoum <ahmad@a3f.at>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/of')
-rw-r--r-- | drivers/of/base.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/of/base.c b/drivers/of/base.c index c39da558d1..58b47ed95f 100644 --- a/drivers/of/base.c +++ b/drivers/of/base.c @@ -2520,6 +2520,21 @@ int of_device_disable_path(const char *path) } /** + * of_device_disable_by_alias - disable a devicenode by alias + * @alias - the alias of the device tree node to disable + */ +int of_device_disable_by_alias(const char *alias) +{ + struct device_node *node; + + node = of_find_node_by_alias(NULL, alias); + if (!node) + return -ENODEV; + + return of_device_disable(node); +} + +/** * of_get_reproducible_name() - get a reproducible name of a node * @node: The node to get a name from * |