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.

About dm355 :

Dear All,

         how  to access SDRAM Refresh Control Register ?Power and sleep controler access is no problem.
example:
      u32 val;
      void __iomem *pinmux2 =(void __iomem *) IO_ADDRESS(0x01c40000); //Peripheral Revision and Class Information
    
      val =  __raw_readl(pinmux2);//val is correct

    void __iomem *pinmux2 =(void __iomem *) IO_ADDRESS(0x2000000c); //Peripheral Revision and Class Information
     
     val =  __raw_readl(pinmux2);//Segmentation fault

  

 

How to conversion 0x2000000c (SDRAM Refresh Control Register)  address?

tks!

Allen

  • static struct map_desc davinci_io_desc[] __initdata = {
     {
      .virtual = IO_VIRT,
      .physical = IO_PHYS,
      .length  = IO_SIZE,
      .type  = MT_DEVICE,
     },
     {
      .virtual = (IO_VIRT+IO_SIZE),
      .physical = 0x20000000,//ddr base address,
      .length  = 0x8000,// 32K,
      .type  = MT_DEVICE,
     },
    };