Skip to content
Snippets Groups Projects
  1. Jan 05, 2017
  2. Dec 05, 2016
  3. Nov 24, 2016
  4. Oct 27, 2016
  5. Oct 07, 2016
  6. Sep 26, 2016
  7. Sep 23, 2016
  8. Sep 14, 2016
  9. Aug 02, 2016
  10. Jul 16, 2016
    • Robert P. J. Day's avatar
      Various, unrelated tree-wide typo fixes. · 62a3b7dd
      Robert P. J. Day authored
      
          Fix a number of typos, including:
      
           * "compatble" -> "compatible"
           * "eanbeld" -> "enabled"
           * "envrionment" -> "environment"
           * "FTD" -> "FDT" (for "flattened device tree")
           * "ommitted" -> "omitted"
           * "overriden" -> "overridden"
           * "partiton" -> "partition"
           * "propogate" -> "propagate"
           * "resourse" -> "resource"
           * "rest in piece" -> "rest in peace"
           * "suport" -> "support"
           * "varible" -> "variable"
      
      Signed-off-by: default avatarRobert P. J. Day <rpjday@crashcourse.ca>
      62a3b7dd
  11. Jun 03, 2016
  12. May 20, 2016
    • Marek Vasut's avatar
      arm: mvebu: a38x: Weed out floating point use · 29b59353
      Marek Vasut authored
      
      For reason unknown, recently, the DDR init code writers are really fond
      of hiding some small floating point operating deep in their creations.
      This patch removes one from the Marvell A38x code.
      
      Instead of returning size of chip as float from ddr3_get_device_size()
      in GiB units, return it as int in MiB units. Since this would interfere
      with the huge switch code in ddr3_calc_mem_cs_size(), rework the code
      to match the change.
      
      Before this patch, the cs_mem_size variable could have these values:
       ( { 16, 32 } x { 8, 16 } x { 0.01, 0.5, 1, 2, 4, 8 } ) / 8 =
         { 0.000000, 0.001250, 0.002500, 0.005000, 0.062500, 0.125000,
           0.250000, 0.500000, 1.000000, 2.000000, 4.000000, }
      The switch code checked for a subset of the resulting RAM sizes, which
      is in range 128 MiB ... 2048 MiB.
      
      With this patch, the cs_mem_size variable can have these values:
       ( { 16, 32 } x { 8, 16 } x { 0, 512, 1024, 2048, 4096, 8192 } ) / 8 =
         { 0, 64, 128, 256, 512, 1024, 2048, 4096 }
      To retain previous behavior, filter out 0 MiB (invalid size), 64 MiB
      and 4096 MiB options.
      
      Removing the floating point stuff also saves 1.5k from text segment:
        clearfog       :  spl/u-boot-spl:all -1592  spl/u-boot-spl:text -1592
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Dirk Eibach <dirk.eibach@gdsys.cc>
      Cc: Stefan Roese <sr@denx.de>
      Signed-off-by: default avatarStefan Roese <sr@denx.de>
      29b59353
  13. May 18, 2016
  14. May 17, 2016
  15. May 02, 2016
  16. Apr 20, 2016
    • Marek Vasut's avatar
      ddr: altera: Repair DQ window centering code · e026b984
      Marek Vasut authored
      
      The code uses a lot of signed numbers, which ended up in variables
      of unsigned type, which resulted in all sorts of underflows. This
      in turn caused incorrect calibration on certain boards. Moreover,
      repair the readout of the DQ delay, which was being pulled from
      wrong register.
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Dinh Nguyen <dinguyen@opensource.altera.com>
      Cc: Chin Liang See <clsee@altera.com>
      e026b984
    • Marek Vasut's avatar
      ddr: altera: Staticize global variables · 85f76628
      Marek Vasut authored
      
      Just staticize global variables in sequencer, since there is no
      point in having these symbols available outside of the DDR code.
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Dinh Nguyen <dinguyen@opensource.altera.com>
      Cc: Chin Liang See <clsee@altera.com>
      85f76628
    • Marek Vasut's avatar
      ddr: altera: Make DLEVEL behavior inclusive · ea9aa241
      Marek Vasut authored
      
      Originally, the DLEVEL selects the debug level within the sequencer code,
      but only displays the messages on that particular debug level. Tweak the
      handling such that for particular debug level, debug messages on that
      level and lower are displayed. This allows better regulation of debug
      message verbosity.
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Dinh Nguyen <dinguyen@opensource.altera.com>
      Cc: Chin Liang See <clsee@altera.com>
      ea9aa241
    • Marek Vasut's avatar
      ddr: altera: Zero DM IN delay in scc_mgr_zero_group() · 70ed80af
      Marek Vasut authored
      
      This one last set of delay configuration registers was not properly
      zeroed out originally, fix it and zero them out.
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Dinh Nguyen <dinguyen@opensource.altera.com>
      Cc: Chin Liang See <clsee@altera.com>
      70ed80af
    • Marek Vasut's avatar
      ddr: altera: Remove unnecessary ODT mode config · f3f777cd
      Marek Vasut authored
      
      There is no point in resetting the ODT setting if the write test
      failed, since the code will always retry the calibration and thus
      reconfigure the ODT anyway OR the code will fail calibration and
      halt.
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Dinh Nguyen <dinguyen@opensource.altera.com>
      Cc: Chin Liang See <clsee@altera.com>
      f3f777cd
    • Marek Vasut's avatar
      ddr: altera: Remove unnecessary update of the SCC · f5f8c411
      Marek Vasut authored
      
      Every invocation of the scc_mgr_set_dqs_en_delay_all_ranks() is
      followed by SCC manager update. Moreover, only this function
      triggers the SCC manager update internally. Thus, remove the
      internal invocation to avoid triggering the update twice.
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Dinh Nguyen <dinguyen@opensource.altera.com>
      Cc: Chin Liang See <clsee@altera.com>
      f5f8c411
    • Marek Vasut's avatar
      ddr: altera: Fix DRAM end value in protection rule · 164eb23f
      Marek Vasut authored
      
      The hi address bitfield in the protection rule must be set to
      the last address in the region which the rule represents. The
      behavior is now in-line with code generated by Quartus 15.1 .
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Dinh Nguyen <dinguyen@opensource.altera.com>
      Cc: Chin Liang See <clsee@altera.com>
      164eb23f
    • Marek Vasut's avatar
      ddr: altera: Fix scc_mgr_set() argument order · 8e9e62c9
      Marek Vasut authored
      
      The code should be setting registers to zero, not one register to value.
      Swap the order of arguments to correct the behavior. The behavior is now
      in-line with code generated by Quartus 15.1 .
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Dinh Nguyen <dinguyen@opensource.altera.com>
      Cc: Chin Liang See <clsee@altera.com>
      8e9e62c9
    • Marek Vasut's avatar
      ddr: altera: Tweak DQS tracking enable handling · bba77110
      Marek Vasut authored
      
      In the most unlikely case the DQS tracking was to be disabled,
      make sure we do not errornously re-enable it. Note that DQS
      tracking is enabled on all systems observed thus far.
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Dinh Nguyen <dinguyen@opensource.altera.com>
      Cc: Chin Liang See <clsee@altera.com>
      bba77110
    • Marek Vasut's avatar
      ddr: altera: Replace ad-hoc constant with macro · abaf8361
      Marek Vasut authored
      
      The bit 22 is in fact DQS tracking enable bit (dqstrken) and there
      is a macro for this bit already, so use it.
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Dinh Nguyen <dinguyen@opensource.altera.com>
      Cc: Chin Liang See <clsee@altera.com>
      abaf8361
  17. Mar 27, 2016
  18. Mar 24, 2016
Loading