1. 12 Dec, 2015 1 commit
    • ROOL's avatar
      Fix for incorrect register use · 71e6ae92
      ROOL authored
        The CPUClkDevice struct pointer should be in a1, not a3.
        Submission from Willi Theiss.
      Version 0.77. Tagged as 'PortableHAL-0_77'
  2. 05 Dec, 2015 1 commit
    • Robert Sprowson's avatar
      Add sensor reading SWI · 9fc9fef8
      Robert Sprowson authored
      New Portable_ReadSensor is a general front end to sensors that might be of concern to the Portable module.
      Starter for 10 is temperature, and we support reading the CPU die temperature (from a new CPUClk entry point, since faster=botter they're physically related parameters) and the BMU charger. Each supports multiple units, so in future multicore temperatures can be reported.
      New error message in the resources, plus enable tokenisation of the Messages file since it's used via a buffered MessageTrans_ErrorLookup call.
      Tested briefly on a HAL with fake temperature sensor returning a hardwired kelvin value.
      Version 0.76. Tagged as 'PortableHAL-0_76'
  3. 21 Jun, 2015 1 commit
    • Robert Sprowson's avatar
      Minor cleanups · 182f19f7
      Robert Sprowson authored
      * A few redundant includes removed
      * Use ObjAsm {TRUE} and {FALSE}
      * Since there's no command table, don't declare the messages file in the module header
      * Use WFI directly instead of DCI &E320F003
      * Remove *FreezeTime command help from messages
      Built, but not tested.
      Version 0.75. Tagged as 'PortableHAL-0_75'
  4. 14 Apr, 2013 1 commit
  5. 21 Nov, 2012 1 commit
    • Jeffrey Lee's avatar
      Add initial implementation of the new HAL friendly BMU interface · f39eb189
      Jeffrey Lee authored
        hdr/BMUDevice - New header describing layout of BMU HAL devices
        Makefile - export hdr/BMUDevice, and a C version of hdr/Portable
        hdr/Portable - Lots of new definitions related to the BMU interface. VirtualRPC BMU vars renamed slightly to match the A4/HAL naming convention (PortableBMUV_) instead of the Stork naming convention (Portable_BMUVar_).
        s/Front, s/GetAll, s/StPortable - BMU interface implementation. Two new SWIs (Portable_EnumerateBMU & Portable_ReadBMUVariables) are provided, along with a semi backwards compatible Portable_ReadBMUVariable implementation. Code also updated to use OSHW_ constants instead of magic numbers.
        Resources/UK/Messages - New error message text added
        Tested in ROM on BB-xM, Pandora, TouchBook
      Version 0.73. Tagged as 'PortableHAL-0_73'
  6. 26 Feb, 2012 1 commit
  7. 27 Jan, 2012 1 commit
  8. 19 Mar, 2011 1 commit
    • Jeffrey Lee's avatar
      Add code for controlling CPU speed via interacting with a CPUClk HAL device. · ab299835
      Jeffrey Lee authored
        Makefile, hdr/CPUClkDevice - Add HALDevice_CPUClk descriptor to header exports
        hdr/Portable - Trim some obsolete definitions, tidy formatting, add Speed2 and (unimplemented) WakeTime SWI numbers, add BatteryTimeRemaining and MaxBatteryTime BMU variables (from VirtualRPC)
        s/Front, s/GetAll, s/StPortable - Added Portable_Speed and Portable_Speed2 implementations, for controlling CPU speed. Portable_Speed is fully compatible with the old A4 version; all new features are exposed via Portable_Speed2 instead. Also added some debug-only stats logging code to track how much time is spent in various states.
        Resources/UK/Messages - New error messages.
        Tested on rev C2 BB, A2 BB-xM, C1 TouchBook.
        Portable_Speed2 & HALDevice_CPUClk documentation will be on the wiki soon.
      Version 0.70. Tagged as 'PortableHAL-0_70'
  9. 21 Mar, 2010 1 commit
    • Jeffrey Lee's avatar
      Tweak Portable_Idle implementation in PortableHAL module · fc5e15e5
      Jeffrey Lee authored
        In an attempt to solve a problem that doesn't exist, my Portable_Idle implementation was taking measures to avoid executing the WFI instruction if the module might have been running on pre-ARMv3 hardware.
        However I've since discovered that this was unnecessary, since WFI degrades to a NOP MSR on pre-ARMv6K, and MSR itself is a NOP on pre-ARMv3.
        Untested, but should be safe.
      Version 0.69. Tagged as 'PortableHAL-0_69'
  10. 30 Jan, 2010 1 commit