Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 
0003 #include <linux/platform_device.h>
0004 
0005 #ifndef _SOFTING_DEVICE_H_
0006 #define _SOFTING_DEVICE_H_
0007 
0008 /* softing firmware directory prefix */
0009 #define fw_dir "softing-4.6/"
0010 
0011 struct softing_platform_data {
0012     unsigned int manf;
0013     unsigned int prod;
0014     /*
0015      * generation
0016      * 1st with NEC or SJA1000
0017      * 8bit, exclusive interrupt, ...
0018      * 2nd only SJA1000
0019      * 16bit, shared interrupt
0020      */
0021     int generation;
0022     int nbus; /* # buses on device */
0023     unsigned int freq; /* operating frequency in Hz */
0024     unsigned int max_brp;
0025     unsigned int max_sjw;
0026     unsigned long dpram_size;
0027     const char *name;
0028     struct {
0029         unsigned long offs;
0030         unsigned long addr;
0031         const char *fw;
0032     } boot, load, app;
0033     /*
0034      * reset() function
0035      * bring pdev in or out of reset, depending on value
0036      */
0037     int (*reset)(struct platform_device *pdev, int value);
0038     int (*enable_irq)(struct platform_device *pdev, int value);
0039 };
0040 
0041 #endif