- 11 Jul, 2022 3 commits
-
-
Ben Avison authored
* Enable background operation support (in practice, interrupts were correctly specified in this case, but SDIODriver requires higher HAL device versions before trusting us). * Set up the GPIO lines controlling the WiFi/Bluetooth module. Previously, these were floating, leading to intermittent responses on the SD bus depending on recent activity. Pad configuration is copied from the Linux device tree, and the pattern of high/low voltages were determined empirically. Version 1.06. Tagged as 'HAL_iMx6-1_06'
-
Ben Avison authored
* Add missing `.gitignore`
-
Ben Avison authored
* Makefile now uses shared HAL makefile fragment * Filenames converted to consistent OS-agnostic forms * Remove PIC attributes from AREA declarations: since the code isn't position-independent, this is factually incorrect, and will produce false linker warnings when we link with libraries that are also non-PIC * Replaced a couple of UAL instructions with their pre-UAL counterparts to reduce number of warnings * Remove unused header file * Remove --cpu overrride from ASFLAGS (since objasm 4.12, --cpu Cortex-A9 no longer warns about SMI) Note, now requires objasm 4.12 to build (due to hdr suffixes in filespecs).
-
- 16 May, 2020 1 commit
-
-
Jeffrey Lee authored
With FIQs enabled, the doorbell interrupts were only being delivered as FIQs, not IRQs. Fix so that they'll be delivered as both (the current SMP module expects them to be IRQs, but FIQs could be a sensible future improvement) Fixes hang on Service_PagesUnsafe when SMP module is active (+ unreliable SMP thread scheduling), due to the doorbell interrupts never triggering Version 1.05. Tagged as 'HAL_iMx6-1_05'
-
- 01 Feb, 2019 1 commit
-
-
John Ballance authored
Detail: Admin: tested on CuBox Version 1.04. Tagged as 'iMx6-1_04'
-
- 06 Dec, 2018 2 commits
-
-
Jeffrey Lee authored
Detail: hdr/CPUSpeed, s/CPUSpeed - Increase CPU clock device to API 0.2, and implement GetDieTemperature function hdr/iMx6qMemMap, hdr/iMx6qReg - Additional register definitions Admin: Tested on wandboard Version 1.03. Tagged as 'iMx6-1_03'
-
Jeffrey Lee authored
Detail: The iMX6 features a GICv1 with security extensions implemented. This means that (because we're running in secure state) we can get it to generate FIQs from interrupt sources which are assigned to "group 0", and IRQs from interrupt sources which are assigned to "group 1" The way that RISC OS handles FIQs isn't particularly well-suited to the way the GIC handles FIQs (we don't call HAL_FIQSource on entry to the FIQ vector), but by invoking HAL_FIQSource from the start of the FIQ enable/disable/clear entry points (and using cached values where appropriate) we arrive at behaviour that the GIC seems to be happy with hdr/StaticWS - Reserve some space for storing FIQ state, and a spinlock for controlling access to some shared hardware registers hdr/iMx6q - Add macros for claiming/releasing the HAL spinlock hdr/iMx6qIRQs - Add extra definitions required for using FIQs s/Boot - Adjust SMP startup to assign private IRQs to group 1 by default s/Interrupts - Adjust IRQ startup to assign IRQs to group 1 by default, and route group 0 to the FIQ pin. Implement the HAL FIQ calls, switching them between group 1 and group 0 as appropriate. Admin: Tested on wandboard Version 1.02. Tagged as 'iMx6-1_02'
-
- 03 Aug, 2018 1 commit
-
-
John Ballance authored
Detail: Recent changes, which used active pin control when releasing the phy reset pin, failed to work in the RevD iMx6 boards. Reverted to older method for these. Admin: tested in various iMx6 variants Version 1.01. Tagged as 'iMx6-1_01'
-
- 29 Jul, 2018 1 commit
-
-
Jeffrey Lee authored
Detail: s/SDMA - Fix the last descriptor of circular DMA transfers to have both WRAP+CONT set. By only setting WRAP, the transfer stops, which for audio playback meant that the CPU had a very tight time window to spot the unexpected stoppage and restart it before the FIFO in the I2S transmitter runs dry. s/Audio - Fix FIFO underflow IRQ handler to disable the correct IRQ hdr/StaticWS - Update comment Admin: Tested on iMx6 Fixes frequent pauses in audio when playing CDs via DiskSample, where the bug was causing frequent FIFO underflows (and then a very noticeable pause while the OS stops and restarts audio output) Theoretically this could have happened with any workload, but CD+DiskSample seemed to be the perfect storm to make it very obvious. Version 1.00. Tagged as 'iMx6-1_00'
-
- 21 Jul, 2018 1 commit
-
-
John Ballance authored
Detail: Resolved omission in earlier commit Admin: Tested on iMx6 Version 0.99. Tagged as 'iMx6-0_99'
-
- 20 Jul, 2018 1 commit
-
-
John Ballance authored
Detail: Some devices do not stabilise one of the phy configuration pins whilst the phy is being reset. As a result it might come up with one of 2 different addresses. The HAL now detects this and propagates the correct phy address via the Ethernet HAL_Device Admin: tested on iMx6 Version 0.98. Tagged as 'iMx6-0_98'
-
- 07 Jul, 2018 1 commit
-
-
Jeffrey Lee authored
Detail: Makefile, s/DBell - Add doorbell HAL device implementation, using GIC SGIs h/irq_numbers, hdr/iMx6IRQs - Increase IMX_INTERRUPT_COUNT. Core 0 private interrupts are 0-31, core 1 160-191, core 2 192-223, core 3 224-255. Shared interrupts are 32-159. hdr/StaticWS - Reserve space for doorbell device & storing last SGI for each core hdr/iMx6q - Tidy things up a bit by removing the DebugInterrupts code s/Boot - Implement SMP HAL entry points s/Interrupts - Tidy up interrupt handling and implement new HAL IRQ calls s/Top - Enable cache/TLB maintenance op broadcast, and add some silicion errata workarounds Admin: Untested Requires Kernel-6_09 Version 0.97. Tagged as 'iMx6-0_97'
-
- 29 Jun, 2018 1 commit
-
-
John Ballance authored
Detail: Admin: Tested on Mx6 Version 0.96. Tagged as 'iMx6-0_96'
-
- 28 Jun, 2018 1 commit
-
-
John Ballance authored
Detail: There are 2 Phy types, AR8031 and AR8035. Each has slightly different configuration strappings as reset is released. Manage this appropriately. Admin: Tested in iMx6 Version 0.95. Tagged as 'iMx6-0_95'
-
- 21 Jun, 2018 1 commit
-
-
John Ballance authored
Detail: Admin: tested on iMx6 Version 0.94. Tagged as 'iMx6-0_94'
-
- 14 May, 2018 2 commits
-
-
John Ballance authored
Detail: (corrected conditional include/exclude syntax) Admin: (highlight level of testing that has taken place) (bugfix number if appropriate) Version 0.93. Tagged as 'iMx6-0_93'
-
John Ballance authored
Detail: Admin: tested on imx6 Version 0.92. Tagged as 'iMx6-0_92'
-
- 13 May, 2018 1 commit
-
-
John Ballance authored
Detail: Admin: Version 0.91. Tagged as 'iMx6-0_91'
-
- 03 Feb, 2018 1 commit
-
-
Jeffrey Lee authored
Detail: Makefile - Now that the full IMXVideo module is in public CVS, and we're moving towards a stable release, there's no particular need for having the HAL version of the video driver enabled. Disable it to reduce the potential for bugs or other weird behaviour. Admin: Tested on wandboard Version 0.90. Tagged as 'iMx6-0_90'
-
- 31 Dec, 2017 1 commit
-
-
John Ballance authored
Detail: Occasional misstarts of EtherTH in RevD boards resolved to GPIO issues. Barrier instructions added. Admin: Version 0.89. Tagged as 'iMx6-0_89'
-
- 25 Oct, 2017 1 commit
-
-
John Ballance authored
Detail: HAL_USB no longer in use... Admin: tested on iMx6 Version 0.88. Tagged as 'iMx6-0_88'
-
- 09 Sep, 2017 1 commit
-
-
ROOL authored
Detail: Add keyboard scan code with list of modules that the kernel needs to do the same (the EHCI code was bypassed, and the HAL EHCI not linked against). Reorder the HALEntries to match Kernel-5_89. Remove unused stub functions. Admin: Submission for USB bounty. Version 0.87. Tagged as 'iMx6-0_87'
-
- 05 Sep, 2017 1 commit
-
-
John Ballance authored
Detail: Admin: tested on iMx6 Version 0.86. Tagged as 'iMx6-0_86'
-
- 04 Sep, 2017 1 commit
-
-
John Ballance authored
Detail: I2C error recovery address look up table assumed the channel number started at 0 not 1. I2C3 error recovery fell off the end of the address lookup table. Admin: Tested in iMx6 Version 0.85. Tagged as 'iMx6-0_85'
-
- 30 Aug, 2017 1 commit
-
-
John Ballance authored
Extend low level code to cover the changes required for Rev D boards. Detail: Admin: tested in iMx6 Rev B and Rev D Version 0.84. Tagged as 'iMx6-0_84'
-
- 17 Aug, 2017 1 commit
-
-
John Ballance authored
Detail: Read Phy IDL register by bit banging the MD interface to the Phy Rev D boards have an AR8035 Phy, Earlier revisions AR8031 Admin: tested on iMx6 Rev B and D Version 0.83. Tagged as 'iMx6-0_83'
-
- 04 Aug, 2017 1 commit
-
-
John Ballance authored
Detail: The code for unlocking stuck I2C transaction failed to get the base address of the I2C GPIO port. This had caused an AODT if the I2C transaction failed. Issue corrected Admin: Version 0.82. Tagged as 'iMx6-0_82'
-
- 30 Jul, 2017 1 commit
-
-
ROOL authored
Admin: As a side effect of changes in USBDriver-1_20, rename the library object. Version 0.81. Tagged as 'iMx6-0_81'
-
- 26 Jul, 2017 1 commit
-
-
John Ballance authored
Detail: RevD boards have put the HDMI EDID I2C lines on I2C2 instead of I2C1. This conflicts with the CMOS RAM. A routine has been created to detect the RevD board (by the presence of a power swithch on the Ethernet Phy), so the HAL can set up appropriately. Admin: Tested on Rev B and Rev D iMx6 boards Version 0.80. Tagged as 'iMx6-0_80'
-
- 18 Jul, 2017 1 commit
-
-
John Ballance authored
Detail: HAL_EtherDevice now gives access to a routine to control the Ethernet Phy power and reset pins. This updated device is present if the hal workspace pointer is non zero (bug fix) and GPIO_WriteBit routine now writes correctly in all cases. Admin: tested on iMx6 revC2 and revD1 Version 0.79. Tagged as 'iMx6-0_79'
-
- 24 Apr, 2017 1 commit
-
-
John Ballance authored
Detail: Further serial port testing showed inconsistency in handshake configuration. This in now corrected. Tested using a DeviceFS test setup and DeviceFS calls. Admin: Version 0.78. Tagged as 'iMx6-0_78'
-
- 07 Apr, 2017 1 commit
-
-
John Ballance authored
Detail: Changes in DualSerial last October exposed an error in the HAL_UARTReceiveByte routine. This provides a solution. Admin: Tested on iMx6 Version 0.77. Tagged as 'iMx6-0_77'
-
- 11 Mar, 2017 1 commit
-
-
John Ballance authored
Version 0.76. Tagged as 'iMx6-0_76'
-
- 20 Jan, 2017 1 commit
-
-
John Ballance authored
-