1 /*
2  * TI DaVinci AEMIF platform glue.
3  *
4  * Copyright (C) 2017 BayLibre SAS
5  *
6  * Author:
7  *   Bartosz Golaszewski <bgolaszewski@baylibre.com>
8  *
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License version 2 as
11  * published by the Free Software Foundation.
12  */
13 
14 #ifndef __TI_DAVINCI_AEMIF_DATA_H__
15 #define __TI_DAVINCI_AEMIF_DATA_H__
16 
17 #include <linux/of_platform.h>
18 
19 /**
20  * struct aemif_abus_data - Async bus configuration parameters.
21  *
22  * @cs - Chip-select number.
23  */
24 struct aemif_abus_data {
25 	u32 cs;
26 };
27 
28 /**
29  * struct aemif_platform_data - Data to set up the TI aemif driver.
30  *
31  * @dev_lookup: of_dev_auxdata passed to of_platform_populate() for aemif
32  *              subdevices.
33  * @cs_offset: Lowest allowed chip-select number.
34  * @abus_data: Array of async bus configuration entries.
35  * @num_abus_data: Number of abus entries.
36  * @sub_devices: Array of platform subdevices.
37  * @num_sub_devices: Number of subdevices.
38  */
39 struct aemif_platform_data {
40 	struct of_dev_auxdata *dev_lookup;
41 	u32 cs_offset;
42 	struct aemif_abus_data *abus_data;
43 	size_t num_abus_data;
44 	struct platform_device *sub_devices;
45 	size_t num_sub_devices;
46 };
47 
48 #endif /* __TI_DAVINCI_AEMIF_DATA_H__ */
49