+#include <common.h>
#include <asm/arch/gpio.h>
#include "s5p-spi.h"
gpio_set_value(spi->si_bank, spi->si_num, 1);
}
+/*
static char so_read(struct spi_platform_data *spi)
{
return gpio_get_value(spi->so_bank, spi->so_num);
}
+*/
void spi_write_byte(struct spi_platform_data *spi, unsigned char address, unsigned char command)
{
cs_low(spi);
udelay(DELAY);
- for (j = PACKET_LEN; j >= 0; j--)
- {
+ for (j = PACKET_LEN; j >= 0; j--) {
clk_low(spi);
/* data high or low */
clk_low(spi);
udelay(DELAY);
- for (j = PACKET_LEN + 8; j >= 0; j--)
- {
+ for (j = PACKET_LEN + 8; j >= 0; j--) {
if (j > 7) {
clk_low(spi);