All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 00/16] riscv: k210: Enable use of AI ram bank
@ 2020-10-12 18:13 Sean Anderson
  2020-10-12 18:13 ` [PATCH v2 01/16] clk: k210: Fix PLLs not being enabled Sean Anderson
                   ` (16 more replies)
  0 siblings, 17 replies; 29+ messages in thread
From: Sean Anderson @ 2020-10-12 18:13 UTC (permalink / raw)
  To: u-boot

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.

Second time around and I realized that the bypass clock is no longer necessary
(yay). This also necessitates a few more small fixups. I've also added some
minor patches to bring the device tree and clock driver closer to what Linux has
(or will have). This should be the last round of additions to this series.

Changes in v2:
- Don't re-enable the PLL
- Remove bypass clock, which is no longer necessary
- 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 (16):
  clk: k210: Fix PLLs not being enabled
  clk: k210: Fix PLL enable always getting taken
  clk: k210: Remove bypass clock
  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
  lib: fdt: Add fdtdec_setup_mem_size_base_highest
  test: Add a test for fdtdec_setup_mem_size_base et al.
  ram: Add driver for K210 SRAM
  ram: sifive: Default to y only if compiling for fu540
  riscv: Probe ram in dram_init
  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

 MAINTAINERS                        |   1 +
 arch/riscv/cpu/generic/dram.c      |  26 +++
 arch/riscv/dts/k210.dtsi           |  22 +--
 arch/sandbox/dts/test.dts          |  12 ++
 board/sipeed/maix/Kconfig          |   2 +
 board/sipeed/maix/maix.c           |  26 ---
 configs/sandbox64_defconfig        |   2 +-
 configs/sandbox_defconfig          |   2 +-
 configs/sandbox_flattree_defconfig |   2 +-
 configs/sipeed_maix_bitm_defconfig |   1 +
 drivers/clk/kendryte/Makefile      |   2 +-
 drivers/clk/kendryte/bypass.c      | 273 -----------------------------
 drivers/clk/kendryte/clk.c         |  61 +++----
 drivers/clk/kendryte/pll.c         |  26 +--
 drivers/ram/Kconfig                |   7 +
 drivers/ram/Makefile               |   1 +
 drivers/ram/kendryte.c             |  56 ++++++
 drivers/ram/sifive/Kconfig         |   2 +-
 include/configs/sipeed-maix.h      |   4 -
 include/fdtdec.h                   |  19 +-
 include/kendryte/bypass.h          |  31 ----
 include/kendryte/pll.h             |   4 -
 lib/fdtdec.c                       |  34 +++-
 test/dm/fdtdec.c                   |  38 ++++
 24 files changed, 230 insertions(+), 424 deletions(-)
 delete mode 100644 drivers/clk/kendryte/bypass.c
 create mode 100644 drivers/ram/kendryte.c
 delete mode 100644 include/kendryte/bypass.h

-- 
2.28.0

^ permalink raw reply	[flat|nested] 29+ messages in thread

end of thread, other threads:[~2020-11-03 14:33 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-12 18:13 [PATCH v2 00/16] riscv: k210: Enable use of AI ram bank Sean Anderson
2020-10-12 18:13 ` [PATCH v2 01/16] clk: k210: Fix PLLs not being enabled Sean Anderson
2020-11-03  7:08   ` Rick Chen
2020-10-12 18:13 ` [PATCH v2 02/16] clk: k210: Fix PLL enable always getting taken Sean Anderson
2020-11-03  7:09   ` Rick Chen
2020-10-12 18:13 ` [PATCH v2 03/16] clk: k210: Remove bypass clock Sean Anderson
2020-10-12 18:13 ` [PATCH v2 04/16] clk: k210: Remove k210_register_pll Sean Anderson
2020-10-12 18:13 ` [PATCH v2 05/16] clk: k210: Move the clint clock to under aclk Sean Anderson
2020-10-12 18:13 ` [PATCH v2 06/16] clk: Add support for the k210 clock driver pre-relocation Sean Anderson
2020-11-03  7:13   ` Rick Chen
2020-10-12 18:13 ` [PATCH v2 07/16] riscv: Enable some devices pre-relocation Sean Anderson
2020-11-03  7:12   ` Rick Chen
2020-10-12 18:13 ` [PATCH v2 08/16] lib: fdt: Add fdtdec_setup_mem_size_base_highest Sean Anderson
2020-11-03  7:14   ` Rick Chen
2020-10-12 18:13 ` [PATCH v2 09/16] test: Add a test for fdtdec_setup_mem_size_base et al Sean Anderson
2020-10-12 18:13 ` [PATCH v2 10/16] ram: Add driver for K210 SRAM Sean Anderson
2020-11-03  7:18   ` Rick Chen
2020-10-12 18:13 ` [PATCH v2 11/16] ram: sifive: Default to y only if compiling for fu540 Sean Anderson
2020-11-03  7:20   ` Rick Chen
2020-10-12 18:13 ` [PATCH v2 12/16] riscv: Probe ram in dram_init Sean Anderson
2020-11-03  7:42   ` Rick Chen
2020-10-12 18:13 ` [PATCH v2 13/16] riscv: Enable AI ram on K210 Sean Anderson
2020-11-03  7:44   ` Rick Chen
2020-10-12 18:13 ` [PATCH v2 14/16] riscv: k210: Rename airam to aisram Sean Anderson
2020-11-03  7:51   ` Rick Chen
2020-10-12 18:13 ` [PATCH v2 15/16] riscv: k210: Use AI as the parent clock of aisram, not PLL1 Sean Anderson
2020-11-03  8:14   ` Rick Chen
2020-10-12 18:13 ` [PATCH v2 16/16] riscv: Don't reserve AI ram in k210 dts Sean Anderson
2020-11-03 14:33 ` [PATCH v2 00/16] riscv: k210: Enable use of AI ram bank Sean Anderson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.