summaryrefslogtreecommitdiff
path: root/include/linux/platform_data/ti-aemif.h
blob: e6407bafcbf8662a800ff9eaf901adf3df20cf77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*
 * TI DaVinci AEMIF platform glue.
 *
 * Copyright (C) 2017 BayLibre SAS
 *
 * Author:
 *   Bartosz Golaszewski <bgolaszewski@baylibre.com>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 */

#ifndef __TI_DAVINCI_AEMIF_DATA_H__
#define __TI_DAVINCI_AEMIF_DATA_H__

#include <linux/of_platform.h>

/**
 * struct aemif_abus_data - Async bus configuration parameters.
 *
 * @cs - Chip-select number.
 */
struct aemif_abus_data {
	u32 cs;
};

/**
 * struct aemif_platform_data - Data to set up the TI aemif driver.
 *
 * @dev_lookup: of_dev_auxdata passed to of_platform_populate() for aemif
 *              subdevices.
 * @cs_offset: Lowest allowed chip-select number.
 * @abus_data: Array of async bus configuration entries.
 * @num_abus_data: Number of abus entries.
 * @sub_devices: Array of platform subdevices.
 * @num_sub_devices: Number of subdevices.
 */
struct aemif_platform_data {
	struct of_dev_auxdata *dev_lookup;
	u32 cs_offset;
	struct aemif_abus_data *abus_data;
	size_t num_abus_data;
	struct platform_device *sub_devices;
	size_t num_sub_devices;
};

#endif /* __TI_DAVINCI_AEMIF_DATA_H__ */