Skip to content
Snippets Groups Projects
Select Git revision
  • master default protected
  • early-display
  • variant-emmc-nvme-boot
  • 2023-01-25
  • v3
  • variant-emmc-nvme-boot
  • 2020-06-01
7 results

sdram.c

Blame
  • Forked from Reform / reform-boundary-uboot
    Source project has a limited visibility.
    • Marek Vasut's avatar
      08eb9470
      ddr: altera: sdram: Make sdram_start and sdram_end into u32 · 08eb9470
      Marek Vasut authored
      
      Originally, both sdram_start and sdram_end were 64b values. The
      sdram_start had no reason for being so, since our address space
      is only 32b, so switching sdram_start to u32 is simple.
      
      The sdram_end is a bit more complex, since it can actually be
      set to (1 << 32) if someone really wanted to use an SoCFPGA with
      4 GiB of DRAM and fixed the code around a little. But, the code
      handling the protection rules internally decrements the sdram_end
      variable anyway. Thus, instead of calling the code and passing in
      the address of the SDRAM end, pass in the address already decremented
      by one. This lets the sdram_end be 32b as well.
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      08eb9470
      History
      ddr: altera: sdram: Make sdram_start and sdram_end into u32
      Marek Vasut authored
      
      Originally, both sdram_start and sdram_end were 64b values. The
      sdram_start had no reason for being so, since our address space
      is only 32b, so switching sdram_start to u32 is simple.
      
      The sdram_end is a bit more complex, since it can actually be
      set to (1 << 32) if someone really wanted to use an SoCFPGA with
      4 GiB of DRAM and fixed the code around a little. But, the code
      handling the protection rules internally decrements the sdram_end
      variable anyway. Thus, instead of calling the code and passing in
      the address of the SDRAM end, pass in the address already decremented
      by one. This lets the sdram_end be 32b as well.
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>