Wan ZongShun | 30eaed0 | 2009-12-01 14:29:20 +0000 | [diff] [blame] | 1 | /* |
Wan ZongShun | 30eaed0 | 2009-12-01 14:29:20 +0000 | [diff] [blame] | 2 | * 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 Kamat | 7c7ccc5 | 2013-12-30 11:56:42 +0530 | [diff] [blame] | 12 | #ifndef __SPI_NUC900_H |
| 13 | #define __SPI_NUC900_H |
Wan ZongShun | 30eaed0 | 2009-12-01 14:29:20 +0000 | [diff] [blame] | 14 | |
wanzongshun | 798681b | 2011-11-10 07:06:29 +0100 | [diff] [blame] | 15 | extern void mfp_set_groupg(struct device *dev, const char *subname); |
Wan ZongShun | 30eaed0 | 2009-12-01 14:29:20 +0000 | [diff] [blame] | 16 | |
| 17 | struct 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 | |
| 29 | struct nuc900_spi_chip { |
| 30 | unsigned char bits_per_word; |
| 31 | }; |
| 32 | |
Sachin Kamat | 7c7ccc5 | 2013-12-30 11:56:42 +0530 | [diff] [blame] | 33 | #endif /* __SPI_NUC900_H */ |