mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-02 09:46:37 +03:00
Merge patch series "mux: mmio: support "reg-mux" compatible"
Roger Quadros <rogerq@kernel.org> says: TI upstream has moved from "mmio-mux" to "reg-mux" that doesn't require the Mux device node's parent to be a syscon type. Add support for "reg-mux" compatible.
This commit is contained in:
@@ -31,6 +31,7 @@ static const struct mux_control_ops mux_mmio_ops = {
|
||||
|
||||
static const struct udevice_id mmio_mux_of_match[] = {
|
||||
{ .compatible = "mmio-mux" },
|
||||
{ .compatible = "reg-mux" },
|
||||
{ /* sentinel */ },
|
||||
};
|
||||
|
||||
@@ -45,7 +46,11 @@ static int mmio_mux_probe(struct udevice *dev)
|
||||
int ret;
|
||||
int i;
|
||||
|
||||
regmap = syscon_node_to_regmap(dev_ofnode(dev->parent));
|
||||
if (ofnode_device_is_compatible(dev_ofnode(dev), "mmio-mux"))
|
||||
regmap = syscon_node_to_regmap(dev_ofnode(dev->parent));
|
||||
else
|
||||
regmap_init_mem(dev_ofnode(dev), ®map);
|
||||
|
||||
if (IS_ERR(regmap)) {
|
||||
ret = PTR_ERR(regmap);
|
||||
dev_err(dev, "failed to get regmap: %d\n", ret);
|
||||
|
||||
@@ -1126,7 +1126,7 @@ static int cdns_sierra_phy_probe(struct udevice *dev)
|
||||
|
||||
sp->autoconf = dev_read_bool(dev, "cdns,autoconf");
|
||||
|
||||
dev_info(dev, "sierra probed\n");
|
||||
dev_dbg(dev, "sierra probed\n");
|
||||
return 0;
|
||||
|
||||
clk_disable:
|
||||
|
||||
Reference in New Issue
Block a user