1 /* SPDX-License-Identifier: GPL-2.0 */
3 #include <linux/platform_device.h>
5 #ifndef _SOFTING_DEVICE_H_
6 #define _SOFTING_DEVICE_H_
8 /* softing firmware directory prefix */
9 #define fw_dir "softing-4.6/"
11 struct softing_platform_data
{
16 * 1st with NEC or SJA1000
17 * 8bit, exclusive interrupt, ...
19 * 16bit, shared interrupt
22 int nbus
; /* # buses on device */
23 unsigned int freq
; /* operating frequency in Hz */
26 unsigned long dpram_size
;
35 * bring pdev in or out of reset, depending on value
37 int (*reset
)(struct platform_device
*pdev
, int value
);
38 int (*enable_irq
)(struct platform_device
*pdev
, int value
);