1. 27 Aug, 2015 4 commits
    • Nishanth Menon's avatar
      [CPUINFO][DRA74x] Rename IDCODE MACROs to be closer to reality · 076719e3
      Nishanth Menon authored
      DRA7XX is a superset of DRA74x DRA75x and DRA72x.. that is not really
      true for these macros.. Lets just use DRA74x instead to keep things
      simple.
      Signed-off-by: default avatarNishanth Menon <nm@ti.com>
      076719e3
    • Nishanth Menon's avatar
      [COMMON / OMAP4/ OMAP5] cast fget result to void · 79186cee
      Nishanth Menon authored
      Seems fgets needs to have return value checked, but our existing logic
      seems to have no need for it, so cast to void to make gcc 5.1 happy.
      
      Fixes:
      arch/arm/mach-omap/omap4/uc_audit44xx.c:887:2: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result]
      arch/arm/mach-omap/omap5/lib54xx.c:500:2: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result]
      arch/arm/mach-omap/omap5/lib54xx.c:501:2: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result]
      common/cpuinfo.c:1576:3: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result]
      common/cpuinfo.c:1704:3: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result]
      common/cpuinfo.c:1707:4: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result]
      common/cpuinfo.c:303:2: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result]
      common/trace.c:1110:3: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result]
      common/trace.c:1170:3: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result]
      common/trace.c:450:3: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result]
      common/trace.c:639:3: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result]
      common/trace.c:782:3: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result]
      common/trace.c:840:2: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result]
      common/trace.c:853:3: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result]
      common/trace.c:872:2: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result]
      common/trace.c:884:3: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result]
      common/trace.c:906:3: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result]
      common/trace.c:961:3: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result]
      common/trace.c:984:3: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result]
      Reported-by: default avatarRobert C Nelson <robertcnelson@gmail.com>
      Signed-off-by: default avatarNishanth Menon <nm@ti.com>
      79186cee
    • Nishanth Menon's avatar
      [COMMON][MEM] get rid of inline accessors for public functions · 7fb33ae8
      Nishanth Menon authored
      Stop confusing gcc 5.1.
      
      Fixes build warnings:
      common/mem.h:59:14: warning: inline function 'mem_phys2virt' declared
      but never defined
       inline void *mem_phys2virt(void *addr);
      Reported-by: default avatarRobert C Nelson <robertcnelson@gmail.com>
      Signed-off-by: default avatarNishanth Menon <nm@ti.com>
      7fb33ae8
    • Nishanth Menon's avatar
      [COMMON][LIB] Fix up inlines · 31ff9ba8
      Nishanth Menon authored
      Dont keep inlines in public functions, just make them static inlines
      
      Confuses the heck out of gcc 5.1
      
      Fixes:
      common/mem.h:59:14: warning: inline function 'mem_phys2virt' declared but never defined
       inline void *mem_phys2virt(void *addr);
                    ^
      In file included from omapconf.c:49:0:
      common/lib.h:237:12: warning: inline function 'mhz2khz' declared but never defined
       inline int mhz2khz(double mhz);
                  ^
      common/lib.h:236:15: warning: inline function 'khz2mhz' declared but never defined
       inline double khz2mhz(int khz);
                     ^
      common/lib.h:234:12: warning: inline function 'v2uv' declared but never defined
       inline int v2uv(double v);
                  ^
      common/lib.h:233:15: warning: inline function 'uv2v' declared but never defined
       inline double uv2v(int uv);
      Reported-by: default avatarRobert C Nelson <robertcnelson@gmail.com>
      Signed-off-by: default avatarNishanth Menon <nm@ti.com>
      31ff9ba8
  2. 25 Aug, 2015 10 commits
  3. 25 Jun, 2015 1 commit
    • Suman Anna's avatar
      [CPUINFO] Correct I2C bus number to fix cpuinfo for OMAP4/5 · 727b8e6b
      Suman Anna authored
      The cpuinfo option prints out the PMIC and AudioIC device
      information alongside the SoC information. This data is
      gathered by querying the devices using appropriate i2c
      commands. The I2C bus number being used currently matches
      the bus numbers from the legacy non-DT boots, and does not
      match the DT alias numbers from the current DT-based boots.
      The PMIC and AudioIC info is incorrect as a result, and it
      also causes additional delays due to i2c timeouts on every
      omapconf command (especially on OMAP5).
      
      Fix this I2C bus number so that the cpuinfo information is
      printed properly for OMAP4 and OMAP5 SoCs. The behavior on
      other SoCs is same as before this patch.
      Signed-off-by: default avatarSuman Anna <s-anna@ti.com>
      Signed-off-by: default avatarNishanth Menon <nm@ti.com>
      727b8e6b
  4. 06 May, 2015 2 commits
  5. 21 Mar, 2015 6 commits
  6. 03 Feb, 2015 3 commits
  7. 30 Dec, 2014 4 commits
  8. 15 Aug, 2014 2 commits
  9. 14 Aug, 2014 1 commit
  10. 13 Aug, 2014 6 commits
    • Nishanth Menon's avatar
      [DRA7][STATCOLL] Touch up formatting style · 044022a3
      Nishanth Menon authored
      Currently there is no alignment of data, nor is information provided
      w.r.t the units of the data being depicted.
      
      For example (memtester running in background):
      omapconf trace bw --m0 ma_mpu --m1 ma_mpu --p1 emif1 --p0 emif1 --m2 ma_mpu --p2 emif1 --m3 dss --p3 emif1
      
      Current Output format:
      Counter: 0  Master: ma_mpu  Transaction: w Probe: emif1
      Counter: 1  Master: ma_mpu  Transaction: w Probe: emif1
      Counter: 2  Master: ma_mpu  Transaction: r Probe: emif1
      Counter: 3  Master: dss  Transaction: r Probe: emif1
      delay in us: 1000000
      overflow delay in us: 1000000 (iterations=1)
      accumulation type: 2
      iterations (0=infinite): 0
      Overflow counter index: DISABLED (overflow delay used)
      Overflow threshold: DISABLED (overflow delay used)
      time: 656882508 656849727 32781 -> 211.63 211.63 389.74 0.00
      time: 656915293 656882508 32785 -> 151.33 151.33 423.28 0.00
      time: 656948082 656915293 32789 -> 222.05 222.05 385.83 0.00
      time: 656980873 656948082 32791 -> 226.93 226.93 381.06 0.00
      
      With this change, this becomes:
      Counter: 0  Master:          ma_mpu Transaction:  w Probe: emif1
      Counter: 1  Master:          ma_mpu Transaction:  w Probe: emif1
      Counter: 2  Master:          ma_mpu Transaction:  r Probe: emif1
      Counter: 3  Master:             dss Transaction:  r Probe: emif1
      delay in us: 1000000
      overflow delay in us: 1000000 (iterations=1)
      accumulation type: 2
      iterations (0=infinite): 0
      Overflow counter index: DISABLED (overflow delay used)
      Overflow threshold: DISABLED (overflow delay used)
                    Time Stamp(32KHz ticks) ->   Throughput(MB/s)
      time:         End       Start   Delta ->   Counter0   Counter1   Counter2   Counter3
      time:   660420813   660388035   32778 ->     753.04     753.04    1387.92       0.00
      time:   660453590   660420814   32776 ->     764.95     764.95    1400.03       0.00
      time:   660486366   660453590   32776 ->     704.70     704.70    1428.90       0.00
      Signed-off-by: default avatarNishanth Menon <nm@ti.com>
      044022a3
    • Edward Shin's avatar
      [DRA7][STATCOLL] Add DRA7 specific statistics collector library · c7113078
      Edward Shin authored
      The statistics collectors (statcoll) on the L3 NoC allow for hardware monitoring
      of traffic statistics on the EMIF bus. This patch adds support for
      accessing the DRA7xx statistics collectors using the trace bw feature.
      
      Example:
      $./omapconf trace bw -m dss
      Monitors read and write traffic to DSS.
      
      $./omapconf trace bw -h
      Displays help text.
      Signed-off-by: default avatarEdward Shin <e-shin@ti.com>
      Signed-off-by: default avatarNishanth Menon <nm@ti.com>
      c7113078
    • Edward Shin's avatar
      [DRA7][TIMESTAMP] Fix 32k counter register address · 104a397b
      Edward Shin authored
      Actually, OMAP5 and DRA7 share the same register address, not OMAP4.
      
      Fix the same.
      
      Fixes commit a7361b40 ([DRA7][TIMESTAMP]
      Provide 32k counter register address)
      Signed-off-by: default avatarEdward Shin <e-shin@ti.com>
      Signed-off-by: default avatarNishanth Menon <nm@ti.com>
      104a397b
    • Gilberto Rodriguez's avatar
      [AM335X][MODULE] Support for show pwst command · 9c7f2422
      Gilberto Rodriguez authored
      Update AM335X modules with the appropriate powerdm and clkdm. Add
      additional modules to print. Update AM335X clocks for new GFX module.
      Update common module status show function to adjust for the AM335X.
      Move a line due to remove a printed line to console for VDD_RTC. Add
      skip for CEFUSE clkdm. Update AM335X main to call the module status
      show function. Update logic to print standby status.
      Signed-off-by: default avatarGilberto Rodriguez <gilrod@ti.com>
      Signed-off-by: default avatarNishanth Menon <nm@ti.com>
      9c7f2422
    • Gilberto Rodriguez's avatar
      [AM335X][CLKDM] Add AM335X clkdm functions and definitions · 7e338019
      Gilberto Rodriguez authored
      Add AM335X clkdm definitions and functions to be used in omapconf show
      pwst command. Update common clkdm with new defines. Update to common
      clkdm to call AM335X clkdm functions. Update clockdm_info struct to
      accommodate difference between OMAP5 and AM335X (position of main
      domain status bit). Add new function for the clkstctrl status bit.
      Signed-off-by: default avatarGilberto Rodriguez <gilrod@ti.com>
      Signed-off-by: default avatarNishanth Menon <nm@ti.com>
      7e338019
    • Gilberto Rodriguez's avatar
      [AM335X][PWRDM] Add AM335X powerdm functions and definitions · d4ef4922
      Gilberto Rodriguez authored
      Add AM335X powerdm definitions and functions to be used in omapconf
      show pwst command. Update common powerdm header with new defines.
      Update to common powerdm to call AM335X powerdm functions.
      Signed-off-by: default avatarGilberto Rodriguez <gilrod@ti.com>
      Signed-off-by: default avatarNishanth Menon <nm@ti.com>
      d4ef4922
  11. 08 Aug, 2014 1 commit