diff options
author | Simon Glass <sjg@chromium.org> | 2020-07-08 06:32:30 +0300 |
---|---|---|
committer | Bin Meng <bmeng.cn@gmail.com> | 2020-07-17 09:32:24 +0300 |
commit | 6d349e2e435340bf27c8f567f7607eaaba2ee77c (patch) | |
tree | aff095f18aee2b5d3ee479f8ed9c1c879fdbc557 /drivers/misc | |
parent | 4b0ec52b9ee52de7aabb05c6a8386c0b788d2271 (diff) | |
download | u-boot-6d349e2e435340bf27c8f567f7607eaaba2ee77c.tar.xz |
p2sb: Add a method to hide the bus
The P2SB bus needs to be hidden in some cases so that it does not get
auto-configured by Linux. Add a method for this.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Wolfgang Wallner <wolfgang.wallner@br-automation.com>
Tested-by: Wolfgang Wallner <wolfgang.wallner@br-automation.com>
Diffstat (limited to 'drivers/misc')
-rw-r--r-- | drivers/misc/p2sb-uclass.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/misc/p2sb-uclass.c b/drivers/misc/p2sb-uclass.c index d5fe12ebd8..b5219df46b 100644 --- a/drivers/misc/p2sb-uclass.c +++ b/drivers/misc/p2sb-uclass.c @@ -18,6 +18,16 @@ #define PCR_COMMON_IOSF_1_0 1 +int p2sb_set_hide(struct udevice *dev, bool hide) +{ + struct p2sb_ops *ops = p2sb_get_ops(dev); + + if (!ops->set_hide) + return -ENOSYS; + + return ops->set_hide(dev, hide); +} + void *pcr_reg_address(struct udevice *dev, uint offset) { struct p2sb_child_platdata *pplat = dev_get_parent_platdata(dev); |