diff --git a/arch/arm/mach-omap2/board-am335xevm.c b/arch/arm/mach-omap2/board-am335xevm.c index f263f84..a3180ec 100644 --- a/arch/arm/mach-omap2/board-am335xevm.c +++ b/arch/arm/mach-omap2/board-am335xevm.c @@ -1755,24 +1755,32 @@ out: static void d_can_init(int evm_id, int profile) { - switch (evm_id) { + switch (evm_id) { case IND_AUT_MTR_EVM: - if ((profile == PROFILE_0) || (profile == PROFILE_1)) { - setup_pin_mux(d_can_ia_pin_mux); - /* Instance Zero */ - am33xx_d_can_init(0); - } - break; + if ((profile == PROFILE_0) || (profile == PROFILE_1)) { + setup_pin_mux(d_can_ia_pin_mux); + /* Instance Zero */ + printk(KERN_INFO "hejdu1"); + am33xx_d_can_init(0); + } + break; case GEN_PURP_EVM: - if (profile == PROFILE_1) { - setup_pin_mux(d_can_gp_pin_mux); - /* Instance One */ - am33xx_d_can_init(1); - } - break; + if (profile == PROFILE_1) { + setup_pin_mux(d_can_gp_pin_mux); + printk(KERN_INFO "hejdu2"); + /* Instance One */ + am33xx_d_can_init(1); + } + break; + case BEAGLE_BONE_A3: + printk(KERN_INFO "hejdu4"); + setup_pin_mux(d_can_gp_pin_mux); + am33xx_d_can_init(1); + break; default: - break; - } + printk(KERN_INFO "hejdu3"); + break; + } } static void mmc0_init(int evm_id, int profile) @@ -2052,6 +2060,7 @@ static struct evm_dev_cfg beaglebone_dev_cfg[] = { {usb1_init, DEV_ON_BASEBOARD, PROFILE_NONE}, {mmc0_init, DEV_ON_BASEBOARD, PROFILE_NONE}, {i2c2_init, DEV_ON_BASEBOARD, PROFILE_NONE}, + {d_can_init, DEV_ON_BASEBOARD, PROFILE_NONE}, {NULL, 0, 0}, }; @@ -2181,6 +2190,7 @@ static void am335x_setup_daughter_board(struct memory_accessor *m, void *c) } else { pr_info("No daughter card found\n"); + printk(KERN_INFO "hejdu5, ret: %d",ret); daughter_brd_detected = false; return; }