riscv: k210: Enable use of AI ram bank
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest11 patches 0 repliesNew
- v2 posting 2/20 of 16 patches 0 repliesSuperseded
- v2 posting 1/216 patches 0 repliesSuperseded
Earlier versions · 1
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v1 | 10 patches | 0 replies | Superseded |
Changes in v3 from the cover letter
- Add a warning if we can't assign rates
- Split off patchs for fdtdec_setup_mem_size_base_* into another series
- Eliminated separate RAM driver
- Rebased onto u-boot/next
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/11 | clk: Warn on failure to assign ratedrivers/ | +7 | 0 replies | |
| 2/11 | clk: k210: Fix PLLs not being enableddrivers/ | +2 | 1 reply | |
| 3/11 | clk: k210: Fix PLL enable always getting takendrivers/ | +2 | 0 replies | |
| 4/11 | clk: k210: Remove k210_register_plldrivers/ drivers/ include/ | +3 | 0 replies | |
| 5/11 | clk: k210: Move the clint clock to under aclkdrivers/ | +1 | 2 replies | |
| 5/11 | clk: k210: Move the clint clock to under aclk | +0 | 1 reply | |
| 5/11 | clk: k210: Move the clint clock to under aclk | +0 | 0 replies | |
| 6/11 | clk: Add support for the k210 clock driver pre-relocationdrivers/ | +10 | 0 replies | |
| 7/11 | riscv: Enable some devices pre-relocationarch/ | +4 | 0 replies | |
| 8/11 | riscv: Enable AI ram on K210board/ configs/ include/ | +14 | 0 replies | |
| 9/11 | riscv: k210: Rename airam to aisramarch/ board/ | +3 | 0 replies | |
| 10/11 | riscv: k210: Use AI as the parent clock of aisram, not PLL1arch/ | +1 | 0 replies | |
| 11/11 | riscv: Don't reserve AI ram in k210 dtsarch/ | +0 | 0 replies |
Reviews trailers per patch
1 of 13 patches has a Reviewed-by or Acked-by.
| Patch | Damien Le Moal |
|---|---|
| 1/11 | |
| 2/11 | R-b |
| 3/11 | |
| 4/11 | |
| 5/11 | |
| 5/11 | |
| 5/11 | |
| 6/11 | |
| 7/11 | |
| 8/11 | |
| 9/11 | |
| 10/11 | |
| 11/11 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v3 00/11] riscv: k210: Enable use of AI ram bank
This ram bank was previously unusable because PLL1 was not started correctly. This series fixes that bug, and allows U-Boot to relocate into the AI ram. This provides an extra 2M of space in which to load payloads. I've also added some minor patches to bring the device tree and clock driver closer to what Linux has (or will have).
The bypass clock turned out to be still necessary after all; I had neglected to test with CLK_K210_SET_RATE enabled, and I didn't notice that the clock rate wasn't actually getting set (oops). I've added a warning which will hopefully make it more difficult to make such mistakes in the future.
Changes in v3:
- Add a warning if we can't assign rates
- Split off patchs for fdtdec_setup_mem_size_base_* into another series
- Eliminated separate RAM driver
- Rebased onto u-boot/next
Changes in v2:
- Don't re-enable the PLL
- Simplify PLL instantiation
- Modify clock tree so clint is a child of aclk
- Sync memory dts node with Linux
- Use correct aisram clock
Sean Anderson (11):
clk: Warn on failure to assign rate
clk: k210: Fix PLLs not being enabled
clk: k210: Fix PLL enable always getting taken
clk: k210: Remove k210_register_pll
clk: k210: Move the clint clock to under aclk
clk: Add support for the k210 clock driver pre-relocation
riscv: Enable some devices pre-relocation
riscv: Enable AI ram on K210
riscv: k210: Rename airam to aisram
riscv: k210: Use AI as the parent clock of aisram, not PLL1
riscv: Don't reserve AI ram in k210 dts
arch/riscv/dts/k210.dtsi | 22 +++++++--------------- board/sipeed/maix/maix.c | 14 ++++++++++++-- configs/sipeed_maix_bitm_defconfig | 2 ++ drivers/clk/clk-uclass.c | 11 +++++++---- drivers/clk/kendryte/clk.c | 26 ++++++++++++++------------ drivers/clk/kendryte/pll.c | 26 ++++---------------------- include/configs/sipeed-maix.h | 3 +-- include/kendryte/pll.h | 4 ---- 8 files changed, 47 insertions(+), 61 deletions(-)
Signature · 1 line
2.31.0