Home
last modified time | relevance | path

Searched refs:spi_write (Results 1 – 6 of 6) sorted by relevance

/external/u-boot/board/renesas/sh7753evb/
Dspi-boot.c59 #define spi_write(val, addr) (*(volatile unsigned long *)(addr)) = val macro
74 spi_write(0x00, CR3); in spi_reset()
75 spi_write(0x02, CR1); in spi_reset()
80 spi_write(0x00, CR1); in spi_reset()
82 spi_write(spi_read(CR2) | SPI_RSTF, CR2); /* fifo reset */ in spi_reset()
83 spi_write(spi_read(CR2) & ~SPI_RSTF, CR2); in spi_reset()
85 spi_write(0, SPIDMCOR); in spi_reset()
91 spi_write(CR7_IDX_OR12, CR7); in spi_read_flash()
94 spi_write(M25_READ_4BYTE, TBR); in spi_read_flash()
95 spi_write((addr >> 24) & 0xFF, TBR); /* ADDR31-24 */ in spi_read_flash()
[all …]
/external/u-boot/board/renesas/sh7752evb/
Dspi-boot.c57 #define spi_write(val, addr) (*(volatile unsigned long *)(addr)) = val macro
69 spi_write(0x00, CR3); in spi_reset()
70 spi_write(0x02, CR1); in spi_reset()
75 spi_write(0x00, CR1); in spi_reset()
77 spi_write(spi_read(CR2) | SPI_RSTF, CR2); /* fifo reset */ in spi_reset()
78 spi_write(spi_read(CR2) & ~SPI_RSTF, CR2); in spi_reset()
80 spi_write(0, SPIDMCOR); in spi_reset()
86 spi_write(M25_READ, TBR); in spi_read_flash()
87 spi_write((addr >> 16) & 0xFF, TBR); in spi_read_flash()
88 spi_write((addr >> 8) & 0xFF, TBR); in spi_read_flash()
[all …]
/external/u-boot/board/renesas/sh7757lcr/
Dspi-boot.c60 #define spi_write(val, addr) (*(volatile unsigned long *)(addr)) = val macro
69 spi_write(0xfe, CR1); in spi_reset()
71 spi_write(0, SPIDMCOR); in spi_reset()
72 spi_write(0x00, CR1); in spi_reset()
74 spi_write(spi_read(CR2) | SPI_RSTF, CR2); /* fifo reset */ in spi_reset()
75 spi_write(spi_read(CR2) & ~SPI_RSTF, CR2); in spi_reset()
81 spi_write(M25_READ, TBR); in spi_read_flash()
82 spi_write((addr >> 16) & 0xFF, TBR); in spi_read_flash()
83 spi_write((addr >> 8) & 0xFF, TBR); in spi_read_flash()
84 spi_write(addr & 0xFF, TBR); in spi_read_flash()
[all …]
/external/u-boot/drivers/spi/
Dmpc8xx_spi.c232 ssize_t spi_write(uchar *addr, int alen, uchar *buffer, int len) in spi_write() function
/external/u-boot/include/
Dcommon.h289 extern ssize_t spi_write (uchar *, int, uchar *, int);
/external/u-boot/cmd/
Deeprom.c137 spi_write(addr, alen, buffer, len); in eeprom_rw_block()