This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

GPMC寄存器不能初始化



我要用GPMC去控制外部SRAM,所以需要初始化GPMC寄存器。我在初始化函数中调用gpmc.c文件中的void gpmc_cs_write_reg(int cs, int idx, u32 val)函数,初始化GPMC_CONFIG寄存器。我用ismod sram.ko命令把改驱动加载进内核时,出现了如下提示:gpmc_cs_write_reg invoked without initializing GPMC。

请问下这是怎么回事,难道说调试gpmc.c文件中的函数时,还需要初始化gpmc?