U-BOOT移植,structure has no member named `CAMDIVN

U-BOOT移植,structure has no member named `CAMDIVN

错误:

speed.c: In function `get_HCLK':
speed.c:114: error: structure has no member named `CAMDIVN'
speed.c: In function `get_PCLK':
speed.c:154: error: structure has no member named `CAMDIVN'
make[1]: *** [speed.o] Error 1
make[1]: Leaving directory `/home/u-boot-1.1.6/cpu/arm920t/s3c24x0'
make: *** [cpu/arm920t/s3c24x0/libs3c24x0.a] Error 2

 

修改:

在include下的s3c24x0.h上的clock&power结构中添加相应名为CAMDIVN的结构变量

/* CLOCK & POWER MANAGEMENT (see S3C2400 manual chapter 6) */
/*                          (see S3C2410 manual chapter 7) */
typedef struct {
 S3C24X0_REG32 LOCKTIME;
 S3C24X0_REG32 MPLLCON;
 S3C24X0_REG32 UPLLCON;
 S3C24X0_REG32 CLKCON;
 S3C24X0_REG32 CLKSLOW;
 S3C24X0_REG32 CLKDIVN;
 S3C24X0_REG32   CAMDIVN;     // 添加的代码
} /*__attribute__((__packed__))*/ S3C24X0_CLOCK_POWER;

 

 


你可能感兴趣的:(U-BOOT移植,structure has no member named `CAMDIVN)