Commit | Line | Data |
---|---|---|
b886d83c | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
30eaed05 | 2 | /* |
30eaed05 WZ |
3 | * Copyright (c) 2009 Nuvoton technology corporation. |
4 | * | |
5 | * Wan ZongShun <mcuos.com@gmail.com> | |
30eaed05 WZ |
6 | */ |
7 | ||
7c7ccc52 SK |
8 | #ifndef __SPI_NUC900_H |
9 | #define __SPI_NUC900_H | |
30eaed05 | 10 | |
798681bf | 11 | extern void mfp_set_groupg(struct device *dev, const char *subname); |
30eaed05 WZ |
12 | |
13 | struct nuc900_spi_info { | |
14 | unsigned int num_cs; | |
15 | unsigned int lsb; | |
16 | unsigned int txneg; | |
17 | unsigned int rxneg; | |
18 | unsigned int divider; | |
19 | unsigned int sleep; | |
20 | unsigned int txnum; | |
21 | unsigned int txbitlen; | |
22 | int bus_num; | |
23 | }; | |
24 | ||
25 | struct nuc900_spi_chip { | |
26 | unsigned char bits_per_word; | |
27 | }; | |
28 | ||
7c7ccc52 | 29 | #endif /* __SPI_NUC900_H */ |