1 /* SPDX-License-Identifier: GPL-2.0-only */ 1 2 /* 3 * Definitions for Freescale Coldfire QSPI mod 4 * 5 * Copyright 2010 Steven King <sfking@fdwdc.co 6 */ 7 8 #ifndef mcfqspi_h 9 #define mcfqspi_h 10 11 /** 12 * struct mcfqspi_cs_control - chip select con 13 * @setup: setup the control; allocate gpio's, 14 * @teardown: finish with the control; free gp 15 * @select: output the signals to select the d 16 * @deselect: output the signals to deselect t 17 * 18 * The QSPI module has 4 hardware chip selects 19 * platforms are required to supply a mcfqspi_ 20 * platform data for each QSPI master controll 21 * deselect functions are required. 22 */ 23 struct mcfqspi_cs_control { 24 int (*setup)(struct mcfqspi_cs_con 25 void (*teardown)(struct mcfqspi_cs_ 26 void (*select)(struct mcfqspi_cs_co 27 void (*deselect)(struct mcfqspi_cs_ 28 }; 29 30 /** 31 * struct mcfqspi_platform_data - platform dat 32 * @bus_num: board specific identifier for thi 33 * @num_chipselects: number of chip selects su 34 * @cs_control: platform dependent chip select 35 */ 36 struct mcfqspi_platform_data { 37 s16 bus_num; 38 u16 num_chipselect; 39 struct mcfqspi_cs_control *cs_control; 40 }; 41 42 #endif /* mcfqspi_h */ 43
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.