要在start_kernel之前喂狗(gpio2_0),
gpio地址:GPIO2:0x481AC000,
GPIO_OE:offset=134h,
GPIO_DATAOUT=13Ch
在./arch/arm/boot/compressed/misc.c文件函数decompress_kernel函数中添加以下两行代码:
*((volatile unsigned int *)0x481AC134)|=((int)0);//GPIO_OE gpio2_0
*((volatile unsigned int *)0x481AC13C)=1; //GPIO_DATAOUT
在启动linux之后,cat /sys/kernel/debug/gpio 查看无gpio2_0引脚,不知道错误在哪里
|