1. 08 Feb, 2020 1 commit
    • Jeffrey Lee's avatar
      Fix UART TX FIFO thresholds · c99f9b07
      Jeffrey Lee authored
      HAL_UARTFIFOSize was incorrectly returning the TX FIFO size, instead of
      the number of characters that can be written when the TX empty IRQ is
      received. This was causing data loss when DualSerial drives the
      interface at high speed (> 19200 baud).
      
      Fix this by programming a sensible trigger level at startup, and
      returning the correct value from HAL_UARTFIFOSize.
      
      Version 0.61. Tagged as 'HAL_OMAP4-0_61'
      c99f9b07
  2. 07 Jul, 2018 1 commit
    • Jeffrey Lee's avatar
      Merge SMP branch to trunk · 3640c884
      Jeffrey Lee authored
      Detail:
        Makefile, s/DBell - Add doorbell HAL device implementation, using GIC SGIs
        hdr/StaticWS, hdr/omap4430 - Tidy things up a bit by removing the DebugInterrupts code.
        hdr/omap4_reg - Offset all the shared interrupt numbers so that RISC OS IRQs 0-31 are core 0 private, 32-63 core 1 private, 64-159 shared
        s/Boot - Implement SMP ARMops
        s/Interrupts - Tidy up interrupt handling and implement new HAL IRQ calls
      Admin:
        Untested
        Requires Kernel-6_09
      
      
      Version 0.60. Tagged as 'OMAP4-0_60'
      3640c884
  3. 08 Apr, 2018 1 commit
    • ROOL's avatar
      GPIO corrections · 10f944f8
      ROOL authored
      Detail:
        Correct group number for pin 58.
        Use OMAP44x0 register names for interrupt handling, the status registers are split into set/clear pairs.
      Admin:
        Submission from Willi Theiss.
      
      Version 0.59. Tagged as 'OMAP4-0_59'
      10f944f8
  4. 01 Apr, 2018 1 commit
    • Robert Sprowson's avatar
      Add GPIO device implementation · faf92036
      Robert Sprowson authored
      Update to API 1.0, and corresponding set of register wide accessor functions.
      The tables of permitted pins come from staring at the schematics for any connectors, minus those that are "owned" by the OS.
      
      Tested on a Pandaboard, toggling the two user LEDs and scanning the 'USER' push button (which, by the way, needs the pullup enabling as there isn't a discrete one).
      
      Version 0.58. Tagged as 'OMAP4-0_58'
      faf92036
  5. 31 Mar, 2018 1 commit
    • ROOL's avatar
      Comment and workspace tidy up · 404fe8c0
      ROOL authored
      Detail:
        SDIO.s comment correction
        hdr/StaticWS removed unused USBAllocArea
      Admin:
        Submission from Willi Theiss.
      
      Version 0.57. Tagged as 'OMAP4-0_57'
      404fe8c0
  6. 30 Mar, 2018 1 commit
    • Robert Sprowson's avatar
      Make type and revision private · 35c39f36
      Robert Sprowson authored
      Adopt the board type and revision enum privately in board.hdr (mass search & replace exercise).
      Don't re-export it via a stub GPIO device; it's private.
      
      Version 0.56. Tagged as 'OMAP4-0_56'
      35c39f36
  7. 09 Dec, 2017 1 commit
    • ROOL's avatar
      Use continuous conversion for faster ADC results · 5addcb56
      ROOL authored
      Detail:
        Added check for already running conversion in SR44x_GetDieTempES use continuous conversion mode in SR44x_GetDieTemp to reduce waiting phases.
      Admin:
        Submission from Willi Theiss.
      
      Version 0.55. Tagged as 'OMAP4-0_55'
      5addcb56
  8. 09 Sep, 2017 1 commit
    • ROOL's avatar
      Participate in keyboard scan dependencies · cd2f6a7c
      ROOL authored
      Detail:
        Replace keyboard scan code with list of modules that the kernel needs to do the same.
        Reorder the HALEntries to match Kernel-5_89.
        Delete unused workspace.
        Don't link against HAL USB library.
      Admin:
        Submission for USB bounty.
      
      Version 0.54. Tagged as 'OMAP4-0_54'
      cd2f6a7c
  9. 30 Jul, 2017 1 commit
    • ROOL's avatar
      Build fix · c465a5ce
      ROOL authored
      Admin:
        As a side effect of changes in USBDriver-1_20, rename the library object.
      
      Version 0.53. Tagged as 'OMAP4-0_53'
      c465a5ce
  10. 09 May, 2016 1 commit
    • Jeffrey Lee's avatar
      GET Hdr:CPU.Arch · b4214424
      Jeffrey Lee authored
      Detail:
        s/SDIO - Add a GET of Hdr:CPU.Arch, as it's now required for DivRem usage
      Admin:
        Untested
      
      
      Version 0.52. Tagged as 'OMAP4-0_52'
      b4214424
  11. 06 May, 2016 1 commit
    • Jeffrey Lee's avatar
      Implement HAL_TimerIRQClear · e25abc64
      Jeffrey Lee authored
      Detail:
        s/Boot, s/Interrupts, s/Timers - Move timer IRQ clear code out of HAL_IRQClear and into HAL_TimerIRQClear. Streamlines HAL_IRQClear, and necessary to avoid undefined symbols when linking with latest HAL USB library
      Admin:
        Builds, untested
      
      
      Version 0.51. Tagged as 'OMAP4-0_51'
      e25abc64
  12. 16 Jan, 2016 1 commit
    • ROOL's avatar
      Add HAL_PlatformName implementation · c8996882
      ROOL authored
      Detail:
        Return the board name for this entry.
        Rename CPU temperature sensor register per datasheet.
      Admin:
        Submission from Willi Theiss.
        Not tested.
      
      Version 0.50. Tagged as 'OMAP4-0_50'
      c8996882
  13. 02 Jan, 2016 1 commit
    • ROOL's avatar
      Extend to support CPUClk device 0.2 API · a2527ec0
      ROOL authored
      Detail:
        Extra entry to get the die temperature, as reported by Portable_ReadSensor(0,0,0).
      Admin:
        Submission from Willi Theiss.
        Tested on OMAP4430 and OMAP4460.
      
      Version 0.49. Tagged as 'OMAP4-0_49'
      a2527ec0
  14. 19 Dec, 2015 1 commit
    • ROOL's avatar
      Remove stubbed out HAL entries · 979e0aac
      ROOL authored
      Detail:
        There's no need to provide an empty implementation, just use NullEntry.
      Admin:
        Submission from Willi Theiss.
      
      Version 0.48. Tagged as 'OMAP4-0_48'
      979e0aac
  15. 01 Sep, 2015 1 commit
    • ROOL's avatar
      Minor OMAP4 tidying · ea55eb8c
      ROOL authored
      omap4430.hdr/Debug,s:
        Define a dummy symbol so when debug is enabled there aren't conflicting IMPORT and EXPORTs.
      PRCM.s:
        Fill in missing frequency.
      Boot.s:
        Update comment to match HAL function names.
      NVMemory.s:
        Add offset to account for FATLoadedCMOS not being at offset 0.
      Top.s:
        Remove unused Post header. Replace DCI with instruction now objasm supports it.
      Submission from Willi Theiss.
      
      Version 0.47. Tagged as 'OMAP4-0_47'
      ea55eb8c
  16. 14 Aug, 2015 1 commit
    • Jeffrey Lee's avatar
      Add additional memory barriers · 61d60f30
      Jeffrey Lee authored
      Detail:
        s/SDMA - Add extra memory barriers to DMA code, ready for when the default NCB memory cache policy is changed from Device to Normal, non-cacheable (increased risk of out-of-order accesses)
        s/PL310 - Add DMB ST implementation that also deals with PL310 synchronisation
      Admin:
        Tested on PandaBoard
      
      
      Version 0.46. Tagged as 'OMAP4-0_46'
      61d60f30
  17. 16 Apr, 2015 1 commit
    • Jeffrey Lee's avatar
      Fix time warp caused by TWL6030 RTC being set running before a valid time has been programmed · 80bb48f0
      Jeffrey Lee authored
      Detail:
        s/RTC - Remove TWL6030 RTC startup code from RTC_Init, to ensure that RTC_Read is able to report that the time is invalid if the RTC isn't running. This avoids the RTC module getting confused and thinking the century needs incrementing (RTC will report a year of xx00, CMOS will hold 2015, RTC module assumes year can only go forward -> therefore must be 2100)
        Also perform a dummy read of RTC_STATUS_REG before reading actual value, as the manual warns that this is required.
      Admin:
        Tested on Pandaboard
        With CMOS available:
        - *Time defaults to year 1970 on power up (CMOS year ignored due to RTC read error)
        - After setting time and rebooting, time is retained and 4 digit year is reconstructed correctly
        Without CMOS available:
        - *Time defaults to year 1970 on power up (default CMOS year ignored due to RTC read error)
        - After setting time and rebooting, time is retained and 4 digit year is reconstructed correctly (RTC year xx15 deemed higher than CMOS default year 2000)
      
      
      Version 0.45. Tagged as 'OMAP4-0_45'
      80bb48f0
  18. 08 Apr, 2015 1 commit
    • Robert Sprowson's avatar
      Turn off debug · afb6e747
      Robert Sprowson authored
      Anyone using the serial port for other peripheral uses might get confused if some HAL debug comes out on it.
      Move the IMPORTs into a header so we don't end up with lots of unresolved symbols with Debug {FALSE}.
      Built, but not tested.
      
      Version 0.44. Tagged as 'OMAP4-0_44'
      afb6e747
  19. 06 Apr, 2015 1 commit
    • Robert Sprowson's avatar
      Build fix · 9d1f18cb
      Robert Sprowson authored
      Updated for Sound0HAL-1_80.
      
      Version 0.43. Tagged as 'OMAP4-0_43'
      9d1f18cb
  20. 17 Jan, 2015 1 commit
    • Jeffrey Lee's avatar
      Implement PL310 device disable & reset entries · 3ba5ff4b
      Jeffrey Lee authored
      Detail:
        s/PL310 - Implemented PL310 disable & reset entries, to allow the L2 cache to be turned off as well as on. Fix potential register corruption from Activate entry (OMAP ROM code may corrupt r0-r12, lr)
      Admin:
        Tested on Pandaboard
        Fixes crash on *Cache Off (in conjunction with Kernel-5_35-4_79_2_254)
      
      
      Version 0.42. Tagged as 'OMAP4-0_42'
      3ba5ff4b
  21. 11 Jan, 2015 1 commit
    • Jeffrey Lee's avatar
      Add HAL device implementation for PL310 L2 cache controller · 797812f8
      Jeffrey Lee authored
      Detail:
        s/PL310 - Add basic HAL device for the PL310 cache controller. Reports the base address to the OS and handles basic cache initialisation.
        Makefile - Include PL310 code
        hdr/StaticWS - Allocate workspace for HAL device
        s/Boot - Remove L2 cache initialisation from HAL_Init. Register PL310 device during HAL_InitDevices.
      Admin:
        Tested on rev A6 Pandaboard
        Requires Kernel-5_35-4_79_2_252
      
      
      Version 0.41. Tagged as 'OMAP4-0_41'
      797812f8
  22. 21 Dec, 2014 1 commit
    • Robert Sprowson's avatar
      Enable L2 cache in HAL_Init · 1fa73584
      Robert Sprowson authored
      On the OMAP4 we're in a privileged but unsecure mode, so to do the initial PL310 enable we call an SMC sunction embedded in the OMAP's onboard mask ROM to do the deed.
      Also, correct the range of SDRAM hinted to the kernel - this looks like a copy and paste mistake from the Tungsten HAL.
      
      Version 0.40. Tagged as 'OMAP4-0_40'
      1fa73584
  23. 07 Dec, 2014 1 commit
    • Robert Sprowson's avatar
      Relocate SDIO again · c19aa5e5
      Robert Sprowson authored
      According to Willi, although MMC1 is connected at L3, RISC OS only ever uses the L4_PER interface, so move it back to that bus.
      Retagged as OMAP4-0_39.
      c19aa5e5
  24. 06 Dec, 2014 2 commits
  25. 30 Oct, 2014 1 commit
  26. 25 Oct, 2014 1 commit
  27. 04 Sep, 2014 1 commit
    • Jeffrey Lee's avatar
      Add support for recent U-Boot versions · b619bcbf
      Jeffrey Lee authored
      Detail:
        hdr/PRCM:
        - added further definitions (not listed in older TRMs)
        s/Audio:
        - configure all GPIO pads used by audio system
          (for supporting latest U-Boot 2014-7)
        s/Boot:
        - added overflow check for address range
        s/RAM:
        - added overflow check for address range
        - address comparison with unsigned arithmetic
        s/RTC:
        - added initialisation code and pad configuration for TWL6030 RTC
          (for supporting latest U-Boot 2014-07)
        s/SDIO:
        - added pad configuration for LEDs used by SDIO
          (for supporting latest U-Boot 2014-07)
        s/USB:
        - removed unused code parts
        - use defines for controller types
        s/Video:
        - added pad configuration for DVI framer pin
        - enable DSS power and clock domain and DSS specific clocks
        - activate thermal sensor clock
        - wait for activated module in VideoDevice_Activate
          (for supporting latest U-Boot 2014-07)
      Admin:
        Submission from Willi Theiss
        Tested on Panda ES rev B3 (Willi), Panda rev A6 (myself)
      
      
      Version 0.36. Tagged as 'OMAP4-0_36'
      b619bcbf
  28. 20 Jul, 2014 1 commit
  29. 22 Apr, 2014 1 commit
    • Robert Sprowson's avatar
      Improvements to audio FIFOing · dd79dd09
      Robert Sprowson authored
      hdr/Audio: split AudioChannels to allow new AudioDMASize field to differentiate OMAP4430 v 4460.
      Audio.s: handle FIFO underflow events of the audio stream, differentiate FIFO sizes for OMAP4430 v 4460.
      SDMA.s: add prefetch flag in DMA control for audio channel
      Submission from Willi Theiss.
      
      Version 0.34. Tagged as 'OMAP4-0_34'
      dd79dd09
  30. 14 Apr, 2014 1 commit
  31. 23 Mar, 2014 1 commit
  32. 22 Mar, 2014 2 commits
  33. 09 Mar, 2014 1 commit
    • Robert Sprowson's avatar
      Rework of SDRAM detection · 6d2e5e8a
      Robert Sprowson authored
      hdr.SDRC: Extra bit fields added to definitions
      s.RAM: scan through all LISA_MAP register
             rework of clear loop (only one instance used)
      s.Boot: scan through all LISA_MAP register
      
      This should remove the dependence of the OMAP4 HAL to be run with a specific version of the accompanying loader.
      Submission from Willi Theiss. Built, but not tested here,
      
      Version 0.29. Tagged as 'OMAP4-0_29'
      6d2e5e8a
  34. 08 Mar, 2014 1 commit
    • Robert Sprowson's avatar
      Use DSB/ISB directly · 71b85f75
      Robert Sprowson authored
      Objasm 4 supports ARMv7 opcodes, and this HAL is only every for ARMv7.
      Built, but not tested. Submission from Willi Theiss.
      
      Version 0.28. Tagged as 'OMAP4-0_28'
      71b85f75
  35. 15 Dec, 2013 1 commit
    • Jeffrey Lee's avatar
      Remove obsolete stub HAL video API implementation · 9ab43465
      Jeffrey Lee authored
      Detail:
        hdr/Video - Remove unused local VIDC list type 3 definition
        s/Boot, s/Video - Removed obsolete HAL video API implementation. A stub implementation is no longer required for systems that have a GraphicsV driver in a module, and can even cause problems if the OS decides to use the HAL implementation instead of the module one.
      Admin:
        Builds, but untested. Essentially the same changes as for the OMAP3 HAL.
        Requires Kernel-5_35-4_79_2_203
      
      
      Version 0.27. Tagged as 'OMAP4-0_27'
      9ab43465
  36. 16 Nov, 2013 3 commits