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.

gmpc_init初始化问题



SPL程序运行到

void spl_board_init(void)
{
printf("boot-common.c %s\n",__func__);
#ifdef CONFIG_SPL_NAND_SUPPORT
	gpmc_init(); //这这句卡死
#endif   
	使用的是DDR2 ,MT47H64M16NF芯片。 官方的uboot中支持的是MT47H128M16RT25E的ddr2,。具体配置怎么修改暂时还不知道。
=====================================================
	/* global settings */
	writel(0x00000008, &gpmc_cfg->sysconfig); // 就在这一句中卡死
  #ifdef CONFIG_NOR
	writel(0x00000000, &gpmc_cfg->irqstatus);
	writel(0x00000000, &gpmc_cfg->irqenable);
	writel(0x00000A00, &gpmc_cfg->config);
#else
	printf("22==\n");
	writel(0x00000100, &gpmc_cfg->irqstatus);
	writel(0x00000200, &gpmc_cfg->irqenable);
	writel(0x00000012, &gpmc_cfg->config);
这是不是因为ddr2没有配置正常才导致gpmc_init()初始化不了。