1. 28 Sep, 2013 1 commit
    • Robert Sprowson's avatar
      Modification to RISCOS_IICOpV · 7c84c62b
      Robert Sprowson authored
      Now assumes an IICStatus return, per Kernel-5_35-4_79_2_196.
      I2C sources lined up to column 17.
      Built, but not tested.
      
      Version 0.89. Tagged as 'OMAP3-0_89'
      7c84c62b
  2. 17 Aug, 2013 1 commit
  3. 15 Aug, 2013 1 commit
  4. 21 Feb, 2013 1 commit
  5. 22 Jan, 2013 1 commit
    • Jeffrey Lee's avatar
      Implement HAL_IRQMax · 0f3cd4f2
      Jeffrey Lee authored
      Detail:
        s/Boot, s/Interrupts - Added HAL_IRQMax implementation, to ensure correct functionality with latest Kernel
      Admin:
        Tested on BB-xM
        Requires Kernel-5_35-4_79_2_182
      
      
      Version 0.85. Tagged as 'OMAP3-0_85'
      0f3cd4f2
  6. 13 Jan, 2013 1 commit
    • Jeffrey Lee's avatar
      Program the gamma table in the Pandora's LCD · 48daf0ce
      Jeffrey Lee authored
      Detail:
        s/Video - Added code to program the gamma table in the Pandora's LCD, as the power-on settings aren't very good
        s/Boot - Initialise the LCD at the right time
        hdr/SPI - SPI register definitions, for programming the gamma table and (eventually) a full SPI driver
      Admin:
        Tested on Pandora
      
      
      Version 0.84. Tagged as 'OMAP3-0_84'
      48daf0ce
  7. 21 Nov, 2012 1 commit
    • Jeffrey Lee's avatar
      Add BMU support for Pandora & TouchBook · 16658545
      Jeffrey Lee authored
      Detail:
        s/BMU, Makefile - BMU HAL device implementations for the Pandora & TouchBook
        hdr/StaticWS - Reserve workspace for the BMU devices
        s/Boot - Add the BMU devices to HAL device initialisation. Move Enable_main_battery_charging into s/BMU.
      Admin:
        Tested in ROM on BB-xM, Pandora, TouchBook
      
      
      Version 0.83. Tagged as 'OMAP3-0_83'
      16658545
  8. 07 Oct, 2012 1 commit
    • Jeffrey Lee's avatar
      Switch to default clock speed before reset/power off. Place EHCI PHY in reset too. · 4e94b0fc
      Jeffrey Lee authored
      Detail:
        hdr/CPUClk, hdr/SR37x, s/Boot, s/CPUClk, s/SR37x - Modifed CPU clock drivers to allow the core speed & voltage to be reset to the power on defaults prior to reset/poweroff. This fixes an issue seen on Pandora where Linux will often fail to boot after RISC OS has been run, presumably due to VDD1 being too low for the initial clock speed Linux switches to.
        s/Boot - Place EHCI PHY in reset prior to reset/power off. May help with a reported issue of USB host being unreliable after RISC OS has been run (although reset/poweroff should reset the GPIO anyway)
      Admin:
        Tested on Pandora & BB-xM
      
      
      Version 0.82. Tagged as 'OMAP3-0_82'
      4e94b0fc
  9. 30 Sep, 2012 1 commit
    • Jeffrey Lee's avatar
      Implement Pandora keyboard scan & audio support · 6e835fc2
      Jeffrey Lee authored
      Detail:
        s/PAudio, Makefile - Added Pandora audio driver. The Pandora uses a different audio setup to all the other OMAP boards, so to keep things simple the implementation is kept in its own file seperate from the main one.
        s/KbdMatrix, hdr/StaticWS - Implemented Pandora boot-time keyboard scan. This uses the keyboard matrix & GPIO keys instead of the USB libraries.
        s/Boot - Moved call to Audio_Init into the per-board HAL_InitDevices code so that Pandora can call PandoraAudio_Init instead.
        s/SDIO - For MMC1, avoid touching VSIM if the bus width is only 4 bits (i.e. on Pandora). On Pandora VSIM is used for the audio DAC instead.
      Admin:
        Tested on Pandora
      
      
      Version 0.81. Tagged as 'OMAP3-0_81'
      6e835fc2
  10. 23 Sep, 2012 1 commit
    • Jeffrey Lee's avatar
      Configure Pandora battery charging · f2b8dfe1
      Jeffrey Lee authored
      Detail:
        s/Boot - Under Linux the Pandora uses a similar battery charging setup to the TouchBook. Reuse our TouchBook battery charging setup code to set things up appropriately for the Pandora.
      Admin:
        Tested on Pandora
      
      
      Version 0.80. Tagged as 'OMAP3-0_80'
      f2b8dfe1
  11. 21 Sep, 2012 1 commit
    • Jeffrey Lee's avatar
      Tidy up board-specific code. Improve Pandora support. · 8690320d
      Jeffrey Lee authored
      Detail:
        hdr/board, s/board, s/Boot - Tidied up board-specific code a bit by adding more board-specific function pointers to the BoardConfig struct instead of relying on manual board detection in code.
        s/board - Disable Pandora VideoGPIO as turning the LCD on & off seems to result in graphical corruption, most likely due to settings which were set by the SPI interface being lost.
        s/KbdMatrix, Makefile - New file for handling the Pandora's keyboard matrix (and anything else that may require keyboard matrix code in the HAL). Contains stub code for the boot-time keyboard scan, and code to register a keyboard HAL device for detection by the PandoraKey module.
        s/Boot - Add soft-off support for Pandora. Add Pandora-specific initialisation code to enable some extra power supplies (touchscreen, nubs, audio DAC, EHCI PHY)
        s/KbdScan - Use Pandora-specific keyboard scan code instead of USB code when running on Pandora
        s/SDIO - Correct sense of MMC activity LEDs on Pandora. Now only lit during periods of activity, to match behaviour of the Pandora Linux distro.
        s/Video - Add some switched out hack code to allow easier debugging of aborts that occur during ROM initialisation
      Admin:
        Tested on Pandora, rev C2 BB, rev A2 BB-xM, rev C1 TouchBook
      
      
      Version 0.79. Tagged as 'OMAP3-0_79'
      8690320d
  12. 07 Aug, 2012 1 commit
    • Jeffrey Lee's avatar
      Temporarily disable TV-out on Pandora · 4821c492
      Jeffrey Lee authored
      Detail:
        s/board - Temporarily disable TV-out on Pandora, as the current TV detection code in OMAPVideo is believed to be causing false-positives with new some of the newer units.
      Admin:
        Builds, but untested
      
      
      Version 0.78. Tagged as 'OMAP3-0_78'
      4821c492
  13. 22 Jul, 2012 1 commit
    • Ben Avison's avatar
      Fix for data abort in Pandora builds · 6c8a63da
      Ben Avison authored
      Detail:
        MMC2 activate code was corrupting R4
      Admin:
        Tested by making a beagleboard run the Pandora code variant
      
      Version 0.77. Tagged as 'OMAP3-0_77'
      6c8a63da
  14. 20 Jul, 2012 1 commit
    • Ben Avison's avatar
      Build fix · 73255e34
      Ben Avison authored
      Detail:
        Oops, last change broke ADR range...
      Admin:
        Checked that it builds this time
      
      Version 0.76. Tagged as 'OMAP3-0_76'
      73255e34
  15. 19 Jul, 2012 1 commit
    • Ben Avison's avatar
      Bugfix to SDHCI devices · ab9e9e49
      Ben Avison authored
      Detail:
        The return values from the Activate entries were left uninitialised; at
        least in the case of Pandora MMC2, R0 happened to contain 0, which resulted
        in SDIODriver assuming the device had failed to initialise.
      Admin:
        Untested, but a safe change.
      
      Version 0.75. Tagged as 'OMAP3-0_75'
      ab9e9e49
  16. 18 Jul, 2012 1 commit
    • Jeffrey Lee's avatar
      Add support for TV detection · 1de49023
      Jeffrey Lee authored
      Detail:
        hdr/board, s/Video - Video device now implements the tvdet_func function for polling the TV detect GPIO
      Admin:
        Tested on BB-xM with high processor vectors
      
      
      Version 0.74. Tagged as 'OMAP3-0_74'
      1de49023
  17. 16 Jul, 2012 1 commit
    • Ben Avison's avatar
      Another attempt at making the second MMC slot on Pandora work · 70a98c10
      Ben Avison authored
      Detail:
        Copied the pin mux settings and SD controller power-up code from the
        ZippySupport module. The Zippy uses a level shifter, like the Pandora,
        so this should have a decent chance of working. Issues might still remain
        with the card detect, since Pandora uses the TPS for this.
      Admin:
        Builds, but untested.
      
      Version 0.73. Tagged as 'OMAP3-0_73'
      70a98c10
  18. 09 Jul, 2012 1 commit
  19. 08 Jul, 2012 1 commit
    • Ben Avison's avatar
      Another attempt to enable MMC2 on Pandora · 41b29ec8
      Ben Avison authored
      Detail:
        An additional register write in the OMAP3 is required to loop back the
        clock from the external transciever chip. Thanks to "notaz" for the tip.
      Admin:
        Builds OK, but untested
      
      Version 0.71. Tagged as 'OMAP3-0_71'
      41b29ec8
  20. 06 Jul, 2012 1 commit
    • Ben Avison's avatar
      Changes to MMC initialisation for Pandora · a4aa3cb8
      Ben Avison authored
      Detail:
        Forcibly sets the voltage for MMC2 level shifter to 3.0V.
        Attempts to configure TPS GPIO inputs in a way that might work.
      Admin:
        Builds, but untested.
      
      Version 0.70. Tagged as 'OMAP3-0_70'
      a4aa3cb8
  21. 04 Jul, 2012 1 commit
    • Robert Sprowson's avatar
      Refactor HAL_VideoIICOp to be ATPCS · d936bad5
      Robert Sprowson authored
      No longer specified to return _kernel_oserror * implements GraphicsV 14.
      Make use of IICStatus defines instead of local copies.
      Rename HAL_Video_ to HAL_Video.
      Tested on Beagleboard xM, reading EDID from Hyundai monitor.
      
      Version 0.69. Tagged as 'OMAP3-0_69'
      d936bad5
  22. 02 Jul, 2012 1 commit
  23. 11 Jun, 2012 1 commit
    • Jeffrey Lee's avatar
      Fix HAL_UARTModemControl. Tweak HAL_UARTStartUp. · 78a45f27
      Jeffrey Lee authored
      Detail:
        s/UART:
        - HAL_UARTModemControl now uses the correct AND mask; previous code would have always had bit 0 of the mask set.
        - Fixed code in HAL_UARTModemControl that was testing for calls that don't write to the register
        - Removed code from HAL_UARTStartUp that was setting the OUT2 bit of MCR (that bit has a different purpose on OMAP, and won't do anything interesting unless another bit it set as well)
      Admin:
        Tested on rev A2 BB-xM
        HAL now reports modem control lines changing correctly upon calls to HAL_UARTModemControl
      
      
      Version 0.67. Tagged as 'OMAP3-0_67'
      78a45f27
  24. 07 Jun, 2012 1 commit
    • Ben Avison's avatar
      Added HAL devices for main board SDHCI controllers · 6c82d3b6
      Ben Avison authored
      Detail:
        * For Beagleboard and Beagleboard-xM, supports MMC1, and is tested
        * For DevKit8000, supports MMC1 (but untested)
        * For IGEPv2, supports MMC1 and MMC2 (but untested)
        * No support for controllers on other boards at the present time
      Admin:
        Requires headers exported from SDIODriver
      
      Version 0.66. Tagged as 'OMAP3-0_66'
      6c82d3b6
  25. 06 Jun, 2012 1 commit
    • Jeffrey Lee's avatar
      Sanitise HAL_USBControllerInfo · bcd4580a
      Jeffrey Lee authored
      Detail:
        s/USB - For valid controllers, HAL_USBControllerInfo now always returns the correct USB struct size and fills in the controller type. The rest of the buffer is filled in only if the supplied size is large enough. This allows for proper probing of controllers without knowing the required buffer sizes beforehand.
      Admin:
        Tested on rev A2 BB-xM
      
      
      Version 0.65. Tagged as 'OMAP3-0_65'
      bcd4580a
  26. 04 Jun, 2012 1 commit
    • Jeffrey Lee's avatar
      Add HAL_UARTDefault implementation. Delete old HAL video code. Add some SmartReflex tweaks. · ff2a0c53
      Jeffrey Lee authored
      Detail:
        hdr/board, s/board, s/Boot, s/UART - Added HAL_UARTDefault implementation, to allow OS_SerialOp to be used
        hdr/StaticWS, hdr/omap3530, s/Boot, s/Interrupts, s/Video - Removed old HAL video code. The OMAPVideo module is a much better video driver.
        s/SR37x - Add some SmartReflex tweaks which we can try if we run into any stability issues with the current code.
      Admin:
        Tested on rev A2 BB-xM
      
      
      Version 0.64. Tagged as 'OMAP3-0_64'
      ff2a0c53
  27. 22 Apr, 2012 1 commit
    • Jeffrey Lee's avatar
      Fix unreliable warm reset on some BB-xM boards. SmartReflex tweaks. · 30efafad
      Jeffrey Lee authored
      Detail:
        s/TPS - Added code to correctly configure the TPS/TWL to deal with warm resets. Required to make sure VDD1/VDD2 are set back to default when a reset occurs, thereby fixing the hang on reset that some people have been experiencing
        s/Boot - Add code to call TPS_Init
        s/SR37x - Improve debug code. Change initial OPP1G voltage from 1.35V to 1.38V, as recommended by datasheet
        s/KbdScan - Add a bit more debug output
      Admin:
        Tested on rev C2 BB, A2 BB-xM, C1 TouchBook
        Fixes issue reported on forums with resets not working following addition of SmartReflex driver:
        http://www.riscosopen.org/forum/forums/4/topics/993
      
      
      Version 0.63. Tagged as 'OMAP3-0_63'
      30efafad
  28. 08 Apr, 2012 1 commit
    • Jeffrey Lee's avatar
      Add AM/DM37x SmartReflex driver · cad933b0
      Jeffrey Lee authored
      Detail:
        s/SR37x, hdr/SR37x - New files containing SmartReflex driver targeting AM/DM37x chips. Initialises SmartReflex for both VDD1 & VDD2, but currently only VDD1/DPLL1 settings can be adjusted at runtime (via CPUClk HAL device)
        Makefile - Add SR37x to object list
        hdr/CPUClk - Adjust OPPTbl_Max so CPUClk workspace size is >= SR37x workspace size (both drivers share their HAL workspace, since only one can be active at once)
        hdr/GPIO - Add TPS_GPPUPDCTR1 definition
        hdr/PRCM - Add SmartReflex related registers
        hdr/omap3530 - Add "control device status" register & extra AM/DM37x revision numbers
        s/CPUClk:
        - Modify CPUClk_PreInit to try initialising the SmartReflex driver.
        - Ensure SmartReflex is disabled in the TPS if using CPUClk driver.
        - Fix 'OPP60' typo in AMDM37x table.
        - Move DPLL adjustment code into its own function to allow it to be shared with SmartReflex driver.
        - Add a few ROUTs and ASSERTs for safety.
      Admin:
        Both new & old CPUClk devices tested on BB-xM
      
      
      Version 0.62. Tagged as 'OMAP3-0_62'
      cad933b0
  29. 25 Mar, 2012 1 commit
    • Robert Sprowson's avatar
      Line some things up. · 1282763f
      Robert Sprowson authored
      To help OMAP4 tracking changes a number of the changes were purely cosmetic lining up differences, this change is where OMAP3 wasn't on a conventional column layout.
      
      Version 0.61. Tagged as 'OMAP3-0_61'
      1282763f
  30. 07 Mar, 2012 1 commit
    • Jeffrey Lee's avatar
      Fix bug when linked against old kernels · 0e9d9db1
      Jeffrey Lee authored
      Detail:
        s/Top - If a kernel which doesn't support compression was in use, a typo would lead to the ROM image size being calculated incorrectly, most likely causing the ROM relocation code to fail.
      Admin:
        Tested on BB-xM
        Bug spotted by Willi Theiss
      
      
      Version 0.60. Tagged as 'OMAP3-0_60'
      0e9d9db1
  31. 25 Feb, 2012 1 commit
    • Jeffrey Lee's avatar
      Add compressed ROM support. Add boot timing code. Other misc tweaks. · ab02b15f
      Jeffrey Lee authored
      Detail:
        hdr/omap3530, s/Boot, s/KbdScan, s/Top, s/Video - Added code for profiling/timing the startup sequence, using the 32K system timer
        s/Boot - Ensure VAUX2 is enabled during EVM startup
        s/Boot, s/CPUClk - Go to full CPU speed during HAL_Init instead of HAL_InitDevices.
        s/KbdScan - Print out heap usage stats when debugging is enabled
        s/NVMemory - Skip probing for CMOS carrier board if JTAG is active
        s/RAM, s/Top - Use DMA to relocate the ROM image instead of simple memcpy code. Relocate compressed ROMs to a location suitable for decompression.
      Admin:
        Tested with compressed & uncompressed OMAP3/OMAP3Live images
      
      
      Version 0.59. Tagged as 'OMAP3-0_59'
      ab02b15f
  32. 21 Jan, 2012 1 commit
    • Jeffrey Lee's avatar
      Add support for new HAL mixer 0.1 API. Improve mixer functionality. · eb8f910e
      Jeffrey Lee authored
      Detail:
        hdr/Audio, s/Audio - The audio mixer now implements version 0.1 of the API, allowing it to return information about the min/max gain values supported by each channel.
        The code has also been updated to add support for an additional amplifier on the system audio channel, allowing for an extra +18dB volume boost
        Additionally, MixerGetMix will now return the clamped/rounded gain value that was last programmed to the hardware, instead of the unvalidated value the user supplied to MixerSetMix.
      Admin:
        Tested in OMAP3 ROM
      
      
      Version 0.58. Tagged as 'OMAP3-0_58'
      eb8f910e
  33. 15 Jan, 2012 1 commit
    • Robert Sprowson's avatar
      Add support for POR detection. · ffb0062a
      Robert Sprowson authored
      Harder than it should have been because someone wired the reset button up to the cold reset pin.
      Now gets the OSStartFlags right so that delete-power-on et al are respected by the kernel.
      
      Version 0.57. Tagged as 'OMAP3-0_57'
      ffb0062a
  34. 07 Jan, 2012 1 commit
    • Robert Sprowson's avatar
      Prep for SDFS and support for hardware CMOS adapter board. · 4d07f91e
      Robert Sprowson authored
      To avoid conflicting use of the SDIO controller by higher level filing system (and the need for a HAL to somehow ask for a disc to be reinserted) this HAL onwards supports hardware CMOS attached via the JTAG connector.
      On power up the presence and size of EEPROM is detected (sizes from 256 to 2048 bytes are understood corresponding to 24AA02 to 24AA16 family of parts).
      If no EEPROM is found the HAL falls back to permitting a CMOS file to be loaded off the SD card, but crucially this is done by uboot before FileCore starts.
      If no EEPROM is found, or the CMOS file looks suspicious, some fake CMOS is made and the kernel defaults used.
      The "ProbeEESize" switch enables size probing, otherwise 256 bytes is assumed.
      The "TryLoadedCMOS" switch enables use of a CMOS file from the SD card, if that's off and nothing is found the HAL declares that there is no CMOS at all!
      The respective boot script needs the line
        fatload mmc 0:1 0x4020F000 cmos
      adding to it...
      4d07f91e
  35. 12 Dec, 2011 1 commit
    • Jeffrey Lee's avatar
      Fix pop when disabling headset output. Tweak anti-pop ramp time. · c2960d26
      Jeffrey Lee authored
      Detail:
        s/Audio - Fixed the pop when disabling the headset output by making sure we wait for the correct amount of time after enabling/disabling the anti-pop ramp.
        Tweaked the anti-pop ramp time so toggling the output on & off (e.g. when changing sample rate) will only take 0.3s instead of 1.3s!
      Admin:
        Tested on rev A2 BB-xM
      
      
      Version 0.55. Tagged as 'OMAP3-0_55'
      c2960d26
  36. 11 Dec, 2011 1 commit
    • Jeffrey Lee's avatar
      NVMem fixes · 835fa326
      Jeffrey Lee authored
      Detail:
        c/NVMem - Fixed NVMem_C_write() to skip creating a CMOS file if the directory is full
        c/fat - Fixed FindDirectoryEntry() to ensure short_name[] is always terminated properly
        s/NVMemory - Only update the CMOS file if bytes have changed
        s/Boot - Fixed beagleboard revision detection GPIOs not being configured correctly
      Admin:
        Tested on rev A2 BB-xM
      
      
      Version 0.54. Tagged as 'OMAP3-0_54'
      835fa326
  37. 06 Dec, 2011 1 commit
    • Jeffrey Lee's avatar
      NVMem tweaks and fixes · aaca5cda
      Jeffrey Lee authored
      Detail:
        c/fat - Fixed ReadRootDirectoryBlock and WriteRootDirectoryBlock when dealing with FAT32 cards
        c/NVMem - Ensure FATbc.blocknum is initialised to an invalid value inside NVMem_C_write
        c/NVMem, c/far, h/NVMem - Change GetUInt() and GetUShort() to take data_area pointers instead of passing by reference, to reduce stack thrashing
      Admin:
        Tested on rev A2 BB-xM
        Fixes supplied by Willi Theiss
      
      
      Version 0.53. Tagged as 'OMAP3-0_53'
      aaca5cda
  38. 04 Dec, 2011 1 commit
    • Jeffrey Lee's avatar
      Add preliminary OMAP3 EVM support. Fix HAL_UARTModemControl · ca499ce6
      Jeffrey Lee authored
      Detail:
        hdr/board, s/Boot, s/Top, s/board - Added preliminary support for OMAP3 EVM boards. Only generation 2 boards are supported at the moment.
        s/UART - Fixed HAL_UARTModemControl to pay attention to the 'mask' parameter
      Admin:
        Tested on rev A2 BB-xM. EVM support might not be fully working.
      
      
      Version 0.52. Tagged as 'OMAP3-0_52'
      ca499ce6
  39. 29 Nov, 2011 1 commit
    • Jeffrey Lee's avatar
      Fix OMAP3 HAL UART code · 51c1d13d
      Jeffrey Lee authored
      Detail:
        hdr/UART - Added a couple more register addresses, removed incorrect FIFO64 flag
        hdr/omap3530 - Corrected UART 2 address
        s/Boot - Ensure we perform phys2log address conversion for all UART addresses, not just the first 3. Also avoid resetting the debug UART.
        s/UART - Fix HAL UART calls to obey the programming rules laid out in the TRM
        s/board - Change the order in which the UARTs are exposed to RISC OS so that they match the hardware order. HAL UART 0 is now OMAP UART1, etc.
      Admin:
        Tested on rev A2 BB-xM
      
      
      Version 0.51. Tagged as 'OMAP3-0_51'
      51c1d13d
  40. 06 Nov, 2011 1 commit
    • Jeffrey Lee's avatar
      Add Dave Higton's CMOS save code · 8ea637b5
      Jeffrey Lee authored
      Detail:
        Makefile - fixed warning about StdRules being included twice (via CModule)
        c/NVMem, c/fat, h/NVMem, h/common, h/fat, hdr/StaticWS, s/NVMemory, s/RTC - Added Dave Higton's code to create/update the 'CMOS' file on NVRAM writes
      Admin:
        Tested on rev A2 BB-xM
      
      
      Version 0.50. Tagged as 'OMAP3-0_50'
      8ea637b5