Lines Matching refs:p
29 struct pmic *p = pmic_alloc(); in pmic_init() local
31 if (!p) { in pmic_init()
36 p->name = name; in pmic_init()
37 p->number_of_regs = PMIC_NUM_OF_REGS; in pmic_init()
38 p->bus = bus; in pmic_init()
41 p->interface = PMIC_SPI; in pmic_init()
42 p->hw.spi.cs = CONFIG_FSL_PMIC_CS; in pmic_init()
43 p->hw.spi.clk = CONFIG_FSL_PMIC_CLK; in pmic_init()
44 p->hw.spi.mode = CONFIG_FSL_PMIC_MODE; in pmic_init()
45 p->hw.spi.bitlen = CONFIG_FSL_PMIC_BITLEN; in pmic_init()
46 p->hw.spi.flags = SPI_XFER_BEGIN | SPI_XFER_END; in pmic_init()
47 p->hw.spi.prepare_tx = pmic_spi_prepare_tx; in pmic_init()
49 p->interface = PMIC_I2C; in pmic_init()
50 p->hw.i2c.addr = CONFIG_SYS_FSL_PMIC_I2C_ADDR; in pmic_init()
51 p->hw.i2c.tx_num = FSL_PMIC_I2C_LENGTH; in pmic_init()