Skip to content
Snippets Groups Projects
Select Git revision
0 results

sequencer.c

Blame
    • Marek Vasut's avatar
      880e46f2
      ddr: altera: Rework initialize_tracking() · 880e46f2
      Marek Vasut authored
      
      Clean the function up by getting rid of all the insane XOR-leftshift
      combos when assembling register values. While at it, remove all the
      ad-hoc variables necessary for this XOR-leftshift voodoo. Finally,
      get rid of the iterative division implementation of two constants
      and replace it with a DIV_ROUND_UP() macro :-)
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      880e46f2
      History
      ddr: altera: Rework initialize_tracking()
      Marek Vasut authored
      
      Clean the function up by getting rid of all the insane XOR-leftshift
      combos when assembling register values. While at it, remove all the
      ad-hoc variables necessary for this XOR-leftshift voodoo. Finally,
      get rid of the iterative division implementation of two constants
      and replace it with a DIV_ROUND_UP() macro :-)
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>