- 31 Jul, 2017 1 commit
-
-
Jeffrey Lee authored
Detail: Merge in changes since BCM2835-0_70 to keep SMP branch up to date Admin: Untested Version 0.71, 1.70.2.2. Tagged as 'BCM2835-0_71-1_70_2_2'
-
- 29 Jul, 2017 1 commit
-
-
Jeffrey Lee authored
Detail: hdr/BCM2835 - Delete unused timer macros. Add basic spinlock claim/release macros. Add CPUDetect macro to encapsulate ARM11 vs. A7/A53 detection. Add definitions for the "QA7" interrupts. Makefile, s/DBell - Add doorbell device driver hdr/StaticWS - Reserve workspace for doorbell device, QA7 interrupt controller ptr, spinlock s/Top, hdr/CastleMacros - Generate two HAL entry point tables, one for ARM11, one for A7/A53. Use CPUDetect macro. Implement new SMP-related HAL entry points. s/Interrupts - Implement support for the QA7 interrupt controller and the new IRQ-related HAL entry points s/Messaging - Use CPUDetect macro Admin: Tested on Raspberry Pi 1, 2, 3 Version 0.70, 1.70.2.1. Tagged as 'BCM2835-0_70-1_70_2_1'
-
- 21 Feb, 2017 2 commits
-
-
Robert Sprowson authored
The SDIO HAL device reports when it is sure fixed disc media is attached (ie. eMMC soldered on the same PCB) which causes SDFS to report this to FileCore as a fixed disc, skipping the removable safety checks. However, CM3 and CM3L both return the same board id so we can't work out which is which. Additionally, someone could attach an external eMMC in theory on a custom expansion board (instead of an SD card socket like the CMIO has). To resolve this, we assign IO expander line 6 of U8 to be a safety catch. If that line is held low, it signifies this is definitely a CM3 - in effect this is a "definitely has eMMC" or "maybe has eMMC" switch. Tested on CM1, CM3, CM3L, and a suitably modified CM3 with the help of Chris Hall. Version 0.69. Tagged as 'BCM2835-0_69'
-
Robert Sprowson authored
Remove the baffling double indirection of RamAd (and unused exports SerNo and MacAdd), and treat these the same as the other pre-HAL_Init query results. This means the scope of the tagbuffer is limited to Messaging.s, rather than having to be kept preserved globally. Use memcpy() to copy tag list to tagbuffer for clarity. Tested on a Pi 3. Version 0.68. Tagged as 'BCM2835-0_68'
-
- 20 Jan, 2017 1 commit
-
-
Jeffrey Lee authored
Detail: hdr/BCM2835 - Add switch to allow GPIOs 22-27 to be reconfigured for ARM JTAG access s/Top - Configure GPIOs for JTAG if switch enabled s/GPIO - Disable GPIO HAL device if JTAG enabled (try and avoid any software messing with the pins) Admin: Tested on Raspberry Pi 1 B, B+ Version 0.66. Tagged as 'BCM2835-0_66'
-
- 12 Dec, 2016 1 commit
-
-
Jeffrey Lee authored
Detail: s/Top - Update internal HAL debug functions to preserve all the required registers; the new HAL_Debug / UART function implementations corrupt more of the caller-save registers than the old ones did Admin: Tested on Raspberry Pi Version 0.65. Tagged as 'BCM2835-0_65'
-
- 10 Dec, 2016 1 commit
-
-
ROOL authored
Detail: Look at the reset status register and use the HADPOR flag to influence the OSStartFlag_POR value. Fixes problem of OS_Byte 253 always reporting a hard reset, never a power on reset. Admin: Tested on a Pi 2. Submission for USB bounty. Version 0.64. Tagged as 'BCM2835-0_64'
-
- 15 Oct, 2016 2 commits
-
-
Robert Sprowson authored
The Pi is unusual in self modifying the ROM image when a CMOS setting was changed (due to there being none on the PCB), with the potential of ending up with a corrupt OS image on disc. Remove this code and emulate the CMOS using normal RAM, and using the Pi firmware to load the CMOS file in for us (like fatload does on OMAP based designs) by using its ability to load a second arbitrary file at an address, intended in the Linux world to load a disc image. To use this you will need to add ramfsfile=CMOS ramfsaddr=0x508000 to config.txt which loads it 5MB (ie. ImageSize) above the default load address (&8000), though as noted in the changes to BCM2835-0_60 we don't really need to load at offset &8000 but generally do since that's the Pi firmware's default. hdr/StaticWS: New workspace to hold our CMOS copy. CMOS.s: Remove the 2k magic block, add a simple bytewise copy loop implementation. SDIO.s: Extend ADR range. Top.s: Copy what the Pi firmware loads somewhere safe until the MMU is on, then copy it back (converting from logical to physical order along the way). Change other values recovered from pre-MMU times using advanced post indexed addressing technology (TM) rather than switching around sb a lot. Tested on a Pi 3, with and without an initial CMOS file present. Version 0.61. Tagged as 'BCM2835-0_61'
-
Robert Sprowson authored
IIC.s/Stubs.s: Don't import workspace when it's not used Top.s: Move the dead loops to just after the vectors. In practice these are ineffectual because the firmware (now) loads the image at &8000 to please Linux, so we're mostly wasting our time producing ROM images with vectors at the start. Pad image to &8000 so it can be loaded at 0 (using Kernel_Old=1 in config.txt) or &8000 (default). Line up/capitalise a few stray mnemonics, use APCS register naming. Call HAL_DebugTXStrInline for "HAL Init completed" rather than an inline loop, since earlier in the same function we called HAL_DebugTXStrInline happily. Version 0.60. Tagged as 'BCM2835-0_60'
-
- 09 Oct, 2016 1 commit
-
-
Jeffrey Lee authored
Detail: hdr/BCM2835, hdr/StaticWS, s/Debug, s/Top, s/Video - Fix up the two serial debug switches to work correctly. Disable debug by default. s/UART, hdr/UART - Implement HAL UART API, for the PL011 UART. Admin: Tested on Raspberry Pi 1 B Requires DualSerial 0.25 to work correctly Version 0.59. Tagged as 'BCM2835-0_59'
-
- 29 Mar, 2016 1 commit
-
-
Jeffrey Lee authored
Detail: s/Top - Fix cores sat in the holding pattern waiting on a write to the wrong address. Also, set up lr so we can return to the holding pattern if desired. Admin: Tested on Pi 3 B Now possible to launch simple code sequences on the other cores Version 0.56. Tagged as 'BCM2835-0_56'
-
- 28 Mar, 2016 1 commit
-
-
Jeffrey Lee authored
Detail: s/Top - On multi-core chips, the ARM boot stub has the other cores sat waiting in a loop near &0. Clearing RAM will inadvertantly break them out of this and most likely cause random crashes later on, so inbetween relocating the ROM and clearing RAM make sure we put the cores into a sleep loop in the HAL. Further mailbox writes can then be used to break them out of this loop, using a similar scheme to that used to break them out of the boot stub loop. hdr/BCM2835 - Add some register definitions from the BCM2836 docs Admin: Tested on Pi 2B, 3B Not currently dealing with kernel_old=1 case where all cores enter the ROM on startup Version 0.55. Tagged as 'BCM2835-0_55'
-
- 26 Mar, 2016 1 commit
-
-
Jeffrey Lee authored
Detail: hdr/BCM2835 - Remove mailbox definitions - use the ones exported by BCMSupport to avoid needless duplication hdr/StaticWS, s/Messaging, s/Top - Use the mailbox property interface to request & map in the virtual GPIO buffer (if present) s/SDIO - On the Pi 3B, the GPIO that was used for the SD activity GPIO is now used for a different purpose. To control the activity LED we need to go via an I2C attached GPIO extender, which itself is exposed to the ARM via the new "virtual GPIO" buffer s/VCHIQ - Update to use BCMSupport mailbox definitions Admin: Tested on Pi 1B, 3B Version 0.54. Tagged as 'BCM2835-0_54'
-
- 25 Mar, 2016 1 commit
-
-
Jeffrey Lee authored
Detail: s/Messaging - Ensure the PL011 UART module clock is set to 3MHz on startup, in order to allow the debug terminal to work hdr/StaticWS, s/Top - Add a basic HAL device to expose the GPU mailboxes Admin: Tested on Raspberry Pi 1B/2B/3B Fixes garbled debug terminal input/output on Pi 3 Version 0.52. Tagged as 'BCM2835-0_52'
-
- 08 Jan, 2016 1 commit
-
-
Jeffrey Lee authored
Detail: s/Stubs, s/Top - Remove references to deleted HAL ATA calls s/GPIO, s/Top - Add implementation of HAL_PlatformName. Located in s/GPIO to allow easy re-use of the board revision table. Admin: Tested on Pi 2 Model B Version 0.51. Tagged as 'BCM2835-0_51'
-
- 15 Nov, 2015 1 commit
-
-
Jeffrey Lee authored
Detail: Makefile, s/Touch - Basic HAL device for the official touchscreen, which just exposes the address of the buffer which the GPU periodically fills with a register dump of the touchscreen controller. hdr/BCM2835 - Remove old comment. Add new tag for getting the touchscreen buffer address. hdr/StaticWS - Remove old workspace entries. Add new entries for touchscreen. s/Messaging - Remove the messagebox tags which set a screen mode on startup (BCMVideo will handle that for us), and just blank the screen instead (to stop the GPU displaying a coloured square). Add tag to get the touchscreen buffer address. s/Top - Register touchscreen HAL device during HAL_InitDevices. Remove more old code. Admin: Tested on Raspberry Pi 1 B Version 0.50. Tagged as 'BCM2835-0_50'
-
- 08 Nov, 2015 1 commit
-
-
Ben Avison authored
Detail: * Recent versions of the firmware call the ROM's entry point in HYP mode (except for ARM11 boards which don't have it). Detect this eventuality and drop into SVC mode safely if so. * Whilst testing this fix, I discovered that occasionally, secondary CPUs seem to be being woken up, and start executing the ROM entry point also. This shouldn't be happening, but for safety's sake, I'm detecting this eventuality and putting any secondary CPUs into a sleep loop. Admin: Tested on Pi 1 and 2. Requires HdrSrc 2.56. Version 0.49. Tagged as 'BCM2835-0_49'
-
- 05 Aug, 2015 1 commit
-
-
Jeffrey Lee authored
Detail: hdr/StaticWS, s/Top - Removed code to map in all of VC memory. Currently nothing needs it, and the code was broken anyway (debug output would corrupt a1 value given to OS_MapInIO) Admin: Tested on Raspberry Pi Version 0.46. Tagged as 'BCM2835-0_46'
-
- 26 Jul, 2015 1 commit
-
-
Jeffrey Lee authored
Detail: s/SPI - Basic HAL devices for the 3 SPI controllers. These expose the register addresses & IRQ numbers, and (for SPI1 & SPI2) deal with enabling/disabling the hardware and the shared IRQ line. GPIO mapping currently isn't dealt with - we don't know which pin group to use (SPI0 can use two different sets on the compute) or how many chip select lines are desired. Makefile - Add SPI source hdr/BCM2835 - Add aux SPI registers hdr/StaticWS - Reserve workspace for the HAL devices s/Top - Register new devices in HAL_InitDevices Admin: Tested on Raspberry Pi B & 2 B Version 0.45. Tagged as 'BCM2835-0_45'
-
- 02 Feb, 2015 1 commit
-
-
Ben Avison authored
Detail: * Compute module support consists of eMMC support in the SDHCI driver. The eMMC chip on the Compute module only works reliably if under-clocked to 25 MHz. * Pi 1 vs Pi 2 differences are selected at runtime by checking the CPU ID, so a single ROM image will work with both boards. * Added ARMv7 cache maintenance routine for use on Pi 2. * The physical address of the peripherals has moved in Pi 2 to make space for the 1 GB of RAM. * The ARM physical address space is mapped differently onto the GPU address space in Pi 2 because the ARM now uses the L2 cache that comes with the Cortex-A7 instead of the GPU's L2 cache. * Still waiting for confirmation on the board revision ID that will be used for Pi 2, so may require further tweaks for production releases. Version 0.40. Tagged as 'BCM2835-0_40'
-
- 25 Oct, 2014 1 commit
-
-
Robert Sprowson authored
As the flag bit in HAL_USBControllerInfo isn't set, no need to provide them. Use symbols from Hdr:HALEntries when building the USB info. Built, but not tested. Version 0.38. Tagged as 'BCM2835-0_38'
-
- 13 Apr, 2014 1 commit
-
-
Robert Sprowson authored
Mark HAL_IICDevice as a null entry, since bit 4 of the flags says we don't support that mode of operation anyway. Version 0.32. Tagged as 'BCM2835-0_32'
-
- 19 Dec, 2013 1 commit
-
-
Jeffrey Lee authored
Detail: CJE's RTC module uses a DS1307-compatible RTC chip similar to the one used in the Iyonix. Previously the kernel handled talking to it, but now that low-level RTC handling has been moved out of the kernel we need an RTC HAL device in the BCM2835 HAL instead. s/RTC - A copy of s.RTC from the Tungsten HAL, relicensed as BSD with permission from Rob Sprowson Makefile, hdr/StaticWS, s/Top - Additional changes needed to hook the code into the HAL Admin: Tested on Raspberry Pi, but without an RTC module fitted However the similarity of the clock chip to the one in the Iyonix should mean there's little chance of this code failing to work correctly when an RTC is fitted Version 0.31. Tagged as 'BCM2835-0_31'
-
- 15 Dec, 2013 1 commit
-
-
Jeffrey Lee authored
Detail: s/Top, 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: Tested in BCM2835 ROM Requires Kernel-5_35-4_79_2_203 Version 0.30. Tagged as 'BCM2835-0_30'
-
- 22 Jan, 2013 1 commit
-
-
Jeffrey Lee authored
Detail: hdr/BCM2835 - Add definition for highest IRQ number s/Boot, s/Interrupts - Added HAL_IRQMax implementation, to ensure correct functionality with latest Kernel Admin: Tested on 256MB Pi model B Requires Kernel-5_35-4_79_2_182 Version 0.29. Tagged as 'BCM2835-0_29'
-
- 18 Sep, 2012 2 commits
-
-
Jeffrey Lee authored
Detail: s/Top, s/Video - Renamed HAL_Video entries to match naming convention used by latest kernel Admin: Tested on Raspberry Pi with high processor vectors Version 0.26. Tagged as 'BCM2835-0_26'
-
Jeffrey Lee authored
Detail: hdr/StaticWS, s/Top, s/Video - Added a simple VDU HAL device that exposes a DMA channel to BCMVideo for use with GraphicsV_Render hdr/BCM2835 - Don't allow DMA channel 12 to be used; latest firmware seems to have a bug which claims its free when in reality it isn't. s/Messaging, s/DMA - Adjust DMA init to allow the video device to claim a DMA channel before the DMA devices are initialised Admin: Tested on Raspberry Pi with high processor vectors Version 0.25. Tagged as 'BCM2835-0_25'
-
- 08 Sep, 2012 2 commits
-
-
Jeffrey Lee authored
Detail: s/Top - Added HAL_PhysInfo implementation. Tweaked HAL_Reset to reduce chances of failure. s/Stubs - Removed obsolete, unused UART stubs. Use KbdFlag_Done instead of magic number. Admin: Tested on Raspberry Pi Version 0.23. Tagged as 'BCM2835-0_23'
-
Jeffrey Lee authored
Read board model, revision, and available DMA channels from messaging channel. Report board revision via GPIO HAL device. Recover lost ROM relocation code. Detail: hdr/StaticWS, s/Messaging, s/Top - Now reads board model, revision and available DMA channels from messaging channel hdr/StaticWS, s/GPIO - Updated GPIO HAL device to report board revision instead of a generic response of 'unknown' s/Top - Recovered ROM relocation code that got lost during a merge. End of ROM image no longer being corrupted, and RISC OS now sees correct amount of RAM. s/DMA - Ditch old code to read available DMA channels and use value read by HAL_QueryPlatform instead. Admin: Tested on Raspberry Pi (B rev 1) with various start.elf sizes & versions DMA channel reporting only available with latest firmware (i.e. 8th Sep) Board revision number read by messaging channel seems to match that returned by /proc/cpuinfo on Linux Version 0.22. Tagged as 'BCM2835-0_22'
-
- 02 Sep, 2012 1 commit
-
-
Jeffrey Lee authored
Detail: Makefile, s/Display - Deleted on-screen debug code hdr/BCM2835, hdr/StaticWS, s/IIC, s/Messaging, s/Stubs, s/Top, s/UART - Strip out calls to on-screen debug code, and a few bits of video code s/Video - Video code removed and replaced with stub functions similar to other HALs. Only remaining useful code is HAL_Video_StartupMode, which in time should probably be moved to BCMVideo as well. Admin: Tested on Raspberry Pi with high processor vectors Version 0.21. Tagged as 'BCM2835-0_21'
-
- 28 Aug, 2012 1 commit
-
-
Ben Avison authored
Detail: Implementation of the high-level HAL IIC interface provided by Dave Higton. Admin: Checked it builds and runs at ROOL. Version 0.20. Tagged as 'BCM2835-0_20'
-
- 24 Aug, 2012 1 commit
-
-
John Ballance authored
HAL_MachineID and fetches the MAC address correctly Admin: Version 0.19. Tagged as 'BCM2835-0_19'
-
- 08 Aug, 2012 1 commit
-
-
Jeffrey Lee authored
Detail: s/Top - Fix HAL_PlatformInfo to not claim that we support soft-off Admin: Tested in Pi ROM Fixes machine restarting after shutdown Version 0.18. Tagged as 'BCM2835-0_18'
-
- 02 Aug, 2012 1 commit
-
-
Jeffrey Lee authored
Add GPIO & VCHIQ HAL devices. Fix FlushDataCache macro to perform a clean & invalidate instead of just an invalidate. Detail: s/GPIO - Basic implementation of the GPIO HAL device to allow the GPIO module to detect the board type s/VCHIQ, hdr/StaticWS - New VCHIQ HAL device which exposes the functionality required by the work-in-progress VCHIQ driver. Makefile, s/Top - Hook up the new files/devices hdr/BCM2835 - Make the FlushDataCache macro perform a clean & invalidate, to match the behaviour of FlushDataCacheRange Admin: Tested on Raspberry Pi with high processor vectors Version 0.17. Tagged as 'BCM2835-0_17'
-
- 23 Jul, 2012 1 commit
-
-
John Ballance authored
Now expects a start.elf released 24/7/2012 or later for correct display initialisation Admin: Version 0.16. Tagged as 'BCM2835-0_16'
-
- 22 Jul, 2012 1 commit
-
-
John Ballance authored
HAL_MachineID functioning correctly Admin: Version 0.15. Tagged as 'BCM2835-0_15'
-
- 19 Jul, 2012 1 commit
-
-
John Ballance authored
Detail: HAL_Reset now causes a complete reboot of the machiine. It isnt yet properly called from the kernel.. I've not investigated why yet. Behaviour tested using OS_Hardware call HAL_MachineID, with the github start.elf from 18 July 2012 will provide a valid MAC address .. i.e. that specific to this machine. The a1 value in HAL_ExtendedID needs to be set 0 for this to be reported by OS_ReadSysInfo .. unfortunately, again at this stage, it stalls the boot when set 0, so just for now the committed value for a1 in HAL_ExtendedID is not 0 . centralised messaging routine added. This is used a fair bit in acquiring the operating environment Not yet used in the DMA stuff. probably ought to be. At present the messaging channel this mainly handles is not complete, so information from this code is still WIP Admin: (highlight level of testing that has taken place) (bugfix number if appropriate) Version 0.14. Tagged as 'BCM2835-0_14'
-
- 16 Jul, 2012 1 commit
-
-
Jeffrey Lee authored
Detail: s/Top - Improved RAM detection/setup to not assume that the OS image is at &0000 (current start.elf seems to place it at &8000). New code correctly supports compressed ROMs, and has some basic code implemented to read the RAM setup from the mailbox property interface (currently disabled, pending official firmware rollout + final testing) s/DMA - Updated mailbox property interface code to adhere to the current spec. Still needs testing with release firmware (the start.elf I'm using seems to report no DMA channels as being available) Admin: Tested with a release start.elf (July 9th, or thereabouts) as well as a more recent test version containing initial mailbox property interface implementation Fixes issue with last 32K of ROM being wiped on startup Version 0.13. Tagged as 'BCM2835-0_13'
-
- 07 Jul, 2012 1 commit
-
-
Jeffrey Lee authored
Detail: s/DMA, hdr/DMA, Makefile - DMA driver, as an implementation of the DMA controller and list type DMA channel HAL devices hdr/StaticWS - Added DMA workspace definition hdr/BCM2835 - Removed DMA control block definition (now in hdr/DMA). Add definitions for the mailbox property interface, which should be supported by the GPU firmware sometime soon. s/Top - Export a couple of the debug functions. Store logical & physical address of NCNB workspace instead of hackily getting phys addr of the (cacheable) HAL workspace. Call DMA_InitDevices in HAL_InitDevices. Admin: Tested in BCM2835 ROM DMA driver hasn't received large amounts of testing, lacks support for finite-length circular transfers, and currently only has one DMA channel enabled More DMA channels should be available once the mailbox property interface is functional and we know which channels the GPU does and doesn't use. Version 0.11. Tagged as 'BCM2835-0_11'
-
- 15 Jun, 2012 1 commit
-
-
Ben Avison authored
Detail: * Bugfix to HAL_FIQDisableAll - it wasn't clearing the FIQ register (would only have caused trouble in practice if the same device was subsequently enabled as an IRQ). * Added a load of memory barriers to s.Interrupts and s.Timers to conform to the requirement stated in 1.3 of the datasheet. * Added a HAL device for the Arasan SDHCI controller. Note that this does not currently work reliably, and results vary from card to card. High speed support is currently disabled until we are able to verify that it works reliably. * Added a sprinkling of "GET Hdr:ListOpts" because the space reserved for the SDHCI HAL device in hdr.StaticWS is determined by including Hdr:HALDevice and Hdr:SDHCIDevice, which need it. * When support for saving "CMOS" to the SD card is added, the ROM image file (kernel.img) is the only one we can count on the bootloader installing in memory, so I think we're going to have to work using the table in s.CMOS. Broadcom seems to like messing around with the space just after the processor vector table, so rather than adding a pointer to the table there, I've opted to mark it using a magic word. Admin: Tested on a Raspberry Pi - as noted above, there are reliability issues. Version 0.09. Tagged as 'BCM2835-0_09'
-