[PATCH v3 10/20] mips: mtmips: rewrite lowlevel codes of mt7628
Daniel Schwierzeck
daniel.schwierzeck at gmail.com
Mon Feb 10 17:55:37 CET 2020
Am 21.01.20 um 09:19 schrieb Weijie Gao:
> This patch rewrites the mtmips architecture with the following changes:
>
> 1. Move MT7628 soc parts into a subfolder.
> 2. Lock parts of D-Cache as temporary stack.
> 3. Reimplement DDR initialization in C language.
> 4. Reimplement DDR calibration in a clear logic.
> 5. Add full support for auto size detection for DDR1 and DDR2.
> 6. Use accurate CPU clock depending on the input xtal frequency for timer
> and delay functions.
>
> Note:
>
> print_cpuinfo() has incompatible parts with MT7620 so it's moved into
> mt7628 subfolder.
>
> Signed-off-by: Weijie Gao <weijie.gao at mediatek.com>
> ---
> Changes since v2: none
> ---
> arch/mips/mach-mtmips/Kconfig | 69 +---
> arch/mips/mach-mtmips/Makefile | 7 +-
> arch/mips/mach-mtmips/cpu.c | 58 +---
> arch/mips/mach-mtmips/ddr_cal.c | 211 +++++++++++
> arch/mips/mach-mtmips/ddr_calibrate.c | 309 -----------------
> arch/mips/mach-mtmips/ddr_init.c | 194 +++++++++++
> arch/mips/mach-mtmips/include/mach/ddr.h | 52 +++
> arch/mips/mach-mtmips/include/mach/mc.h | 180 ++++++++++
> arch/mips/mach-mtmips/lowlevel_init.S | 328 ------------------
> arch/mips/mach-mtmips/mt7628/Makefile | 5 +
> arch/mips/mach-mtmips/mt7628/ddr.c | 173 +++++++++
> arch/mips/mach-mtmips/mt7628/init.c | 109 ++++++
> arch/mips/mach-mtmips/mt7628/lowlevel_init.S | 161 +++++++++
> arch/mips/mach-mtmips/mt7628/mt7628.h | 104 ++++++
> arch/mips/mach-mtmips/mt76xx.h | 32 --
> .../gardena-smart-gateway-mt7688_defconfig | 2 -
> configs/linkit-smart-7688_defconfig | 2 -
> 17 files changed, 1202 insertions(+), 794 deletions(-)
> create mode 100644 arch/mips/mach-mtmips/ddr_cal.c
> delete mode 100644 arch/mips/mach-mtmips/ddr_calibrate.c
> create mode 100644 arch/mips/mach-mtmips/ddr_init.c
> create mode 100644 arch/mips/mach-mtmips/include/mach/ddr.h
> create mode 100644 arch/mips/mach-mtmips/include/mach/mc.h
> delete mode 100644 arch/mips/mach-mtmips/lowlevel_init.S
> create mode 100644 arch/mips/mach-mtmips/mt7628/Makefile
> create mode 100644 arch/mips/mach-mtmips/mt7628/ddr.c
> create mode 100644 arch/mips/mach-mtmips/mt7628/init.c
> create mode 100644 arch/mips/mach-mtmips/mt7628/lowlevel_init.S
> create mode 100644 arch/mips/mach-mtmips/mt7628/mt7628.h
> delete mode 100644 arch/mips/mach-mtmips/mt76xx.h
>
Reviewed-by: Daniel Schwierzeck <daniel.schwierzeck at gmail.com>
--
- Daniel
More information about the U-Boot
mailing list