blob: e6407bafcbf8662a800ff9eaf901adf3df20cf77 [file] [log] [blame]
Bartosz Golaszewskif95bd042017-01-13 11:00:25 +01001/*
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
Bartosz Golaszewski8af70cd22018-04-20 10:14:27 -070019/**
20 * struct aemif_abus_data - Async bus configuration parameters.
21 *
22 * @cs - Chip-select number.
23 */
24struct 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 */
Bartosz Golaszewskif95bd042017-01-13 11:00:25 +010039struct aemif_platform_data {
40 struct of_dev_auxdata *dev_lookup;
Bartosz Golaszewski8af70cd22018-04-20 10:14:27 -070041 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;
Bartosz Golaszewskif95bd042017-01-13 11:00:25 +010046};
47
48#endif /* __TI_DAVINCI_AEMIF_DATA_H__ */