-
Notifications
You must be signed in to change notification settings - Fork 621
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
initial port of little-kernel to vc4 #259
base: master
Are you sure you want to change the base?
Commits on Jan 14, 2020
-
[platform][vc4] initial port of little-kernel to vc4
some parts are copy/pasted from https://github.com/cleverca22/rpi-open-firmware which itself is a fork of https://github.com/christinaa/rpi-open-firmware what works: network booting lk.elf on an rpi4 (just rename to start4.elf and host over tftp) the full console with line editing and history serial over pl011 (but no serial init, relies on previous bootloader stage) reboot command irq handling for timer compare and uart one-shot timer reporting cpu exceptions such as divide by zero
Configuration menu - View commit details
-
Copy full SHA for ed6bcd6 - Browse repository at this point
Copy the full SHA ed6bcd6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6177b60 - Browse repository at this point
Copy the full SHA 6177b60View commit details -
Configuration menu - View commit details
-
Copy full SHA for b87e962 - Browse repository at this point
Copy the full SHA b87e962View commit details
Commits on Jan 20, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 6e53a65 - Browse repository at this point
Copy the full SHA 6e53a65View commit details
Commits on Jan 24, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 63983b1 - Browse repository at this point
Copy the full SHA 63983b1View commit details
Commits on Jan 29, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 7688dad - Browse repository at this point
Copy the full SHA 7688dadView commit details -
Configuration menu - View commit details
-
Copy full SHA for 34a6c86 - Browse repository at this point
Copy the full SHA 34a6c86View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8057162 - Browse repository at this point
Copy the full SHA 8057162View commit details -
Configuration menu - View commit details
-
Copy full SHA for e6aa53e - Browse repository at this point
Copy the full SHA e6aa53eView commit details
Commits on Jan 30, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 964020e - Browse repository at this point
Copy the full SHA 964020eView commit details
Commits on Feb 12, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 265ddb4 - Browse repository at this point
Copy the full SHA 265ddb4View commit details -
Configuration menu - View commit details
-
Copy full SHA for a8a1796 - Browse repository at this point
Copy the full SHA a8a1796View commit details -
Configuration menu - View commit details
-
Copy full SHA for bba0459 - Browse repository at this point
Copy the full SHA bba0459View commit details
Commits on Feb 16, 2020
-
add sdhost code add gpio pullup test fix peripheral address implement batch gpio pull config changes fix memory information to be based on boot stage, not model add rpi4 recovery.bin support
Configuration menu - View commit details
-
Copy full SHA for bbd44bf - Browse repository at this point
Copy the full SHA bbd44bfView commit details
Commits on Feb 22, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 2a56c6f - Browse repository at this point
Copy the full SHA 2a56c6fView commit details -
This is a clean rewrite of the OTP routines using new findings.
Configuration menu - View commit details
-
Copy full SHA for b5f15ad - Browse repository at this point
Copy the full SHA b5f15adView commit details -
Based on previous research, this commit implements a write command. Use with care! What is done cannot be undone.
Configuration menu - View commit details
-
Copy full SHA for a92f697 - Browse repository at this point
Copy the full SHA a92f697View commit details -
Rename OTP_STAT_PROG_OK to OTP_STAT_PROG_ENABLE
This bit does not tell whether programming was OK, but whether programming is enabled. Renaming should prevent confusion when BCM283x support is added.
Configuration menu - View commit details
-
Copy full SHA for 37a056c - Browse repository at this point
Copy the full SHA 37a056cView commit details -
The OTP chip in BCM283x cannot program a full word in a single command. Instead, individual bits must be programmed one by one. There is also a subtle difference in program enable. The magic sequence must be written to OTP_BITSEL, not OTP_DATA. Tested on a RPi3 B (no plus).
Configuration menu - View commit details
-
Copy full SHA for e07d1f8 - Browse repository at this point
Copy the full SHA e07d1f8View commit details
Commits on Feb 25, 2020
-
Configuration menu - View commit details
-
Copy full SHA for b310295 - Browse repository at this point
Copy the full SHA b310295View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6ddcdc6 - Browse repository at this point
Copy the full SHA 6ddcdc6View commit details
Commits on Feb 27, 2020
-
Add missing PLL hw register definitions
Get rid of hardcoded values in pll_control.c
Configuration menu - View commit details
-
Copy full SHA for 7b8171a - Browse repository at this point
Copy the full SHA 7b8171aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 84aba01 - Browse repository at this point
Copy the full SHA 84aba01View commit details -
Constify the PLL definition table
It should not be modified, so it may go into read-only data.
Configuration menu - View commit details
-
Copy full SHA for 5fa7811 - Browse repository at this point
Copy the full SHA 5fa7811View commit details -
Make PLL definitions globally available
This change allows reusing the data from other modules.
Configuration menu - View commit details
-
Copy full SHA for 30e6929 - Browse repository at this point
Copy the full SHA 30e6929View commit details -
Make a single A2_PLL_FRAC_MASK macro
All PLLs have a 12-bit fractional part. There is no need to complicate matters by defining per-PLL masks.
Configuration menu - View commit details
-
Copy full SHA for b73f135 - Browse repository at this point
Copy the full SHA b73f135View commit details -
Configuration menu - View commit details
-
Copy full SHA for fb53a2e - Browse repository at this point
Copy the full SHA fb53a2eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8bc41de - Browse repository at this point
Copy the full SHA 8bc41deView commit details -
Configuration menu - View commit details
-
Copy full SHA for 71a9556 - Browse repository at this point
Copy the full SHA 71a9556View commit details -
Remove unneeded pllX() functions
The definition of these functions is now trivial, so expose the underlying get_pll_freq() and get_pll_chan_freq() instead.
Configuration menu - View commit details
-
Copy full SHA for dd73f4e - Browse repository at this point
Copy the full SHA dd73f4eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0420cc6 - Browse repository at this point
Copy the full SHA 0420cc6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4580228 - Browse repository at this point
Copy the full SHA 4580228View commit details -
Configuration menu - View commit details
-
Copy full SHA for f926545 - Browse repository at this point
Copy the full SHA f926545View commit details
Commits on Feb 29, 2020
-
get_pll_freq: Fix use of pre-dividers
The sense of the "dividers" is currently reversed: - bit 14 / 11 in the ANA1 register _doubles_ the resulting PLL frequency, - PDIV field in the PLL_CTRL register divides the resulting frequency by an integer
Configuration menu - View commit details
-
Copy full SHA for e00822e - Browse repository at this point
Copy the full SHA e00822eView commit details -
Some magic values must be written to the PLLx_DIG registers to take a stopped PLL out of RESET. It is also a good idea to hold all PLL channels while doing so.
Configuration menu - View commit details
-
Copy full SHA for b410017 - Browse repository at this point
Copy the full SHA b410017View commit details
Commits on Mar 5, 2020
-
The prescaler is either not present on a BCM2711, or it works differently. For the record, the PLLC NDIV:FRAC divider is set up to 3 GHz by the firmware as if there was no prescaler.
Configuration menu - View commit details
-
Copy full SHA for 659558d - Browse repository at this point
Copy the full SHA 659558dView commit details
Commits on Mar 6, 2020
-
Rename ANARST and DIGRST bit masks
These bits are common to all CM_PLL registers.
Configuration menu - View commit details
-
Copy full SHA for 6aeb35d - Browse repository at this point
Copy the full SHA 6aeb35dView commit details -
Consolidate common PLL control register bits
Since the PDIV field and PRSTN bit are found on the same positions in all PLLs, one single define is sufficient. It may even allow some optimizations in the compiler.
Configuration menu - View commit details
-
Copy full SHA for ebd0961 - Browse repository at this point
Copy the full SHA ebd0961View commit details -
This variable can be useful to any clock-related code, so let's have the declaration in a common header file.
Configuration menu - View commit details
-
Copy full SHA for ac4ac8b - Browse repository at this point
Copy the full SHA ac4ac8bView commit details -
Rename ana1_pdiv_bit to ana1_prescale_bit
I'm quite confident now that this bit controls a prescaler in the feedback loop, so give it a better name, so it cannot be confused with the PDIV field.
Configuration menu - View commit details
-
Copy full SHA for cfdd1eb - Browse repository at this point
Copy the full SHA cfdd1ebView commit details -
Configuration menu - View commit details
-
Copy full SHA for 53dc6ba - Browse repository at this point
Copy the full SHA 53dc6baView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8429abc - Browse repository at this point
Copy the full SHA 8429abcView commit details
Commits on Mar 7, 2020
-
Configuration menu - View commit details
-
Copy full SHA for ba3f97a - Browse repository at this point
Copy the full SHA ba3f97aView commit details
Commits on Mar 8, 2020
-
Quite useful to research the undocumented internal I2C bus on BCM2711 (bus 7). For example, I can control the PWR LED on my RPi4B like this: Turn off: i2c_xfer 7 0x43 0504 0 Turn on: i2c_xfer 7 0x43 0500 0
Configuration menu - View commit details
-
Copy full SHA for 55fb47a - Browse repository at this point
Copy the full SHA 55fb47aView commit details
Commits on Mar 9, 2020
-
The pre-configured I2C bus rate is too high for MxL7004 on a RPi4 after start4.elf is launched (over 900 kHz). The spec says the maximum SCL clock frequency is 400 kHz, but the firmware uses an even lower value (100 kHz). FWIW 400 kHz does not work on my RPi4B, but maybe the default FEDL/REDL calculation does not satisfy the SCL_H and/or SCL_L period requirements of that chip. Who cares... just use 100 kHz.
Configuration menu - View commit details
-
Copy full SHA for da1995d - Browse repository at this point
Copy the full SHA da1995dView commit details
Commits on Jun 9, 2020
-
Configuration menu - View commit details
-
Copy full SHA for c27e129 - Browse repository at this point
Copy the full SHA c27e129View commit details -
Configuration menu - View commit details
-
Copy full SHA for 73356d1 - Browse repository at this point
Copy the full SHA 73356d1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 67fa6b0 - Browse repository at this point
Copy the full SHA 67fa6b0View commit details
Commits on Aug 23, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 453f4ef - Browse repository at this point
Copy the full SHA 453f4efView commit details
Commits on Sep 8, 2020
-
it will bring up the DDR2 controller then mount an ext2 fs on SD partition 2 then drop into a shell for testing
Configuration menu - View commit details
-
Copy full SHA for 1da15f1 - Browse repository at this point
Copy the full SHA 1da15f1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 573b1a8 - Browse repository at this point
Copy the full SHA 573b1a8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 81eddd7 - Browse repository at this point
Copy the full SHA 81eddd7View commit details
Commits on Sep 10, 2020
-
Configuration menu - View commit details
-
Copy full SHA for b0b46be - Browse repository at this point
Copy the full SHA b0b46beView commit details -
Configuration menu - View commit details
-
Copy full SHA for bc3a357 - Browse repository at this point
Copy the full SHA bc3a357View commit details -
Configuration menu - View commit details
-
Copy full SHA for ce5757d - Browse repository at this point
Copy the full SHA ce5757dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7d8e9af - Browse repository at this point
Copy the full SHA 7d8e9afView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0a982f0 - Browse repository at this point
Copy the full SHA 0a982f0View commit details -
Configuration menu - View commit details
-
Copy full SHA for e9a8f0e - Browse repository at this point
Copy the full SHA e9a8f0eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6396c6e - Browse repository at this point
Copy the full SHA 6396c6eView commit details
Commits on Sep 13, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 697c381 - Browse repository at this point
Copy the full SHA 697c381View commit details
Commits on Sep 14, 2020
-
fix DPI clocks and hsync/vsync generation implement HVS code
Configuration menu - View commit details
-
Copy full SHA for 18a4f56 - Browse repository at this point
Copy the full SHA 18a4f56View commit details
Commits on Sep 15, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 1b69585 - Browse repository at this point
Copy the full SHA 1b69585View commit details
Commits on Sep 16, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 6c501e2 - Browse repository at this point
Copy the full SHA 6c501e2View commit details
Commits on Oct 3, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 34483f7 - Browse repository at this point
Copy the full SHA 34483f7View commit details
Commits on Oct 9, 2020
-
Configuration menu - View commit details
-
Copy full SHA for fa37f8b - Browse repository at this point
Copy the full SHA fa37f8bView commit details -
Configuration menu - View commit details
-
Copy full SHA for e2367de - Browse repository at this point
Copy the full SHA e2367deView commit details -
Configuration menu - View commit details
-
Copy full SHA for d587d3b - Browse repository at this point
Copy the full SHA d587d3bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 531aba7 - Browse repository at this point
Copy the full SHA 531aba7View commit details
Commits on Oct 11, 2020
-
Configuration menu - View commit details
-
Copy full SHA for e9db3ab - Browse repository at this point
Copy the full SHA e9db3abView commit details
Commits on Oct 13, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 79eb929 - Browse repository at this point
Copy the full SHA 79eb929View commit details
Commits on Oct 16, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 6aed09c - Browse repository at this point
Copy the full SHA 6aed09cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8f27630 - Browse repository at this point
Copy the full SHA 8f27630View commit details -
Configuration menu - View commit details
-
Copy full SHA for fda45ef - Browse repository at this point
Copy the full SHA fda45efView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5ae9f70 - Browse repository at this point
Copy the full SHA 5ae9f70View commit details -
Configuration menu - View commit details
-
Copy full SHA for 199cb4a - Browse repository at this point
Copy the full SHA 199cb4aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7b88aa7 - Browse repository at this point
Copy the full SHA 7b88aa7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 42ef69f - Browse repository at this point
Copy the full SHA 42ef69fView commit details -
Configuration menu - View commit details
-
Copy full SHA for cba5030 - Browse repository at this point
Copy the full SHA cba5030View commit details
Commits on Oct 17, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 4081cf6 - Browse repository at this point
Copy the full SHA 4081cf6View commit details -
Configuration menu - View commit details
-
Copy full SHA for a91059b - Browse repository at this point
Copy the full SHA a91059bView commit details
Commits on Nov 20, 2020
-
partially implement dwc2 device mode code
overhaul arch setup for targets add support for .text.bootloader_state on the pi4
Configuration menu - View commit details
-
Copy full SHA for abdf484 - Browse repository at this point
Copy the full SHA abdf484View commit details
Commits on Nov 27, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 2e4a35f - Browse repository at this point
Copy the full SHA 2e4a35fView commit details
Commits on Dec 7, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 4a93a73 - Browse repository at this point
Copy the full SHA 4a93a73View commit details -
Configuration menu - View commit details
-
Copy full SHA for 43f9cf2 - Browse repository at this point
Copy the full SHA 43f9cf2View commit details
Commits on Jan 8, 2021
-
move dwc code to its own module, it currently crashes on boot if the …
…bootloader hasnt initialized things
Configuration menu - View commit details
-
Copy full SHA for 800027b - Browse repository at this point
Copy the full SHA 800027bView commit details
Commits on Jan 16, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 1528f64 - Browse repository at this point
Copy the full SHA 1528f64View commit details -
Configuration menu - View commit details
-
Copy full SHA for ab4d081 - Browse repository at this point
Copy the full SHA ab4d081View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8166bb5 - Browse repository at this point
Copy the full SHA 8166bb5View commit details
Commits on Mar 19, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 5f01019 - Browse repository at this point
Copy the full SHA 5f01019View commit details
Commits on Mar 20, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 163a6ea - Browse repository at this point
Copy the full SHA 163a6eaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 51fe20e - Browse repository at this point
Copy the full SHA 51fe20eView commit details
Commits on Mar 21, 2021
-
Configuration menu - View commit details
-
Copy full SHA for d1ce174 - Browse repository at this point
Copy the full SHA d1ce174View commit details -
Configuration menu - View commit details
-
Copy full SHA for 86ecba0 - Browse repository at this point
Copy the full SHA 86ecba0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1787a2e - Browse repository at this point
Copy the full SHA 1787a2eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8043bb7 - Browse repository at this point
Copy the full SHA 8043bb7View commit details
Commits on Mar 22, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 715ef3e - Browse repository at this point
Copy the full SHA 715ef3eView commit details
Commits on Mar 26, 2021
-
Configuration menu - View commit details
-
Copy full SHA for af84c4d - Browse repository at this point
Copy the full SHA af84c4dView commit details
Commits on Mar 28, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 8687ab0 - Browse repository at this point
Copy the full SHA 8687ab0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 15741ea - Browse repository at this point
Copy the full SHA 15741eaView commit details
Commits on Mar 29, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 38dbc0f - Browse repository at this point
Copy the full SHA 38dbc0fView commit details
Commits on Mar 31, 2021
-
Configuration menu - View commit details
-
Copy full SHA for d8738f0 - Browse repository at this point
Copy the full SHA d8738f0View commit details