Merge tag 'dm-pull-5jan21' of git://git.denx.de/u-boot-dm into next
Driver model: make some udevice fields private Driver model: Rename U_BOOT_DEVICE et al. dtoc: Tidy up and add more tests ns16550 code clean-up x86 and sandbox minor fixes for of-platdata dtoc prepration for adding build-time instantiation
This commit is contained in:
@@ -72,7 +72,7 @@ static int ast2500_reset_probe(struct udevice *dev)
|
||||
|
||||
/* get SCU base from clock device */
|
||||
rc = uclass_get_device_by_driver(UCLASS_CLK,
|
||||
DM_GET_DRIVER(aspeed_ast2500_scu), &scu_dev);
|
||||
DM_DRIVER_GET(aspeed_ast2500_scu), &scu_dev);
|
||||
if (rc) {
|
||||
debug("%s: clock device not found, rc=%d\n", __func__, rc);
|
||||
return rc;
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
#include <regmap.h>
|
||||
#include <reset-uclass.h>
|
||||
#include <syscon.h>
|
||||
#include <dm/device-internal.h>
|
||||
#include <linux/bitops.h>
|
||||
#include <linux/err.h>
|
||||
|
||||
@@ -92,7 +93,7 @@ int mediatek_reset_bind(struct udevice *pdev, u32 regofs, u32 num_regs)
|
||||
priv = malloc(sizeof(struct mediatek_reset_priv));
|
||||
priv->regofs = regofs;
|
||||
priv->nr_resets = num_regs * 32;
|
||||
rst_dev->priv = priv;
|
||||
dev_set_priv(rst_dev, priv);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
#include <linux/bitops.h>
|
||||
#include <linux/io.h>
|
||||
#include <asm/arch-rockchip/hardware.h>
|
||||
#include <dm/device-internal.h>
|
||||
#include <dm/lists.h>
|
||||
/*
|
||||
* Each reg has 16 bits reset signal for devices
|
||||
@@ -121,7 +122,7 @@ int rockchip_reset_bind(struct udevice *pdev, u32 reg_offset, u32 reg_number)
|
||||
priv = malloc(sizeof(struct rockchip_reset_priv));
|
||||
priv->reset_reg_offset = reg_offset;
|
||||
priv->reset_reg_num = reg_number;
|
||||
rst_dev->priv = priv;
|
||||
dev_set_priv(rst_dev, priv);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
#include <reset-uclass.h>
|
||||
#include <asm/io.h>
|
||||
#include <dm/device_compat.h>
|
||||
#include <dm/device-internal.h>
|
||||
#include <dm/lists.h>
|
||||
#include <linux/bitops.h>
|
||||
|
||||
@@ -97,7 +98,7 @@ int sifive_reset_bind(struct udevice *dev, ulong count)
|
||||
}
|
||||
priv = malloc(sizeof(struct sifive_reset_priv));
|
||||
priv->nr_reset = count;
|
||||
rst_dev->priv = priv;
|
||||
dev_set_priv(rst_dev, priv);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -148,7 +148,7 @@ static int socfpga_reset_bind(struct udevice *dev)
|
||||
* Bind it to the node, too, so that it can get its base address.
|
||||
*/
|
||||
ret = device_bind_driver_to_node(dev, "socfpga_sysreset", "sysreset",
|
||||
dev->node, &sys_child);
|
||||
dev_ofnode(dev), &sys_child);
|
||||
if (ret)
|
||||
debug("Warning: No sysreset driver: ret=%d\n", ret);
|
||||
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
#include <malloc.h>
|
||||
#include <reset-uclass.h>
|
||||
#include <asm/io.h>
|
||||
#include <dm/device-internal.h>
|
||||
#include <dm/lists.h>
|
||||
#include <linux/bitops.h>
|
||||
#include <linux/log2.h>
|
||||
@@ -113,7 +114,7 @@ int sunxi_reset_bind(struct udevice *dev, ulong count)
|
||||
priv = malloc(sizeof(struct sunxi_reset_priv));
|
||||
priv->count = count;
|
||||
priv->desc = (const struct ccu_desc *)dev_get_driver_data(dev);
|
||||
rst_dev->priv = priv;
|
||||
dev_set_priv(rst_dev, priv);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user