Home
last modified time | relevance | path

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

/OK3568_Linux_fs/u-boot/drivers/rtc/
H A Dds1306.c71 unsigned char spi_byte; /* Data Byte */ in rtc_get() local
87 spi_byte = soft_spi_read (); /* Read Hours into temporary value */ in rtc_get()
88 if (spi_byte & 0x40) { in rtc_get()
90 if (spi_byte & 0x20) { in rtc_get()
92 tmp->tm_hour = (bcd2bin (spi_byte & 0x1F)) + 11; in rtc_get()
95 tmp->tm_hour = (bcd2bin (spi_byte & 0x1F)) - 1; in rtc_get()
99 tmp->tm_hour = (bcd2bin (spi_byte & 0x3F)); in rtc_get()
249 unsigned char spi_byte = 0; /* Return value, assume success */ in soft_spi_read() local
261 spi_byte |= bitpos; /* Set data accordingly */ in soft_spi_read()
267 return spi_byte; /* Return the byte read */ in soft_spi_read()