Hi
I read/write register(0x20e8000) in the driver, the system will die. The serial port has no error message.
I check that no other code in the kernel uses this register.
But this register(0x20e0048) can read/write.
#define GPT 0x20e0048
#define GPT2_CR 0x20e8000
static void __iomem *jtag_tms;
static void __iomem *gpt2_cr;
int init_gpt2(void)
{
int reg;
printk("init gpt2\n");
//if(!request_mem_region(GPT2_CR, 8, "GPT2_CR")){
// return -EINVAL;
//}
jtag_tms = ioremap(GPT, 4);
gpt2_cr = ioremap(GPT2_CR, 4);
reg = readl(jtag_tms);
printk("JTAG_TMS Mode1 = 0x%x\n", reg);
reg = 0x01;
writel(reg, jtag_tms);
reg = readl(jtag_tms);
printk("JTAG_TMS Mode2 = 0x%x\n", reg);
reg = readl(gpt2_cr);
printk("GPT2 CR = 0x%x\n", reg);
iounmap(jtag_tms);
iounmap(gpt2_cr);
// release_mem_region(GPT2_CR, 8);
return 0;
}
Please help me , Thanks to all!