]> rtime.felk.cvut.cz Git - lincan.git/blobdiff - lincan/src/boardlist.c
Added distinguish mechanism between full MPC5200 (used on RYU board) and original...
[lincan.git] / lincan / src / boardlist.c
index be1f8ad5488a53a68418c3d1fc3bb07acc98523d..a52f2d4e3edad19c9be5fb0d3cdb494a6d362e59 100644 (file)
@@ -1,5 +1,5 @@
 /**************************************************************************/
-/* File: boardslist.c - list to translate hardware option to board struct*/
+/* File: boardslist.c - list to translate hardware option to board struct */
 /*                                                                        */
 /* LinCAN - (Not only) Linux CAN bus driver                               */
 /* Copyright (C) 2002-2009 DCE FEE CTU Prague <http://dce.felk.cvut.cz>   */
@@ -204,7 +204,11 @@ const struct boardtype_t can_boardtypes[]={
        {"usbcan", usbcan_register, 0},
     #endif
     #if defined(CONFIG_OC_LINCAN_CARD_mpc5200)
-       {"mpc5200", mpc5200_register, 2},
+       {"mpc5200", mpc5200_register, 0},
+    #else
+        #if defined(CONFIG_OC_LINCAN_CARD_mpc5200_midam)
+           {"mpc5200", mpc5200_register, 0},
+        #endif
     #endif
        {NULL}
 };