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>
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user