ENGR00120455-4 CAN: Pass the default setting through platform_data

Define the parameters's default value for MX35.

Signed-off-by: William Lai <b04597@freescale.com>
This commit is contained in:
William Lai
2010-01-26 16:03:38 +08:00
committed by Matt Sealey
parent 9a895da8e5
commit 552cada127

View File

@@ -1063,13 +1063,37 @@ struct flexcan_platform_data flexcan_data[] = {
.io_reg = NULL,
.xcvr_enable = flexcan_xcvr_enable,
.active = gpio_can_active,
.inactive = gpio_can_inactive,},
.inactive = gpio_can_inactive,
.br_clksrc = 1,
.br_rjw = 2,
.br_presdiv = 6,
.br_propseg = 4,
.br_pseg1 = 4,
.br_pseg2 = 7,
.bcc = 1,
.srx_dis = 1,
.smp = 1,
.boff_rec = 1,
.ext_msg = 1,
.std_msg = 1,},
{
.core_reg = "GPO2",
.io_reg = NULL,
.xcvr_enable = flexcan_xcvr_enable,
.active = gpio_can_active,
.inactive = gpio_can_inactive,},
.inactive = gpio_can_inactive,
.br_clksrc = 1,
.br_rjw = 2,
.br_presdiv = 6,
.br_propseg = 4,
.br_pseg1 = 4,
.br_pseg2 = 7,
.bcc = 1,
.srx_dis = 1,
.smp = 1,
.boff_rec = 1,
.ext_msg = 1,
.std_msg = 1,},
};
#endif