blob: 4b3f46832e197b6fab7214dec07a7a149063be60 [file] [log] [blame]
Wan ZongShun30eaed02009-12-01 14:29:20 +00001/*
Wan ZongShun30eaed02009-12-01 14:29:20 +00002 * Copyright (c) 2009 Nuvoton technology corporation.
3 *
4 * Wan ZongShun <mcuos.com@gmail.com>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation;version 2 of the License.
9 *
10 */
11
Sachin Kamat7c7ccc52013-12-30 11:56:42 +053012#ifndef __SPI_NUC900_H
13#define __SPI_NUC900_H
Wan ZongShun30eaed02009-12-01 14:29:20 +000014
wanzongshun798681b2011-11-10 07:06:29 +010015extern void mfp_set_groupg(struct device *dev, const char *subname);
Wan ZongShun30eaed02009-12-01 14:29:20 +000016
17struct nuc900_spi_info {
18 unsigned int num_cs;
19 unsigned int lsb;
20 unsigned int txneg;
21 unsigned int rxneg;
22 unsigned int divider;
23 unsigned int sleep;
24 unsigned int txnum;
25 unsigned int txbitlen;
26 int bus_num;
27};
28
29struct nuc900_spi_chip {
30 unsigned char bits_per_word;
31};
32
Sachin Kamat7c7ccc52013-12-30 11:56:42 +053033#endif /* __SPI_NUC900_H */