Home
last modified time | relevance | path

Searched refs:SPI_REG (Results 1 – 5 of 5) sorted by relevance

/u-boot/board/keymile/km_arm/
A Dfpga_config.c80 #define SPI_REG 0x06 macro
96 ret = i2c_read(BOCO_ADDR, SPI_REG, 1, &regval, 1); in fpga_done()
99 __func__, SPI_REG); in fpga_done()
130 ret = boco_clear_bits(SPI_REG, CFG_EEPROM); in trigger_fpga_config()
135 ret = boco_clear_bits(SPI_REG, FPGA_PROG | FPGA_INIT_B); in trigger_fpga_config()
143 ret = boco_set_bits(SPI_REG, FPGA_PROG); in trigger_fpga_config()
148 ret = boco_set_bits(SPI_REG, FPGA_INIT_B); in trigger_fpga_config()
180 ret = i2c_read(BOCO_ADDR, SPI_REG, 1, &spictrl, 1); in wait_for_fpga_config()
250 ret = boco_set_bits(SPI_REG, CFG_EEPROM); in toggle_eeprom_spi_bus()
/u-boot/arch/x86/cpu/broadwell/
A Dlpc.c25 writel(0x1000, SPI_REG(SPIBAR_FDOC)); in set_spi_speed()
28 fdod = readl(SPI_REG(SPIBAR_FDOD)); in set_spi_speed()
33 ssfc = readb(SPI_REG(SPIBAR_SSFC + 2)); in set_spi_speed()
36 writeb(ssfc, SPI_REG(SPIBAR_SSFC + 2)); in set_spi_speed()
A Dpch.c300 clrbits_le32(SPI_REG(SPIBAR_FDOC), 0x00007ffc); in pch_read_soft_strap()
301 setbits_le32(SPI_REG(SPIBAR_FDOC), 0x00004000 | id * 4); in pch_read_soft_strap()
303 return readl(SPI_REG(SPIBAR_FDOD)); in pch_read_soft_strap()
/u-boot/drivers/spi/
A Dspi-sunxi.c149 byte = readb(SPI_REG(priv, SPI_RXD)); in sun4i_spi_drain_fifo()
161 writeb(byte, SPI_REG(priv, SPI_TXD)); in sun4i_spi_fill_fifo()
170 reg = readl(SPI_REG(priv, SPI_TCR)); in sun4i_spi_set_cs()
180 writel(reg, SPI_REG(priv, SPI_TCR)); in sun4i_spi_set_cs()
318 setbits_le32(SPI_REG(priv, SPI_GCR), in sun4i_spi_claim_bus()
375 SPI_REG(priv, SPI_BCTL)); in sun4i_spi_xfer()
381 setbits_le32(SPI_REG(priv, SPI_TCR), in sun4i_spi_xfer()
437 reg = readl(SPI_REG(priv, SPI_CCR)); in sun4i_spi_set_speed()
452 writel(reg, SPI_REG(priv, SPI_CCR)); in sun4i_spi_set_speed()
462 reg = readl(SPI_REG(priv, SPI_TCR)); in sun4i_spi_set_mode()
[all …]
/u-boot/arch/x86/include/asm/arch-broadwell/
A Dspi.h17 #define SPI_REG(x) (RCB_REG(SPIBAR_OFFSET + (x))) macro

Completed in 7 milliseconds