HomeSort by relevance Sort by last modified time
    Searched refs:usid (Results 1 - 5 of 5) sorted by null

  /external/u-boot/include/spmi/
spmi.h 10 * @read: read register 'reg' of slave 'usid' and peripheral 'pid'
11 * @write: write register 'reg' of slave 'usid' and peripheral 'pid'
17 int (*read)(struct udevice *dev, int usid, int pid, int reg);
18 int (*write)(struct udevice *dev, int usid, int pid, int reg,
26 * @usid SlaveID
31 int spmi_reg_read(struct udevice *dev, int usid, int pid, int reg);
37 * @usid SlaveID
43 int spmi_reg_write(struct udevice *dev, int usid, int pid, int reg,
  /external/u-boot/drivers/spmi/
spmi-uclass.c 14 int spmi_reg_read(struct udevice *dev, int usid, int pid, int reg)
21 return ops->read(dev, usid, pid, reg);
24 int spmi_reg_write(struct udevice *dev, int usid, int pid, int reg,
32 return ops->write(dev, usid, pid, reg, value);
spmi-msm.c 55 static int msm_spmi_write(struct udevice *dev, int usid, int pid, int off,
62 if (usid >= SPMI_MAX_SLAVES)
67 channel = priv->channel_map[usid][pid];
78 reg |= (usid << SPMI_CMD_SLAVE_ID_SHIFT);
101 static int msm_spmi_read(struct udevice *dev, int usid, int pid, int off)
107 if (usid >= SPMI_MAX_SLAVES)
112 channel = priv->channel_map[usid][pid];
119 reg |= (usid << SPMI_CMD_SLAVE_ID_SHIFT);
spmi-sandbox.c 44 static bool check_address_valid(int usid, int pid, int off)
46 if (usid != 0)
55 static int sandbox_spmi_write(struct udevice *dev, int usid, int pid, int off,
61 if (!check_address_valid(usid, pid, off))
82 static int sandbox_spmi_read(struct udevice *dev, int usid, int pid, int off)
87 if (!check_address_valid(usid, pid, off))
  /external/u-boot/drivers/power/pmic/
pm8916.c 17 uint32_t usid; /* Slave ID on SPMI bus */ member in struct:pm8916_priv
33 return spmi_reg_write(dev->parent, priv->usid,
46 val = spmi_reg_read(dev->parent, priv->usid,
70 priv->usid = dev_read_addr(dev);
72 if (priv->usid == FDT_ADDR_T_NONE)

Completed in 481 milliseconds