1. 17 Dec, 2013 1 commit
    • Jeffrey Lee's avatar
      Re-enable Pandora TV-out support · 51936e95
      Jeffrey Lee authored
      Detail:
        s/board - Re-enable Pandora TV-out support now that we have the ability to turn TV-out power on/off
        hdr/board, s/Video - Add the new TV-out power control function to the video board config struct. All OMAP boards should be able to use the same implementation, which enables/disables the VDAC power supply in the TPS
      Admin:
        Tested on BB-xM and Pandora
        TV detection (and TV-out in general) now works properly on the Pandora
      
      
      Version 0.94. Tagged as 'OMAP3-0_94'
      51936e95
  2. 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
  3. 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
  4. 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
  5. 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
  6. 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
  7. 31 Jul, 2011 1 commit
    • Jeffrey Lee's avatar
      Add new support for the new GPIO HAL device · ade5de94
      Jeffrey Lee authored
      Detail:
        hdr/board - Add information about determining the IGEP board revision
        hdr/StaticWS - Add workspace for storing the GPIO HAL device
        s/board - Update BeagleBoard entry to have a custom HAL device init func
        s/Boot - Fix HAL_Init to not configure GPIOs 171-173 if not running on a beagleboard. Update HAL_InitDevices to preserve the right registers and initialise the GPIO devices where appropriate.
        s/GPIO - Added GPIO_InitDevice function to do the actual initialisation
      Admin:
        Tested on rev A2 BB-xM
      
      
      Version 0.48. Tagged as 'OMAP3-0_48'
      ade5de94
  8. 23 May, 2011 1 commit
  9. 31 Oct, 2010 1 commit
    • Jeffrey Lee's avatar
      Miscellaneous OMAP3 HAL updates · 547dbb58
      Jeffrey Lee authored
      Detail:
        s/Boot - HAL_Reset now sets the PRM_RSTCTRL.RST_DPLL3 bit instead of the PRM_RSTCTRL_GS bit. This matches what Linux does, and seems to fix resets on the TouchBook.
        s/board - Changed TouchBook audio to use the hands-free output instead of the predriver. This fixes speaker output (although it's currently listed as "line out" by the sound setup configure plugin)
        hdr/board, s/board, s/Video - Update the LCDConfig struct to contain an entry for controlling LCD power/brightness. Hook up basic power controls for current machine types.
      Admin:
        Tested on rev C2 beagleboard & C1 touchbook.
        Video changes mean that OMAPVideo 0.08 or newer is required.
      
      
      Version 0.34. Tagged as 'OMAP3-0_34'
      547dbb58
  10. 26 Oct, 2010 1 commit
    • Jeffrey Lee's avatar
      Miscellaneous OMAP3 HAL improvements · 8d12259d
      Jeffrey Lee authored
      Detail:
        hdr/board, s/board, s/Boot - Linux machine IDs are now defined via constants in hdr/board instead of magic numbers on a per-use basis
        s/Boot - Added video fix for BB-xM rev A3.
        s/Boot - Added code to enable tablet battery charging on TouchBook.
        s/Boot - Added support for power-off on TouchBook
        s/GPIO - Fixed bug in GPIOx_SetAsOutput that would prevent LEDs from being disabled properly
        s/I2C - Updated code to ignore BF interrupts. Added debugging code to help track down unexpected errors, and to check that IIC_DoOp_Poll is being called with interrupts disabled.
        s/SDMA - Call HAL_IRQClear when resetting the DMA controller device. This fixes the "previous IRQ not cleared" loop that would occur during RISC OS's pre-reset sequence
      Admin:
        Tested on rev C2 beagleboard, C1 touchbook, A3 BBxM.
        Resets should now work reliably on all machines, except TouchBook, which still seems to hang. But on the bright side, the TouchBook is currently the only machine to support soft-off.
      
      
      Version 0.33. Tagged as 'OMAP3-0_33'
      8d12259d
  11. 14 Sep, 2010 1 commit
    • Jeffrey Lee's avatar
      BeagleBoard-xM, TouchBook fixes · bdb010ac
      Jeffrey Lee authored
      Detail:
        s/board, hdr/board, hdr/omap3530, hdr/UART - Add support for 4th UART available on AM/DM37x (i.e. BeagleBoard-xM)
        hdr/omap3530 - Add details of CONTROL_IDCODE register & known hawkeye/revision numbers for OMAP type/revision detection
        s/Boot, s/GPIO, hdr/GPIO, s/I2C, hdr/StaticWS - Allow TPS LED drivers to be used as (output-only) GPIOs. Add new polled I/O I2C function, and appropriate logic to make GPIO code use it instead of RISCOS_IICOpV if RISC OS hasn't finished initialising yet. Add code to initialise some extra BB/TB GPIOs on boot.
        s/Timers, hdr/Timers - Stop RISC OS from using GPTIMER9, because it's used to drive the screen backlight on the TouchBook
        s/Video - Use appropriate porch/sync limits on non-OMAP35x
        s/PRCM - Don't mess with the system clock divider when calculating system clock speed (AM/DM37x fix)
      Admin:
        Tested on rev C2 beagleboard, rev A2 BB-xM (indirectly), rev C1 TouchBook
      
      
      Version 0.32. Tagged as 'OMAP3-0_32'
      bdb010ac
  12. 20 Mar, 2010 1 commit
    • Jeffrey Lee's avatar
      Add basic GPMC setup code and NIC HAL devices to OMAP HAL · e73f5f1a
      Jeffrey Lee authored
      Detail:
        s/GPMC, hdr/GPMC, hdr/StaticWS - basic code to reset the GPMC and configure chip selects
        s/NIC, hdr/NIC, hdr/StaticWS - code to expose any onboard NICs (SMSC9221, DM9000) to RISC OS as simple HAL devices.
        Makefile - added GPMC & NIC source files
        s/board, hdr/board - Expanded board config struct to include a pointer to extra code to call at the end of HAL_InitDevices, to allow board-specific devices to be initialised
        s/boot - Extra HAL_InitDevices code to set up the NICs on the IGEP/DevKit
        s/GPIO, hdr/GPIO - Improved functionality to allow GPIO IRQs to be used
        s/SDMA, s/Video - Tweaked the HAL device descriptors to indicate that the devices are on the L3 interconnect
      Admin:
        Tested on rev C2 beagleboard. IGEP/DevKit entry points booted OK, but no attempts were made to look for or interact with the new HAL devices!
      
      
      Version 0.24. Tagged as 'OMAP3-0_24'
      e73f5f1a
  13. 28 Feb, 2010 1 commit
    • Jeffrey Lee's avatar
      Update OMAP3 HAL to support new OMAPVideo module, plus other minor changes · 9dbd7a55
      Jeffrey Lee authored
      Detail:
        hdr/StaticWS, hdr/Video, hdr/board, hdr/omap3530, s/Boot, s/Video, s/board - Add new HALDoesVideo switch to control whether the HAL provides the video driver or whether a HAL device is used to expose the video hardware to the OMAPVideo module. Switch defaults to the 'off' state, i.e. OMAPVideo provides the video driver. Also updated the board config struct to contain more detailed information about the video capabilities of each board.
        s/Audio - fix the FIFO underflow/overflow IRQ handler to disable the IRQ after the underflow/overflow has been detection. This prevents the OS from (potentially) getting stuck in a loop servicing the interrupt and never reaching the state where it can shut down & re-initialise the audio to fix the error properly.
        s/Debug - add DebugCallstack function that disables IRQs/FIQs and dumps the stack contents over the serial port
      Admin:
        Tested on rev C2 beagleboard.
      
      
      Version 0.23. Tagged as 'OMAP3-0_23'
      9dbd7a55
  14. 30 Jan, 2010 1 commit
    • Jeffrey Lee's avatar
      Various OMAP3 HAL power management improvements, plus add support for board... · 739f6e9a
      Jeffrey Lee authored
      Various OMAP3 HAL power management improvements, plus add support for board config autodetection via Linux machine ID
      
      Detail:
        s/board, hdr/board - Add Linux machine ID & available mixer channels to board config table
        s/Top - Add new entry point at offset &64, for booting as a fake Linux kernel. Searches the board config table until it finds a config matching the machine ID passed in R1. Also minor ROM copy optimisation, unsigned pointer comparison fixes
        s/Audio, hdr/Audio - Use board config to lock-out mixer channels that aren't connected to any hardware, to avoid excessive power drain or other problems if the channels get turned on. Also perform many other setting tweaks to tidy up default settings for unused mixer paths/channels.
        s/Video - Fix Video_Init logic when deciding whether to reset DSS, enable DSI PLL drift guard
        s/I2C - Increase I2C timeout values, since the previous values were perhaps a bit low
        s/Audio, s/I2C, s/Interrupts, s/RAM, s/SDMA, s/Timers, s/UART, hdr/UART, s/USB, s/Video - Enable autoidle/smart idle where possible to help save power.
      Admin:
        Tested on rev C2 beagleboard
      
      
      Version 0.21. Tagged as 'OMAP3-0_21'
      739f6e9a
  15. 24 Jan, 2010 1 commit
    • Jeffrey Lee's avatar
      Update OMAP HAL to support different board configs, plus use new YearLOIsGood... · 17e509d7
      Jeffrey Lee authored
      Update OMAP HAL to support different board configs, plus use new YearLOIsGood flag to ensure correct RTC handling, plus other misc tidying
      
      Detail:
        The OMAP HAL now has multiple entry points, one per board config. See Top.s/board.s for more info.
        audio.s - Moved APLL_CTL value to board config
        board.s - New file to list all the settings for the different board configs
        boot.s - Change HAL_Init to deal with the new board config stuff
        debug.s - Debug UART now specified in board config
        GPIO.s - A few utility functions for handling OMAP/TPS GPIO pins
        I2C.s - Update to use new board config struct
        RAM.s - Disable the beagleboard-specific RAM init code. Instead we'll just rely on u-boot to initialise all our RAM for us.
        RTC.s - Get rid of the magic numbers, and use the YearLOIsGood flag to indicate to RISC OS that YearLO is 2-digit BCD
        Top.s - Got rid of old debug code and rewrote initial flow to handle detecting & storing the board config
        UART.s - Update to use board config struct, support multiple UARTs
        USB.s - Get EHCI PHY power GPIO from board config
        Video.s - Get DVI framer power GPIO and max pixel rate from board config. Add 'PassiveVideo' option, to build a driver that doesn't alter the video output settings - should hopefully result in a usable display on Touch Book, etc.
        board.hdr - Definition of board config table struct
        GPIO.hdr - Add lots of macros for handling OMAP GPIO pins, new constants for OMAP/TPS GPIO
        I2C.hdr - Added I2C transfer block struct, HAL I2C API transfer states (both moved here from other source files)
        omap3530.hdr - Move/remove some unwanted constants, disable DebugChar for now
        StaticWS.hdr - Move I2C transfer block struct to I2C.hdr, add board config struct to HAL workspace, get rid of unused 64K AllocArea
        Timers.hdr - Tidy up constants a bit
        UART.hdr - Add UARTCLK (moved from StaticWS.hdr), UART IRQ #'s
        Makefile - add GPIO.s
      Admin:
        Tested on rev C2 beagleboard. Board configs for other board types may be inaccurate in a couple of places.
      
      
      Version 0.19. Tagged as 'OMAP3-0_19'
      17e509d7