diff options
author | William Lai <b04597@freescale.com> | 2010-02-02 14:37:28 +0800 |
---|---|---|
committer | Alejandro Gonzalez <alex.gonzalez@digi.com> | 2010-05-25 11:13:36 +0200 |
commit | 959eca18588b1bc3098c9824a3940a7e64a52dec (patch) | |
tree | 744bf2c466927fc4386c1b896a4861768c0a4b76 /arch/arm/plat-mxs/include/mach | |
parent | 5693b964744291c1f406e75b37005bed534d085b (diff) |
ENGR00120661-2 MX28 CAN: MX28 platform support
Add common CAN data structure and define the CAN devices
Signed-off-by: William Lai <b04597@freescale.com>
Signed-off-by: Alejandro Gonzalez <alex.gonzalez@digi.com>
Diffstat (limited to 'arch/arm/plat-mxs/include/mach')
-rw-r--r-- | arch/arm/plat-mxs/include/mach/device.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/arch/arm/plat-mxs/include/mach/device.h b/arch/arm/plat-mxs/include/mach/device.h index aaf61bfe067a..3aaed6d7c621 100644 --- a/arch/arm/plat-mxs/include/mach/device.h +++ b/arch/arm/plat-mxs/include/mach/device.h @@ -106,6 +106,40 @@ struct mxs_pwm_leds_plat_data { struct mxs_pwm_led *leds; }; +struct flexcan_platform_data { + char *core_reg; + char *io_reg; + void (*xcvr_enable) (int id, int en); + void (*active) (int id); + void (*inactive) (int id); + /* word 1 */ + unsigned int br_presdiv:8; + unsigned int br_rjw:2; + unsigned int br_propseg:3; + unsigned int br_pseg1:3; + unsigned int br_pseg2:3; + unsigned int maxmb:6; + unsigned int xmit_maxmb:6; + unsigned int wd1_resv:1; + + /* word 2 */ + unsigned int fifo:1; + unsigned int wakeup:1; + unsigned int srx_dis:1; + unsigned int wak_src:1; + unsigned int bcc:1; + unsigned int lprio:1; + unsigned int abort:1; + unsigned int br_clksrc:1; + unsigned int loopback:1; + unsigned int smp:1; + unsigned int boff_rec:1; + unsigned int tsyn:1; + unsigned int listen:1; + unsigned int ext_msg:1; + unsigned int std_msg:1; +}; + extern void mxs_timer_init(struct mxs_sys_timer *timer); extern void mxs_nop_release(struct device *dev); |