AnsweredAssumed Answered

porting BSP to custom board

Question asked by caohaifeng on May 20, 2013
Latest reply on Dec 2, 2013 by ottawa-imx6

Hello, I have two questions about porting BSP to my custom board.


chapter 11.3.3 of i.MX53 System Development User’s Guide, board_init() is implemented inside board/freescale/mx53_loco/mx53_loco.c

gd->bd->bi_arch_number = MACH_TYPE_MX53_LOCO,

If I port u-boot to my custom board(imx534 based), Does it should be changed to MACH_TYPE_MX53_<custom signal>, and how?

Should I add an item like MACH_TYPE_MX53_XXX 3274 in linux/arch/arm/tools/mach-types.h ?


I copied two files in  linux/../mach-mx5 directory, mx53_loco.c and mx53_loco_pmic_mc34708.c, and renamed them. Further more,I replace all loco in these two files to my custom signal. When I compiled it ,got some error messages at xxx_susend_enter、machine_is_mx53_xxx etc.

error:MACH_TYPE_MX53_XXX undeclared here

error:implicit declaration of funtion 'mx53_xxx_init_mc34708'


I will appreciate if anyone can reply.