imx: i.MX9 update
Subsystems (12)
cover imx: i.MX9 update
From: Peng Fan <[email protected]>
This patchset includes updates mainly for i.MX9, such as Clock, Memory, Parts, Low drive mode, DDR, cpu driver, Variants
The first patch is not about i.MX9, just include it here since it is a simple one for i.MX8ULP.
For the watchdog reset_cpu, I will move it out from watchdog driver in future patches which would includes other changes. I include it here mainly for sysreset support.
This patchset depends on two patches from Marek:
https://patchwork.ozlabs.org/project/uboot/patch/[email protected]/
https://patchwork.ozlabs.org/project/uboot/patch/[email protected]/
Jacky Bai (4):
ddr: imx9: Change the saved ddr data base to 0x2051c000
ddr: imx93: Add 625M bypass clock support
ddr: imx93: update the ddr init to support mult setpoints
ddr: imx9: update the rank setting for multi fsp support
Peng Fan (33):
imx8ulp: build ahab
imx: spl_imx_romapi: typo fix
imx: move imx8 sci header file to include/firmware/imx
imx: firmware: sci: add inline functions when IMX8 not enabled
imx: imx8_cpu: use static for local functions
imx: imx8_cpu: support i.MX9
imx: imx8_cpu: support get temperature for i.MX9
imx: imx8_cpu: print cpu grade temperature
imx9: configure M33 systick to 24M
imx9: add more PLL settings
imx9: use parameter freq when set_arm_clk
imx9: correct getting LPI2C clk
imx9: simplify clk settings
imx9: cut off OPTEE memory region from U-Boot
imx9: imx93_evk: enable CPU_IMX
imx9: imx93_evk: drop unused macro
imx9: imx93_evk: select IMX_TMU
imx9: imx93_evk: enable CONFIG_WDT
watchdog: ulp_wdog: guard reset_cpu with condition check
imx9: soc: support reset cause
imx9: Get market segment and speed grading
imx9: clock: clear HW_CTRL_SEL
imx9: clock: add CONFIG_IMX9_LOW_DRIVE_MODE support
imx9: clock: config arm alt root to 500mhz
imx9: add i.MX93 variants support
imx9: correct coding style
imx9: use i.MX generic rom api function
imx9: imx93_evk: add low drive mode support on 11x11 EVK
arm: dts: imx93: sync device tree with Linux
arm: dts: imx93: add tmu
imx9: imx93_evk: Update spl stack & bss base address
imx9: imx93_evk: update ddr timing file
imx9: imx93_evk: enable sysreset
Ye Li (5):
thermal: imx_tmu: Update TMU driver to support iMX93
imx9: Change hard coded MAC to read from fuse
imx9: allow to bootaux Mcore with input address
ddr: imx9: Add workaround for DDRPHY rank-to-rank errata
imx9: Calculate DDR size from DDRC setting
arch/arm/dts/imx93-11x11-evk-u-boot.dtsi | 29 -
arch/arm/dts/imx93-11x11-evk.dts | 385 +-
arch/arm/dts/imx93-pinfunc.h | 194 +-
arch/arm/dts/imx93.dtsi | 618 +--
arch/arm/include/asm/arch-imx/cpu.h | 7 +
arch/arm/include/asm/arch-imx8/power-domain.h | 2 +-
arch/arm/include/asm/arch-imx8/sci/sci.h | 138 -
arch/arm/include/asm/arch-imx8/sys_proto.h | 2 +-
arch/arm/include/asm/arch-imx8m/ddr.h | 2 +-
arch/arm/include/asm/arch-imx9/clock.h | 6 +
arch/arm/include/asm/arch-imx9/ddr.h | 23 +-
arch/arm/include/asm/arch-imx9/imx-regs.h | 3 +
arch/arm/include/asm/mach-imx/sys_proto.h | 12 +-
arch/arm/mach-imx/cmd_dek.c | 2 +-
arch/arm/mach-imx/imx8/ahab.c | 2 +-
arch/arm/mach-imx/imx8/cpu.c | 2 +-
arch/arm/mach-imx/imx8/fdt.c | 2 +-
arch/arm/mach-imx/imx8/iomux.c | 2 +-
arch/arm/mach-imx/imx8/misc.c | 2 +-
arch/arm/mach-imx/imx8/snvs_security_sc.c | 2 +-
arch/arm/mach-imx/imx8ulp/Kconfig | 5 +
arch/arm/mach-imx/imx8ulp/Makefile | 1 +
arch/arm/mach-imx/imx9/Kconfig | 5 +
arch/arm/mach-imx/imx9/clock.c | 113 +-
arch/arm/mach-imx/imx9/imx_bootaux.c | 10 +-
arch/arm/mach-imx/imx9/soc.c | 384 +-
arch/arm/mach-imx/parse-container.c | 2 +-
arch/arm/mach-imx/spl_imx_romapi.c | 2 +-
.../imx8qm_rom7720_a1/imx8qm_rom7720_a1.c | 2 +-
board/advantech/imx8qm_rom7720_a1/spl.c | 2 +-
board/congatec/cgtqmx8/cgtqmx8.c | 2 +-
board/freescale/imx8qm_mek/imx8qm_mek.c | 2 +-
board/freescale/imx8qxp_mek/imx8qxp_mek.c | 2 +-
board/freescale/imx8qxp_mek/spl.c | 2 +-
board/freescale/imx93_evk/MAINTAINERS | 1 +
board/freescale/imx93_evk/Makefile | 4 +
board/freescale/imx93_evk/lpddr4x_timing.c | 3361 ++++++++++-------
board/freescale/imx93_evk/lpddr4x_timing_ld.c | 1496 ++++++++
board/freescale/imx93_evk/spl.c | 26 +-
board/siemens/capricorn/board.c | 2 +-
board/toradex/apalis-imx8/apalis-imx8.c | 2 +-
board/toradex/colibri-imx8x/colibri-imx8x.c | 2 +-
configs/imx93_11x11_evk_defconfig | 12 +-
configs/imx93_11x11_evk_ld_defconfig | 125 +
drivers/clk/imx/clk-imx8.c | 2 +-
drivers/clk/imx/clk-imx8qm.c | 2 +-
drivers/clk/imx/clk-imx8qxp.c | 2 +-
drivers/cpu/Kconfig | 6 +
drivers/cpu/Makefile | 1 +
drivers/cpu/imx8_cpu.c | 142 +-
drivers/cpu/imx9_cpu.c | 224 ++
drivers/ddr/imx/imx9/Kconfig | 2 +-
drivers/ddr/imx/imx9/ddr_init.c | 289 +-
drivers/ddr/imx/phy/ddrphy_utils.c | 3 +
drivers/ddr/imx/phy/helper.c | 5 +-
drivers/misc/imx8/fuse.c | 2 +-
drivers/misc/imx8/scu.c | 2 +-
drivers/misc/imx8/scu_api.c | 2 +-
drivers/pinctrl/nxp/pinctrl-scu.c | 2 +-
.../power/domain/imx8-power-domain-legacy.c | 2 +-
drivers/power/domain/imx8-power-domain.c | 2 +-
drivers/thermal/Kconfig | 6 +-
drivers/thermal/imx_scu_thermal.c | 2 +-
drivers/thermal/imx_tmu.c | 101 +
drivers/watchdog/ulp_wdog.c | 2 +
include/configs/imx93_evk.h | 2 -
include/dt-bindings/clock/imx93-clock.h | 17 +-
include/dt-bindings/power/fsl,imx93-power.h | 15 +
include/dt-bindings/power/imx93-power.h | 12 -
.../firmware/imx}/sci/rpc.h | 0
include/firmware/imx/sci/sci.h | 379 ++
.../firmware/imx}/sci/svc/misc/api.h | 0
.../firmware/imx}/sci/svc/pad/api.h | 0
.../firmware/imx}/sci/svc/pm/api.h | 0
.../firmware/imx}/sci/svc/rm/api.h | 2 +-
.../firmware/imx}/sci/svc/seco/api.h | 2 +-
.../firmware/imx}/sci/types.h | 0
77 files changed, 5864 insertions(+), 2366 deletions(-)
delete mode 100644 arch/arm/include/asm/arch-imx8/sci/sci.h
create mode 100644 board/freescale/imx93_evk/lpddr4x_timing_ld.c
create mode 100644 configs/imx93_11x11_evk_ld_defconfig
create mode 100644 drivers/cpu/imx9_cpu.c
create mode 100644 include/dt-bindings/power/fsl,imx93-power.h
delete mode 100644 include/dt-bindings/power/imx93-power.h
rename {arch/arm/include/asm/arch-imx8 => include/firmware/imx}/sci/rpc.h (100%)
create mode 100644 include/firmware/imx/sci/sci.h
rename {arch/arm/include/asm/arch-imx8 => include/firmware/imx}/sci/svc/misc/api.h (100%)
rename {arch/arm/include/asm/arch-imx8 => include/firmware/imx}/sci/svc/pad/api.h (100%)
rename {arch/arm/include/asm/arch-imx8 => include/firmware/imx}/sci/svc/pm/api.h (100%)
rename {arch/arm/include/asm/arch-imx8 => include/firmware/imx}/sci/svc/rm/api.h (98%)
rename {arch/arm/include/asm/arch-imx8 => include/firmware/imx}/sci/svc/seco/api.h (96%)
rename {arch/arm/include/asm/arch-imx8 => include/firmware/imx}/sci/types.h (100%)Signature · 1 line
2.40.0
PATCH 1/42 imx8ulp: build ahab
From: Peng Fan <[email protected]>
The ahab was missed to be compiled, so add it back.
--- arch/arm/mach-imx/imx8ulp/Kconfig | 5 +++++ arch/arm/mach-imx/imx8ulp/Makefile | 1 + 2 files changed, 6 insertions(+)
arch/arm/mach-imx/imx8ulp/Kconfig +5 -0
@@ -1,5 +1,10 @@ if ARCH_IMX8ULP +config AHAB_BOOT + bool "Support i.MX8ULP AHAB features" + help + This option enables the support for AHAB secure boot. + config IMX8ULP bool
arch/arm/mach-imx/imx8ulp/Makefile +1 -0
@@ -5,6 +5,7 @@ obj-y += lowlevel_init.o obj-y += soc.o clock.o iomux.o pcc.o cgc.o rdc.o +obj-$(CONFIG_AHAB_BOOT) += ahab.o ifeq ($(CONFIG_SPL_BUILD),y) obj-y += upower/
Signature · 1 line
2.40.0
PATCH 1/42 imx8ulp: build ahab
Quoted 3 lines
From: Peng Fan <[email protected]>
The ahab was missed to be compiled, so add it back.Signed-off-by Peng Fan <[email protected]>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, 82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: [email protected] =====================================================================
PATCH 2/42 thermal: imx_tmu: Update TMU driver to support iMX93
In reply to Peng Fan (OSS)From: Ye Li <[email protected]>
The TMU used on iMX93 is IP revision 2.1 which is different with previous revision used on iMX8MQ. So add a new FLAG V4 for this revision to distinguish the operations.
--- drivers/thermal/Kconfig | 6 +-- drivers/thermal/imx_tmu.c | 101 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 104 insertions(+), 3 deletions(-)
drivers/thermal/Kconfig +3 -3
@@ -27,10 +27,10 @@ config IMX_SCU_THERMAL trip is crossed config IMX_TMU - bool "Thermal Management Unit driver for NXP i.MX8M" - depends on ARCH_IMX8M + bool "Thermal Management Unit driver for NXP i.MX8M and iMX93" + depends on ARCH_IMX8M || IMX93 help - Support for Temperature sensors on NXP i.MX8M. + Support for Temperature sensors on NXP i.MX8M and iMX93. It supports one critical trip point and one passive trip point. The boot is hold to the cool device to throttle CPUs when the passive trip is crossed
drivers/thermal/imx_tmu.c +101 -0
173 lines not on this page · raw message
Signature · 1 line
2.40.0
PATCH 2/42 thermal: imx_tmu: Update TMU driver to support iMX93
Quoted 7 lines
From: Ye Li <[email protected]>
The TMU used on iMX93 is IP revision 2.1 which is different with previous revision used on iMX8MQ. So add a new FLAG V4 for this revision to distinguish the operations.Reviewed-by Peng Fan <[email protected]>Signed-off-by Ye Li <[email protected]>Signed-off-by Peng Fan <[email protected]>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, 82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: [email protected] =====================================================================
PATCH 3/42 imx: spl_imx_romapi: typo fix
In reply to Peng Fan (OSS)From: Peng Fan <[email protected]>
Unknow->Unknown
--- arch/arm/mach-imx/spl_imx_romapi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-imx/spl_imx_romapi.c +1 -1
@@ -367,7 +367,7 @@ int board_return_to_bootrom(struct spl_image_info *spl_image,printf ("USB boot\n" );break ;default : -printf ("Unknow (0x%x)\n" , bstage); +printf ("Unknown (0x%x)\n" , bstage); }if (is_boot_from_stream_device (boot))
Signature · 1 line
2.40.0
PATCH 3/42 imx: spl_imx_romapi: typo fix
Quoted 3 lines
From: Peng Fan <[email protected]>
Unknow->UnknownSigned-off-by Peng Fan <[email protected]>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, 82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: [email protected] =====================================================================
PATCH 4/42 imx: move imx8 sci header file to include/firmware/imx
In reply to Peng Fan (OSS)From: Peng Fan <[email protected]>
Move imx8 sci header file to include/firmware/imx, then we could use build macro to reuse some i.MX8 drivers for i.MX9, such as drivers/cpu/imx8_cpu.c.
---
arch/arm/include/asm/arch-imx8/power-domain.h | 2 +-
arch/arm/include/asm/arch-imx8/sys_proto.h | 2 +-
arch/arm/mach-imx/cmd_dek.c | 2 +-
arch/arm/mach-imx/imx8/ahab.c | 2 +-
arch/arm/mach-imx/imx8/cpu.c | 2 +-
arch/arm/mach-imx/imx8/fdt.c | 2 +-
arch/arm/mach-imx/imx8/iomux.c | 2 +-
arch/arm/mach-imx/imx8/misc.c | 2 +-
arch/arm/mach-imx/imx8/snvs_security_sc.c | 2 +-
arch/arm/mach-imx/parse-container.c | 2 +-
.../imx8qm_rom7720_a1/imx8qm_rom7720_a1.c | 2 +-
board/advantech/imx8qm_rom7720_a1/spl.c | 2 +-
board/congatec/cgtqmx8/cgtqmx8.c | 2 +-
board/freescale/imx8qm_mek/imx8qm_mek.c | 2 +-
board/freescale/imx8qxp_mek/imx8qxp_mek.c | 2 +-
board/freescale/imx8qxp_mek/spl.c | 2 +-
board/siemens/capricorn/board.c | 2 +-
board/toradex/apalis-imx8/apalis-imx8.c | 2 +-
board/toradex/colibri-imx8x/colibri-imx8x.c | 2 +-
drivers/clk/imx/clk-imx8.c | 2 +-
drivers/clk/imx/clk-imx8qm.c | 2 +-
drivers/clk/imx/clk-imx8qxp.c | 2 +-
drivers/cpu/imx8_cpu.c | 2 +-
drivers/cpu/imx9_cpu.c | 224 ++++++++++++++++++
drivers/misc/imx8/fuse.c | 2 +-
drivers/misc/imx8/scu.c | 2 +-
drivers/misc/imx8/scu_api.c | 2 +-
drivers/pinctrl/nxp/pinctrl-scu.c | 2 +-
.../power/domain/imx8-power-domain-legacy.c | 2 +-
drivers/power/domain/imx8-power-domain.c | 2 +-
drivers/thermal/imx_scu_thermal.c | 2 +-
.../firmware/imx}/sci/rpc.h | 0
.../firmware/imx}/sci/sci.h | 14 +-
.../firmware/imx}/sci/svc/misc/api.h | 0
.../firmware/imx}/sci/svc/pad/api.h | 0
.../firmware/imx}/sci/svc/pm/api.h | 0
.../firmware/imx}/sci/svc/rm/api.h | 2 +-
.../firmware/imx}/sci/svc/seco/api.h | 2 +-
.../firmware/imx}/sci/types.h | 0
39 files changed, 263 insertions(+), 39 deletions(-)
create mode 100644 drivers/cpu/imx9_cpu.c
rename {arch/arm/include/asm/arch-imx8 => include/firmware/imx}/sci/rpc.h (100%)
rename {arch/arm/include/asm/arch-imx8 => include/firmware/imx}/sci/sci.h (94%)
rename {arch/arm/include/asm/arch-imx8 => include/firmware/imx}/sci/svc/misc/api.h (100%)
rename {arch/arm/include/asm/arch-imx8 => include/firmware/imx}/sci/svc/pad/api.h (100%)
rename {arch/arm/include/asm/arch-imx8 => include/firmware/imx}/sci/svc/pm/api.h (100%)
rename {arch/arm/include/asm/arch-imx8 => include/firmware/imx}/sci/svc/rm/api.h (98%)
rename {arch/arm/include/asm/arch-imx8 => include/firmware/imx}/sci/svc/seco/api.h (96%)
rename {arch/arm/include/asm/arch-imx8 => include/firmware/imx}/sci/types.h (100%)arch/arm/include/asm/arch-imx8/power-domain.h +1 -1
@@ -6,7 +6,7 @@ #ifndef _ASM_ARCH_IMX8_POWER_DOMAIN_H #define _ASM_ARCH_IMX8_POWER_DOMAIN_H -#include <asm/arch/sci/types.h> +#include <firmware/imx/sci/types.h> struct imx8_power_domain_plat { sc_rsrc_t resource_id;
arch/arm/include/asm/arch-imx8/sys_proto.h +1 -1
@@ -3,7 +3,7 @@* Copyright 2018 NXP */ -#include <asm/arch/sci/sci.h> +#include <firmware/imx/sci/sci.h> #include <asm/mach-imx/sys_proto.h> #include <asm/arch/power-domain.h> #include <dm/platdata.h>
arch/arm/mach-imx/cmd_dek.c +1 -1
@@ -17,7 +17,7 @@#include <mapmem.h> #include <tee.h> #ifdef CONFIG_IMX_SECO_DEK_ENCAP -#include <asm/arch/sci/sci.h> +#include <firmware/imx/sci/sci.h> #include <asm/mach-imx/image.h> #endif #include <cpu_func.h>
arch/arm/mach-imx/imx8/ahab.c +1 -1
@@ -9,7 +9,7 @@#include <log.h> #include <asm/global_data.h> #include <asm/io.h> -#include <asm/arch/sci/sci.h> +#include <firmware/imx/sci/sci.h> #include <asm/mach-imx/sys_proto.h> #include <asm/arch-imx/cpu.h> #include <asm/arch/sys_proto.h>
arch/arm/mach-imx/imx8/cpu.c +1 -1
@@ -19,7 +19,7 @@#include <errno.h> #include <spl.h> #include <thermal.h> -#include <asm/arch/sci/sci.h> +#include <firmware/imx/sci/sci.h> #include <asm/arch/sys_proto.h> #include <asm/arch-imx/cpu.h> #include <asm/armv8/cpu.h>
arch/arm/mach-imx/imx8/fdt.c +1 -1
@@ -5,7 +5,7 @@#include <common.h> #include <log.h> -#include <asm/arch/sci/sci.h> +#include <firmware/imx/sci/sci.h> #include <asm/arch/sys_proto.h> #include <asm/global_data.h> #include <dm/ofnode.h>
arch/arm/mach-imx/imx8/iomux.c +1 -1
@@ -8,7 +8,7 @@#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/iomux.h> -#include <asm/arch/sci/sci.h> +#include <firmware/imx/sci/sci.h> DECLARE_GLOBAL_DATA_PTR ;
arch/arm/mach-imx/imx8/misc.c +1 -1
@@ -1,7 +1,7 @@// SPDX-License-Identifier: GPL-2.0+ #include <common.h> #include <log.h> -#include <asm/arch/sci/sci.h> +#include <firmware/imx/sci/sci.h> #include <asm/mach-imx/sys_proto.h> #include <imx_sip.h> #include <linux/arm-smccc.h>
arch/arm/mach-imx/imx8/snvs_security_sc.c +1 -1
@@ -15,7 +15,7 @@#include <log.h> #include <stddef.h> #include <common.h> -#include <asm/arch/sci/sci.h> +#include <firmware/imx/sci/sci.h> #include <asm/arch-imx8/imx8-pins.h> #include <asm/arch-imx8/snvs_security_sc.h> #include <asm/global_data.h>
arch/arm/mach-imx/parse-container.c +1 -1
@@ -9,7 +9,7 @@#include <spl.h> #include <asm/mach-imx/image.h> #ifdef CONFIG_AHAB_BOOT -#include <asm/arch/sci/sci.h> +#include <firmware/imx/sci/sci.h> #endif #define SEC_SECURE_RAM_BASE 0x31800000UL
board/advantech/imx8qm_rom7720_a1/imx8qm_rom7720_a1.c +1 -1
@@ -15,7 +15,7 @@#include <asm/io.h> #include <asm/gpio.h> #include <asm/arch/clock.h> -#include <asm/arch/sci/sci.h> +#include <firmware/imx/sci/sci.h> #include <asm/arch/imx8-pins.h> #include <asm/arch/iomux.h> #include <asm/arch/sys_proto.h>
board/advantech/imx8qm_rom7720_a1/spl.c +1 -1
@@ -14,7 +14,7 @@#include <asm/io.h> #include <asm/gpio.h> #include <asm/arch/clock.h> -#include <asm/arch/sci/sci.h> +#include <firmware/imx/sci/sci.h> #include <asm/arch/imx8-pins.h> #include <asm/arch/iomux.h>
board/congatec/cgtqmx8/cgtqmx8.c +1 -1
@@ -12,7 +12,7 @@#include <asm/io.h> #include <asm/gpio.h> #include <asm/arch/clock.h> -#include <asm/arch/sci/sci.h> +#include <firmware/imx/sci/sci.h> #include <asm/arch/imx8-pins.h> #include <usb.h> #include <asm/arch/iomux.h>
board/freescale/imx8qm_mek/imx8qm_mek.c +1 -1
@@ -14,7 +14,7 @@#include <asm/io.h> #include <asm/gpio.h> #include <asm/arch/clock.h> -#include <asm/arch/sci/sci.h> +#include <firmware/imx/sci/sci.h> #include <asm/arch/imx8-pins.h> #include <asm/arch/iomux.h> #include <asm/arch/sys_proto.h>
board/freescale/imx8qxp_mek/imx8qxp_mek.c +1 -1
@@ -16,7 +16,7 @@#include <asm/io.h> #include <asm/gpio.h> #include <asm/arch/clock.h> -#include <asm/arch/sci/sci.h> +#include <firmware/imx/sci/sci.h> #include <asm/arch/imx8-pins.h> #include <asm/arch/snvs_security_sc.h> #include <asm/arch/iomux.h>
board/freescale/imx8qxp_mek/spl.c +1 -1
@@ -18,7 +18,7 @@#include <dm/lists.h> #include <asm/io.h> #include <asm/gpio.h> -#include <asm/arch/sci/sci.h> +#include <firmware/imx/sci/sci.h> #include <asm/arch/imx8-pins.h> #include <asm/arch/iomux.h> #include <asm/arch/sys_proto.h>
board/siemens/capricorn/board.c +1 -1
@@ -22,7 +22,7 @@#include <asm/gpio.h> #include <asm/arch/imx8-pins.h> #include <asm/arch/iomux.h> -#include <asm/arch/sci/sci.h> +#include <firmware/imx/sci/sci.h> #include <asm/arch/sys_proto.h> #ifndef CONFIG_SPL #include <asm/arch-imx8/clock.h>
board/toradex/apalis-imx8/apalis-imx8.c +1 -1
@@ -11,8 +11,8 @@#include <asm/arch/clock.h> #include <asm/arch/imx8-pins.h> #include <asm/arch/iomux.h> -#include <asm/arch/sci/sci.h> #include <asm/arch/snvs_security_sc.h> +#include <firmware/imx/sci/sci.h> #include <asm/arch/sys_proto.h> #include <asm/gpio.h> #include <asm/io.h>
board/toradex/colibri-imx8x/colibri-imx8x.c +1 -1
@@ -11,7 +11,7 @@#include <asm/arch/clock.h> #include <asm/arch/imx8-pins.h> #include <asm/arch/iomux.h> -#include <asm/arch/sci/sci.h> +#include <firmware/imx/sci/sci.h> #include <asm/arch/sys_proto.h> #include <asm/gpio.h> #include <asm/io.h>
drivers/clk/imx/clk-imx8.c +1 -1
@@ -9,7 +9,7 @@#include <dm.h> #include <log.h> #include <malloc.h> -#include <asm/arch/sci/sci.h> +#include <firmware/imx/sci/sci.h> #include <asm/arch/clock.h> #include <dt-bindings/clock/imx8qxp-clock.h> #include <dt-bindings/soc/imx_rsrc.h>
drivers/clk/imx/clk-imx8qm.c +1 -1
@@ -8,7 +8,7 @@#include <clk-uclass.h> #include <dm.h> #include <log.h> -#include <asm/arch/sci/sci.h> +#include <firmware/imx/sci/sci.h> #include <asm/arch/clock.h> #include <dt-bindings/clock/imx8qm-clock.h> #include <dt-bindings/soc/imx_rsrc.h>
drivers/clk/imx/clk-imx8qxp.c +1 -1
@@ -8,7 +8,7 @@#include <clk-uclass.h> #include <dm.h> #include <log.h> -#include <asm/arch/sci/sci.h> +#include <firmware/imx/sci/sci.h> #include <asm/arch/clock.h> #include <dt-bindings/clock/imx8qxp-clock.h> #include <dt-bindings/soc/imx_rsrc.h>
drivers/cpu/imx8_cpu.c +1 -1
@@ -9,7 +9,7 @@#include <thermal.h> #include <asm/global_data.h> #include <asm/system.h> -#include <asm/arch/sci/sci.h> +#include <firmware/imx/sci/sci.h> #include <asm/arch/sys_proto.h> #include <asm/arch-imx/cpu.h> #include <asm/armv8/cpu.h>
drivers/cpu/imx9_cpu.c new file +224 -0
224 lines not on this page · raw message
drivers/misc/imx8/fuse.c +1 -1
@@ -7,7 +7,7 @@#include <console.h> #include <errno.h> #include <fuse.h> -#include <asm/arch/sci/sci.h> +#include <firmware/imx/sci/sci.h> #include <asm/arch/sys_proto.h> #include <asm/global_data.h> #include <linux/arm-smccc.h>
drivers/misc/imx8/scu.c +1 -1
@@ -13,7 +13,7 @@#include <dm/lists.h> #include <dm/root.h> #include <dm/device-internal.h> -#include <asm/arch/sci/sci.h> +#include <firmware/imx/sci/sci.h> #include <linux/bitops.h> #include <linux/iopoll.h> #include <misc.h>
drivers/misc/imx8/scu_api.c +1 -1
@@ -11,7 +11,7 @@#include <asm/global_data.h> #include <asm/io.h> #include <dm.h> -#include <asm/arch/sci/sci.h> +#include <firmware/imx/sci/sci.h> #include <misc.h> DECLARE_GLOBAL_DATA_PTR ;
drivers/pinctrl/nxp/pinctrl-scu.c +1 -1
@@ -7,7 +7,7 @@#include <errno.h> #include <linux/bitops.h> #include <asm/io.h> -#include <asm/arch/sci/sci.h> +#include <firmware/imx/sci/sci.h> #include <misc.h> #include "pinctrl-imx.h"
drivers/power/domain/imx8-power-domain-legacy.c +1 -1
@@ -14,7 +14,7 @@#include <dm/device-internal.h> #include <dm/device.h> #include <dm/uclass-internal.h> -#include <asm/arch/sci/sci.h> +#include <firmware/imx/sci/sci.h> DECLARE_GLOBAL_DATA_PTR ;
drivers/power/domain/imx8-power-domain.c +1 -1
@@ -10,7 +10,7 @@#include <malloc.h> #include <power-domain-uclass.h> #include <asm/arch/power-domain.h> -#include <asm/arch/sci/sci.h> +#include <firmware/imx/sci/sci.h> static int imx8_power_domain_on (struct power_domain *power_domain) {
drivers/thermal/imx_scu_thermal.c +1 -1
@@ -12,7 +12,7 @@#include <asm/global_data.h> #include <dm/device-internal.h> #include <dm/device.h> -#include <asm/arch/sci/sci.h> +#include <firmware/imx/sci/sci.h> #include <linux/delay.h> #include <linux/libfdt.h>
include/firmware/imx/sci/rpc.h renamed from arch/arm/include/asm/arch-imx8/sci/rpc.h +0 -0
include/firmware/imx/sci/sci.h renamed from arch/arm/include/asm/arch-imx8/sci/sci.h +7 -7
@@ -7,13 +7,13 @@#define _SC_SCI_H#include <log.h> -#include <asm/arch/sci/types.h> -#include <asm/arch/sci/svc/misc/api.h> -#include <asm/arch/sci/svc/pad/api.h> -#include <asm/arch/sci/svc/pm/api.h> -#include <asm/arch/sci/svc/rm/api.h> -#include <asm/arch/sci/svc/seco/api.h> -#include <asm/arch/sci/rpc.h> +#include <firmware/imx/sci/types.h> +#include <firmware/imx/sci/svc/misc/api.h> +#include <firmware/imx/sci/svc/pad/api.h> +#include <firmware/imx/sci/svc/pm/api.h> +#include <firmware/imx/sci/svc/rm/api.h> +#include <firmware/imx/sci/svc/seco/api.h> +#include <firmware/imx/sci/rpc.h> #include <dt-bindings/soc/imx_rsrc.h> #include <linux/errno.h>
include/firmware/imx/sci/svc/misc/api.h renamed from arch/arm/include/asm/arch-imx8/sci/svc/misc/api.h +0 -0
include/firmware/imx/sci/svc/pad/api.h renamed from arch/arm/include/asm/arch-imx8/sci/svc/pad/api.h +0 -0
include/firmware/imx/sci/svc/pm/api.h renamed from arch/arm/include/asm/arch-imx8/sci/svc/pm/api.h +0 -0
include/firmware/imx/sci/svc/rm/api.h renamed from arch/arm/include/asm/arch-imx8/sci/svc/rm/api.h +1 -1
@@ -6,7 +6,7 @@#ifndef SC_RM_API_H #define SC_RM_API_H -#include <asm/arch/sci/types.h> +#include <firmware/imx/sci/types.h> /* Defines for type widths */ #define SC_RM_PARTITION_W 5U/* Width of sc_rm_pt_t */
include/firmware/imx/sci/svc/seco/api.h renamed from arch/arm/include/asm/arch-imx8/sci/svc/seco/api.h +1 -1
@@ -8,7 +8,7 @@/* Includes */ -#include <asm/arch/sci/types.h> +#include <firmware/imx/sci/types.h> /* Defines */ #define SC_SECO_AUTH_CONTAINER 0U/* Authenticate container */
include/firmware/imx/sci/types.h renamed from arch/arm/include/asm/arch-imx8/sci/types.h +0 -0
Signature · 1 line
2.40.0
PATCH 4/42 imx: move imx8 sci header file to include/firmware/imx
Quoted 5 lines
From: Peng Fan <[email protected]>
Move imx8 sci header file toinclude/firmware/imx, then we could use build macro to reuse some i.MX8 drivers for i.MX9, such asdrivers/cpu/imx8_cpu.c.Signed-off-by Peng Fan <[email protected]>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, 82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: [email protected] =====================================================================
PATCH 5/42 imx: firmware: sci: add inline functions when IMX8 not enabled
In reply to Peng Fan (OSS)From: Peng Fan <[email protected]>
Since we might reuse some drivers for other platforms, while the drivers have sci firmware api, so to avoid build failure add inline functions
--- include/firmware/imx/sci/sci.h | 241 +++++++++++++++++++++++++++++++++ 1 file changed, 241 insertions(+)
include/firmware/imx/sci/sci.h +241 -0
@@ -57,6 +57,7 @@ static inline int sc_err_to_linux(sc_err_t err)return ret; } +#if IS_ENABLED (CONFIG_IMX8 )/* PM API*/ int sc_pm_set_resource_power_mode (sc_ipc_t ipc,sc_rsrc_t resource,sc_pm_power_mode_t mode);
@@ -134,5 +135,245 @@ int sc_seco_secvio_dgo_config(sc_ipc_t ipc, u8 id, u8 access, u32 *data);int sc_seco_secvio_config (sc_ipc_t ipc,u8 id,u8 access,u32 *data0,u32 *data1,u32 *data2,u32 *data3,u32 *data4,u8 size); +#else +/* PM API*/ +static inline int sc_pm_set_resource_power_mode (sc_ipc_t ipc,sc_rsrc_t resource, +sc_pm_power_mode_t mode) +{ +return -EOPNOTSUPP ; +} + +static inline int sc_pm_get_resource_power_mode (sc_ipc_t ipc,sc_rsrc_t resource, +sc_pm_power_mode_t *mode) +{ +return -EOPNOTSUPP ; +} + +static inline int sc_pm_set_clock_rate (sc_ipc_t ipc,sc_rsrc_t resource,sc_pm_clk_t clk, +sc_pm_clock_rate_t *rate) +{ +return -EOPNOTSUPP ; +} + +static inline int sc_pm_get_clock_rate (sc_ipc_t ipc,sc_rsrc_t resource,sc_pm_clk_t clk, +sc_pm_clock_rate_t *rate) +{ +return -EOPNOTSUPP ; +} + +static inline int sc_pm_clock_enable (sc_ipc_t ipc,sc_rsrc_t resource,sc_pm_clk_t clk, +sc_bool_t enable,sc_bool_t autog) +{ +return -EOPNOTSUPP ; +} + +static inline int sc_pm_set_clock_parent (sc_ipc_t ipc,sc_rsrc_t resource,sc_pm_clk_t clk, +sc_pm_clk_parent_t parent) +{ +return -EOPNOTSUPP ; +} + +static inline int sc_pm_cpu_start (sc_ipc_t ipc,sc_rsrc_t resource,sc_bool_t enable, +sc_faddr_t address) +{ +return -EOPNOTSUPP ; +} + +static inline sc_bool_t sc_pm_is_partition_started (sc_ipc_t ipc,sc_rm_pt_t pt) +{ +return false; +} + +static inline int sc_pm_resource_reset (sc_ipc_t ipc,sc_rsrc_t resource) +{ +return -EOPNOTSUPP ; +} + +/* MISC API */ +static inline int sc_misc_set_control (sc_ipc_t ipc,sc_rsrc_t resource,sc_ctrl_t ctrl,u32 val) +{ +return -EOPNOTSUPP ; +} + +static inline int sc_misc_get_control (sc_ipc_t ipc,sc_rsrc_t resource,sc_ctrl_t ctrl,u32 *val) +{ +return -EOPNOTSUPP ; +} + +static inline void sc_misc_get_boot_dev (sc_ipc_t ipc,sc_rsrc_t *boot_dev) +{ +} + +static inline void sc_misc_boot_status (sc_ipc_t ipc,sc_misc_boot_status_t status) +{ +} + +static inline int sc_misc_get_boot_container (sc_ipc_t ipc,u8 *idx) +{ +return -EOPNOTSUPP ; +} + +static inline void sc_misc_build_info (sc_ipc_t ipc,u32 *build,u32 *commit) +{ +} + +static inline int sc_misc_otp_fuse_read (sc_ipc_t ipc,u32 word,u32 *val) +{ +return -EOPNOTSUPP ; +} + +static inline int sc_misc_get_temp (sc_ipc_t ipc,sc_rsrc_t resource,sc_misc_temp_t temp, +s16 *celsius,s8 *tenths) +{ +return -EOPNOTSUPP ; +} + +/* RM API */ +static inline sc_bool_t sc_rm_is_memreg_owned (sc_ipc_t ipc,sc_rm_mr_t mr) +{ +return true; +} + +static inline int sc_rm_find_memreg (sc_ipc_t ipc,sc_rm_mr_t *mr,sc_faddr_t addr_start, +sc_faddr_t addr_end) +{ +return -EOPNOTSUPP ; +} + +static inline int sc_rm_set_memreg_permissions (sc_ipc_t ipc,sc_rm_mr_t mr,sc_rm_pt_t pt, +sc_rm_perm_t perm) +{ +return -EOPNOTSUPP ; +} + +static inline int sc_rm_get_memreg_info (sc_ipc_t ipc,sc_rm_mr_t mr,sc_faddr_t *addr_start, +sc_faddr_t *addr_end) +{ +return -EOPNOTSUPP ; +} + +static inline sc_bool_t sc_rm_is_resource_owned (sc_ipc_t ipc,sc_rsrc_t resource) +{ +return true; +} + +static inline int sc_rm_partition_alloc (sc_ipc_t ipc,sc_rm_pt_t *pt,sc_bool_t secure, +sc_bool_t isolated,sc_bool_t restricted, +sc_bool_t grant,sc_bool_t coherent) +{ +return -EOPNOTSUPP ; +} + +static inline int sc_rm_partition_free (sc_ipc_t ipc,sc_rm_pt_t pt) +{ +return -EOPNOTSUPP ; +} + +static inline int sc_rm_get_partition (sc_ipc_t ipc,sc_rm_pt_t *pt) +{ +return -EOPNOTSUPP ; +} + +static inline int sc_rm_set_parent (sc_ipc_t ipc,sc_rm_pt_t pt,sc_rm_pt_t pt_parent) +{ +return -EOPNOTSUPP ; +} + +static inline int sc_rm_assign_resource (sc_ipc_t ipc,sc_rm_pt_t pt,sc_rsrc_t resource) +{ +return -EOPNOTSUPP ; +} + +static inline int sc_rm_assign_pad (sc_ipc_t ipc,sc_rm_pt_t pt,sc_pad_t pad) +{ +return -EOPNOTSUPP ; +} + +static inline sc_bool_t sc_rm_is_pad_owned (sc_ipc_t ipc,sc_pad_t pad) +{ +return true; +} + +static inline int sc_rm_get_resource_owner (sc_ipc_t ipc,sc_rsrc_t resource,sc_rm_pt_t *pt) +{ +return -EOPNOTSUPP ; +} + +/* PAD API */ +static inline int sc_pad_set (sc_ipc_t ipc,sc_pad_t pad,u32 val) +{ +return -EOPNOTSUPP ; +} + +static inline int sc_pad_get (sc_ipc_t ipc,sc_pad_t pad,uint32_t *val) +{ +return -EOPNOTSUPP ; +} + +/* SMMU API */ +static inline int sc_rm_set_master_sid (sc_ipc_t ipc,sc_rsrc_t resource,sc_rm_sid_t sid) +{ +return -EOPNOTSUPP ; +} + +/* SECO API */ +static inline int sc_seco_authenticate (sc_ipc_t ipc,sc_seco_auth_cmd_t cmd,sc_faddr_t addr) +{ +return -EOPNOTSUPP ; +} + +static inline int sc_seco_forward_lifecycle (sc_ipc_t ipc,u32 change) +{ +return -EOPNOTSUPP ; +} + +static inline int sc_seco_chip_info (sc_ipc_t ipc,u16 *lc,u16 *monotonic,u32 *uid_l,u32 *uid_h) +{ +return -EOPNOTSUPP ; +} + +void sc_seco_build_info (sc_ipc_t ipc,u32 *version,u32 *commit) +{ +} + +static inline int sc_seco_get_event (sc_ipc_t ipc,u8 idx,u32 *event) +{ +return -EOPNOTSUPP ; +} + +static inline int sc_seco_gen_key_blob (sc_ipc_t ipc,u32 id,sc_faddr_t load_addr, +sc_faddr_t export_addr,u16 max_size) +{ +return -EOPNOTSUPP ; +} + +static inline int sc_seco_get_mp_key (sc_ipc_t ipc,sc_faddr_t dst_addr,u16 dst_size) +{ +return -EOPNOTSUPP ; +} + +static inline int sc_seco_update_mpmr (sc_ipc_t ipc,sc_faddr_t addr,u8 size,u8 lock) +{ +return -EOPNOTSUPP ; +} + +static inline int sc_seco_get_mp_sign (sc_ipc_t ipc,sc_faddr_t msg_addr,u16 msg_size, +sc_faddr_t dst_addr,u16 dst_size) +{ +return -EOPNOTSUPP ; +} + +static inline int sc_seco_secvio_dgo_config (sc_ipc_t ipc,u8 id,u8 access,u32 *data) +{ +return -EOPNOTSUPP ; +} + +static inline int sc_seco_secvio_config (sc_ipc_t ipc,u8 id,u8 access,u32 *data0,u32 *data1, +u32 *data2,u32 *data3,u32 *data4,u8 size) +{ +return -EOPNOTSUPP ; +} + +#endif #endif
Signature · 1 line
2.40.0
PATCH 5/42 imx: firmware: sci: add inline functions when IMX8 not enabled
Quoted 4 lines
From: Peng Fan <[email protected]>
Since we might reuse some drivers for other platforms, while the drivers have sci firmware api, so to avoid build failure add inline functionsSigned-off-by Peng Fan <[email protected]>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, 82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: [email protected] =====================================================================
PATCH 6/42 imx: imx8_cpu: use static for local functions
In reply to Peng Fan (OSS)From: Peng Fan <[email protected]>
For local functions, use static for function.
--- drivers/cpu/imx8_cpu.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/cpu/imx8_cpu.c +3 -3
@@ -27,7 +27,7 @@ struct cpu_imx_plat {u32 mpidr; }; -const char *get_imx8_type (u32 imxtype) +static const char *get_imx8_type (u32 imxtype) {switch (imxtype) {case MXC_CPU_IMX8QXP :
@@ -40,7 +40,7 @@ const char *get_imx8_type(u32 imxtype) } } -const char *get_imx8_rev (u32 rev) +static const char *get_imx8_rev (u32 rev) {switch (rev) {case CHIP_REV_A :
@@ -101,7 +101,7 @@ static int cpu_imx_get_temp(struct cpu_imx_plat *plat) }#endif -int cpu_imx_get_desc (const struct udevice *dev,char *buf,int size) +static int cpu_imx_get_desc (const struct udevice *dev,char *buf,int size) {struct cpu_imx_plat *plat =dev_get_plat (dev);int ret, temp;
Signature · 1 line
2.40.0
PATCH 6/42 imx: imx8_cpu: use static for local functions
Quoted 3 lines
From: Peng Fan <[email protected]>
For local functions, use static for function.Signed-off-by Peng Fan <[email protected]>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, 82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: [email protected] =====================================================================
PATCH 7/42 imx: imx8_cpu: support i.MX9
In reply to Peng Fan (OSS)From: Peng Fan <[email protected]>
Add CPU_IMX Kconfig
Support imx8_cpu driver for i.MX9
--- drivers/cpu/Kconfig | 6 +++ drivers/cpu/Makefile | 1 + drivers/cpu/imx8_cpu.c | 83 ++++++++++++++++++++++++++++-------------- 3 files changed, 62 insertions(+), 28 deletions(-)
drivers/cpu/Kconfig +6 -0
@@ -7,6 +7,12 @@ config CPU they can work correctly in the OS. This provides a framework for finding out information about available CPUs and making changes. +config CPU_IMX + bool "Enable i.MX CPU driver" + depends on CPU && ARM64 + help + Support CPU cores for SoCs of the i.MX series. + config CPU_MPC83XX bool "Enable MPC83xx CPU driver" depends on CPU && MPC83xx
drivers/cpu/Makefile +1 -0
@@ -10,6 +10,7 @@ obj-$(CONFIG_ARCH_BMIPS) += bmips_cpu.o obj-$(CONFIG_ARCH_IMX8) += imx8_cpu.o obj-$(CONFIG_ARCH_AT91) += at91_cpu.o obj-$(CONFIG_ARCH_MEDIATEK) += mtk_cpu.o +obj-$(CONFIG_CPU_IMX) += imx8_cpu.o obj-$(CONFIG_CPU_MPC83XX) += mpc83xx_cpu.o obj-$(CONFIG_CPU_RISCV) += riscv_cpu.o obj-$(CONFIG_CPU_MICROBLAZE) += microblaze_cpu.o
drivers/cpu/imx8_cpu.c +55 -28
160 lines not on this page · raw message
Signature · 1 line
2.40.0
PATCH 7/42 imx: imx8_cpu: support i.MX9
Quoted 4 lines
From: Peng Fan <[email protected]>
AddCPU_IMXKconfig
Supportimx8_cpudriver for i.MX9Signed-off-by Peng Fan <[email protected]>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, 82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: [email protected] =====================================================================
PATCH 8/42 imx: imx8_cpu: support get temperature for i.MX9
In reply to Peng Fan (OSS)From: Peng Fan <[email protected]>
Use CONFIG_DM_THERMAL to make the temperature function could be reused by i.MX8 and i.MX9
--- drivers/cpu/imx8_cpu.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-)
drivers/cpu/imx8_cpu.c +8 -4
@@ -89,15 +89,19 @@ static void set_core_data(struct udevice *dev) } } -#if IS_ENABLED (CONFIG_IMX_SCU_THERMAL ) +#if IS_ENABLED (CONFIG_DM_THERMAL )static int cpu_imx_get_temp (struct cpu_imx_plat *plat) {struct udevice *thermal_dev;int cpu_tmp, ret;int idx =1 ;/* use "cpu-thermal0" device */ -if (plat->cpu_rsrc ==SC_R_A72 ) - idx =2 ;/* use "cpu-thermal1" device */ +if (IS_ENABLED (CONFIG_IMX8 )) { +if (plat->cpu_rsrc ==SC_R_A72 ) + idx =2 ;/* use "cpu-thermal1" device */ + }else { + idx =1 ; + } ret =uclass_get_device (UCLASS_THERMAL , idx, &thermal_dev);if (!ret) {
@@ -128,7 +132,7 @@ static int cpu_imx_get_desc(const struct udevice *dev, char *buf, int size) ret =snprintf (buf, size,"NXP i.MX%s Rev%s %s at %u MHz" , plat->type, plat->rev, plat->name, plat->freq_mhz); -if (IS_ENABLED (CONFIG_IMX_SCU_THERMAL )) { +if (IS_ENABLED (CONFIG_DM_THERMAL )) { temp =cpu_imx_get_temp (plat); buf = buf + ret; size = size - ret;
Signature · 1 line
2.40.0
PATCH 8/42 imx: imx8_cpu: support get temperature for i.MX9
Quoted 4 lines
From: Peng Fan <[email protected]>
UseCONFIG_DM_THERMALto make the temperature function could be reused by i.MX8 and i.MX9Signed-off-by Peng Fan <[email protected]>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, 82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: [email protected] =====================================================================
PATCH 9/42 imx: imx8_cpu: print cpu grade temperature
In reply to Peng Fan (OSS)From: Peng Fan <[email protected]>
Support print out cpu grade temperature
--- drivers/cpu/imx8_cpu.c | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+)
drivers/cpu/imx8_cpu.c +29 -0
@@ -13,6 +13,7 @@#include <asm/arch/sys_proto.h> #include <asm/arch-imx/cpu.h> #include <asm/armv8/cpu.h> +#include <imx_thermal.h> #include <linux/bitops.h> #include <linux/clk-provider.h>
@@ -121,10 +122,17 @@ static int cpu_imx_get_temp(struct cpu_imx_plat *plat) }#endif +__weak u32 get_cpu_temp_grade (int *minc,int *maxc) +{ +return 0 ; +} +static int cpu_imx_get_desc (const struct udevice *dev,char *buf,int size) {struct cpu_imx_plat *plat =dev_get_plat (dev); +const char *grade;int ret, temp; +int minc, maxc;if (size <100 )return -ENOSPC ;
@@ -132,6 +140,27 @@ static int cpu_imx_get_desc(const struct udevice *dev, char *buf, int size) ret =snprintf (buf, size,"NXP i.MX%s Rev%s %s at %u MHz" , plat->type, plat->rev, plat->name, plat->freq_mhz); +if (IS_ENABLED (CONFIG_IMX9 )) { +switch (get_cpu_temp_grade (&minc, &maxc)) { +case TEMP_AUTOMOTIVE : + grade ="Automotive temperature grade " ; +break ; +case TEMP_INDUSTRIAL : + grade ="Industrial temperature grade " ; +break ; +case TEMP_EXTCOMMERCIAL : + grade ="Extended Consumer temperature grade " ; +break ; +default : + grade ="Consumer temperature grade " ; +break ; + } + + buf = buf + ret; + size = size - ret; + ret =snprintf (buf, size,"\nCPU: %s (%dC to %dC)" , grade, minc, maxc); + } +if (IS_ENABLED (CONFIG_DM_THERMAL )) { temp =cpu_imx_get_temp (plat); buf = buf + ret;
Signature · 1 line
2.40.0
PATCH 9/42 imx: imx8_cpu: print cpu grade temperature
Quoted 3 lines
From: Peng Fan <[email protected]>
Support print out cpu grade temperatureSigned-off-by Peng Fan <[email protected]>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, 82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: [email protected] =====================================================================
PATCH 10/42 imx9: configure M33 systick to 24M
In reply to Peng Fan (OSS)From: Peng Fan <[email protected]>
The M33 systick should be 24M per reference mannual, so correct it.
--- arch/arm/mach-imx/imx9/clock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/mach-imx/imx9/clock.c +2 -2
@@ -700,8 +700,8 @@ int clock_init(void)ccm_clk_root_cfg (WAKEUP_AXI_CLK_ROOT ,SYS_PLL_PFD2 ,2 );/* SWO TRACE to 133M */ ccm_clk_root_cfg (SWO_TRACE_CLK_ROOT ,SYS_PLL_PFD1_DIV2 ,3 ); -/* M33 systetick to 133M */ -ccm_clk_root_cfg (M33_SYSTICK_CLK_ROOT ,SYS_PLL_PFD1_DIV2 ,3 ); +/* M33 systetick to 24M */ +ccm_clk_root_cfg (M33_SYSTICK_CLK_ROOT ,OSC_24M_CLK ,1 );/* NIC to 400M */ ccm_clk_root_cfg (NIC_CLK_ROOT ,SYS_PLL_PFD1 ,2 );/* NIC_APB to 133M */
Signature · 1 line
2.40.0
PATCH 10/42 imx9: configure M33 systick to 24M
Quoted 3 lines
From: Peng Fan <[email protected]>
The M33 systick should be 24M per reference mannual, so correct it.Signed-off-by Peng Fan <[email protected]>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, 82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: [email protected] =====================================================================
PATCH 11/42 imx9: add more PLL settings
In reply to Peng Fan (OSS)From: Peng Fan <[email protected]>
Add more PLL settings for A55 and Display
--- arch/arm/mach-imx/imx9/clock.c | 4 ++++ 1 file changed, 4 insertions(+)
arch/arm/mach-imx/imx9/clock.c +4 -0
@@ -26,6 +26,7 @@ static struct anatop_reg *ana_regs = (struct anatop_reg *)ANATOP_BASE_ADDR;static struct imx_intpll_rate_table imx9_intpll_tbl[] = {INT_PLL_RATE (1800000000U ,1 ,150 ,2 ),/* 1.8Ghz */ INT_PLL_RATE (1700000000U ,1 ,141 ,2 ),/* 1.7Ghz */ +INT_PLL_RATE (1500000000U ,1 ,125 ,2 ),/* 1.5Ghz */ INT_PLL_RATE (1400000000U ,1 ,175 ,3 ),/* 1.4Ghz */ INT_PLL_RATE (1000000000U ,1 ,166 ,4 ),/* 1000Mhz */ INT_PLL_RATE (900000000U ,1 ,150 ,4 ),/* 900Mhz */
@@ -35,8 +36,11 @@ static struct imx_fracpll_rate_table imx9_fracpll_tbl[] = {FRAC_PLL_RATE (1000000000U ,1 ,166 ,4 ,2 ,3 ),/* 1000Mhz */ FRAC_PLL_RATE (933000000U ,1 ,155 ,4 ,1 ,2 ),/* 933Mhz */ FRAC_PLL_RATE (700000000U ,1 ,145 ,5 ,5 ,6 ),/* 700Mhz */ +FRAC_PLL_RATE (484000000U ,1 ,121 ,6 ,0 ,1 ), +FRAC_PLL_RATE (445333333U ,1 ,167 ,9 ,0 ,1 ),FRAC_PLL_RATE (466000000U ,1 ,155 ,8 ,1 ,3 ),/* 466Mhz */ FRAC_PLL_RATE (400000000U ,1 ,200 ,12 ,0 ,1 ),/* 400Mhz */ + FRAC_PLL_RATE(300000000U, 1, 150, 12, 0, 1), };/* return in khz */
Signature · 1 line
2.40.0
PATCH 11/42 imx9: add more PLL settings
Quoted 3 lines
From: Peng Fan <[email protected]>
Add more PLL settings for A55 and DisplaySigned-off-by Peng Fan <[email protected]>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, 82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: [email protected] =====================================================================
PATCH 12/42 imx9: use parameter freq when set_arm_clk
In reply to Peng Fan (OSS)From: Peng Fan <[email protected]>
The freq parameter was ignored, should use it when configuring ARM PLL
--- arch/arm/mach-imx/imx9/clock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-imx/imx9/clock.c +1 -1
@@ -674,7 +674,7 @@ void set_arm_clk(ulong freq) {/* Increase ARM clock to 1.7Ghz */ ccm_shared_gpr_set (SHARED_GPR_A55_CLK ,SHARED_GPR_A55_CLK_SEL_CCM ); -configure_intpll (ARM_PLL_CLK ,1700000000 ); +configure_intpll (ARM_PLL_CLK , freq);ccm_shared_gpr_set (SHARED_GPR_A55_CLK ,SHARED_GPR_A55_CLK_SEL_PLL ); }
Signature · 1 line
2.40.0
PATCH 12/42 imx9: use parameter freq when set_arm_clk
Quoted 3 lines
From: Peng Fan <[email protected]>
The freq parameter was ignored, should use it when configuring ARM PLLSigned-off-by Peng Fan <[email protected]>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, 82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: [email protected] =====================================================================
PATCH 13/42 imx9: correct getting LPI2C clk
In reply to Peng Fan (OSS)From: Peng Fan <[email protected]>
LPI2C_CLK_ROOT should be used instead of LPUART_CLK_ROOT for i2c
--- arch/arm/mach-imx/imx9/clock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-imx/imx9/clock.c +1 -1
@@ -574,7 +574,7 @@ u32 imx_get_i2cclk(u32 i2c_num)if (i2c_num >7 )return -EINVAL ; -return ccm_clk_root_get_rate (LPUART1_CLK_ROOT + i2c_num); +return ccm_clk_root_get_rate (LPI2C1_CLK_ROOT + i2c_num); }u32 get_lpuart_clk (void )
Signature · 1 line
2.40.0
PATCH 13/42 imx9: correct getting LPI2C clk
Quoted 3 lines
From: Peng Fan <[email protected]>
LPI2C_CLK_ROOTshould be used instead ofLPUART_CLK_ROOTfor i2cSigned-off-by Peng Fan <[email protected]>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, 82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: [email protected] =====================================================================
PATCH 14/42 imx9: simplify clk settings
In reply to Peng Fan (OSS)From: Peng Fan <[email protected]>
Simplify the clk root settings with an array
--- arch/arm/include/asm/arch-imx9/clock.h | 6 ++++ arch/arm/mach-imx/imx9/clock.c | 38 +++++++++++++++----------- 2 files changed, 28 insertions(+), 16 deletions(-)
arch/arm/include/asm/arch-imx9/clock.h +6 -0
@@ -205,6 +205,12 @@ struct clk_root_map {u32 mux_type; }; +struct imx_clk_setting { +u32 clk_root; +enum ccm_clk_src src; +u32 div; +}; +int clock_init (void );u32 get_clk_src_rate (enum ccm_clk_src source);u32 get_lpuart_clk (void );
arch/arm/mach-imx/imx9/clock.c +22 -16
@@ -680,36 +680,42 @@ void set_arm_clk(ulong freq)#endif -int clock_init (void ) -{ -int i; - +struct imx_clk_setting imx_clk_settings[] = {/* Set A55 periphal to 333M */ -ccm_clk_root_cfg (ARM_A55_PERIPH_CLK_ROOT ,SYS_PLL_PFD0 ,3 ); + {ARM_A55_PERIPH_CLK_ROOT ,SYS_PLL_PFD0 ,3 },/* Set A55 mtr bus to 133M */ -ccm_clk_root_cfg (ARM_A55_MTR_BUS_CLK_ROOT ,SYS_PLL_PFD1_DIV2 ,3 ); - + {ARM_A55_MTR_BUS_CLK_ROOT ,SYS_PLL_PFD1_DIV2 ,3 },/* Sentinel to 200M */ -ccm_clk_root_cfg (SENTINEL_CLK_ROOT ,SYS_PLL_PFD1_DIV2 ,2 ); + {SENTINEL_CLK_ROOT ,SYS_PLL_PFD1_DIV2 ,2 },/* Bus_wakeup to 133M */ -ccm_clk_root_cfg (BUS_WAKEUP_CLK_ROOT ,SYS_PLL_PFD1_DIV2 ,3 ); + {BUS_WAKEUP_CLK_ROOT ,SYS_PLL_PFD1_DIV2 ,3 },/* Bus_AON to 133M */ -ccm_clk_root_cfg (BUS_AON_CLK_ROOT ,SYS_PLL_PFD1_DIV2 ,3 ); + {BUS_AON_CLK_ROOT ,SYS_PLL_PFD1_DIV2 ,3 },/* M33 to 200M */ -ccm_clk_root_cfg (M33_CLK_ROOT ,SYS_PLL_PFD1_DIV2 ,2 ); + {M33_CLK_ROOT ,SYS_PLL_PFD1_DIV2 ,2 },/* * WAKEUP_AXI to 312.5M, because of FEC only can support to 320M for * generating MII clock at 2.5M */ -ccm_clk_root_cfg (WAKEUP_AXI_CLK_ROOT ,SYS_PLL_PFD2 ,2 ); + {WAKEUP_AXI_CLK_ROOT ,SYS_PLL_PFD2 ,2 },/* SWO TRACE to 133M */ -ccm_clk_root_cfg (SWO_TRACE_CLK_ROOT ,SYS_PLL_PFD1_DIV2 ,3 ); + {SWO_TRACE_CLK_ROOT ,SYS_PLL_PFD1_DIV2 ,3 },/* M33 systetick to 24M */ -ccm_clk_root_cfg (M33_SYSTICK_CLK_ROOT ,OSC_24M_CLK ,1 ); + {M33_SYSTICK_CLK_ROOT ,OSC_24M_CLK ,1 },/* NIC to 400M */ -ccm_clk_root_cfg (NIC_CLK_ROOT ,SYS_PLL_PFD1 ,2 ); + {NIC_CLK_ROOT ,SYS_PLL_PFD1 ,2 },/* NIC_APB to 133M */ -ccm_clk_root_cfg (NIC_APB_CLK_ROOT ,SYS_PLL_PFD1_DIV2 ,3 ); + {NIC_APB_CLK_ROOT ,SYS_PLL_PFD1_DIV2 ,3 } +}; + +int clock_init (void ) +{ +int i; + +for (i =0 ; i <ARRAY_SIZE (imx_clk_settings); i++) { +ccm_clk_root_cfg (imx_clk_settings[i].clk_root, + imx_clk_settings[i].src, imx_clk_settings[i].div); + }/* allow for non-secure access */ for (i =0 ; i <OSCPLL_END ; i++)
Signature · 1 line
2.40.0
PATCH 14/42 imx9: simplify clk settings
Quoted 3 lines
From: Peng Fan <[email protected]>
Simplify the clk root settings with an arraySigned-off-by Peng Fan <[email protected]>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, 82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: [email protected] =====================================================================
PATCH 15/42 imx9: cut off OPTEE memory region from U-Boot
In reply to Peng Fan (OSS)From: Peng Fan <[email protected]>
OPTEE memory region is set secure access only in ATF with configuration to TRDC, and need to remove it from U-Boot, otherwise U-Boot and Kernel may crash when accessing the memory
--- arch/arm/mach-imx/imx9/soc.c | 149 ++++++++++++++++++++++++++++++++++- 1 file changed, 148 insertions(+), 1 deletion(-)
arch/arm/mach-imx/imx9/soc.c +148 -1
@@ -180,13 +180,160 @@ static struct mm_region imx93_mem_map[] = {struct mm_region *mem_map = imx93_mem_map; +static unsigned int imx9_find_dram_entry_in_mem_map (void ) +{ +int i; + +for (i =0 ; i <ARRAY_SIZE (imx93_mem_map); i++) +if (imx93_mem_map[i].phys ==CFG_SYS_SDRAM_BASE ) +return i; + +hang ();/* Entry not found, this must never happen. */ +} + +void enable_caches (void ) +{ +/* If OPTEE runs, remove OPTEE memory from MMU table to avoid speculative prefetch +* If OPTEE does not run, still update the MMU table according to dram banks structure +* to set correct dram size from board_phys_sdram_size +*/ +int i =0 ; +/* +* please make sure that entry initial value matches +* imx93_mem_map for DRAM1 +*/ +int entry =imx9_find_dram_entry_in_mem_map (); +u64 attrs = imx93_mem_map[entry].attrs; + +while (i <CONFIG_NR_DRAM_BANKS && + entry <ARRAY_SIZE (imx93_mem_map)) { +if (gd->bd->bi_dram[i].start ==0 ) +break ; + imx93_mem_map[entry].phys = gd->bd->bi_dram[i].start; + imx93_mem_map[entry].virt = gd->bd->bi_dram[i].start; + imx93_mem_map[entry].size = gd->bd->bi_dram[i].size; + imx93_mem_map[entry].attrs = attrs; +debug ("Added memory mapping (%d): %llx %llx\n" , entry, + imx93_mem_map[entry].phys, imx93_mem_map[entry].size); + i++; entry++; + } + +icache_enable (); +dcache_enable (); +} + +__weak int board_phys_sdram_size (phys_size_t *size) +{ +if (!size) +return -EINVAL ; + + *size =PHYS_SDRAM_SIZE ; + +#ifdef PHYS_SDRAM_2_SIZE + *size +=PHYS_SDRAM_2_SIZE ; +#endif +return 0 ; +} +int dram_init (void ) { - gd->ram_size =PHYS_SDRAM_SIZE ; +phys_size_t sdram_size; +int ret; + + ret =board_phys_sdram_size (&sdram_size); +if (ret) +return ret; + +/* rom_pointer[1] contains the size of TEE occupies */ +if (rom_pointer[1 ]) + gd->ram_size = sdram_size - rom_pointer[1 ]; +else + gd->ram_size = sdram_size; + +return 0 ; +} + +int dram_init_banksize (void ) +{ +int bank =0 ; +int ret; +phys_size_t sdram_size; +phys_size_t sdram_b1_size, sdram_b2_size; + + ret =board_phys_sdram_size (&sdram_size); +if (ret) +return ret; + +/* Bank 1 can't cross over 4GB space */ +if (sdram_size >0x80000000 ) { + sdram_b1_size =0x80000000 ; + sdram_b2_size = sdram_size -0x80000000 ; + }else { + sdram_b1_size = sdram_size; + sdram_b2_size =0 ; + } + + gd->bd->bi_dram[bank].start =PHYS_SDRAM ; +if (rom_pointer[1 ]) { +phys_addr_t optee_start = (phys_addr_t )rom_pointer[0 ]; +phys_size_t optee_size = (size_t )rom_pointer[1 ]; + + gd->bd->bi_dram[bank].size = optee_start - gd->bd->bi_dram[bank].start; +if ((optee_start + optee_size) < (PHYS_SDRAM + sdram_b1_size)) { +if (++bank >=CONFIG_NR_DRAM_BANKS ) { +puts ("CONFIG_NR_DRAM_BANKS is not enough\n" ); +return -1 ; + } + + gd->bd->bi_dram[bank].start = optee_start + optee_size; + gd->bd->bi_dram[bank].size =PHYS_SDRAM + + sdram_b1_size - gd->bd->bi_dram[bank].start; + } + }else { + gd->bd->bi_dram[bank].size = sdram_b1_size; + } + +if (sdram_b2_size) { +if (++bank >=CONFIG_NR_DRAM_BANKS ) { +puts ("CONFIG_NR_DRAM_BANKS is not enough for SDRAM_2\n" ); +return -1 ; + } + gd->bd->bi_dram[bank].start =0x100000000UL ; + gd->bd->bi_dram[bank].size = sdram_b2_size; + }return 0 ; } +phys_size_t get_effective_memsize (void ) +{ +int ret; +phys_size_t sdram_size; +phys_size_t sdram_b1_size; + + ret =board_phys_sdram_size (&sdram_size); +if (!ret) { +/* Bank 1 can't cross over 4GB space */ +if (sdram_size >0x80000000 ) + sdram_b1_size =0x80000000 ; +else + sdram_b1_size = sdram_size; + +if (rom_pointer[1 ]) { +/* We will relocate u-boot to top of dram1. TEE position has two cases: +* 1. At the top of dram1, Then return the size removed optee size. +* 2. In the middle of dram1, return the size of dram1. +*/ +if ((rom_pointer[0 ] + rom_pointer[1 ]) == (PHYS_SDRAM + sdram_b1_size)) +return ((phys_addr_t )rom_pointer[0 ] -PHYS_SDRAM ); + } + +return sdram_b1_size; + }else { +return PHYS_SDRAM_SIZE ; + } +} +void imx_get_mac_from_fuse (int dev_id,unsigned char *mac) { mac[0 ] =0x1 ;
Signature · 1 line
2.40.0
PATCH 15/42 imx9: cut off OPTEE memory region from U-Boot
Quoted 5 lines
From: Peng Fan <[email protected]>
OPTEE memory region is set secure access only in ATF with configuration to TRDC, and need to remove it from U-Boot, otherwise U-Boot and Kernel may crash when accessing the memorySigned-off-by Peng Fan <[email protected]>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, 82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: [email protected] =====================================================================
PATCH 16/42 imx9: Change hard coded MAC to read from fuse
In reply to Peng Fan (OSS)From: Ye Li <[email protected]>
The MAC addresses are hard coded for bring up. Change it to support reading from fuse.
--- arch/arm/mach-imx/imx9/soc.c | 49 +++++++++++++++++++++++++++++++----- 1 file changed, 43 insertions(+), 6 deletions(-)
arch/arm/mach-imx/imx9/soc.c +43 -6
@@ -30,6 +30,7 @@#include <asm/arch-imx/cpu.h> #include <asm/mach-imx/s400_api.h> #include <linux/delay.h> +#include <fuse.h> DECLARE_GLOBAL_DATA_PTR ;
@@ -336,12 +337,48 @@ phys_size_t get_effective_memsize(void)void imx_get_mac_from_fuse (int dev_id,unsigned char *mac) { - mac[0 ] =0x1 ; - mac[1 ] =0x2 ; - mac[2 ] =0x3 ; - mac[3 ] =0x4 ; - mac[4 ] =0x5 ; - mac[5 ] =0x6 ; +u32 val[2 ] = {}; +int ret; + +if (dev_id ==0 ) { + ret =fuse_read (39 ,3 , &val[0 ]); +if (ret) + goto err; + + ret =fuse_read (39 ,4 , &val[1 ]); +if (ret) + goto err; + + mac[0 ] = val[1 ] >>8 ; + mac[1 ] = val[1 ]; + mac[2 ] = val[0 ] >>24 ; + mac[3 ] = val[0 ] >>16 ; + mac[4 ] = val[0 ] >>8 ; + mac[5 ] = val[0 ]; + + }else { + ret =fuse_read (39 ,5 , &val[0 ]); +if (ret) + goto err; + + ret =fuse_read (39 ,4 , &val[1 ]); +if (ret) + goto err; + + mac[0 ] = val[1 ] >>24 ; + mac[1 ] = val[1 ] >>16 ; + mac[2 ] = val[0 ] >>24 ; + mac[3 ] = val[0 ] >>16 ; + mac[4 ] = val[0 ] >>8 ; + mac[5 ] = val[0 ]; + } + +debug ("%s: MAC%d: %02x.%02x.%02x.%02x.%02x.%02x\n" , + __func__, dev_id, mac[0 ], mac[1 ], mac[2 ], mac[3 ], mac[4 ], mac[5 ]); +return ; +err: +memset (mac,0 ,6 ); +printf ("%s: fuse read err: %d\n" , __func__, ret); }int print_cpuinfo (void )
Signature · 1 line
2.40.0
PATCH 16/42 imx9: Change hard coded MAC to read from fuse
Quoted 6 lines
From: Ye Li <[email protected]>
The MAC addresses are hard coded for bring up. Change it to support reading from fuse.Reviewed-by Jacky Bai <[email protected]>Signed-off-by Ye Li <[email protected]>Signed-off-by Peng Fan <[email protected]>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, 82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: [email protected] =====================================================================
PATCH 17/42 imx9: imx93_evk: enable CPU_IMX
In reply to Peng Fan (OSS)From: Peng Fan <[email protected]>
select CONFIG_CPU_IMX to display cpu info
--- configs/imx93_11x11_evk_defconfig | 2 ++ 1 file changed, 2 insertions(+)
configs/imx93_11x11_evk_defconfig +2 -0
@@ -81,6 +81,8 @@ CONFIG_NET_RANDOM_ETHADDR=y CONFIG_SPL_DM=y CONFIG_REGMAP=y CONFIG_SYSCON=y +CONFIG_CPU=y +CONFIG_CPU_IMX=y CONFIG_IMX_RGPIO2P=y CONFIG_DM_PCA953X=y CONFIG_DM_I2C=y
Signature · 1 line
2.40.0
PATCH 17/42 imx9: imx93_evk: enable CPU_IMX
Quoted 3 lines
From: Peng Fan <[email protected]>
selectCONFIG_CPU_IMXto display cpu infoSigned-off-by Peng Fan <[email protected]>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, 82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: [email protected] =====================================================================
PATCH 18/42 imx9: imx93_evk: drop unused macro
In reply to Peng Fan (OSS)From: Peng Fan <[email protected]>
Drop unused macro
--- include/configs/imx93_evk.h | 2 -- 1 file changed, 2 deletions(-)
include/configs/imx93_evk.h +0 -2
@@ -131,8 +131,6 @@#define PHYS_SDRAM 0x80000000#define PHYS_SDRAM_SIZE 0x80000000/* 2GB DDR */ -#define CFG_SYS_FSL_USDHC_NUM 2 -/* Using ULP WDOG for reset */ #define WDOG_BASE_ADDR WDG3_BASE_ADDR
Signature · 1 line
2.40.0
PATCH 18/42 imx9: imx93_evk: drop unused macro
Quoted 3 lines
From: Peng Fan <[email protected]>
Drop unused macroSigned-off-by Peng Fan <[email protected]>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, 82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: [email protected] =====================================================================
PATCH 19/42 imx9: imx93_evk: select IMX_TMU
In reply to Peng Fan (OSS)From: Peng Fan <[email protected]>
Select thermal config to print current temperature
--- configs/imx93_11x11_evk_defconfig | 2 ++ 1 file changed, 2 insertions(+)
configs/imx93_11x11_evk_defconfig +2 -0
@@ -112,6 +112,8 @@ CONFIG_DM_RTC=y CONFIG_RTC_EMULATION=y CONFIG_DM_SERIAL=y CONFIG_FSL_LPUART=y +CONFIG_DM_THERMAL=y +CONFIG_IMX_TMU=y CONFIG_ULP_WATCHDOG=y CONFIG_LZO=y CONFIG_BZIP2=y
Signature · 1 line
2.40.0
PATCH 20/42 imx9: imx93_evk: enable CONFIG_WDT
In reply to Peng Fan (OSS)From: Peng Fan <[email protected]>
Without this config, there is boot error: Error binding ulp_wdt driver
--- configs/imx93_11x11_evk_defconfig | 1 + 1 file changed, 1 insertion(+)
configs/imx93_11x11_evk_defconfig +1 -0
@@ -115,5 +115,6 @@ CONFIG_FSL_LPUART=y CONFIG_DM_THERMAL=y CONFIG_IMX_TMU=y CONFIG_ULP_WATCHDOG=y +CONFIG_WDT=y CONFIG_LZO=y CONFIG_BZIP2=y
Signature · 1 line
2.40.0
PATCH 20/42 imx9: imx93_evk: enable CONFIG_WDT
Quoted 3 lines
From: Peng Fan <[email protected]>
Without this config, there is boot error: Error bindingulp_wdtdriverSigned-off-by Peng Fan <[email protected]>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, 82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: [email protected] =====================================================================
PATCH 21/42 watchdog: ulp_wdog: guard reset_cpu with condition check
In reply to Peng Fan (OSS)From: Peng Fan <[email protected]>
There will be build error if CONFIG_SYSRESET is enabled, so guard the reset_cpu with condition check here
--- drivers/watchdog/ulp_wdog.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/watchdog/ulp_wdog.c +2 -0
@@ -122,6 +122,7 @@ void hw_watchdog_init(void)ulp_watchdog_init (wdog,CONFIG_WATCHDOG_TIMEOUT_MSECS ); } +#if !CONFIG_IS_ENABLED (SYSRESET )void reset_cpu (void ) {struct wdog_regs *wdog = (struct wdog_regs *)WDOG_BASE_ADDR ;
@@ -159,6 +160,7 @@ void reset_cpu(void) while (1); } +#endif static int ulp_wdt_start (struct udevice *dev,u64 timeout_ms,ulong flags) {
Signature · 1 line
2.40.0
Re: [PATCH 21/42] watchdog: ulp_wdog: guard reset_cpu with condition check
Quoted 6 lines · Peng Fan (OSS)
From: Peng Fan <[email protected]>
There will be build error if
CONFIG_SYSRESETis enabled, so guard thereset_cpuwith condition check hereSigned-off-by Peng Fan <[email protected]>
Thanks,
Stefan
Quoted 17 lines
--- drivers/watchdog/ulp_wdog.c | 2 ++ 1 file changed, 2 insertions(+)drivers/watchdog/ulp_wdog.c +1
-0@@ -122,6 +122,7 @@ void hw_watchdog_init(void)ulp_watchdog_init (wdog,CONFIG_WATCHDOG_TIMEOUT_MSECS ); } +#if !CONFIG_IS_ENABLED (SYSRESET )void reset_cpu (void ) {struct wdog_regs *wdog = (struct wdog_regs *)WDOG_BASE_ADDR ;
drivers/watchdog/ulp_wdog.c void reset_cpu(void) · line 166
Quoted 7 lines
drivers/watchdog/ulp_wdog.c +1
-0@@ -159,6 +160,7 @@ void reset_cpu(void) while (1); } +#endif static int ulp_wdt_start (struct udevice *dev,u64 timeout_ms,ulong flags) {
Viele Grüße,
Stefan Roese
Signature · 3 lines
DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: [email protected]
PATCH 21/42 watchdog: ulp_wdog: guard reset_cpu with condition check
In reply to Peng Fan (OSS)Quoted 5 lines
From: Peng Fan <[email protected]>
There will be build error ifCONFIG_SYSRESETis enabled, so guard thereset_cpuwith condition check hereSigned-off-by Peng Fan <[email protected]>Reviewed-by Stefan Roese <[email protected]>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, 82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: [email protected] =====================================================================
PATCH 22/42 imx9: soc: support reset cause
In reply to Peng Fan (OSS)From: Peng Fan <[email protected]>
Support print reset cause. Since SRSR is not accessible from non-secure world, so first save it to grp0, then read it in non-secure world.
--- arch/arm/mach-imx/imx9/soc.c | 59 ++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+)
arch/arm/mach-imx/imx9/soc.c +59 -0
@@ -19,6 +19,8 @@#include <asm/mach-imx/boot_mode.h> #include <asm/mach-imx/syscounter.h> #include <asm/armv8/mmu.h> +#include <dm/device.h> +#include <dm/device_compat.h> #include <dm/uclass.h> #include <env.h> #include <env_internal.h>
@@ -408,6 +410,18 @@ void get_board_serial(struct tag_serialnr *serialnr) }#endif +static void save_reset_cause (void ) +{ +struct src_general_regs *src = (struct src_general_regs *)SRC_GLOBAL_RBASE ; +u32 srsr =readl (&src->srsr); + +/* clear srsr in sec mode */ +writel (srsr, &src->srsr); + +/* Save value to GPR1 to pass to nonsecure */ +writel (srsr, &src->gpr[0 ]); +} +int arch_cpu_init (void ) {if (IS_ENABLED (CONFIG_SPL_BUILD )) {
@@ -417,6 +431,9 @@ int arch_cpu_init(void)clock_init ();trdc_early_init (); + +/* Save SRC SRSR to GPR1 and clear it */ +save_reset_cause (); }return 0 ;
@@ -650,3 +667,45 @@ int m33_prepare(void)return 0 ; } + +int psci_sysreset_get_status (struct udevice *dev,char *buf,int size) +{ +static const char *reset_cause[] = { +"POR " , +"JTAG " , +"IPP USER " , +"WDOG1 " , +"WDOG2 " , +"WDOG3 " , +"WDOG4 " , +"WDOG5 " , +"TEMPSENSE " , +"CSU " , +"JTAG_SW " , +"M33_REQ " , +"M33_LOCKUP " , +"UNK " , +"UNK " , +"UNK " + }; + +struct src_general_regs *src = (struct src_general_regs *)SRC_GLOBAL_RBASE ; +u32 srsr; +u32 i; +int res; + + srsr =readl (&src->gpr[0 ]); + +for (i =ARRAY_SIZE (reset_cause); i >0 ; i--) { +if (srsr & (BIT (i -1 ))) +break ; + } + + res =snprintf (buf, size,"Reset Status: %s\n" , i ? reset_cause[i -1 ] :"unknown reset" ); +if (res <0 ) { +dev_err (dev,"Could not write reset status message (err = %d)\n" , res); +return -EIO ; + } + +return 0 ; +}
Signature · 1 line
2.40.0
PATCH 22/42 imx9: soc: support reset cause
Quoted 4 lines
From: Peng Fan <[email protected]>
Support print reset cause. Since SRSR is not accessible from non-secure world, so first save it to grp0, then read it in non-secure world.Signed-off-by Peng Fan <[email protected]>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, 82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: [email protected] =====================================================================
PATCH 23/42 imx9: Get market segment and speed grading
In reply to Peng Fan (OSS)From: Peng Fan <[email protected]>
Get the chip's market segment and speed grading from fuse and print them in boot log as other i.MX series.
--- arch/arm/include/asm/arch-imx9/imx-regs.h | 3 + arch/arm/mach-imx/imx9/soc.c | 81 ++++++++++++++++++++++- 2 files changed, 83 insertions(+), 1 deletion(-)
arch/arm/include/asm/arch-imx9/imx-regs.h +3 -0
@@ -48,6 +48,9 @@#define BCTRL_GPR_ENET_QOS_INTF_SEL_RGMII (0x1 << 1)#define BCTRL_GPR_ENET_QOS_CLK_GEN_EN (0x1 << 0) +#define MARKETING_GRADING_MASK GENMASK(5, 4) +#define SPEED_GRADING_MASK GENMASK(11, 6) +#if !(defined(__KERNEL_STRICT_NAMES) || defined(__ASSEMBLY__))#include <asm/types.h> #include <stdbool.h>
arch/arm/mach-imx/imx9/soc.c +80 -1
98 lines not on this page · raw message
Signature · 1 line
2.40.0
PATCH 23/42 imx9: Get market segment and speed grading
Quoted 4 lines
From: Peng Fan <[email protected]>
Get the chip's market segment and speed grading from fuse and print them in boot log as other i.MX series.Signed-off-by Peng Fan <[email protected]>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, 82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: [email protected] =====================================================================
PATCH 24/42 imx9: clock: clear HW_CTRL_SEL
In reply to Peng Fan (OSS)From: Peng Fan <[email protected]>
The HW_CTRL_SEL should be cleared when configuring PLL to avoid potential glitch
--- arch/arm/mach-imx/imx9/clock.c | 3 +++ 1 file changed, 3 insertions(+)
arch/arm/mach-imx/imx9/clock.c +3 -0
@@ -206,6 +206,9 @@ int configure_intpll(enum ccm_clk_src pll, u32 freq)return -EPERM ; } +/* Clear PLL HW CTRL SEL */ +setbits_le32 (®->ctrl.reg_clr,PLL_CTRL_HW_CTRL_SEL ); +/* Bypass the PLL to ref */ writel (PLL_CTRL_CLKMUX_BYPASS , ®->ctrl.reg_set);
Signature · 1 line
2.40.0
PATCH 24/42 imx9: clock: clear HW_CTRL_SEL
Quoted 5 lines
From: Peng Fan <[email protected]>
TheHW_CTRL_SELshould be cleared when configuring PLL to avoid potential glitchReviewed-by Ye Li <[email protected]>Signed-off-by Peng Fan <[email protected]>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, 82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: [email protected] =====================================================================
PATCH 25/42 imx9: clock: add CONFIG_IMX9_LOW_DRIVE_MODE support
In reply to Peng Fan (OSS)From: Peng Fan <[email protected]>
Add CONFIG_IMX9_LOW_DRIVE_MODE in imx9 clk, later we will add board support
--- arch/arm/mach-imx/imx9/Kconfig | 5 ++++ arch/arm/mach-imx/imx9/clock.c | 55 +++++++++++++++++++++++++++++++--- 2 files changed, 56 insertions(+), 4 deletions(-)
arch/arm/mach-imx/imx9/Kconfig +5 -0
@@ -5,6 +5,11 @@ config AHAB_BOOT help This option enables the support for AHAB secure boot. +config IMX9_LOW_DRIVE_MODE + bool "Configure to i.MX9 low drive mode" + help + This option enables the settings for iMX9 low drive mode. + config IMX9 bool select HAS_CAAM
arch/arm/mach-imx/imx9/clock.c +51 -4
92 lines not on this page · raw message
Signature · 1 line
2.40.0
PATCH 25/42 imx9: clock: add CONFIG_IMX9_LOW_DRIVE_MODE support
Quoted 4 lines
From: Peng Fan <[email protected]>
AddCONFIG_IMX9_LOW_DRIVE_MODEin imx9 clk, later we will add board supportSigned-off-by Peng Fan <[email protected]>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, 82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: [email protected] =====================================================================
PATCH 26/42 imx9: clock: config arm alt root to 500mhz
In reply to Peng Fan (OSS)From: Peng Fan <[email protected]>
Config the A55 alt root clock to 500MHz(LD mode frequency) by default. Normally, this clock root is only used as an intermediate clock soure for A55 core/dsu when change the ARM PLL frequency.
--- arch/arm/mach-imx/imx9/clock.c | 6 ++++++ 1 file changed, 6 insertions(+)
arch/arm/mach-imx/imx9/clock.c +6 -0
@@ -727,6 +727,12 @@ struct imx_clk_setting imx_clk_settings[] = { };#else struct imx_clk_setting imx_clk_settings[] = { +/* +* Set A55 clk to 500M. This clock root is normally used as intermediate +* clock source for A55 core/DSU when doing ARM PLL reconfig. set it to +* 500MHz(LD mode frequency) should be ok. +*/ + {ARM_A55_CLK_ROOT ,SYS_PLL_PFD0 ,2 },/* Set A55 periphal to 333M */ {ARM_A55_PERIPH_CLK_ROOT ,SYS_PLL_PFD0 ,3 }, /* Set A55 mtr bus to 133M */
Signature · 1 line
2.40.0
PATCH 26/42 imx9: clock: config arm alt root to 500mhz
Quoted 6 lines
From: Peng Fan <[email protected]>
Config the A55 alt root clock to 500MHz(LD mode frequency) by default. Normally, this clock root is only used as an intermediate clock soure for A55 core/dsu when change the ARM PLL frequency.Signed-off-by Peng Fan <[email protected]>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, 82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: [email protected] =====================================================================
PATCH 27/42 imx9: add i.MX93 variants support
In reply to Peng Fan (OSS)From: Peng Fan <[email protected]>
According to datasheet, iMX93 has fused parts with CORE1 or NPU or both disabled. So update code to support it, the kernel device tree runtime update will be added in future patches.
--- arch/arm/include/asm/arch-imx/cpu.h | 7 +++++++ arch/arm/include/asm/mach-imx/sys_proto.h | 12 ++++++++++- arch/arm/mach-imx/imx9/soc.c | 25 ++++++++++++++++++++++- drivers/cpu/imx8_cpu.c | 14 +++++++++++++ 4 files changed, 56 insertions(+), 2 deletions(-)
arch/arm/include/asm/arch-imx/cpu.h +7 -0
@@ -61,6 +61,13 @@#define MXC_CPU_MX7ULP 0xE1/* Temporally hard code */ #define MXC_CPU_VF610 0xF6/* dummy ID */ #define MXC_CPU_IMX93 0xC1/* dummy ID */ +#define MXC_CPU_IMX9351 0xC2/* dummy ID */ +#define MXC_CPU_IMX9332 0xC3/* dummy ID */ +#define MXC_CPU_IMX9331 0xC4/* dummy ID */ +#define MXC_CPU_IMX9322 0xC5/* dummy ID */ +#define MXC_CPU_IMX9321 0xC6/* dummy ID */ +#define MXC_CPU_IMX9312 0xC7/* dummy ID */ +#define MXC_CPU_IMX9311 0xC8/* dummy ID */ #define MXC_SOC_MX6 0x60#define MXC_SOC_MX7 0x70
arch/arm/include/asm/mach-imx/sys_proto.h +11 -1
@@ -82,7 +82,17 @@ struct bd_info;#define is_imx8qxp () (is_cpu_type(MXC_CPU_IMX8QXP)) -#define is_imx93 () (is_cpu_type(MXC_CPU_IMX93)) +#define is_imx93 () (is_cpu_type(MXC_CPU_IMX93) || is_cpu_type(MXC_CPU_IMX9331) || \ + is_cpu_type(MXC_CPU_IMX9332) || is_cpu_type(MXC_CPU_IMX9351) || \ + is_cpu_type(MXC_CPU_IMX9322) || is_cpu_type(MXC_CPU_IMX9321) || \ + is_cpu_type(MXC_CPU_IMX9312) || is_cpu_type(MXC_CPU_IMX9311)) +#define is_imx9351 () (is_cpu_type(MXC_CPU_IMX9351)) +#define is_imx9332 () (is_cpu_type(MXC_CPU_IMX9332)) +#define is_imx9331 () (is_cpu_type(MXC_CPU_IMX9331)) +#define is_imx9322 () (is_cpu_type(MXC_CPU_IMX9322)) +#define is_imx9321 () (is_cpu_type(MXC_CPU_IMX9321)) +#define is_imx9312 () (is_cpu_type(MXC_CPU_IMX9312)) +#define is_imx9311 () (is_cpu_type(MXC_CPU_IMX9311))#define is_imxrt1020 () (is_cpu_type(MXC_CPU_IMXRT1020))#define is_imxrt1050 () (is_cpu_type(MXC_CPU_IMXRT1050))
arch/arm/mach-imx/imx9/soc.c +24 -1
@@ -159,11 +159,34 @@ static void set_cpu_info(struct sentinel_get_info_data *info)memcpy ((void *)&gd->arch.uid, &info->uid,4 *sizeof (u32)); } +static u32 get_cpu_variant_type (u32 type) +{ +/* word 19 */ +u32 val =readl ((ulong )FSB_BASE_ADDR +0x8000 + (19 <<2 )); +u32 val2 =readl ((ulong )FSB_BASE_ADDR +0x8000 + (20 <<2 )); +bool npu_disable = !!(val &BIT (13 )); +bool core1_disable = !!(val &BIT (15 )); +u32 pack_9x9_fused =BIT (4 ) |BIT (17 ) |BIT (19 ) |BIT (24 ); + +if ((val2 & pack_9x9_fused) == pack_9x9_fused) + type =MXC_CPU_IMX9322 ; + +if (npu_disable && core1_disable) +return type +3 ; +else if (npu_disable) +return type +2 ; +else if (core1_disable) +return type +1 ; + +return type; +} +u32 get_cpu_rev (void ) {u32 rev = (gd->arch.soc_rev >>24 ) -0xa0 ; -return (MXC_CPU_IMX93 <<12 ) | (CHIP_REV_1_0 + rev); +return (get_cpu_variant_type (MXC_CPU_IMX93 ) <<12 ) | + (CHIP_REV_1_0 + rev); }#define UNLOCK_WORD 0xD928C520/* unlock word */
drivers/cpu/imx8_cpu.c +14 -0
@@ -39,6 +39,20 @@ static const char *get_imx_type_str(u32 imxtype)return "8QM" ;case MXC_CPU_IMX93 :return "93(52)" ;/* iMX93 Dual core with NPU */ +case MXC_CPU_IMX9351 : +return "93(51)" ;/* iMX93 Single core with NPU */ +case MXC_CPU_IMX9332 : +return "93(32)" ;/* iMX93 Dual core without NPU */ +case MXC_CPU_IMX9331 : +return "93(31)" ;/* iMX93 Single core without NPU */ +case MXC_CPU_IMX9322 : +return "93(22)" ;/* iMX93 9x9 Dual core */ +case MXC_CPU_IMX9321 : +return "93(21)" ;/* iMX93 9x9 Single core */ +case MXC_CPU_IMX9312 : +return "93(12)" ;/* iMX93 9x9 Dual core without NPU */ +case MXC_CPU_IMX9311 : +return "93(11)" ;/* iMX93 9x9 Single core without NPU */ default :return "??" ; }
Signature · 1 line
2.40.0
PATCH 27/42 imx9: add i.MX93 variants support
Quoted 5 lines
From: Peng Fan <[email protected]>
According to datasheet, iMX93 has fused parts with CORE1 or NPU or both disabled. So update code to support it, the kernel device tree runtime update will be added in future patches.Signed-off-by Peng Fan <[email protected]>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, 82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: [email protected] =====================================================================
PATCH 28/42 imx9: correct coding style
In reply to Peng Fan (OSS)From: Peng Fan <[email protected]>
The end brace should be in a new line
--- arch/arm/mach-imx/imx9/soc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
arch/arm/mach-imx/imx9/soc.c +2 -1
@@ -44,7 +44,8 @@ struct rom_api *g_rom_api = (struct rom_api *)0x1980;#ifdef CONFIG_ENV_IS_IN_MMC __weak int board_mmc_get_env_dev (int devno) { -return devno; } +return devno; +}int mmc_get_env_dev (void ) {
Signature · 1 line
2.40.0
PATCH 28/42 imx9: correct coding style
Quoted 3 lines
From: Peng Fan <[email protected]>
The end brace should be in a new lineSigned-off-by Peng Fan <[email protected]>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, 82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: [email protected] =====================================================================
PATCH 29/42 imx9: use i.MX generic rom api function
In reply to Peng Fan (OSS)From: Peng Fan <[email protected]>
There is no need to save gd with using the generic rom api function, so simplify code.
--- arch/arm/mach-imx/imx9/soc.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
arch/arm/mach-imx/imx9/soc.c +1 -4
@@ -49,15 +49,12 @@ __weak int board_mmc_get_env_dev(int devno)int mmc_get_env_dev (void ) { -volatile gd_t *pgd = gd;int ret;u32 boot;u16 boot_type;u8 boot_instance; - ret = g_rom_api->query_boot_infor (QUERY_BT_DEV , &boot, - ((uintptr_t )&boot) ^QUERY_BT_DEV ); -set_gd (pgd); + ret =rom_api_query_boot_infor (QUERY_BT_DEV , &boot);if (ret !=ROM_API_OKAY ) {puts ("ROMAPI: failure at query_boot_info\n" );
Signature · 1 line
2.40.0
PATCH 29/42 imx9: use i.MX generic rom api function
Quoted 4 lines
From: Peng Fan <[email protected]>
There is no need to save gd with using the generic rom api function, so simplify code.Signed-off-by Peng Fan <[email protected]>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, 82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: [email protected] =====================================================================
PATCH 30/42 imx9: imx93_evk: add low drive mode support on 11x11 EVK
In reply to Peng Fan (OSS)From: Peng Fan <[email protected]>
Add a static u-boot config for i.MX93 low drive mode support. When low drive mode is enabled, VDD_SOC is set to 0.75V. Bus clocks, A55 core clock (900Mhz), DDR clock (1866MTS), and some peripherals clocks (USDHC/FLEXSPI/PDM/DISP_PIX/CAM_PIX) must decrease to meet max frequencies in low drive mode.
Also set standby voltage for buck1
--- board/freescale/imx93_evk/MAINTAINERS | 1 + board/freescale/imx93_evk/Makefile | 4 + board/freescale/imx93_evk/lpddr4x_timing_ld.c | 1496 +++++++++++++++++ board/freescale/imx93_evk/spl.c | 26 +- configs/imx93_11x11_evk_ld_defconfig | 121 ++ 5 files changed, 1642 insertions(+), 6 deletions(-) create mode 100644 board/freescale/imx93_evk/lpddr4x_timing_ld.c create mode 100644 configs/imx93_11x11_evk_ld_defconfig
board/freescale/imx93_evk/MAINTAINERS +1 -0
@@ -4,3 +4,4 @@ S: Maintained F: board/freescale/imx93_evk/ F: include/configs/imx93_evk.h F: configs/imx93_11x11_evk_defconfig + configs/imx93_11x11_evk_ld_defconfig
board/freescale/imx93_evk/Makefile +4 -0
@@ -8,5 +8,9 @@ obj-y += imx93_evk.o ifdef CONFIG_SPL_BUILD obj-y += spl.o +ifdef CONFIG_IMX9_LOW_DRIVE_MODE +obj-$(CONFIG_IMX93_EVK_LPDDR4X) += lpddr4x_timing_ld.o +else obj-$(CONFIG_IMX93_EVK_LPDDR4X) += lpddr4x_timing.o endif +endif
board/freescale/imx93_evk/lpddr4x_timing_ld.c new file +1496 -0
1,496 lines not on this page · raw message
board/freescale/imx93_evk/spl.c +20 -6
@@ -67,10 +67,23 @@ int power_init_board(void)/* BUCKxOUT_DVS0/1 control BUCK123 output */ pmic_reg_write (dev,PCA9450_BUCK123_DVS ,0x29 ); -/* 0.9v -*/ -pmic_reg_write (dev,PCA9450_BUCK1OUT_DVS0 ,0x18 ); -pmic_reg_write (dev,PCA9450_BUCK3OUT_DVS0 ,0x18 ); +/* enable DVS control through PMIC_STBY_REQ */ +pmic_reg_write (dev,PCA9450_BUCK1CTRL ,0x59 ); + +if (IS_ENABLED (CONFIG_IMX9_LOW_DRIVE_MODE )) { +/* 0.75v for Low drive mode +*/ +pmic_reg_write (dev,PCA9450_BUCK1OUT_DVS0 ,0x0c ); +pmic_reg_write (dev,PCA9450_BUCK3OUT_DVS0 ,0x0c ); + }else { +/* 0.9v for Over drive mode +*/ +pmic_reg_write (dev,PCA9450_BUCK1OUT_DVS0 ,0x18 ); +pmic_reg_write (dev,PCA9450_BUCK3OUT_DVS0 ,0x18 ); + } + +/* set standby voltage to 0.65v */ +pmic_reg_write (dev,PCA9450_BUCK1OUT_DVS1 ,0x4 );/* I2C_LT_EN*/ pmic_reg_write (dev,0xa ,0x3 );
@@ -103,10 +116,11 @@ void board_init_f(ulong dummy)printf ("SOC: 0x%x\n" , gd->arch.soc_rev);printf ("LC: 0x%x\n" , gd->arch.lifecycle); } +power_init_board (); -/* 1.7GHz */ -set_arm_clk (1700000000 ); +if (!IS_ENABLED (CONFIG_IMX9_LOW_DRIVE_MODE )) +set_arm_clk (get_cpu_speed_grade_hz ());/* Init power of mix */ soc_power_init ();
configs/imx93_11x11_evk_ld_defconfig new file +121 -0
121 lines not on this page · raw message
Signature · 1 line
2.40.0
PATCH 30/42 imx9: imx93_evk: add low drive mode support on 11x11 EVK
Quoted 9 lines
From: Peng Fan <[email protected]>
Add a static u-boot config for i.MX93 low drive mode support. When low drive mode is enabled,VDD_SOCis set to 0.75V. Bus clocks, A55 core clock (900Mhz), DDR clock (1866MTS), and some peripherals clocks (USDHC/FLEXSPI/PDM/DISP_PIX/CAM_PIX) must decrease to meet max frequencies in low drive mode.
Also set standby voltage for buck1Signed-off-by Ye Li <[email protected]>Signed-off-by Peng Fan <[email protected]>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, 82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: [email protected] =====================================================================
PATCH 31/42 imx9: allow to bootaux Mcore with input address
In reply to Peng Fan (OSS)From: Ye Li <[email protected]>
Currently bootaux only supports to boot M33 core from TCM. Since ATF has changed to use x2 parameter for M33 image address, update the bootaux command to use input address, so we can support boot from any possilbe address like TCM, DDR, Flexspi NOR.
--- arch/arm/mach-imx/imx9/imx_bootaux.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-)
arch/arm/mach-imx/imx9/imx_bootaux.c +3 -7
@@ -34,17 +34,13 @@ int arch_auxiliary_core_down(u32 core_id)int arch_auxiliary_core_up (u32 core_id,ulong addr) {struct arm_smccc_res res; -u32 stack, pc;if (!addr)return -EINVAL ; - stack = *(u32 *)addr; - pc = *(u32 *)(addr +4 ); +printf ("## Starting auxiliary core addr = 0x%08lX...\n" , addr); -printf ("## Starting auxiliary core stack = 0x%08X, pc = 0x%08X...\n" , stack, pc); - -arm_smccc_smc (IMX_SIP_SRC ,IMX_SIP_SRC_M4_START ,0 ,0 , +arm_smccc_smc (IMX_SIP_SRC ,IMX_SIP_SRC_M4_START , addr,0 ,0 ,0 ,0 ,0 , &res);return 0 ;
@@ -129,5 +125,5 @@ U_BOOT_CMD("Start auxiliary core" ,"<address> [<core>]\n" " - start auxiliary core [<core>] (default 0),\n" -" at address <address>\n" +" at address <address> of auxiliary core view\n" );
Signature · 1 line
2.40.0
PATCH 31/42 imx9: allow to bootaux Mcore with input address
Quoted 8 lines
From: Ye Li <[email protected]>
Currently bootaux only supports to boot M33 core from TCM. Since ATF has changed to use x2 parameter for M33 image address, update the bootaux command to use input address, so we can support boot from any possilbe address like TCM, DDR, Flexspi NOR.Reviewed-by Peng Fan <[email protected]>Signed-off-by Ye Li <[email protected]>Signed-off-by Peng Fan <[email protected]>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, 82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: [email protected] =====================================================================
PATCH 32/42 arm: dts: imx93: sync device tree with Linux
In reply to Peng Fan (OSS)From: Peng Fan <[email protected]>
Sync device tree with next-20230426
--- arch/arm/dts/imx93-11x11-evk-u-boot.dtsi | 29 - arch/arm/dts/imx93-11x11-evk.dts | 385 +++---------- arch/arm/dts/imx93-pinfunc.h | 194 ++++--- arch/arm/dts/imx93.dtsi | 572 ++++++++++++-------- include/dt-bindings/clock/imx93-clock.h | 17 +- include/dt-bindings/power/fsl,imx93-power.h | 15 + include/dt-bindings/power/imx93-power.h | 12 - 7 files changed, 552 insertions(+), 672 deletions(-) create mode 100644 include/dt-bindings/power/fsl,imx93-power.h delete mode 100644 include/dt-bindings/power/imx93-power.h
arch/arm/dts/imx93-11x11-evk-u-boot.dtsi +0 -29
@@ -10,25 +10,6 @@ bootph-pre-ram; }; - aliases { - usbgadget0 = &usbg1; - usbgadget1 = &usbg2; - }; - - usbg1: usbg1 { - compatible = "fsl,imx27-usb-gadget"; - dr_mode = "peripheral"; - chipidea,usb = <&usbotg1>; - status = "okay"; - }; - - usbg2: usbg2 { - compatible = "fsl,imx27-usb-gadget"; - dr_mode = "peripheral"; - chipidea,usb = <&usbotg2>; - status = "okay"; - }; - firmware { optee { compatible = "linaro,optee-tz";
@@ -141,16 +122,6 @@ reset-deassert-us = <100000>; }; -&usbotg1 { - status = "okay"; - extcon = <&ptn5110>; -}; - -&usbotg2 { - status = "okay"; - extcon = <&ptn5110_2>; -}; - &s4muap { bootph-pre-ram; status = "okay";
arch/arm/dts/imx93-11x11-evk.dts +90 -295
485 lines not on this page · raw message
arch/arm/dts/imx93-pinfunc.h +96 -98
519 lines not on this page · raw message
arch/arm/dts/imx93.dtsi +342 -230
867 lines not on this page · raw message
include/dt-bindings/clock/imx93-clock.h +9 -8
@@ -1,6 +1,6 @@/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* -* Copyright 2021 NXP +* Copyright 2022 NXP */ #ifndef __DT_BINDINGS_CLOCK_IMX93_CLK_H
@@ -28,13 +28,9 @@#define IMX93_CLK_M33_SYSTICK 19#define IMX93_CLK_FLEXIO1 20#define IMX93_CLK_FLEXIO2 21 -#define IMX93_CLK_LPIT1 22 -#define IMX93_CLK_LPIT2 23#define IMX93_CLK_LPTMR1 24#define IMX93_CLK_LPTMR2 25 -#define IMX93_CLK_TPM1 26#define IMX93_CLK_TPM2 27 -#define IMX93_CLK_TPM3 28#define IMX93_CLK_TPM4 29#define IMX93_CLK_TPM5 30#define IMX93_CLK_TPM6 31
@@ -197,7 +193,12 @@#define IMX93_CLK_PMRO_GATE 188#define IMX93_CLK_32K 189#define IMX93_CLK_SAI1_IPG 190 -#define IMX93_CLK_SAI2_IPG 191 -#define IMX93_CLK_SAI3_IPG 192 -#define IMX93_CLK_END 193 +#define IMX93_CLK_SAI2_IPG 191 +#define IMX93_CLK_SAI3_IPG 192 +#define IMX93_CLK_MU1_A_GATE 193 +#define IMX93_CLK_MU1_B_GATE 194 +#define IMX93_CLK_MU2_A_GATE 195 +#define IMX93_CLK_MU2_B_GATE 196 +#define IMX93_CLK_END 197 +#endif
include/dt-bindings/power/fsl,imx93-power.h new file +15 -0
@@ -0,0 +1,15 @@ +/* SPDX-License-Identifier: (GPL-2.0 OR MIT) */ +/* +* Copyright 2022 NXP +*/ + +#ifndef __DT_BINDINGS_IMX93_POWER_H__ +#define __DT_BINDINGS_IMX93_POWER_H__ + +#define IMX93_MEDIABLK_PD_MIPI_DSI 0 +#define IMX93_MEDIABLK_PD_MIPI_CSI 1 +#define IMX93_MEDIABLK_PD_PXP 2 +#define IMX93_MEDIABLK_PD_LCDIF 3 +#define IMX93_MEDIABLK_PD_ISI 4 + +#endif
include/dt-bindings/power/imx93-power.h deleted +0 -12
@@ -1,12 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 */ -/* -* Copyright 2021 NXP -*/ - -#ifndef __DT_BINDINGS_IMX93_POWER_H__ -#define __DT_BINDINGS_IMX93_POWER_H__ - -#define IMX93_POWER_DOMAIN_MLMIX 0 -#define IMX93_POWER_DOMAIN_MEDIAMIX 1 - -#endif
Signature · 1 line
2.40.0
PATCH 32/42 arm: dts: imx93: sync device tree with Linux
Quoted 3 lines
From: Peng Fan <[email protected]>
Sync device tree with next-20230426Signed-off-by Peng Fan <[email protected]>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, 82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: [email protected] =====================================================================
PATCH 33/42 arm: dts: imx93: add tmu
In reply to Peng Fan (OSS)From: Peng Fan <[email protected]>
Add tmu nodes and thermal zone
--- arch/arm/dts/imx93.dtsi | 48 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+)
arch/arm/dts/imx93.dtsi +48 -0
@@ -8,6 +8,7 @@ #include <dt-bindings/input/input.h> #include <dt-bindings/interrupt-controller/arm-gic.h> #include <dt-bindings/power/fsl,imx93-power.h> +#include <dt-bindings/thermal/thermal.h> #include "imx93-pinfunc.h"
@@ -116,6 +117,38 @@ interrupt-parent = <&gic>; }; + thermal-zones { + cpu-thermal { + polling-delay-passive = <250>; + polling-delay = <2000>; + + thermal-sensors = <&tmu 0>; + + trips { + cpu_alert: cpu-alert { + temperature = <80000>; + hysteresis = <2000>; + type = "passive"; + }; + + cpu_crit: cpu-crit { + temperature = <90000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + + cooling-maps { + map0 { + trip = <&cpu_alert>; + cooling-device = + <&A55_0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&A55_1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + }; + }; + soc@0 { compatible = "simple-bus"; #address-cells = <1>;
@@ -309,6 +342,21 @@ reg = <0x44480000 0x10000>; }; + tmu: tmu@44482000 { + compatible = "fsl,imx93-tmu"; + reg = <0x44482000 0x1000>; + clocks = <&clk IMX93_CLK_TMC_GATE>; + little-endian; + fsl,tmu-calibration = <0x0000000e 0x800000da + 0x00000029 0x800000e9 + 0x00000056 0x80000102 + 0x000000a2 0x8000012a + 0x00000116 0x80000166 + 0x00000195 0x800001a7 + 0x000001b2 0x800001b6>; + #thermal-sensor-cells = <1>; + }; + adc1: adc@44530000 { compatible = "nxp,imx93-adc"; reg = <0x44530000 0x10000>;
Signature · 1 line
2.40.0
PATCH 33/42 arm: dts: imx93: add tmu
Quoted 3 lines
From: Peng Fan <[email protected]>
Add tmu nodes and thermal zoneSigned-off-by Peng Fan <[email protected]>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, 82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: [email protected] =====================================================================
PATCH 34/42 ddr: imx9: Add workaround for DDRPHY rank-to-rank errata
In reply to Peng Fan (OSS)From: Ye Li <[email protected]>
According to DDRPHY errata, the Rank-to-Rank Spacing and tphy_rdcsgap specification does not include the Critical Delay Difference (CDD) to properly define the required rank-to-rank read command spacing after executing PHY training firmware.
Following the errata workaround, at the end of data training, we get all CDD values through the MessageBlock, then re-configure the DDRC timing of WWT/WRT/RRT/RWT with comparing MAX CDD values.
--- arch/arm/include/asm/arch-imx9/ddr.h | 2 + drivers/ddr/imx/imx9/ddr_init.c | 122 +++++++++++++++++++++++++++ 2 files changed, 124 insertions(+)
arch/arm/include/asm/arch-imx9/ddr.h +2 -0
@@ -14,7 +14,9 @@#define DDRMIX_BLK_CTRL_BASE 0x4E010000#define REG_DDRDSR_2 (DDR_CTL_BASE + 0xB24) +#define REG_DDR_TIMING_CFG_0 (DDR_CTL_BASE + 0x104)#define REG_DDR_SDRAM_CFG (DDR_CTL_BASE + 0x110) +#define REG_DDR_TIMING_CFG_4 (DDR_CTL_BASE + 0x160)#define REG_DDR_DEBUG_19 (DDR_CTL_BASE + 0xF48)#define SRC_BASE_ADDR (0x44460000)
drivers/ddr/imx/imx9/ddr_init.c +122 -0
142 lines not on this page · raw message
Signature · 1 line
2.40.0
PATCH 34/42 ddr: imx9: Add workaround for DDRPHY rank-to-rank errata
Quoted 10 lines
From: Ye Li <[email protected]>
According to DDRPHY errata, the Rank-to-Rank Spacing andtphy_rdcsgapspecification does not include the Critical Delay Difference (CDD) to properly define the required rank-to-rank read command spacing after executing PHY training firmware.
Following the errata workaround, at the end of data training, we get all CDD values through the MessageBlock, then re-configure the DDRC timing of WWT/WRT/RRT/RWT with comparing MAX CDD values.Signed-off-by Ye Li <[email protected]>Acked-by Peng Fan <[email protected]>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, 82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: [email protected] =====================================================================
PATCH 35/42 imx9: imx93_evk: Update spl stack & bss base address
In reply to Peng Fan (OSS)From: Peng Fan <[email protected]>
As the ddr timing info will be saved at the last 16KB of the OCRAM, spl stack & bss base should be updated to avoid conflict.
--- configs/imx93_11x11_evk_defconfig | 4 ++-- configs/imx93_11x11_evk_ld_defconfig | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)
configs/imx93_11x11_evk_defconfig +2 -2
@@ -15,7 +15,7 @@ CONFIG_TARGET_IMX93_11X11_EVK=y CONFIG_SYS_PROMPT="u-boot=> " CONFIG_SPL_SERIAL=y CONFIG_SPL_DRIVERS_MISC=y -CONFIG_SPL_STACK=0x2051ddd0 +CONFIG_SPL_STACK=0x20519dd0 CONFIG_SPL=y CONFIG_SPL_IMX_ROMAPI_LOADADDR=0x88000000 CONFIG_SPL_LOAD_IMX_CONTAINER=y
@@ -30,7 +30,7 @@ CONFIG_BOARD_EARLY_INIT_F=y CONFIG_BOARD_LATE_INIT=y CONFIG_SPL_MAX_SIZE=0x26000 CONFIG_SPL_HAS_BSS_LINKER_SECTION=y -CONFIG_SPL_BSS_START_ADDR=0x2051e000 +CONFIG_SPL_BSS_START_ADDR=0x2051a000 CONFIG_SPL_BSS_MAX_SIZE=0x2000 CONFIG_SPL_BOARD_INIT=y CONFIG_SPL_BOOTROM_SUPPORT=y
configs/imx93_11x11_evk_ld_defconfig +2 -2
@@ -31,12 +31,12 @@ CONFIG_BOARD_EARLY_INIT_F=y CONFIG_BOARD_LATE_INIT=y CONFIG_SPL_MAX_SIZE=0x26000 CONFIG_SPL_HAS_BSS_LINKER_SECTION=y -CONFIG_SPL_BSS_START_ADDR=0x2051e000 +CONFIG_SPL_BSS_START_ADDR=0x2051a000 CONFIG_SPL_BSS_MAX_SIZE=0x2000 CONFIG_SPL_BOARD_INIT=y CONFIG_SPL_BOOTROM_SUPPORT=y # CONFIG_SPL_SHARES_INIT_SP_ADDR is not set -CONFIG_SPL_STACK=0x2051ddd0 +CONFIG_SPL_STACK=0x20519dd0 CONFIG_SYS_SPL_MALLOC=y CONFIG_HAS_CUSTOM_SPL_MALLOC_START=y CONFIG_CUSTOM_SYS_SPL_MALLOC_ADDR=0x83200000
Signature · 1 line
2.40.0
PATCH 35/42 imx9: imx93_evk: Update spl stack & bss base address
Quoted 5 lines
From: Peng Fan <[email protected]>
As the ddr timing info will be saved at the last 16KB of the OCRAM, spl stack & bss base should be updated to avoid conflict.Signed-off-by Peng Fan <[email protected]>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, 82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: [email protected] =====================================================================
PATCH 36/42 ddr: imx9: Change the saved ddr data base to 0x2051c000
In reply to Peng Fan (OSS)From: Jacky Bai <[email protected]>
change the ddr saved info to the last 16KB of the OCRAM.
--- drivers/ddr/imx/imx9/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/ddr/imx/imx9/Kconfig +1 -1
@@ -22,6 +22,6 @@ config SAVED_DRAM_TIMING_BASE help after DRAM is trained, need to save the dram related timming info into memory for low power use. - default 0x204DC000 + default 0x2051C000 endmenu
Signature · 1 line
2.40.0
PATCH 36/42 ddr: imx9: Change the saved ddr data base to 0x2051c000
Quoted 6 lines
From: Jacky Bai <[email protected]>
change the ddr saved info to the last 16KB of the OCRAM.Signed-off-by Jacky Bai <[email protected]>Reviewed-by Peng Fan <[email protected]>Reviewed-by Ye Li <[email protected]>Signed-off-by Peng Fan <[email protected]>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, 82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: [email protected] =====================================================================
PATCH 37/42 ddr: imx93: Add 625M bypass clock support
In reply to Peng Fan (OSS)From: Jacky Bai <[email protected]>
Add 625M bypass clock that may be used DRAM 625M
bypass mode support.
--- arch/arm/mach-imx/imx9/clock.c | 3 +++ drivers/ddr/imx/phy/ddrphy_utils.c | 3 +++ 2 files changed, 6 insertions(+)
arch/arm/mach-imx/imx9/clock.c +3 -0
@@ -648,6 +648,9 @@ void dram_pll_init(ulong pll_val)void dram_enable_bypass (ulong clk_val) {switch (clk_val) { +case MHZ (625 ): +ccm_clk_root_cfg (DRAM_ALT_CLK_ROOT ,SYS_PLL_PFD2 ,1 ); +break ;case MHZ (400 ):ccm_clk_root_cfg (DRAM_ALT_CLK_ROOT ,SYS_PLL_PFD1 ,2 );break ;
drivers/ddr/imx/phy/ddrphy_utils.c +3 -0
@@ -148,6 +148,9 @@ void ddrphy_init_set_dfi_clk(unsigned int drate)dram_pll_init (MHZ (167 ));dram_disable_bypass ();break ; +case 625 : +dram_enable_bypass (MHZ (625 )); +break ;case 400 :dram_enable_bypass (MHZ (400 ));break ;
Signature · 1 line
2.40.0
PATCH 38/42 ddr: imx93: update the ddr init to support mult setpoints
In reply to Peng Fan (OSS)From: Jacky Bai <[email protected]>
Update the DDR init flow for multi-setpoint support on i.MX93. A new fsp_cfg struct need to be added in the timing file to store the diff part of the DDRC and DRAM MR register for each setpoint.
--- arch/arm/include/asm/arch-imx8m/ddr.h | 2 +- arch/arm/include/asm/arch-imx9/ddr.h | 21 ++++- drivers/ddr/imx/imx9/ddr_init.c | 113 +++++++++++++++++++++++++- drivers/ddr/imx/phy/helper.c | 5 +- 4 files changed, 134 insertions(+), 7 deletions(-)
arch/arm/include/asm/arch-imx8m/ddr.h +1 -1
@@ -709,7 +709,7 @@ int ddr_init(struct dram_timing_info *timing_info);int ddr_cfg_phy (struct dram_timing_info *timing_info);void load_lpddr4_phy_pie (void );void ddrphy_trained_csr_save (struct dram_cfg_param *param,unsigned int num); -void dram_config_save (struct dram_timing_info *info,unsigned long base); +void *dram_config_save (struct dram_timing_info *info,unsigned long base);void board_dram_ecc_scrub (void );void ddrc_inline_ecc_scrub (unsigned int start_address,unsigned int range_address);
arch/arm/include/asm/arch-imx9/ddr.h +20 -1
@@ -13,11 +13,21 @@#define DDR_PHY_BASE 0x4E100000#define DDRMIX_BLK_CTRL_BASE 0x4E010000 +#define REG_DDR_SDRAM_MD_CNTL (DDR_CTL_BASE + 0x120) +#define REG_DDR_CS0_BNDS (DDR_CTL_BASE + 0x0) +#define REG_DDR_CS1_BNDS (DDR_CTL_BASE + 0x8)#define REG_DDRDSR_2 (DDR_CTL_BASE + 0xB24)#define REG_DDR_TIMING_CFG_0 (DDR_CTL_BASE + 0x104)#define REG_DDR_SDRAM_CFG (DDR_CTL_BASE + 0x110)#define REG_DDR_TIMING_CFG_4 (DDR_CTL_BASE + 0x160)#define REG_DDR_DEBUG_19 (DDR_CTL_BASE + 0xF48) +#define REG_DDR_SDRAM_CFG_3 (DDR_CTL_BASE + 0x260) +#define REG_DDR_SDRAM_CFG_4 (DDR_CTL_BASE + 0x264) +#define REG_DDR_SDRAM_MD_CNTL_2 (DDR_CTL_BASE + 0x270) +#define REG_DDR_SDRAM_MPR4 (DDR_CTL_BASE + 0x28C) +#define REG_DDR_SDRAM_MPR5 (DDR_CTL_BASE + 0x290) + +#define REG_DDR_ERR_EN (DDR_CTL_BASE + 0x1000)#define SRC_BASE_ADDR (0x44460000)#define SRC_DPHY_BASE_ADDR (SRC_BASE_ADDR + 0x1400)
@@ -52,6 +62,12 @@ struct dram_cfg_param {unsigned int val; }; +struct dram_fsp_cfg { +struct dram_cfg_param ddrc_cfg[20 ]; +struct dram_cfg_param mr_cfg[10 ]; +unsigned int bypass; +}; +struct dram_fsp_msg {unsigned int drate;enum fw_type fw_type;
@@ -63,6 +79,9 @@ struct dram_timing_info {/* umctl2 config */ struct dram_cfg_param *ddrc_cfg;unsigned int ddrc_cfg_num; +/* fsp config */ +struct dram_fsp_cfg *fsp_cfg; +unsigned int fsp_cfg_num;/* ddrphy config */ struct dram_cfg_param *ddrphy_cfg;unsigned int ddrphy_cfg_num;
@@ -86,7 +105,7 @@ int ddr_init(struct dram_timing_info *timing_info);int ddr_cfg_phy (struct dram_timing_info *timing_info);void load_lpddr4_phy_pie (void );void ddrphy_trained_csr_save (struct dram_cfg_param *param,unsigned int num); -void dram_config_save (struct dram_timing_info *info,unsigned long base); +void *dram_config_save (struct dram_timing_info *info,unsigned long base);void board_dram_ecc_scrub (void );void ddrc_inline_ecc_scrub (unsigned int start_address,unsigned int range_address);
drivers/ddr/imx/imx9/ddr_init.c +110 -3
149 lines not on this page · raw message
drivers/ddr/imx/phy/helper.c +3 -2
@@ -167,8 +167,7 @@ void ddrphy_trained_csr_save(struct dram_cfg_param *ddrphy_csr,dwc_ddrphy_apb_wr (0xd0000 ,0x1 ); } -void dram_config_save (struct dram_timing_info *timing_info, -unsigned long saved_timing_base) +void *dram_config_save (struct dram_timing_info *timing_info,unsigned long saved_timing_base) {int i =0 ;struct dram_timing_info *saved_timing = (struct dram_timing_info *)saved_timing_base;
@@ -217,4 +216,6 @@ void dram_config_save(struct dram_timing_info *timing_info, cfg->val = timing_info->ddrphy_pie[i].val; cfg++; } + +return (void *)cfg; }
Signature · 1 line
2.40.0
PATCH 38/42 ddr: imx93: update the ddr init to support mult setpoints
Quoted 7 lines
From: Jacky Bai <[email protected]>
Update the DDR init flow for multi-setpoint support on i.MX93. A newfsp_cfgstruct need to be added in the timing file to store the diff part of the DDRC and DRAM MR register for each setpoint.Signed-off-by Jacky Bai <[email protected]>Reviewed-by Ye Li <[email protected]>Signed-off-by Peng Fan <[email protected]>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, 82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: [email protected] =====================================================================
PATCH 39/42 ddr: imx9: update the rank setting for multi fsp support
In reply to Peng Fan (OSS)From: Jacky Bai <[email protected]>
The rank setting flow should be updated to support multi fsp config.
--- drivers/ddr/imx/imx9/ddr_init.c | 178 +++++++++++++++++++++----------- 1 file changed, 116 insertions(+), 62 deletions(-)
drivers/ddr/imx/imx9/ddr_init.c +116 -62
@@ -145,68 +145,122 @@ void get_trained_CDD(u32 fsp) g_cdd_ww_max[fsp] = cdd_cha_ww_max > cdd_chb_ww_max ? cdd_cha_ww_max : cdd_chb_ww_max; } -void update_umctl2_rank_space_setting (unsigned int pstat_num) +static u32 ddrc_get_fsp_reg_setting (struct dram_cfg_param *ddrc_cfg,unsigned int cfg_num,u32 reg) { -u32 tmp, tmp_t; +unsigned int i; + +for (i =0 ; i < cfg_num; i++) { +if (reg == ddrc_cfg[i].reg) +return ddrc_cfg[i].val; + } -int wwt, rrt, wrt, rwt; -int ext_wwt, ext_rrt, ext_wrt, ext_rwt; -int max_wwt, max_rrt, max_wrt, max_rwt; - -/* read wwt, rrt, wrt, rwt fields from timing_cfg_0 */ - tmp =readl (REG_DDR_TIMING_CFG_0 ); - wwt = (tmp >>24 ) &0x3 ; - rrt = (tmp >>26 ) &0x3 ; - wrt = (tmp >>28 ) &0x3 ; - rwt = (tmp >>30 ) &0x3 ; - -/* read rxt_wwt, ext_rrt, ext_wrt, ext_rwt fields from timing_cfg_4 */ - tmp_t =readl (REG_DDR_TIMING_CFG_4 ); - ext_wwt = (tmp >>8 ) &0x1 ; - ext_rrt = (tmp >>10 ) &0x1 ; - ext_wrt = (tmp >>12 ) &0x1 ; - ext_rwt = (tmp >>14 ) &0x3 ; - - wwt = (ext_wwt <<2 ) | wwt; - rrt = (ext_rrt <<2 ) | wwt; - wrt = (ext_wrt <<2 ) | wrt; - rwt = (ext_rwt <<2 ) | rwt; - -/* calculate the maximum between controller and cdd values */ - max_wwt =MAX (g_cdd_ww_max[0 ], wwt); - max_rrt =MAX (g_cdd_rr_max[0 ], rrt); - max_wrt =MAX (g_cdd_wr_max[0 ], wrt); - max_rwt =MAX (g_cdd_rw_max[0 ], rwt); - -/* verify values to see if are bigger then 7 or 15 (3 bits or 4 bits) */ -if (max_wwt >7 ) - max_wwt =7 ; -if (max_rrt >7 ) - max_rrt =7 ; -if (max_wrt >7 ) - max_wrt =7 ; -if (max_rwt >15 ) - max_rwt =15 ; - -/* recalculate timings for controller registers */ - wwt = max_wwt &0x3 ; - rrt = max_rrt &0x3 ; - wrt = max_wrt &0x3 ; - rwt = max_rwt &0x3 ; - - ext_wwt = (max_wwt &0x4 ) >>2 ; - ext_rrt = (max_rrt &0x4 ) >>2 ; - ext_wrt = (max_wrt &0x4 ) >>2 ; - ext_rwt = (max_rwt &0xC ) >>2 ; - -/* update timing_cfg_0 and timing_cfg_4 */ - tmp = (tmp &0x00ffffff ) | (rwt <<30 ) | (wrt <<28 ) | - (rrt <<26 ) | (wwt <<24 ); -writel (tmp,REG_DDR_TIMING_CFG_0 ); - - tmp_t = (tmp_t &0xFFFF2AFF ) | (ext_rwt <<14 ) | - (ext_wrt <<12 ) | (ext_rrt <<10 ) | (ext_wwt <<8 ); -writel (tmp_t,REG_DDR_TIMING_CFG_4 ); +return 0 ; +} + +static void ddrc_update_fsp_reg_setting (struct dram_cfg_param *ddrc_cfg,int cfg_num, +u32 reg,u32 val) +{ +unsigned int i; + +for (i =0 ; i < cfg_num; i++) { +if (reg == ddrc_cfg[i].reg) { + ddrc_cfg[i].val = val; +return ; + } + } +} + +void update_umctl2_rank_space_setting (struct dram_timing_info *dram_timing,unsigned int pstat_num) +{ +u32 tmp, tmp_t; +u32 wwt, rrt, wrt, rwt; +u32 ext_wwt, ext_rrt, ext_wrt, ext_rwt; +u32 max_wwt, max_rrt, max_wrt, max_rwt; +u32 i; + +for (i =0 ; i < pstat_num; i++) { +/* read wwt, rrt, wrt, rwt fields from timing_cfg_0 */ +if (!dram_timing->fsp_cfg_num) { + tmp =ddrc_get_fsp_reg_setting (dram_timing->ddrc_cfg, + dram_timing->ddrc_cfg_num, +REG_DDR_TIMING_CFG_0 ); + }else { + tmp =ddrc_get_fsp_reg_setting (dram_timing->fsp_cfg[i].ddrc_cfg, +ARRAY_SIZE (dram_timing->fsp_cfg[i].ddrc_cfg), +REG_DDR_TIMING_CFG_0 ); + } + wwt = (tmp >>24 ) &0x3 ; + rrt = (tmp >>26 ) &0x3 ; + wrt = (tmp >>28 ) &0x3 ; + rwt = (tmp >>30 ) &0x3 ; + +/* read rxt_wwt, ext_rrt, ext_wrt, ext_rwt fields from timing_cfg_4 */ +if (!dram_timing->fsp_cfg_num) { + tmp_t =ddrc_get_fsp_reg_setting (dram_timing->ddrc_cfg, + dram_timing->ddrc_cfg_num, +REG_DDR_TIMING_CFG_4 ); + }else { + tmp_t =ddrc_get_fsp_reg_setting (dram_timing->fsp_cfg[i].ddrc_cfg, +ARRAY_SIZE (dram_timing->fsp_cfg[i].ddrc_cfg), +REG_DDR_TIMING_CFG_4 ); + } + ext_wwt = (tmp_t >>8 ) &0x3 ; + ext_rrt = (tmp_t >>10 ) &0x3 ; + ext_wrt = (tmp_t >>12 ) &0x3 ; + ext_rwt = (tmp_t >>14 ) &0x3 ; + + wwt = (ext_wwt <<2 ) | wwt; + rrt = (ext_rrt <<2 ) | rrt; + wrt = (ext_wrt <<2 ) | wrt; + rwt = (ext_rwt <<2 ) | rwt; + + max_wwt =MAX (g_cdd_ww_max[0 ], wwt); + max_rrt =MAX (g_cdd_rr_max[0 ], rrt); + max_wrt =MAX (g_cdd_wr_max[0 ], wrt); + max_rwt =MAX (g_cdd_rw_max[0 ], rwt); +/* verify values to see if are bigger then 15 (4 bits) */ +if (max_wwt >15 ) + max_wwt =15 ; +if (max_rrt >15 ) + max_rrt =15 ; +if (max_wrt >15 ) + max_wrt =15 ; +if (max_rwt >15 ) + max_rwt =15 ; + +/* recalculate timings for controller registers */ + wwt = max_wwt &0x3 ; + rrt = max_rrt &0x3 ; + wrt = max_wrt &0x3 ; + rwt = max_rwt &0x3 ; + + ext_wwt = (max_wwt &0xC ) >>2 ; + ext_rrt = (max_rrt &0xC ) >>2 ; + ext_wrt = (max_wrt &0xC ) >>2 ; + ext_rwt = (max_rwt &0xC ) >>2 ; + +/* update timing_cfg_0 and timing_cfg_4 */ + tmp = (tmp &0x00ffffff ) | (rwt <<30 ) | (wrt <<28 ) | + (rrt <<26 ) | (wwt <<24 ); + tmp_t = (tmp_t &0xFFFF00FF ) | (ext_rwt <<14 ) | + (ext_wrt <<12 ) | (ext_rrt <<10 ) | (ext_wwt <<8 ); + +if (!dram_timing->fsp_cfg_num) { +ddrc_update_fsp_reg_setting (dram_timing->ddrc_cfg, + dram_timing->ddrc_cfg_num, +REG_DDR_TIMING_CFG_0 , tmp); +ddrc_update_fsp_reg_setting (dram_timing->ddrc_cfg, + dram_timing->ddrc_cfg_num, +REG_DDR_TIMING_CFG_4 , tmp_t); + }else { +ddrc_update_fsp_reg_setting (dram_timing->fsp_cfg[i].ddrc_cfg, +ARRAY_SIZE (dram_timing->fsp_cfg[i].ddrc_cfg), +REG_DDR_TIMING_CFG_0 , tmp); +ddrc_update_fsp_reg_setting (dram_timing->fsp_cfg[i].ddrc_cfg, +ARRAY_SIZE (dram_timing->fsp_cfg[i].ddrc_cfg), +REG_DDR_TIMING_CFG_4 , tmp_t); + } + } }u32 ddrc_mrr (u32 chip_select,u32 mode_reg_num,u32 *mode_reg_val)
@@ -313,13 +367,13 @@ int ddr_init(struct dram_timing_info *dram_timing)debug ("DDRINFO: ddrphy config done\n" ); +update_umctl2_rank_space_setting (dram_timing, dram_timing->fsp_msg_num -1 ); +/* rogram the ddrc registers */ debug ("DDRINFO: ddrc config start\n" );ddrc_config (dram_timing);debug ("DDRINFO: ddrc config done\n" ); -update_umctl2_rank_space_setting (dram_timing->fsp_msg_num -1 ); -#ifdef CONFIG_IMX9_DRAM_PM_COUNTER writel (0x200000 ,REG_DDR_DEBUG_19 );#endif
Signature · 1 line
2.40.0
PATCH 39/42 ddr: imx9: update the rank setting for multi fsp support
Quoted 6 lines
From: Jacky Bai <[email protected]>
The rank setting flow should be updated to support multi fsp config.Signed-off-by Jacky Bai <[email protected]>Reviewed-by Ye Li <[email protected]>Signed-off-by Peng Fan <[email protected]>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, 82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: [email protected] =====================================================================
PATCH 40/42 imx9: Calculate DDR size from DDRC setting
In reply to Peng Fan (OSS)From: Ye Li <[email protected]>
To avoid using static setting for ECC enabled DDR size, switch to calculate DDR size from DDRC setting
--- arch/arm/mach-imx/imx9/soc.c | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-)
arch/arm/mach-imx/imx9/soc.c +17 -4
@@ -36,6 +36,7 @@#include <asm/arch-imx/cpu.h> #include <asm/mach-imx/s400_api.h> #include <fuse.h> +#include <asm/arch/ddr.h> DECLARE_GLOBAL_DATA_PTR ;
@@ -327,14 +328,26 @@ void enable_caches(void)__weak int board_phys_sdram_size (phys_size_t *size) { +phys_size_t start, end; +phys_size_t val; +if (!size)return -EINVAL ; - *size =PHYS_SDRAM_SIZE ; + val =readl (REG_DDR_CS0_BNDS ); + start = (val >>16 ) <<24 ; + end = (val &0xFFFF ); + end = end ? end +1 :0 ; + end = end <<24 ; + *size = end - start; + + val =readl (REG_DDR_CS1_BNDS ); + start = (val >>16 ) <<24 ; + end = (val &0xFFFF ); + end = end ? end +1 :0 ; + end = end <<24 ; + *size += end - start; -#ifdef PHYS_SDRAM_2_SIZE - *size +=PHYS_SDRAM_2_SIZE ; -#endif return 0 ; }
Signature · 1 line
2.40.0
PATCH 40/42 imx9: Calculate DDR size from DDRC setting
Quoted 7 lines
From: Ye Li <[email protected]>
To avoid using static setting for ECC enabled DDR size, switch to calculate DDR size from DDRC settingSigned-off-by Ye Li <[email protected]>Reviewed-by Peng Fan <[email protected]>Reviewed-by Jacky Bai <[email protected]>Signed-off-by Peng Fan <[email protected]>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, 82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: [email protected] =====================================================================
PATCH 41/42 imx9: imx93_evk: update ddr timing file
In reply to Peng Fan (OSS)From: Peng Fan <[email protected]>
Update DDR timing file generated by DDR Config Tool
1. Dynamic refresh rate is set by default
2. The 3rd freq will be 625MTS based on power and performance better than 100MTS.
--- board/freescale/imx93_evk/lpddr4x_timing.c | 3361 +++++++++++--------- 1 file changed, 1935 insertions(+), 1426 deletions(-)
board/freescale/imx93_evk/lpddr4x_timing.c +1935 -1426
@@ -1,11 +1,8 @@// SPDX-License-Identifier: GPL-2.0+ /* -* Copyright 2022 NXP +* Copyright 2023 NXP * -* Generated code from NXP_DDR_tool -* -* Align with uboot version: -* imx_v2019.04_5.4.x and above version +* Code generated with DDR Tool v2.0.0_5.3. */ #include <linux/kernel.h>
@@ -13,1443 +10,1939 @@struct dram_cfg_param ddr_ddrc_cfg[] = {/** Initialize DDRC registers **/ - {0x4e300110 ,0x44140001 }, - {0x4e300000 ,0x8000ff }, - {0x4e300008 ,0x0 }, - {0x4e300080 ,0x80000512 }, - {0x4e300084 ,0x0 }, - {0x4e300114 ,0x2 }, - {0x4e300260 ,0x0 }, - {0x4e30017c ,0x0 }, - {0x4e300104 ,0xaaee001b }, - {0x4e300108 ,0x626ee273 }, - {0x4e30010c ,0x5c18b }, - {0x4e300100 ,0x25ab321b }, - {0x4e300160 ,0x9002 }, - {0x4e30016c ,0x35f00000 }, - {0x4e300250 ,0x2b }, - {0x4e300254 ,0x0 }, - {0x4e30025c ,0x400 }, - {0x4e300300 ,0x16291314 }, - {0x4e300304 ,0x163110c }, - {0x4e300308 ,0xa200e3c }, - {0x4e300170 ,0x8b0b0608 }, - {0x4e300124 ,0x1c77071d }, - {0x4e300f04 ,0x80 }, + {0x4e300110 ,0x44100001 }, + {0x4e300000 ,0x8000ff }, + {0x4e300008 ,0x0 }, + {0x4e300080 ,0x80000512 }, + {0x4e300084 ,0x0 }, + {0x4e300114 ,0x1002 }, + {0x4e300260 ,0x80 }, + {0x4e300f04 ,0x80 }, + {0x4e300800 ,0x43b30002 }, + {0x4e300804 ,0x1f1f1f1f }, + {0x4e301000 ,0x0 }, + {0x4e301240 ,0x0 }, + {0x4e301244 ,0x0 }, + {0x4e301248 ,0x0 }, + {0x4e30124c ,0x0 }, + {0x4e301250 ,0x0 }, + {0x4e301254 ,0x0 }, + {0x4e301258 ,0x0 }, + {0x4e30125c ,0x0 }, +}; + +/* dram fsp cfg */ +static struct dram_fsp_cfg ddr_dram_fsp_cfg[] = { + { + { + {0x4e300100 ,0x24AB321B }, + {0x4e300104 ,0xF8EE001B }, + {0x4e300108 ,0x2F2EE233 }, + {0x4e30010C ,0x0005E18B }, + {0x4e300124 ,0x1C770000 }, + {0x4e300160 ,0x00009102 }, + {0x4e30016C ,0x35F00000 }, + {0x4e300170 ,0x8B0B0608 }, + {0x4e300250 ,0x00000028 }, + {0x4e300254 ,0x015B015B }, + {0x4e300258 ,0x00000008 }, + {0x4e30025C ,0x00000400 }, + {0x4e300300 ,0x224F2213 }, + {0x4e300304 ,0x015B2213 }, + {0x4e300308 ,0x0A3C0E3C }, + }, + { + {0x01 ,0xE4 }, + {0x02 ,0x36 }, + {0x03 ,0x32 }, + {0x0b ,0x46 }, + {0x0c ,0x11 }, + {0x0e ,0x11 }, + {0x16 ,0x04 }, + }, +0 , + }, + { + { + {0x4e300100 ,0x12552100 }, + {0x4e300104 ,0xF877000E }, + {0x4e300108 ,0x1816B4AA }, + {0x4e30010C ,0x005101E6 }, + {0x4e300124 ,0x0E3C0000 }, + {0x4e300160 ,0x00009102 }, + {0x4e30016C ,0x30900000 }, + {0x4e300170 ,0x8A0A0508 }, + {0x4e300250 ,0x00000014 }, + {0x4e300254 ,0x00AA00AA }, + {0x4e300258 ,0x00000008 }, + {0x4e30025C ,0x00000400 }, + }, + { + {0x01 ,0xB4 }, + {0x02 ,0x1B }, + {0x03 ,0x32 }, + {0x0b ,0x46 }, + {0x0c ,0x11 }, + {0x0e ,0x11 }, + {0x16 ,0x04 }, + }, +0 , + }, + { + { + {0x4e300100 ,0x00061000 }, + {0x4e300104 ,0xF855000A }, + {0x4e300108 ,0x6E62FA48 }, + {0x4e30010C ,0x0031010D }, + {0x4e300124 ,0x04C50000 }, + {0x4e300160 ,0x00009102 }, + {0x4e30016C ,0x30000000 }, + {0x4e300170 ,0x89090408 }, + {0x4e300250 ,0x00000007 }, + {0x4e300254 ,0x00340034 }, + {0x4e300258 ,0x00000008 }, + {0x4e30025C ,0x00000400 }, + }, + { + {0x01 ,0x94 }, + {0x02 ,0x9 }, + {0x03 ,0x32 }, + {0x0b ,0x46 }, + {0x0c ,0x11 }, + {0x0e ,0x11 }, + {0x16 ,0x04 }, + }, +1 , + } };/* PHY Initialize Configuration */ struct dram_cfg_param ddr_ddrphy_cfg[] = { - {0x100a0 ,0x4 }, - {0x100a1 ,0x5 }, - {0x100a2 ,0x6 }, - {0x100a3 ,0x7 }, - {0x100a4 ,0x0 }, - {0x100a5 ,0x1 }, - {0x100a6 ,0x2 }, - {0x100a7 ,0x3 }, - {0x110a0 ,0x3 }, - {0x110a1 ,0x2 }, - {0x110a2 ,0x0 }, - {0x110a3 ,0x1 }, - {0x110a4 ,0x7 }, - {0x110a5 ,0x6 }, - {0x110a6 ,0x4 }, - {0x110a7 ,0x5 }, - {0x1005f ,0x5ff }, - {0x1015f ,0x5ff }, - {0x1105f ,0x5ff }, - {0x1115f ,0x5ff }, - {0x55 ,0x1ff }, - {0x1055 ,0x1ff }, - {0x2055 ,0x1ff }, - {0x200c5 ,0x19 }, - {0x2002e ,0x2 }, - {0x90204 ,0x0 }, - {0x20024 ,0x1e3 }, - {0x2003a ,0x2 }, - {0x2007d ,0x212 }, - {0x2007c ,0x61 }, - {0x20056 ,0x3 }, - {0x1004d ,0xe00 }, - {0x1014d ,0xe00 }, - {0x1104d ,0xe00 }, - {0x1114d ,0xe00 }, - {0x10049 ,0xe00 }, - {0x10149 ,0xe00 }, - {0x11049 ,0xe00 }, - {0x11149 ,0xe00 }, - {0x43 ,0x60 }, - {0x1043 ,0x60 }, - {0x2043 ,0x60 }, - {0x20018 ,0x1 }, - {0x20075 ,0x4 }, - {0x20050 ,0x0 }, - {0x2009b ,0x2 }, - {0x20008 ,0x3a5 }, - {0x20088 ,0x9 }, - {0x200b2 ,0x10c }, - {0x10043 ,0x5a1 }, - {0x10143 ,0x5a1 }, - {0x11043 ,0x5a1 }, - {0x11143 ,0x5a1 }, - {0x200fa ,0x2 }, - {0x20019 ,0x1 }, - {0x200f0 ,0x0 }, - {0x200f1 ,0x0 }, - {0x200f2 ,0x4444 }, - {0x200f3 ,0x8888 }, - {0x200f4 ,0x5555 }, - {0x200f5 ,0x0 }, - {0x200f6 ,0x0 }, - {0x200f7 ,0xf000 }, - {0x1004a ,0x500 }, - {0x1104a ,0x500 }, - {0x20025 ,0x0 }, - {0x2002d ,0x0 }, - {0x20021 ,0x0 }, - {0x2002c ,0x0 }, + {0x100a0 ,0x4 }, + {0x100a1 ,0x5 }, + {0x100a2 ,0x6 }, + {0x100a3 ,0x7 }, + {0x100a4 ,0x0 }, + {0x100a5 ,0x1 }, + {0x100a6 ,0x2 }, + {0x100a7 ,0x3 }, + {0x110a0 ,0x3 }, + {0x110a1 ,0x2 }, + {0x110a2 ,0x0 }, + {0x110a3 ,0x1 }, + {0x110a4 ,0x7 }, + {0x110a5 ,0x6 }, + {0x110a6 ,0x4 }, + {0x110a7 ,0x5 }, + {0x1005f ,0x5ff }, + {0x1015f ,0x5ff }, + {0x1105f ,0x5ff }, + {0x1115f ,0x5ff }, + {0x11005f ,0x5ff }, + {0x11015f ,0x5ff }, + {0x11105f ,0x5ff }, + {0x11115f ,0x5ff }, + {0x21005f ,0x5ff }, + {0x21015f ,0x5ff }, + {0x21105f ,0x5ff }, + {0x21115f ,0x5ff }, + {0x55 ,0x1ff }, + {0x1055 ,0x1ff }, + {0x2055 ,0x1ff }, + {0x200c5 ,0x19 }, + {0x1200c5 ,0xb }, + {0x2200c5 ,0x7 }, + {0x2002e ,0x2 }, + {0x12002e ,0x2 }, + {0x22002e ,0x2 }, + {0x90204 ,0x0 }, + {0x190204 ,0x0 }, + {0x290204 ,0x0 }, + {0x20024 ,0x1e3 }, + {0x2003a ,0x2 }, + {0x2007d ,0x212 }, + {0x2007c ,0x61 }, + {0x120024 ,0x1e3 }, + {0x2003a ,0x2 }, + {0x12007d ,0x212 }, + {0x12007c ,0x61 }, + {0x220024 ,0x1e3 }, + {0x2003a ,0x2 }, + {0x22007d ,0x212 }, + {0x22007c ,0x61 }, + {0x20056 ,0x3 }, + {0x120056 ,0x3 }, + {0x220056 ,0x3 }, + {0x1004d ,0x600 }, + {0x1014d ,0x600 }, + {0x1104d ,0x600 }, + {0x1114d ,0x600 }, + {0x11004d ,0x600 }, + {0x11014d ,0x600 }, + {0x11104d ,0x600 }, + {0x11114d ,0x600 }, + {0x21004d ,0x600 }, + {0x21014d ,0x600 }, + {0x21104d ,0x600 }, + {0x21114d ,0x600 }, + {0x10049 ,0xe00 }, + {0x10149 ,0xe00 }, + {0x11049 ,0xe00 }, + {0x11149 ,0xe00 }, + {0x110049 ,0xe00 }, + {0x110149 ,0xe00 }, + {0x111049 ,0xe00 }, + {0x111149 ,0xe00 }, + {0x210049 ,0xe00 }, + {0x210149 ,0xe00 }, + {0x211049 ,0xe00 }, + {0x211149 ,0xe00 }, + {0x43 ,0x60 }, + {0x1043 ,0x60 }, + {0x2043 ,0x60 }, + {0x20018 ,0x1 }, + {0x20075 ,0x4 }, + {0x20050 ,0x0 }, + {0x2009b ,0x2 }, + {0x20008 ,0x3a5 }, + {0x120008 ,0x1d3 }, + {0x220008 ,0x9c }, + {0x20088 ,0x9 }, + {0x200b2 ,0x10c }, + {0x10043 ,0x5a1 }, + {0x10143 ,0x5a1 }, + {0x11043 ,0x5a1 }, + {0x11143 ,0x5a1 }, + {0x1200b2 ,0x10c }, + {0x110043 ,0x5a1 }, + {0x110143 ,0x5a1 }, + {0x111043 ,0x5a1 }, + {0x111143 ,0x5a1 }, + {0x2200b2 ,0x10c }, + {0x210043 ,0x5a1 }, + {0x210143 ,0x5a1 }, + {0x211043 ,0x5a1 }, + {0x211143 ,0x5a1 }, + {0x200fa ,0x2 }, + {0x1200fa ,0x2 }, + {0x2200fa ,0x2 }, + {0x20019 ,0x1 }, + {0x120019 ,0x1 }, + {0x220019 ,0x1 }, + {0x200f0 ,0x600 }, + {0x200f1 ,0x0 }, + {0x200f2 ,0x4444 }, + {0x200f3 ,0x8888 }, + {0x200f4 ,0x5655 }, + {0x200f5 ,0x0 }, + {0x200f6 ,0x0 }, + {0x200f7 ,0xf000 }, + {0x1004a ,0x500 }, + {0x1104a ,0x500 }, + {0x20025 ,0x0 }, + {0x2002d ,0x0 }, + {0x12002d ,0x0 }, + {0x22002d ,0x0 }, + {0x2002c ,0x0 }, + {0x20021 ,0x0 }, + {0x200c7 ,0x21 }, + {0x1200c7 ,0x21 }, + {0x200ca ,0x24 }, + {0x1200ca ,0x24 } };/* ddr phy trained csr */ struct dram_cfg_param ddr_ddrphy_trained_csr[] = { - {0x200b2 ,0x0 }, - {0x1200b2 ,0x0 }, - {0x2200b2 ,0x0 }, - {0x200cb ,0x0 }, - {0x10043 ,0x0 }, - {0x110043 ,0x0 }, - {0x210043 ,0x0 }, - {0x10143 ,0x0 }, - {0x110143 ,0x0 }, - {0x210143 ,0x0 }, - {0x11043 ,0x0 }, - {0x111043 ,0x0 }, - {0x211043 ,0x0 }, - {0x11143 ,0x0 }, - {0x111143 ,0x0 }, - {0x211143 ,0x0 }, - {0x12043 ,0x0 }, - {0x112043 ,0x0 }, - {0x212043 ,0x0 }, - {0x12143 ,0x0 }, - {0x112143 ,0x0 }, - {0x212143 ,0x0 }, - {0x13043 ,0x0 }, - {0x113043 ,0x0 }, - {0x213043 ,0x0 }, - {0x13143 ,0x0 }, - {0x113143 ,0x0 }, - {0x213143 ,0x0 }, - {0x80 ,0x0 }, - {0x100080 ,0x0 }, - {0x200080 ,0x0 }, - {0x1080 ,0x0 }, - {0x101080 ,0x0 }, - {0x201080 ,0x0 }, - {0x2080 ,0x0 }, - {0x102080 ,0x0 }, - {0x202080 ,0x0 }, - {0x3080 ,0x0 }, - {0x103080 ,0x0 }, - {0x203080 ,0x0 }, - {0x4080 ,0x0 }, - {0x104080 ,0x0 }, - {0x204080 ,0x0 }, - {0x5080 ,0x0 }, - {0x105080 ,0x0 }, - {0x205080 ,0x0 }, - {0x6080 ,0x0 }, - {0x106080 ,0x0 }, - {0x206080 ,0x0 }, - {0x7080 ,0x0 }, - {0x107080 ,0x0 }, - {0x207080 ,0x0 }, - {0x8080 ,0x0 }, - {0x108080 ,0x0 }, - {0x208080 ,0x0 }, - {0x9080 ,0x0 }, - {0x109080 ,0x0 }, - {0x209080 ,0x0 }, - {0x10080 ,0x0 }, - {0x110080 ,0x0 }, - {0x210080 ,0x0 }, - {0x10180 ,0x0 }, - {0x110180 ,0x0 }, - {0x210180 ,0x0 }, - {0x11080 ,0x0 }, - {0x111080 ,0x0 }, - {0x211080 ,0x0 }, - {0x11180 ,0x0 }, - {0x111180 ,0x0 }, - {0x211180 ,0x0 }, - {0x12080 ,0x0 }, - {0x112080 ,0x0 }, - {0x212080 ,0x0 }, - {0x12180 ,0x0 }, - {0x112180 ,0x0 }, - {0x212180 ,0x0 }, - {0x13080 ,0x0 }, - {0x113080 ,0x0 }, - {0x213080 ,0x0 }, - {0x13180 ,0x0 }, - {0x113180 ,0x0 }, - {0x213180 ,0x0 }, - {0x10081 ,0x0 }, - {0x110081 ,0x0 }, - {0x210081 ,0x0 }, - {0x10181 ,0x0 }, - {0x110181 ,0x0 }, - {0x210181 ,0x0 }, - {0x11081 ,0x0 }, - {0x111081 ,0x0 }, - {0x211081 ,0x0 }, - {0x11181 ,0x0 }, - {0x111181 ,0x0 }, - {0x211181 ,0x0 }, - {0x12081 ,0x0 }, - {0x112081 ,0x0 }, - {0x212081 ,0x0 }, - {0x12181 ,0x0 }, - {0x112181 ,0x0 }, - {0x212181 ,0x0 }, - {0x13081 ,0x0 }, - {0x113081 ,0x0 }, - {0x213081 ,0x0 }, - {0x13181 ,0x0 }, - {0x113181 ,0x0 }, - {0x213181 ,0x0 }, - {0x100d0 ,0x0 }, - {0x1100d0 ,0x0 }, - {0x2100d0 ,0x0 }, - {0x101d0 ,0x0 }, - {0x1101d0 ,0x0 }, - {0x2101d0 ,0x0 }, - {0x110d0 ,0x0 }, - {0x1110d0 ,0x0 }, - {0x2110d0 ,0x0 }, - {0x111d0 ,0x0 }, - {0x1111d0 ,0x0 }, - {0x2111d0 ,0x0 }, - {0x120d0 ,0x0 }, - {0x1120d0 ,0x0 }, - {0x2120d0 ,0x0 }, - {0x121d0 ,0x0 }, - {0x1121d0 ,0x0 }, - {0x2121d0 ,0x0 }, - {0x130d0 ,0x0 }, - {0x1130d0 ,0x0 }, - {0x2130d0 ,0x0 }, - {0x131d0 ,0x0 }, - {0x1131d0 ,0x0 }, - {0x2131d0 ,0x0 }, - {0x100d1 ,0x0 }, - {0x1100d1 ,0x0 }, - {0x2100d1 ,0x0 }, - {0x101d1 ,0x0 }, - {0x1101d1 ,0x0 }, - {0x2101d1 ,0x0 }, - {0x110d1 ,0x0 }, - {0x1110d1 ,0x0 }, - {0x2110d1 ,0x0 }, - {0x111d1 ,0x0 }, - {0x1111d1 ,0x0 }, - {0x2111d1 ,0x0 }, - {0x120d1 ,0x0 }, - {0x1120d1 ,0x0 }, - {0x2120d1 ,0x0 }, - {0x121d1 ,0x0 }, - {0x1121d1 ,0x0 }, - {0x2121d1 ,0x0 }, - {0x130d1 ,0x0 }, - {0x1130d1 ,0x0 }, - {0x2130d1 ,0x0 }, - {0x131d1 ,0x0 }, - {0x1131d1 ,0x0 }, - {0x2131d1 ,0x0 }, - {0x10068 ,0x0 }, - {0x10168 ,0x0 }, - {0x10268 ,0x0 }, - {0x10368 ,0x0 }, - {0x10468 ,0x0 }, - {0x10568 ,0x0 }, - {0x10668 ,0x0 }, - {0x10768 ,0x0 }, - {0x10868 ,0x0 }, - {0x11068 ,0x0 }, - {0x11168 ,0x0 }, - {0x11268 ,0x0 }, - {0x11368 ,0x0 }, - {0x11468 ,0x0 }, - {0x11568 ,0x0 }, - {0x11668 ,0x0 }, - {0x11768 ,0x0 }, - {0x11868 ,0x0 }, - {0x12068 ,0x0 }, - {0x12168 ,0x0 }, - {0x12268 ,0x0 }, - {0x12368 ,0x0 }, - {0x12468 ,0x0 }, - {0x12568 ,0x0 }, - {0x12668 ,0x0 }, - {0x12768 ,0x0 }, - {0x12868 ,0x0 }, - {0x13068 ,0x0 }, - {0x13168 ,0x0 }, - {0x13268 ,0x0 }, - {0x13368 ,0x0 }, - {0x13468 ,0x0 }, - {0x13568 ,0x0 }, - {0x13668 ,0x0 }, - {0x13768 ,0x0 }, - {0x13868 ,0x0 }, - {0x10069 ,0x0 }, - {0x10169 ,0x0 }, - {0x10269 ,0x0 }, - {0x10369 ,0x0 }, - {0x10469 ,0x0 }, - {0x10569 ,0x0 }, - {0x10669 ,0x0 }, - {0x10769 ,0x0 }, - {0x10869 ,0x0 }, - {0x11069 ,0x0 }, - {0x11169 ,0x0 }, - {0x11269 ,0x0 }, - {0x11369 ,0x0 }, - {0x11469 ,0x0 }, - {0x11569 ,0x0 }, - {0x11669 ,0x0 }, - {0x11769 ,0x0 }, - {0x11869 ,0x0 }, - {0x12069 ,0x0 }, - {0x12169 ,0x0 }, - {0x12269 ,0x0 }, - {0x12369 ,0x0 }, - {0x12469 ,0x0 }, - {0x12569 ,0x0 }, - {0x12669 ,0x0 }, - {0x12769 ,0x0 }, - {0x12869 ,0x0 }, - {0x13069 ,0x0 }, - {0x13169 ,0x0 }, - {0x13269 ,0x0 }, - {0x13369 ,0x0 }, - {0x13469 ,0x0 }, - {0x13569 ,0x0 }, - {0x13669 ,0x0 }, - {0x13769 ,0x0 }, - {0x13869 ,0x0 }, - {0x1008c ,0x0 }, - {0x11008c ,0x0 }, - {0x21008c ,0x0 }, - {0x1018c ,0x0 }, - {0x11018c ,0x0 }, - {0x21018c ,0x0 }, - {0x1108c ,0x0 }, - {0x11108c ,0x0 }, - {0x21108c ,0x0 }, - {0x1118c ,0x0 }, - {0x11118c ,0x0 }, - {0x21118c ,0x0 }, - {0x1208c ,0x0 }, - {0x11208c ,0x0 }, - {0x21208c ,0x0 }, - {0x1218c ,0x0 }, - {0x11218c ,0x0 }, - {0x21218c ,0x0 }, - {0x1308c ,0x0 }, - {0x11308c ,0x0 }, - {0x21308c ,0x0 }, - {0x1318c ,0x0 }, - {0x11318c ,0x0 }, - {0x21318c ,0x0 }, - {0x1008d ,0x0 }, - {0x11008d ,0x0 }, - {0x21008d ,0x0 }, - {0x1018d ,0x0 }, - {0x11018d ,0x0 }, - {0x21018d ,0x0 }, - {0x1108d ,0x0 }, - {0x11108d ,0x0 }, - {0x21108d ,0x0 }, - {0x1118d ,0x0 }, - {0x11118d ,0x0 }, - {0x21118d ,0x0 }, - {0x1208d ,0x0 }, - {0x11208d ,0x0 }, - {0x21208d ,0x0 }, - {0x1218d ,0x0 }, - {0x11218d ,0x0 }, - {0x21218d ,0x0 }, - {0x1308d ,0x0 }, - {0x11308d ,0x0 }, - {0x21308d ,0x0 }, - {0x1318d ,0x0 }, - {0x11318d ,0x0 }, - {0x21318d ,0x0 }, - {0x100c0 ,0x0 }, - {0x1100c0 ,0x0 }, - {0x2100c0 ,0x0 }, - {0x101c0 ,0x0 }, - {0x1101c0 ,0x0 }, - {0x2101c0 ,0x0 }, - {0x102c0 ,0x0 }, - {0x1102c0 ,0x0 }, - {0x2102c0 ,0x0 }, - {0x103c0 ,0x0 }, - {0x1103c0 ,0x0 }, - {0x2103c0 ,0x0 }, - {0x104c0 ,0x0 }, - {0x1104c0 ,0x0 }, - {0x2104c0 ,0x0 }, - {0x105c0 ,0x0 }, - {0x1105c0 ,0x0 }, - {0x2105c0 ,0x0 }, - {0x106c0 ,0x0 }, - {0x1106c0 ,0x0 }, - {0x2106c0 ,0x0 }, - {0x107c0 ,0x0 }, - {0x1107c0 ,0x0 }, - {0x2107c0 ,0x0 }, - {0x108c0 ,0x0 }, - {0x1108c0 ,0x0 }, - {0x2108c0 ,0x0 }, - {0x110c0 ,0x0 }, - {0x1110c0 ,0x0 }, - {0x2110c0 ,0x0 }, - {0x111c0 ,0x0 }, - {0x1111c0 ,0x0 }, - {0x2111c0 ,0x0 }, - {0x112c0 ,0x0 }, - {0x1112c0 ,0x0 }, - {0x2112c0 ,0x0 }, - {0x113c0 ,0x0 }, - {0x1113c0 ,0x0 }, - {0x2113c0 ,0x0 }, - {0x114c0 ,0x0 }, - {0x1114c0 ,0x0 }, - {0x2114c0 ,0x0 }, - {0x115c0 ,0x0 }, - {0x1115c0 ,0x0 }, - {0x2115c0 ,0x0 }, - {0x116c0 ,0x0 }, - {0x1116c0 ,0x0 }, - {0x2116c0 ,0x0 }, - {0x117c0 ,0x0 }, - {0x1117c0 ,0x0 }, - {0x2117c0 ,0x0 }, - {0x118c0 ,0x0 }, - {0x1118c0 ,0x0 }, - {0x2118c0 ,0x0 }, - {0x120c0 ,0x0 }, - {0x1120c0 ,0x0 }, - {0x2120c0 ,0x0 }, - {0x121c0 ,0x0 }, - {0x1121c0 ,0x0 }, - {0x2121c0 ,0x0 }, - {0x122c0 ,0x0 }, - {0x1122c0 ,0x0 }, - {0x2122c0 ,0x0 }, - {0x123c0 ,0x0 }, - {0x1123c0 ,0x0 }, - {0x2123c0 ,0x0 }, - {0x124c0 ,0x0 }, - {0x1124c0 ,0x0 }, - {0x2124c0 ,0x0 }, - {0x125c0 ,0x0 }, - {0x1125c0 ,0x0 }, - {0x2125c0 ,0x0 }, - {0x126c0 ,0x0 }, - {0x1126c0 ,0x0 }, - {0x2126c0 ,0x0 }, - {0x127c0 ,0x0 }, - {0x1127c0 ,0x0 }, - {0x2127c0 ,0x0 }, - {0x128c0 ,0x0 }, - {0x1128c0 ,0x0 }, - {0x2128c0 ,0x0 }, - {0x130c0 ,0x0 }, - {0x1130c0 ,0x0 }, - {0x2130c0 ,0x0 }, - {0x131c0 ,0x0 }, - {0x1131c0 ,0x0 }, - {0x2131c0 ,0x0 }, - {0x132c0 ,0x0 }, - {0x1132c0 ,0x0 }, - {0x2132c0 ,0x0 }, - {0x133c0 ,0x0 }, - {0x1133c0 ,0x0 }, - {0x2133c0 ,0x0 }, - {0x134c0 ,0x0 }, - {0x1134c0 ,0x0 }, - {0x2134c0 ,0x0 }, - {0x135c0 ,0x0 }, - {0x1135c0 ,0x0 }, - {0x2135c0 ,0x0 }, - {0x136c0 ,0x0 }, - {0x1136c0 ,0x0 }, - {0x2136c0 ,0x0 }, - {0x137c0 ,0x0 }, - {0x1137c0 ,0x0 }, - {0x2137c0 ,0x0 }, - {0x138c0 ,0x0 }, - {0x1138c0 ,0x0 }, - {0x2138c0 ,0x0 }, - {0x100c1 ,0x0 }, - {0x1100c1 ,0x0 }, - {0x2100c1 ,0x0 }, - {0x101c1 ,0x0 }, - {0x1101c1 ,0x0 }, - {0x2101c1 ,0x0 }, - {0x102c1 ,0x0 }, - {0x1102c1 ,0x0 }, - {0x2102c1 ,0x0 }, - {0x103c1 ,0x0 }, - {0x1103c1 ,0x0 }, - {0x2103c1 ,0x0 }, - {0x104c1 ,0x0 }, - {0x1104c1 ,0x0 }, - {0x2104c1 ,0x0 }, - {0x105c1 ,0x0 }, - {0x1105c1 ,0x0 }, - {0x2105c1 ,0x0 }, - {0x106c1 ,0x0 }, - {0x1106c1 ,0x0 }, - {0x2106c1 ,0x0 }, - {0x107c1 ,0x0 }, - {0x1107c1 ,0x0 }, - {0x2107c1 ,0x0 }, - {0x108c1 ,0x0 }, - {0x1108c1 ,0x0 }, - {0x2108c1 ,0x0 }, - {0x110c1 ,0x0 }, - {0x1110c1 ,0x0 }, - {0x2110c1 ,0x0 }, - {0x111c1 ,0x0 }, - {0x1111c1 ,0x0 }, - {0x2111c1 ,0x0 }, - {0x112c1 ,0x0 }, - {0x1112c1 ,0x0 }, - {0x2112c1 ,0x0 }, - {0x113c1 ,0x0 }, - {0x1113c1 ,0x0 }, - {0x2113c1 ,0x0 }, - {0x114c1 ,0x0 }, - {0x1114c1 ,0x0 }, - {0x2114c1 ,0x0 }, - {0x115c1 ,0x0 }, - {0x1115c1 ,0x0 }, - {0x2115c1 ,0x0 }, - {0x116c1 ,0x0 }, - {0x1116c1 ,0x0 }, - {0x2116c1 ,0x0 }, - {0x117c1 ,0x0 }, - {0x1117c1 ,0x0 }, - {0x2117c1 ,0x0 }, - {0x118c1 ,0x0 }, - {0x1118c1 ,0x0 }, - {0x2118c1 ,0x0 }, - {0x120c1 ,0x0 }, - {0x1120c1 ,0x0 }, - {0x2120c1 ,0x0 }, - {0x121c1 ,0x0 }, - {0x1121c1 ,0x0 }, - {0x2121c1 ,0x0 }, - {0x122c1 ,0x0 }, - {0x1122c1 ,0x0 }, - {0x2122c1 ,0x0 }, - {0x123c1 ,0x0 }, - {0x1123c1 ,0x0 }, - {0x2123c1 ,0x0 }, - {0x124c1 ,0x0 }, - {0x1124c1 ,0x0 }, - {0x2124c1 ,0x0 }, - {0x125c1 ,0x0 }, - {0x1125c1 ,0x0 }, - {0x2125c1 ,0x0 }, - {0x126c1 ,0x0 }, - {0x1126c1 ,0x0 }, - {0x2126c1 ,0x0 }, - {0x127c1 ,0x0 }, - {0x1127c1 ,0x0 }, - {0x2127c1 ,0x0 }, - {0x128c1 ,0x0 }, - {0x1128c1 ,0x0 }, - {0x2128c1 ,0x0 }, - {0x130c1 ,0x0 }, - {0x1130c1 ,0x0 }, - {0x2130c1 ,0x0 }, - {0x131c1 ,0x0 }, - {0x1131c1 ,0x0 }, - {0x2131c1 ,0x0 }, - {0x132c1 ,0x0 }, - {0x1132c1 ,0x0 }, - {0x2132c1 ,0x0 }, - {0x133c1 ,0x0 }, - {0x1133c1 ,0x0 }, - {0x2133c1 ,0x0 }, - {0x134c1 ,0x0 }, - {0x1134c1 ,0x0 }, - {0x2134c1 ,0x0 }, - {0x135c1 ,0x0 }, - {0x1135c1 ,0x0 }, - {0x2135c1 ,0x0 }, - {0x136c1 ,0x0 }, - {0x1136c1 ,0x0 }, - {0x2136c1 ,0x0 }, - {0x137c1 ,0x0 }, - {0x1137c1 ,0x0 }, - {0x2137c1 ,0x0 }, - {0x138c1 ,0x0 }, - {0x1138c1 ,0x0 }, - {0x2138c1 ,0x0 }, - {0x10020 ,0x0 }, - {0x110020 ,0x0 }, - {0x210020 ,0x0 }, - {0x11020 ,0x0 }, - {0x111020 ,0x0 }, - {0x211020 ,0x0 }, - {0x12020 ,0x0 }, - {0x112020 ,0x0 }, - {0x212020 ,0x0 }, - {0x13020 ,0x0 }, - {0x113020 ,0x0 }, - {0x213020 ,0x0 }, - {0x20072 ,0x0 }, - {0x20073 ,0x0 }, - {0x20074 ,0x0 }, - {0x100aa ,0x0 }, - {0x110aa ,0x0 }, - {0x120aa ,0x0 }, - {0x130aa ,0x0 }, - {0x20010 ,0x0 }, - {0x120010 ,0x0 }, - {0x220010 ,0x0 }, - {0x20011 ,0x0 }, - {0x120011 ,0x0 }, - {0x220011 ,0x0 }, - {0x100ae ,0x0 }, - {0x1100ae ,0x0 }, - {0x2100ae ,0x0 }, - {0x100af ,0x0 }, - {0x1100af ,0x0 }, - {0x2100af ,0x0 }, - {0x110ae ,0x0 }, - {0x1110ae ,0x0 }, - {0x2110ae ,0x0 }, - {0x110af ,0x0 }, - {0x1110af ,0x0 }, - {0x2110af ,0x0 }, - {0x120ae ,0x0 }, - {0x1120ae ,0x0 }, - {0x2120ae ,0x0 }, - {0x120af ,0x0 }, - {0x1120af ,0x0 }, - {0x2120af ,0x0 }, - {0x130ae ,0x0 }, - {0x1130ae ,0x0 }, - {0x2130ae ,0x0 }, - {0x130af ,0x0 }, - {0x1130af ,0x0 }, - {0x2130af ,0x0 }, - {0x20020 ,0x0 }, - {0x120020 ,0x0 }, - {0x220020 ,0x0 }, - {0x100a0 ,0x0 }, - {0x100a1 ,0x0 }, - {0x100a2 ,0x0 }, - {0x100a3 ,0x0 }, - {0x100a4 ,0x0 }, - {0x100a5 ,0x0 }, - {0x100a6 ,0x0 }, - {0x100a7 ,0x0 }, - {0x110a0 ,0x0 }, - {0x110a1 ,0x0 }, - {0x110a2 ,0x0 }, - {0x110a3 ,0x0 }, - {0x110a4 ,0x0 }, - {0x110a5 ,0x0 }, - {0x110a6 ,0x0 }, - {0x110a7 ,0x0 }, - {0x120a0 ,0x0 }, - {0x120a1 ,0x0 }, - {0x120a2 ,0x0 }, - {0x120a3 ,0x0 }, - {0x120a4 ,0x0 }, - {0x120a5 ,0x0 }, - {0x120a6 ,0x0 }, - {0x120a7 ,0x0 }, - {0x130a0 ,0x0 }, - {0x130a1 ,0x0 }, - {0x130a2 ,0x0 }, - {0x130a3 ,0x0 }, - {0x130a4 ,0x0 }, - {0x130a5 ,0x0 }, - {0x130a6 ,0x0 }, - {0x130a7 ,0x0 }, - {0x2007c ,0x0 }, - {0x12007c ,0x0 }, - {0x22007c ,0x0 }, - {0x2007d ,0x0 }, - {0x12007d ,0x0 }, - {0x22007d ,0x0 }, - {0x400fd ,0x0 }, - {0x400c0 ,0x0 }, - {0x90201 ,0x0 }, - {0x190201 ,0x0 }, - {0x290201 ,0x0 }, - {0x90202 ,0x0 }, - {0x190202 ,0x0 }, - {0x290202 ,0x0 }, - {0x90203 ,0x0 }, - {0x190203 ,0x0 }, - {0x290203 ,0x0 }, - {0x90204 ,0x0 }, - {0x190204 ,0x0 }, - {0x290204 ,0x0 }, - {0x90205 ,0x0 }, - {0x190205 ,0x0 }, - {0x290205 ,0x0 }, - {0x90206 ,0x0 }, - {0x190206 ,0x0 }, - {0x290206 ,0x0 }, - {0x90207 ,0x0 }, - {0x190207 ,0x0 }, - {0x290207 ,0x0 }, - {0x90208 ,0x0 }, - {0x190208 ,0x0 }, - {0x290208 ,0x0 }, - {0x10062 ,0x0 }, - {0x10162 ,0x0 }, - {0x10262 ,0x0 }, - {0x10362 ,0x0 }, - {0x10462 ,0x0 }, - {0x10562 ,0x0 }, - {0x10662 ,0x0 }, - {0x10762 ,0x0 }, - {0x10862 ,0x0 }, - {0x11062 ,0x0 }, - {0x11162 ,0x0 }, - {0x11262 ,0x0 }, - {0x11362 ,0x0 }, - {0x11462 ,0x0 }, - {0x11562 ,0x0 }, - {0x11662 ,0x0 }, - {0x11762 ,0x0 }, - {0x11862 ,0x0 }, - {0x12062 ,0x0 }, - {0x12162 ,0x0 }, - {0x12262 ,0x0 }, - {0x12362 ,0x0 }, - {0x12462 ,0x0 }, - {0x12562 ,0x0 }, - {0x12662 ,0x0 }, - {0x12762 ,0x0 }, - {0x12862 ,0x0 }, - {0x13062 ,0x0 }, - {0x13162 ,0x0 }, - {0x13262 ,0x0 }, - {0x13362 ,0x0 }, - {0x13462 ,0x0 }, - {0x13562 ,0x0 }, - {0x13662 ,0x0 }, - {0x13762 ,0x0 }, - {0x13862 ,0x0 }, - {0x20077 ,0x0 }, - {0x10001 ,0x0 }, - {0x11001 ,0x0 }, - {0x12001 ,0x0 }, - {0x13001 ,0x0 }, - {0x10040 ,0x0 }, - {0x10140 ,0x0 }, - {0x10240 ,0x0 }, - {0x10340 ,0x0 }, - {0x10440 ,0x0 }, - {0x10540 ,0x0 }, - {0x10640 ,0x0 }, - {0x10740 ,0x0 }, - {0x10840 ,0x0 }, - {0x10030 ,0x0 }, - {0x10130 ,0x0 }, - {0x10230 ,0x0 }, - {0x10330 ,0x0 }, - {0x10430 ,0x0 }, - {0x10530 ,0x0 }, - {0x10630 ,0x0 }, - {0x10730 ,0x0 }, - {0x10830 ,0x0 }, - {0x11040 ,0x0 }, - {0x11140 ,0x0 }, - {0x11240 ,0x0 }, - {0x11340 ,0x0 }, - {0x11440 ,0x0 }, - {0x11540 ,0x0 }, - {0x11640 ,0x0 }, - {0x11740 ,0x0 }, - {0x11840 ,0x0 }, - {0x11030 ,0x0 }, - {0x11130 ,0x0 }, - {0x11230 ,0x0 }, - {0x11330 ,0x0 }, - {0x11430 ,0x0 }, - {0x11530 ,0x0 }, - {0x11630 ,0x0 }, - {0x11730 ,0x0 }, - {0x11830 ,0x0 }, - {0x12040 ,0x0 }, - {0x12140 ,0x0 }, - {0x12240 ,0x0 }, - {0x12340 ,0x0 }, - {0x12440 ,0x0 }, - {0x12540 ,0x0 }, - {0x12640 ,0x0 }, - {0x12740 ,0x0 }, - {0x12840 ,0x0 }, - {0x12030 ,0x0 }, - {0x12130 ,0x0 }, - {0x12230 ,0x0 }, - {0x12330 ,0x0 }, - {0x12430 ,0x0 }, - {0x12530 ,0x0 }, - {0x12630 ,0x0 }, - {0x12730 ,0x0 }, - {0x12830 ,0x0 }, - {0x13040 ,0x0 }, - {0x13140 ,0x0 }, - {0x13240 ,0x0 }, - {0x13340 ,0x0 }, - {0x13440 ,0x0 }, - {0x13540 ,0x0 }, - {0x13640 ,0x0 }, - {0x13740 ,0x0 }, - {0x13840 ,0x0 }, - {0x13030 ,0x0 }, - {0x13130 ,0x0 }, - {0x13230 ,0x0 }, - {0x13330 ,0x0 }, - {0x13430 ,0x0 }, - {0x13530 ,0x0 }, - {0x13630 ,0x0 }, - {0x13730 ,0x0 }, - {0x13830 ,0x0 }, + {0x1005f ,0x0 }, + {0x1015f ,0x0 }, + {0x1105f ,0x0 }, + {0x1115f ,0x0 }, + {0x11005f ,0x0 }, + {0x11015f ,0x0 }, + {0x11105f ,0x0 }, + {0x11115f ,0x0 }, + {0x21005f ,0x0 }, + {0x21015f ,0x0 }, + {0x21105f ,0x0 }, + {0x21115f ,0x0 }, + {0x55 ,0x0 }, + {0x1055 ,0x0 }, + {0x2055 ,0x0 }, + {0x200c5 ,0x0 }, + {0x1200c5 ,0x0 }, + {0x2200c5 ,0x0 }, + {0x2002e ,0x0 }, + {0x12002e ,0x0 }, + {0x22002e ,0x0 }, + {0x90204 ,0x0 }, + {0x190204 ,0x0 }, + {0x290204 ,0x0 }, + {0x20024 ,0x0 }, + {0x2003a ,0x0 }, + {0x2007d ,0x0 }, + {0x2007c ,0x0 }, + {0x120024 ,0x0 }, + {0x12007d ,0x0 }, + {0x12007c ,0x0 }, + {0x220024 ,0x0 }, + {0x22007d ,0x0 }, + {0x22007c ,0x0 }, + {0x20056 ,0x0 }, + {0x120056 ,0x0 }, + {0x220056 ,0x0 }, + {0x1004d ,0x0 }, + {0x1014d ,0x0 }, + {0x1104d ,0x0 }, + {0x1114d ,0x0 }, + {0x11004d ,0x0 }, + {0x11014d ,0x0 }, + {0x11104d ,0x0 }, + {0x11114d ,0x0 }, + {0x21004d ,0x0 }, + {0x21014d ,0x0 }, + {0x21104d ,0x0 }, + {0x21114d ,0x0 }, + {0x10049 ,0x0 }, + {0x10149 ,0x0 }, + {0x11049 ,0x0 }, + {0x11149 ,0x0 }, + {0x110049 ,0x0 }, + {0x110149 ,0x0 }, + {0x111049 ,0x0 }, + {0x111149 ,0x0 }, + {0x210049 ,0x0 }, + {0x210149 ,0x0 }, + {0x211049 ,0x0 }, + {0x211149 ,0x0 }, + {0x43 ,0x0 }, + {0x1043 ,0x0 }, + {0x2043 ,0x0 }, + {0x20018 ,0x0 }, + {0x20075 ,0x0 }, + {0x20050 ,0x0 }, + {0x2009b ,0x0 }, + {0x20008 ,0x0 }, + {0x120008 ,0x0 }, + {0x220008 ,0x0 }, + {0x20088 ,0x0 }, + {0x200b2 ,0x0 }, + {0x10043 ,0x0 }, + {0x10143 ,0x0 }, + {0x11043 ,0x0 }, + {0x11143 ,0x0 }, + {0x1200b2 ,0x0 }, + {0x110043 ,0x0 }, + {0x110143 ,0x0 }, + {0x111043 ,0x0 }, + {0x111143 ,0x0 }, + {0x2200b2 ,0x0 }, + {0x210043 ,0x0 }, + {0x210143 ,0x0 }, + {0x211043 ,0x0 }, + {0x211143 ,0x0 }, + {0x200fa ,0x0 }, + {0x1200fa ,0x0 }, + {0x2200fa ,0x0 }, + {0x20019 ,0x0 }, + {0x120019 ,0x0 }, + {0x220019 ,0x0 }, + {0x200f0 ,0x0 }, + {0x200f1 ,0x0 }, + {0x200f2 ,0x0 }, + {0x200f3 ,0x0 }, + {0x200f4 ,0x0 }, + {0x200f5 ,0x0 }, + {0x200f6 ,0x0 }, + {0x200f7 ,0x0 }, + {0x1004a ,0x0 }, + {0x1104a ,0x0 }, + {0x20025 ,0x0 }, + {0x2002d ,0x0 }, + {0x12002d ,0x0 }, + {0x22002d ,0x0 }, + {0x2002c ,0x0 }, + {0xd0000 ,0x0 }, + {0x90000 ,0x0 }, + {0x90001 ,0x0 }, + {0x90002 ,0x0 }, + {0x90003 ,0x0 }, + {0x90004 ,0x0 }, + {0x90005 ,0x0 }, + {0x90029 ,0x0 }, + {0x9002a ,0x0 }, + {0x9002b ,0x0 }, + {0x9002c ,0x0 }, + {0x9002d ,0x0 }, + {0x9002e ,0x0 }, + {0x9002f ,0x0 }, + {0x90030 ,0x0 }, + {0x90031 ,0x0 }, + {0x90032 ,0x0 }, + {0x90033 ,0x0 }, + {0x90034 ,0x0 }, + {0x90035 ,0x0 }, + {0x90036 ,0x0 }, + {0x90037 ,0x0 }, + {0x90038 ,0x0 }, + {0x90039 ,0x0 }, + {0x9003a ,0x0 }, + {0x9003b ,0x0 }, + {0x9003c ,0x0 }, + {0x9003d ,0x0 }, + {0x9003e ,0x0 }, + {0x9003f ,0x0 }, + {0x90040 ,0x0 }, + {0x90041 ,0x0 }, + {0x90042 ,0x0 }, + {0x90043 ,0x0 }, + {0x90044 ,0x0 }, + {0x90045 ,0x0 }, + {0x90046 ,0x0 }, + {0x90047 ,0x0 }, + {0x90048 ,0x0 }, + {0x90049 ,0x0 }, + {0x9004a ,0x0 }, + {0x9004b ,0x0 }, + {0x9004c ,0x0 }, + {0x9004d ,0x0 }, + {0x9004e ,0x0 }, + {0x9004f ,0x0 }, + {0x90050 ,0x0 }, + {0x90051 ,0x0 }, + {0x90052 ,0x0 }, + {0x90053 ,0x0 }, + {0x90054 ,0x0 }, + {0x90055 ,0x0 }, + {0x90056 ,0x0 }, + {0x90057 ,0x0 }, + {0x90058 ,0x0 }, + {0x90059 ,0x0 }, + {0x9005a ,0x0 }, + {0x9005b ,0x0 }, + {0x9005c ,0x0 }, + {0x9005d ,0x0 }, + {0x9005e ,0x0 }, + {0x9005f ,0x0 }, + {0x90060 ,0x0 }, + {0x90061 ,0x0 }, + {0x90062 ,0x0 }, + {0x90063 ,0x0 }, + {0x90064 ,0x0 }, + {0x90065 ,0x0 }, + {0x90066 ,0x0 }, + {0x90067 ,0x0 }, + {0x90068 ,0x0 }, + {0x90069 ,0x0 }, + {0x9006a ,0x0 }, + {0x9006b ,0x0 }, + {0x9006c ,0x0 }, + {0x9006d ,0x0 }, + {0x9006e ,0x0 }, + {0x9006f ,0x0 }, + {0x90070 ,0x0 }, + {0x90071 ,0x0 }, + {0x90072 ,0x0 }, + {0x90073 ,0x0 }, + {0x90074 ,0x0 }, + {0x90075 ,0x0 }, + {0x90076 ,0x0 }, + {0x90077 ,0x0 }, + {0x90078 ,0x0 }, + {0x90079 ,0x0 }, + {0x9007a ,0x0 }, + {0x9007b ,0x0 }, + {0x9007c ,0x0 }, + {0x9007d ,0x0 }, + {0x9007e ,0x0 }, + {0x9007f ,0x0 }, + {0x90080 ,0x0 }, + {0x90081 ,0x0 }, + {0x90082 ,0x0 }, + {0x90083 ,0x0 }, + {0x90084 ,0x0 }, + {0x90085 ,0x0 }, + {0x90086 ,0x0 }, + {0x90087 ,0x0 }, + {0x90088 ,0x0 }, + {0x90089 ,0x0 }, + {0x9008a ,0x0 }, + {0x9008b ,0x0 }, + {0x9008c ,0x0 }, + {0x9008d ,0x0 }, + {0x9008e ,0x0 }, + {0x9008f ,0x0 }, + {0x90090 ,0x0 }, + {0x90091 ,0x0 }, + {0x90092 ,0x0 }, + {0x90093 ,0x0 }, + {0x90094 ,0x0 }, + {0x90095 ,0x0 }, + {0x90096 ,0x0 }, + {0x90097 ,0x0 }, + {0x90098 ,0x0 }, + {0x90099 ,0x0 }, + {0x9009a ,0x0 }, + {0x9009b ,0x0 }, + {0x9009c ,0x0 }, + {0x9009d ,0x0 }, + {0x9009e ,0x0 }, + {0x9009f ,0x0 }, + {0x900a0 ,0x0 }, + {0x900a1 ,0x0 }, + {0x900a2 ,0x0 }, + {0x900a3 ,0x0 }, + {0x900a4 ,0x0 }, + {0x900a5 ,0x0 }, + {0x900a6 ,0x0 }, + {0x900a7 ,0x0 }, + {0x900a8 ,0x0 }, + {0x900a9 ,0x0 }, + {0x40000 ,0x0 }, + {0x40020 ,0x0 }, + {0x40040 ,0x0 }, + {0x40060 ,0x0 }, + {0x40001 ,0x0 }, + {0x40021 ,0x0 }, + {0x40041 ,0x0 }, + {0x40061 ,0x0 }, + {0x40002 ,0x0 }, + {0x40022 ,0x0 }, + {0x40042 ,0x0 }, + {0x40062 ,0x0 }, + {0x40003 ,0x0 }, + {0x40023 ,0x0 }, + {0x40043 ,0x0 }, + {0x40063 ,0x0 }, + {0x40004 ,0x0 }, + {0x40024 ,0x0 }, + {0x40044 ,0x0 }, + {0x40064 ,0x0 }, + {0x40005 ,0x0 }, + {0x40025 ,0x0 }, + {0x40045 ,0x0 }, + {0x40065 ,0x0 }, + {0x40006 ,0x0 }, + {0x40026 ,0x0 }, + {0x40046 ,0x0 }, + {0x40066 ,0x0 }, + {0x40007 ,0x0 }, + {0x40027 ,0x0 }, + {0x40047 ,0x0 }, + {0x40067 ,0x0 }, + {0x40008 ,0x0 }, + {0x40028 ,0x0 }, + {0x40048 ,0x0 }, + {0x40068 ,0x0 }, + {0x40009 ,0x0 }, + {0x40029 ,0x0 }, + {0x40049 ,0x0 }, + {0x40069 ,0x0 }, + {0x4000a ,0x0 }, + {0x4002a ,0x0 }, + {0x4004a ,0x0 }, + {0x4006a ,0x0 }, + {0x4000b ,0x0 }, + {0x4002b ,0x0 }, + {0x4004b ,0x0 }, + {0x4006b ,0x0 }, + {0x4000c ,0x0 }, + {0x4002c ,0x0 }, + {0x4004c ,0x0 }, + {0x4006c ,0x0 }, + {0x4000d ,0x0 }, + {0x4002d ,0x0 }, + {0x4004d ,0x0 }, + {0x4006d ,0x0 }, + {0x4000e ,0x0 }, + {0x4002e ,0x0 }, + {0x4004e ,0x0 }, + {0x4006e ,0x0 }, + {0x4000f ,0x0 }, + {0x4002f ,0x0 }, + {0x4004f ,0x0 }, + {0x4006f ,0x0 }, + {0x40010 ,0x0 }, + {0x40030 ,0x0 }, + {0x40050 ,0x0 }, + {0x40070 ,0x0 }, + {0x40011 ,0x0 }, + {0x40031 ,0x0 }, + {0x40051 ,0x0 }, + {0x40071 ,0x0 }, + {0x40012 ,0x0 }, + {0x40032 ,0x0 }, + {0x40052 ,0x0 }, + {0x40072 ,0x0 }, + {0x40013 ,0x0 }, + {0x40033 ,0x0 }, + {0x40053 ,0x0 }, + {0x40073 ,0x0 }, + {0x40014 ,0x0 }, + {0x40034 ,0x0 }, + {0x40054 ,0x0 }, + {0x40074 ,0x0 }, + {0x40015 ,0x0 }, + {0x40035 ,0x0 }, + {0x40055 ,0x0 }, + {0x40075 ,0x0 }, + {0x40016 ,0x0 }, + {0x40036 ,0x0 }, + {0x40056 ,0x0 }, + {0x40076 ,0x0 }, + {0x40017 ,0x0 }, + {0x40037 ,0x0 }, + {0x40057 ,0x0 }, + {0x40077 ,0x0 }, + {0x40018 ,0x0 }, + {0x40038 ,0x0 }, + {0x40058 ,0x0 }, + {0x40078 ,0x0 }, + {0x40019 ,0x0 }, + {0x40039 ,0x0 }, + {0x40059 ,0x0 }, + {0x40079 ,0x0 }, + {0x4001a ,0x0 }, + {0x4003a ,0x0 }, + {0x4005a ,0x0 }, + {0x4007a ,0x0 }, + {0x900aa ,0x0 }, + {0x900ab ,0x0 }, + {0x900ac ,0x0 }, + {0x900ad ,0x0 }, + {0x900ae ,0x0 }, + {0x900af ,0x0 }, + {0x900b0 ,0x0 }, + {0x900b1 ,0x0 }, + {0x900b2 ,0x0 }, + {0x900b3 ,0x0 }, + {0x900b4 ,0x0 }, + {0x900b5 ,0x0 }, + {0x900b6 ,0x0 }, + {0x900b7 ,0x0 }, + {0x900b8 ,0x0 }, + {0x900b9 ,0x0 }, + {0x900ba ,0x0 }, + {0x900bb ,0x0 }, + {0x900bc ,0x0 }, + {0x900bd ,0x0 }, + {0x900be ,0x0 }, + {0x900bf ,0x0 }, + {0x900c0 ,0x0 }, + {0x900c1 ,0x0 }, + {0x900c2 ,0x0 }, + {0x900c3 ,0x0 }, + {0x900c4 ,0x0 }, + {0x900c5 ,0x0 }, + {0x900c6 ,0x0 }, + {0x900c7 ,0x0 }, + {0x900c8 ,0x0 }, + {0x900c9 ,0x0 }, + {0x900ca ,0x0 }, + {0x900cb ,0x0 }, + {0x900cc ,0x0 }, + {0x900cd ,0x0 }, + {0x900ce ,0x0 }, + {0x900cf ,0x0 }, + {0x900d0 ,0x0 }, + {0x900d1 ,0x0 }, + {0x900d2 ,0x0 }, + {0x900d3 ,0x0 }, + {0x900d4 ,0x0 }, + {0x900d5 ,0x0 }, + {0x900d6 ,0x0 }, + {0x900d7 ,0x0 }, + {0x900d8 ,0x0 }, + {0x900d9 ,0x0 }, + {0x900da ,0x0 }, + {0x900db ,0x0 }, + {0x900dc ,0x0 }, + {0x900dd ,0x0 }, + {0x900de ,0x0 }, + {0x900df ,0x0 }, + {0x900e0 ,0x0 }, + {0x900e1 ,0x0 }, + {0x900e2 ,0x0 }, + {0x900e3 ,0x0 }, + {0x900e4 ,0x0 }, + {0x900e5 ,0x0 }, + {0x900e6 ,0x0 }, + {0x900e7 ,0x0 }, + {0x900e8 ,0x0 }, + {0x900e9 ,0x0 }, + {0x900ea ,0x0 }, + {0x900eb ,0x0 }, + {0x900ec ,0x0 }, + {0x900ed ,0x0 }, + {0x900ee ,0x0 }, + {0x900ef ,0x0 }, + {0x900f0 ,0x0 }, + {0x900f1 ,0x0 }, + {0x900f2 ,0x0 }, + {0x900f3 ,0x0 }, + {0x900f4 ,0x0 }, + {0x900f5 ,0x0 }, + {0x900f6 ,0x0 }, + {0x900f7 ,0x0 }, + {0x900f8 ,0x0 }, + {0x900f9 ,0x0 }, + {0x900fa ,0x0 }, + {0x900fb ,0x0 }, + {0x900fc ,0x0 }, + {0x900fd ,0x0 }, + {0x900fe ,0x0 }, + {0x900ff ,0x0 }, + {0x90100 ,0x0 }, + {0x90101 ,0x0 }, + {0x90102 ,0x0 }, + {0x90103 ,0x0 }, + {0x90104 ,0x0 }, + {0x90105 ,0x0 }, + {0x90106 ,0x0 }, + {0x90107 ,0x0 }, + {0x90108 ,0x0 }, + {0x90109 ,0x0 }, + {0x9010a ,0x0 }, + {0x9010b ,0x0 }, + {0x9010c ,0x0 }, + {0x9010d ,0x0 }, + {0x9010e ,0x0 }, + {0x9010f ,0x0 }, + {0x90110 ,0x0 }, + {0x90111 ,0x0 }, + {0x90112 ,0x0 }, + {0x90113 ,0x0 }, + {0x90114 ,0x0 }, + {0x90115 ,0x0 }, + {0x90116 ,0x0 }, + {0x90117 ,0x0 }, + {0x90118 ,0x0 }, + {0x90119 ,0x0 }, + {0x9011a ,0x0 }, + {0x9011b ,0x0 }, + {0x9011c ,0x0 }, + {0x9011d ,0x0 }, + {0x9011e ,0x0 }, + {0x9011f ,0x0 }, + {0x90120 ,0x0 }, + {0x90121 ,0x0 }, + {0x90122 ,0x0 }, + {0x90123 ,0x0 }, + {0x90124 ,0x0 }, + {0x90125 ,0x0 }, + {0x90126 ,0x0 }, + {0x90127 ,0x0 }, + {0x90128 ,0x0 }, + {0x90129 ,0x0 }, + {0x9012a ,0x0 }, + {0x9012b ,0x0 }, + {0x9012c ,0x0 }, + {0x9012d ,0x0 }, + {0x9012e ,0x0 }, + {0x9012f ,0x0 }, + {0x90130 ,0x0 }, + {0x90131 ,0x0 }, + {0x90132 ,0x0 }, + {0x90133 ,0x0 }, + {0x90134 ,0x0 }, + {0x90135 ,0x0 }, + {0x90136 ,0x0 }, + {0x90137 ,0x0 }, + {0x90138 ,0x0 }, + {0x90139 ,0x0 }, + {0x9013a ,0x0 }, + {0x9013b ,0x0 }, + {0x9013c ,0x0 }, + {0x9013d ,0x0 }, + {0x9013e ,0x0 }, + {0x9013f ,0x0 }, + {0x90140 ,0x0 }, + {0x90141 ,0x0 }, + {0x90142 ,0x0 }, + {0x90143 ,0x0 }, + {0x90144 ,0x0 }, + {0x90145 ,0x0 }, + {0x90146 ,0x0 }, + {0x90147 ,0x0 }, + {0x90148 ,0x0 }, + {0x90149 ,0x0 }, + {0x9014a ,0x0 }, + {0x9014b ,0x0 }, + {0x9014c ,0x0 }, + {0x9014d ,0x0 }, + {0x9014e ,0x0 }, + {0x9014f ,0x0 }, + {0x90150 ,0x0 }, + {0x90151 ,0x0 }, + {0x90152 ,0x0 }, + {0x90153 ,0x0 }, + {0x90154 ,0x0 }, + {0x90155 ,0x0 }, + {0x90156 ,0x0 }, + {0x90157 ,0x0 }, + {0x90158 ,0x0 }, + {0x90159 ,0x0 }, + {0x9015a ,0x0 }, + {0x9015b ,0x0 }, + {0x9015c ,0x0 }, + {0x9015d ,0x0 }, + {0x9015e ,0x0 }, + {0x9015f ,0x0 }, + {0x90160 ,0x0 }, + {0x90161 ,0x0 }, + {0x90162 ,0x0 }, + {0x90163 ,0x0 }, + {0x90164 ,0x0 }, + {0x90165 ,0x0 }, + {0x90166 ,0x0 }, + {0x90167 ,0x0 }, + {0x90168 ,0x0 }, + {0x90169 ,0x0 }, + {0x9016a ,0x0 }, + {0x9016b ,0x0 }, + {0x9016c ,0x0 }, + {0x9016d ,0x0 }, + {0x9016e ,0x0 }, + {0x9016f ,0x0 }, + {0x90170 ,0x0 }, + {0x90171 ,0x0 }, + {0x90172 ,0x0 }, + {0x90173 ,0x0 }, + {0x90174 ,0x0 }, + {0x90175 ,0x0 }, + {0x90176 ,0x0 }, + {0x90177 ,0x0 }, + {0x90178 ,0x0 }, + {0x90179 ,0x0 }, + {0x9017a ,0x0 }, + {0x9017b ,0x0 }, + {0x9017c ,0x0 }, + {0x9017d ,0x0 }, + {0x9017e ,0x0 }, + {0x9017f ,0x0 }, + {0x90180 ,0x0 }, + {0x90181 ,0x0 }, + {0x90182 ,0x0 }, + {0x90183 ,0x0 }, + {0x90184 ,0x0 }, + {0x90006 ,0x0 }, + {0x90007 ,0x0 }, + {0x90008 ,0x0 }, + {0x90009 ,0x0 }, + {0x9000a ,0x0 }, + {0x9000b ,0x0 }, + {0xd00e7 ,0x0 }, + {0x90017 ,0x0 }, + {0x9001f ,0x0 }, + {0x90026 ,0x0 }, + {0x400d0 ,0x0 }, + {0x400d1 ,0x0 }, + {0x400d2 ,0x0 }, + {0x400d3 ,0x0 }, + {0x400d4 ,0x0 }, + {0x400d5 ,0x0 }, + {0x400d6 ,0x0 }, + {0x400d7 ,0x0 }, + {0x200be ,0x0 }, + {0x2000b ,0x0 }, + {0x2000c ,0x0 }, + {0x2000d ,0x0 }, + {0x2000e ,0x0 }, + {0x12000b ,0x0 }, + {0x12000c ,0x0 }, + {0x12000d ,0x0 }, + {0x12000e ,0x0 }, + {0x22000b ,0x0 }, + {0x22000c ,0x0 }, + {0x22000d ,0x0 }, + {0x22000e ,0x0 }, + {0x9000c ,0x0 }, + {0x9000d ,0x0 }, + {0x9000e ,0x0 }, + {0x9000f ,0x0 }, + {0x90010 ,0x0 }, + {0x90011 ,0x0 }, + {0x90012 ,0x0 }, + {0x90013 ,0x0 }, + {0x20010 ,0x0 }, + {0x20011 ,0x0 }, + {0x120010 ,0x0 }, + {0x120011 ,0x0 }, + {0x40080 ,0x0 }, + {0x40081 ,0x0 }, + {0x40082 ,0x0 }, + {0x40083 ,0x0 }, + {0x40084 ,0x0 }, + {0x40085 ,0x0 }, + {0x140080 ,0x0 }, + {0x140081 ,0x0 }, + {0x140082 ,0x0 }, + {0x140083 ,0x0 }, + {0x140084 ,0x0 }, + {0x140085 ,0x0 }, + {0x240080 ,0x0 }, + {0x240081 ,0x0 }, + {0x240082 ,0x0 }, + {0x240083 ,0x0 }, + {0x240084 ,0x0 }, + {0x240085 ,0x0 }, + {0x400fd ,0x0 }, + {0x400f1 ,0x0 }, + {0x10011 ,0x0 }, + {0x10012 ,0x0 }, + {0x10013 ,0x0 }, + {0x10018 ,0x0 }, + {0x10002 ,0x0 }, + {0x100b2 ,0x0 }, + {0x101b4 ,0x0 }, + {0x102b4 ,0x0 }, + {0x103b4 ,0x0 }, + {0x104b4 ,0x0 }, + {0x105b4 ,0x0 }, + {0x106b4 ,0x0 }, + {0x107b4 ,0x0 }, + {0x108b4 ,0x0 }, + {0x11011 ,0x0 }, + {0x11012 ,0x0 }, + {0x11013 ,0x0 }, + {0x11018 ,0x0 }, + {0x11002 ,0x0 }, + {0x110b2 ,0x0 }, + {0x111b4 ,0x0 }, + {0x112b4 ,0x0 }, + {0x113b4 ,0x0 }, + {0x114b4 ,0x0 }, + {0x115b4 ,0x0 }, + {0x116b4 ,0x0 }, + {0x117b4 ,0x0 }, + {0x118b4 ,0x0 }, + {0x20089 ,0x0 }, + {0xc0080 ,0x0 }, + {0x200cb ,0x0 }, + {0x10068 ,0x0 }, + {0x10069 ,0x0 }, + {0x10168 ,0x0 }, + {0x10169 ,0x0 }, + {0x10268 ,0x0 }, + {0x10269 ,0x0 }, + {0x10368 ,0x0 }, + {0x10369 ,0x0 }, + {0x10468 ,0x0 }, + {0x10469 ,0x0 }, + {0x10568 ,0x0 }, + {0x10569 ,0x0 }, + {0x10668 ,0x0 }, + {0x10669 ,0x0 }, + {0x10768 ,0x0 }, + {0x10769 ,0x0 }, + {0x10868 ,0x0 }, + {0x10869 ,0x0 }, + {0x100aa ,0x0 }, + {0x10062 ,0x0 }, + {0x10001 ,0x0 }, + {0x100a0 ,0x0 }, + {0x100a1 ,0x0 }, + {0x100a2 ,0x0 }, + {0x100a3 ,0x0 }, + {0x100a4 ,0x0 }, + {0x100a5 ,0x0 }, + {0x100a6 ,0x0 }, + {0x100a7 ,0x0 }, + {0x11068 ,0x0 }, + {0x11069 ,0x0 }, + {0x11168 ,0x0 }, + {0x11169 ,0x0 }, + {0x11268 ,0x0 }, + {0x11269 ,0x0 }, + {0x11368 ,0x0 }, + {0x11369 ,0x0 }, + {0x11468 ,0x0 }, + {0x11469 ,0x0 }, + {0x11568 ,0x0 }, + {0x11569 ,0x0 }, + {0x11668 ,0x0 }, + {0x11669 ,0x0 }, + {0x11768 ,0x0 }, + {0x11769 ,0x0 }, + {0x11868 ,0x0 }, + {0x11869 ,0x0 }, + {0x110aa ,0x0 }, + {0x11062 ,0x0 }, + {0x11001 ,0x0 }, + {0x110a0 ,0x0 }, + {0x110a1 ,0x0 }, + {0x110a2 ,0x0 }, + {0x110a3 ,0x0 }, + {0x110a4 ,0x0 }, + {0x110a5 ,0x0 }, + {0x110a6 ,0x0 }, + {0x110a7 ,0x0 }, + {0x80 ,0x0 }, + {0x1080 ,0x0 }, + {0x2080 ,0x0 }, + {0x10020 ,0x0 }, + {0x10080 ,0x0 }, + {0x10081 ,0x0 }, + {0x100d0 ,0x0 }, + {0x100d1 ,0x0 }, + {0x1008c ,0x0 }, + {0x1008d ,0x0 }, + {0x10180 ,0x0 }, + {0x10181 ,0x0 }, + {0x101d0 ,0x0 }, + {0x101d1 ,0x0 }, + {0x1018c ,0x0 }, + {0x1018d ,0x0 }, + {0x100c0 ,0x0 }, + {0x100c1 ,0x0 }, + {0x101c0 ,0x0 }, + {0x101c1 ,0x0 }, + {0x102c0 ,0x0 }, + {0x102c1 ,0x0 }, + {0x103c0 ,0x0 }, + {0x103c1 ,0x0 }, + {0x104c0 ,0x0 }, + {0x104c1 ,0x0 }, + {0x105c0 ,0x0 }, + {0x105c1 ,0x0 }, + {0x106c0 ,0x0 }, + {0x106c1 ,0x0 }, + {0x107c0 ,0x0 }, + {0x107c1 ,0x0 }, + {0x108c0 ,0x0 }, + {0x108c1 ,0x0 }, + {0x100ae ,0x0 }, + {0x100af ,0x0 }, + {0x11020 ,0x0 }, + {0x11080 ,0x0 }, + {0x11081 ,0x0 }, + {0x110d0 ,0x0 }, + {0x110d1 ,0x0 }, + {0x1108c ,0x0 }, + {0x1108d ,0x0 }, + {0x11180 ,0x0 }, + {0x11181 ,0x0 }, + {0x111d0 ,0x0 }, + {0x111d1 ,0x0 }, + {0x1118c ,0x0 }, + {0x1118d ,0x0 }, + {0x110c0 ,0x0 }, + {0x110c1 ,0x0 }, + {0x111c0 ,0x0 }, + {0x111c1 ,0x0 }, + {0x112c0 ,0x0 }, + {0x112c1 ,0x0 }, + {0x113c0 ,0x0 }, + {0x113c1 ,0x0 }, + {0x114c0 ,0x0 }, + {0x114c1 ,0x0 }, + {0x115c0 ,0x0 }, + {0x115c1 ,0x0 }, + {0x116c0 ,0x0 }, + {0x116c1 ,0x0 }, + {0x117c0 ,0x0 }, + {0x117c1 ,0x0 }, + {0x118c0 ,0x0 }, + {0x118c1 ,0x0 }, + {0x110ae ,0x0 }, + {0x110af ,0x0 }, + {0x90201 ,0x0 }, + {0x90202 ,0x0 }, + {0x90203 ,0x0 }, + {0x90205 ,0x0 }, + {0x90206 ,0x0 }, + {0x90207 ,0x0 }, + {0x90208 ,0x0 }, + {0x20020 ,0x0 }, + {0x100080 ,0x0 }, + {0x101080 ,0x0 }, + {0x102080 ,0x0 }, + {0x110020 ,0x0 }, + {0x110080 ,0x0 }, + {0x110081 ,0x0 }, + {0x1100d0 ,0x0 }, + {0x1100d1 ,0x0 }, + {0x11008c ,0x0 }, + {0x11008d ,0x0 }, + {0x110180 ,0x0 }, + {0x110181 ,0x0 }, + {0x1101d0 ,0x0 }, + {0x1101d1 ,0x0 }, + {0x11018c ,0x0 }, + {0x11018d ,0x0 }, + {0x1100c0 ,0x0 }, + {0x1100c1 ,0x0 }, + {0x1101c0 ,0x0 }, + {0x1101c1 ,0x0 }, + {0x1102c0 ,0x0 }, + {0x1102c1 ,0x0 }, + {0x1103c0 ,0x0 }, + {0x1103c1 ,0x0 }, + {0x1104c0 ,0x0 }, + {0x1104c1 ,0x0 }, + {0x1105c0 ,0x0 }, + {0x1105c1 ,0x0 }, + {0x1106c0 ,0x0 }, + {0x1106c1 ,0x0 }, + {0x1107c0 ,0x0 }, + {0x1107c1 ,0x0 }, + {0x1108c0 ,0x0 }, + {0x1108c1 ,0x0 }, + {0x1100ae ,0x0 }, + {0x1100af ,0x0 }, + {0x111020 ,0x0 }, + {0x111080 ,0x0 }, + {0x111081 ,0x0 }, + {0x1110d0 ,0x0 }, + {0x1110d1 ,0x0 }, + {0x11108c ,0x0 }, + {0x11108d ,0x0 }, + {0x111180 ,0x0 }, + {0x111181 ,0x0 }, + {0x1111d0 ,0x0 }, + {0x1111d1 ,0x0 }, + {0x11118c ,0x0 }, + {0x11118d ,0x0 }, + {0x1110c0 ,0x0 }, + {0x1110c1 ,0x0 }, + {0x1111c0 ,0x0 }, + {0x1111c1 ,0x0 }, + {0x1112c0 ,0x0 }, + {0x1112c1 ,0x0 }, + {0x1113c0 ,0x0 }, + {0x1113c1 ,0x0 }, + {0x1114c0 ,0x0 }, + {0x1114c1 ,0x0 }, + {0x1115c0 ,0x0 }, + {0x1115c1 ,0x0 }, + {0x1116c0 ,0x0 }, + {0x1116c1 ,0x0 }, + {0x1117c0 ,0x0 }, + {0x1117c1 ,0x0 }, + {0x1118c0 ,0x0 }, + {0x1118c1 ,0x0 }, + {0x1110ae ,0x0 }, + {0x1110af ,0x0 }, + {0x190201 ,0x0 }, + {0x190202 ,0x0 }, + {0x190203 ,0x0 }, + {0x190205 ,0x0 }, + {0x190206 ,0x0 }, + {0x190207 ,0x0 }, + {0x190208 ,0x0 }, + {0x120020 ,0x0 }, + {0x200080 ,0x0 }, + {0x201080 ,0x0 }, + {0x202080 ,0x0 }, + {0x210020 ,0x0 }, + {0x210080 ,0x0 }, + {0x210081 ,0x0 }, + {0x2100d0 ,0x0 }, + {0x2100d1 ,0x0 }, + {0x21008c ,0x0 }, + {0x21008d ,0x0 }, + {0x210180 ,0x0 }, + {0x210181 ,0x0 }, + {0x2101d0 ,0x0 }, + {0x2101d1 ,0x0 }, + {0x21018c ,0x0 }, + {0x21018d ,0x0 }, + {0x2100c0 ,0x0 }, + {0x2100c1 ,0x0 }, + {0x2101c0 ,0x0 }, + {0x2101c1 ,0x0 }, + {0x2102c0 ,0x0 }, + {0x2102c1 ,0x0 }, + {0x2103c0 ,0x0 }, + {0x2103c1 ,0x0 }, + {0x2104c0 ,0x0 }, + {0x2104c1 ,0x0 }, + {0x2105c0 ,0x0 }, + {0x2105c1 ,0x0 }, + {0x2106c0 ,0x0 }, + {0x2106c1 ,0x0 }, + {0x2107c0 ,0x0 }, + {0x2107c1 ,0x0 }, + {0x2108c0 ,0x0 }, + {0x2108c1 ,0x0 }, + {0x2100ae ,0x0 }, + {0x2100af ,0x0 }, + {0x211020 ,0x0 }, + {0x211080 ,0x0 }, + {0x211081 ,0x0 }, + {0x2110d0 ,0x0 }, + {0x2110d1 ,0x0 }, + {0x21108c ,0x0 }, + {0x21108d ,0x0 }, + {0x211180 ,0x0 }, + {0x211181 ,0x0 }, + {0x2111d0 ,0x0 }, + {0x2111d1 ,0x0 }, + {0x21118c ,0x0 }, + {0x21118d ,0x0 }, + {0x2110c0 ,0x0 }, + {0x2110c1 ,0x0 }, + {0x2111c0 ,0x0 }, + {0x2111c1 ,0x0 }, + {0x2112c0 ,0x0 }, + {0x2112c1 ,0x0 }, + {0x2113c0 ,0x0 }, + {0x2113c1 ,0x0 }, + {0x2114c0 ,0x0 }, + {0x2114c1 ,0x0 }, + {0x2115c0 ,0x0 }, + {0x2115c1 ,0x0 }, + {0x2116c0 ,0x0 }, + {0x2116c1 ,0x0 }, + {0x2117c0 ,0x0 }, + {0x2117c1 ,0x0 }, + {0x2118c0 ,0x0 }, + {0x2118c1 ,0x0 }, + {0x2110ae ,0x0 }, + {0x2110af ,0x0 }, + {0x290201 ,0x0 }, + {0x290202 ,0x0 }, + {0x290203 ,0x0 }, + {0x290205 ,0x0 }, + {0x290206 ,0x0 }, + {0x290207 ,0x0 }, + {0x290208 ,0x0 }, + {0x220020 ,0x0 }, + {0x20077 ,0x0 }, + {0x20072 ,0x0 }, + {0x20073 ,0x0 }, + {0x400c0 ,0x0 }, + {0x10040 ,0x0 }, + {0x10140 ,0x0 }, + {0x10240 ,0x0 }, + {0x10340 ,0x0 }, + {0x10440 ,0x0 }, + {0x10540 ,0x0 }, + {0x10640 ,0x0 }, + {0x10740 ,0x0 }, + {0x10840 ,0x0 }, + {0x11040 ,0x0 }, + {0x11140 ,0x0 }, + {0x11240 ,0x0 }, + {0x11340 ,0x0 }, + {0x11440 ,0x0 }, + {0x11540 ,0x0 }, + {0x11640 ,0x0 }, + {0x11740 ,0x0 }, + {0x11840 ,0x0 }, }; -/* P0 message block paremeter for training firmware */ +/* P0 message block parameter for training firmware */ struct dram_cfg_param ddr_fsp0_cfg[] = { - {0xd0000 ,0x0 }, - {0x54003 ,0xe94 }, - {0x54004 ,0x4 }, - {0x54006 ,0x15 }, - {0x54008 ,0x131f }, - {0x54009 ,0xff }, - {0x5400b ,0x4 }, - {0x5400c ,0x1 }, - {0x5400d ,0x100 }, - {0x5400f ,0x100 }, - {0x54012 ,0x110 }, - {0x54019 ,0x36e4 }, - {0x5401a ,0x32 }, - {0x5401b ,0x1146 }, - {0x5401c ,0x1108 }, - {0x5401e ,0x4 }, - {0x5401f ,0x36e4 }, - {0x54020 ,0x32 }, - {0x54021 ,0x1146 }, - {0x54022 ,0x1108 }, - {0x54024 ,0x4 }, - {0x54032 ,0xe400 }, - {0x54033 ,0x3236 }, - {0x54034 ,0x4600 }, - {0x54035 ,0x811 }, - {0x54036 ,0x11 }, - {0x54037 ,0x400 }, - {0x54038 ,0xe400 }, - {0x54039 ,0x3236 }, - {0x5403a ,0x4600 }, - {0x5403b ,0x811 }, - {0x5403c ,0x11 }, - {0x5403d ,0x400 }, - {0xd0000 ,0x1 }, + {0xd0000 ,0x0 }, + {0x54003 ,0xe94 }, + {0x54004 ,0x4 }, + {0x54006 ,0x15 }, + {0x54008 ,0x131f }, + {0x54009 ,0xc8 }, + {0x5400b ,0x4 }, + {0x5400d ,0x100 }, + {0x5400f ,0x100 }, + {0x54012 ,0x110 }, + {0x54019 ,0x36e4 }, + {0x5401a ,0x32 }, + {0x5401b ,0x1146 }, + {0x5401c ,0x1108 }, + {0x5401e ,0x4 }, + {0x5401f ,0x36e4 }, + {0x54020 ,0x32 }, + {0x54021 ,0x1146 }, + {0x54022 ,0x1108 }, + {0x54024 ,0x4 }, + {0x54032 ,0xe400 }, + {0x54033 ,0x3236 }, + {0x54034 ,0x4600 }, + {0x54035 ,0x811 }, + {0x54036 ,0x11 }, + {0x54037 ,0x400 }, + {0x54038 ,0xe400 }, + {0x54039 ,0x3236 }, + {0x5403a ,0x4600 }, + {0x5403b ,0x811 }, + {0x5403c ,0x11 }, + {0x5403d ,0x400 }, + {0xd0000 ,0x1 } +}; + +/* P1 message block parameter for training firmware */ +struct dram_cfg_param ddr_fsp1_cfg[] = { + {0xd0000 ,0x0 }, + {0x54002 ,0x1 }, + {0x54003 ,0x74a }, + {0x54004 ,0x4 }, + {0x54006 ,0x15 }, + {0x54008 ,0x121f }, + {0x54009 ,0xc8 }, + {0x5400b ,0x4 }, + {0x5400d ,0x100 }, + {0x5400f ,0x100 }, + {0x54012 ,0x110 }, + {0x54019 ,0x1bb4 }, + {0x5401a ,0x32 }, + {0x5401b ,0x1146 }, + {0x5401c ,0x1108 }, + {0x5401e ,0x4 }, + {0x5401f ,0x1bb4 }, + {0x54020 ,0x32 }, + {0x54021 ,0x1146 }, + {0x54022 ,0x1108 }, + {0x54024 ,0x4 }, + {0x54032 ,0xb400 }, + {0x54033 ,0x321b }, + {0x54034 ,0x4600 }, + {0x54035 ,0x811 }, + {0x54036 ,0x11 }, + {0x54037 ,0x400 }, + {0x54038 ,0xb400 }, + {0x54039 ,0x321b }, + {0x5403a ,0x4600 }, + {0x5403b ,0x811 }, + {0x5403c ,0x11 }, + {0x5403d ,0x400 }, + {0xd0000 ,0x1 } }; -/* P0 2D message block paremeter for training firmware */ +/* P2 message block parameter for training firmware */ +struct dram_cfg_param ddr_fsp2_cfg[] = { + {0xd0000 ,0x0 }, + {0x54002 ,0x102 }, + {0x54003 ,0x270 }, + {0x54004 ,0x4 }, + {0x54006 ,0x15 }, + {0x54008 ,0x121f }, + {0x54009 ,0xc8 }, + {0x5400b ,0x4 }, + {0x5400d ,0x100 }, + {0x5400f ,0x100 }, + {0x54012 ,0x110 }, + {0x54019 ,0x994 }, + {0x5401a ,0x32 }, + {0x5401b ,0x1146 }, + {0x5401c ,0x1100 }, + {0x5401e ,0x4 }, + {0x5401f ,0x994 }, + {0x54020 ,0x32 }, + {0x54021 ,0x1146 }, + {0x54022 ,0x1100 }, + {0x54024 ,0x4 }, + {0x54032 ,0x9400 }, + {0x54033 ,0x3209 }, + {0x54034 ,0x4600 }, + {0x54035 ,0x11 }, + {0x54036 ,0x11 }, + {0x54037 ,0x400 }, + {0x54038 ,0x9400 }, + {0x54039 ,0x3209 }, + {0x5403a ,0x4600 }, + {0x5403b ,0x11 }, + {0x5403c ,0x11 }, + {0x5403d ,0x400 }, + {0xd0000 ,0x1 } +}; + +/* P0 2D message block parameter for training firmware */ struct dram_cfg_param ddr_fsp0_2d_cfg[] = { - {0xd0000 ,0x0 }, - {0x54003 ,0xe94 }, - {0x54004 ,0x4 }, - {0x54006 ,0x15 }, - {0x54008 ,0x61 }, - {0x54009 ,0xff }, - {0x5400b ,0x4 }, - {0x5400c ,0x1 }, - {0x5400d ,0x100 }, - {0x5400f ,0x100 }, - {0x54010 ,0x2080 }, - {0x54012 ,0x110 }, - {0x54019 ,0x36e4 }, - {0x5401a ,0x32 }, - {0x5401b ,0x1146 }, - {0x5401c ,0x1108 }, - {0x5401e ,0x4 }, - {0x5401f ,0x36e4 }, - {0x54020 ,0x32 }, - {0x54021 ,0x1146 }, - {0x54022 ,0x1108 }, - {0x54024 ,0x4 }, - {0x54032 ,0xe400 }, - {0x54033 ,0x3236 }, - {0x54034 ,0x4600 }, - {0x54035 ,0x811 }, - {0x54036 ,0x11 }, - {0x54037 ,0x400 }, - {0x54038 ,0xe400 }, - {0x54039 ,0x3236 }, - {0x5403a ,0x4600 }, - {0x5403b ,0x811 }, - {0x5403c ,0x11 }, - {0x5403d ,0x400 }, - {0xd0000 ,0x1 }, + {0xd0000 ,0x0 }, + {0x54003 ,0xe94 }, + {0x54004 ,0x4 }, + {0x54006 ,0x15 }, + {0x54008 ,0x61 }, + {0x54009 ,0xc8 }, + {0x5400b ,0x4 }, + {0x5400d ,0x100 }, + {0x5400f ,0x100 }, + {0x54010 ,0x2080 }, + {0x54012 ,0x110 }, + {0x54019 ,0x36e4 }, + {0x5401a ,0x32 }, + {0x5401b ,0x1146 }, + {0x5401c ,0x1108 }, + {0x5401e ,0x4 }, + {0x5401f ,0x36e4 }, + {0x54020 ,0x32 }, + {0x54021 ,0x1146 }, + {0x54022 ,0x1108 }, + {0x54024 ,0x4 }, + {0x54032 ,0xe400 }, + {0x54033 ,0x3236 }, + {0x54034 ,0x4600 }, + {0x54035 ,0x811 }, + {0x54036 ,0x11 }, + {0x54037 ,0x400 }, + {0x54038 ,0xe400 }, + {0x54039 ,0x3236 }, + {0x5403a ,0x4600 }, + {0x5403b ,0x811 }, + {0x5403c ,0x11 }, + {0x5403d ,0x400 }, + {0xd0000 ,0x1 } };/* DRAM PHY init engine image */ struct dram_cfg_param ddr_phy_pie[] = { - {0xd0000 ,0x0 }, - {0x90000 ,0x10 }, - {0x90001 ,0x400 }, - {0x90002 ,0x10e }, - {0x90003 ,0x0 }, - {0x90004 ,0x0 }, - {0x90005 ,0x8 }, - {0x90029 ,0xb }, - {0x9002a ,0x480 }, - {0x9002b ,0x109 }, - {0x9002c ,0x8 }, - {0x9002d ,0x448 }, - {0x9002e ,0x139 }, - {0x9002f ,0x8 }, - {0x90030 ,0x478 }, - {0x90031 ,0x109 }, - {0x90032 ,0x0 }, - {0x90033 ,0xe8 }, - {0x90034 ,0x109 }, - {0x90035 ,0x2 }, - {0x90036 ,0x10 }, - {0x90037 ,0x139 }, - {0x90038 ,0xb }, - {0x90039 ,0x7c0 }, - {0x9003a ,0x139 }, - {0x9003b ,0x44 }, - {0x9003c ,0x633 }, - {0x9003d ,0x159 }, - {0x9003e ,0x14f }, - {0x9003f ,0x630 }, - {0x90040 ,0x159 }, - {0x90041 ,0x47 }, - {0x90042 ,0x633 }, - {0x90043 ,0x149 }, - {0x90044 ,0x4f }, - {0x90045 ,0x633 }, - {0x90046 ,0x179 }, - {0x90047 ,0x8 }, - {0x90048 ,0xe0 }, - {0x90049 ,0x109 }, - {0x9004a ,0x0 }, - {0x9004b ,0x7c8 }, - {0x9004c ,0x109 }, - {0x9004d ,0x0 }, - {0x9004e ,0x1 }, - {0x9004f ,0x8 }, - {0x90050 ,0x30 }, - {0x90051 ,0x65a }, - {0x90052 ,0x9 }, - {0x90053 ,0x0 }, - {0x90054 ,0x45a }, - {0x90055 ,0x9 }, - {0x90056 ,0x0 }, - {0x90057 ,0x448 }, - {0x90058 ,0x109 }, - {0x90059 ,0x40 }, - {0x9005a ,0x633 }, - {0x9005b ,0x179 }, - {0x9005c ,0x1 }, - {0x9005d ,0x618 }, - {0x9005e ,0x109 }, - {0x9005f ,0x40c0 }, - {0x90060 ,0x633 }, - {0x90061 ,0x149 }, - {0x90062 ,0x8 }, - {0x90063 ,0x4 }, - {0x90064 ,0x48 }, - {0x90065 ,0x4040 }, - {0x90066 ,0x633 }, - {0x90067 ,0x149 }, - {0x90068 ,0x0 }, - {0x90069 ,0x4 }, - {0x9006a ,0x48 }, - {0x9006b ,0x40 }, - {0x9006c ,0x633 }, - {0x9006d ,0x149 }, - {0x9006e ,0x0 }, - {0x9006f ,0x658 }, - {0x90070 ,0x109 }, - {0x90071 ,0x10 }, - {0x90072 ,0x4 }, - {0x90073 ,0x18 }, - {0x90074 ,0x0 }, - {0x90075 ,0x4 }, - {0x90076 ,0x78 }, - {0x90077 ,0x549 }, - {0x90078 ,0x633 }, - {0x90079 ,0x159 }, - {0x9007a ,0xd49 }, - {0x9007b ,0x633 }, - {0x9007c ,0x159 }, - {0x9007d ,0x94a }, - {0x9007e ,0x633 }, - {0x9007f ,0x159 }, - {0x90080 ,0x441 }, - {0x90081 ,0x633 }, - {0x90082 ,0x149 }, - {0x90083 ,0x42 }, - {0x90084 ,0x633 }, - {0x90085 ,0x149 }, - {0x90086 ,0x1 }, - {0x90087 ,0x633 }, - {0x90088 ,0x149 }, - {0x90089 ,0x0 }, - {0x9008a ,0xe0 }, - {0x9008b ,0x109 }, - {0x9008c ,0xa }, - {0x9008d ,0x10 }, - {0x9008e ,0x109 }, - {0x9008f ,0x9 }, - {0x90090 ,0x3c0 }, - {0x90091 ,0x149 }, - {0x90092 ,0x9 }, - {0x90093 ,0x3c0 }, - {0x90094 ,0x159 }, - {0x90095 ,0x18 }, - {0x90096 ,0x10 }, - {0x90097 ,0x109 }, - {0x90098 ,0x0 }, - {0x90099 ,0x3c0 }, - {0x9009a ,0x109 }, - {0x9009b ,0x18 }, - {0x9009c ,0x4 }, - {0x9009d ,0x48 }, - {0x9009e ,0x18 }, - {0x9009f ,0x4 }, - {0x900a0 ,0x58 }, - {0x900a1 ,0xb }, - {0x900a2 ,0x10 }, - {0x900a3 ,0x109 }, - {0x900a4 ,0x1 }, - {0x900a5 ,0x10 }, - {0x900a6 ,0x109 }, - {0x900a7 ,0x5 }, - {0x900a8 ,0x7c0 }, - {0x900a9 ,0x109 }, - {0x40000 ,0x811 }, - {0x40020 ,0x880 }, - {0x40040 ,0x0 }, - {0x40060 ,0x0 }, - {0x40001 ,0x4008 }, - {0x40021 ,0x83 }, - {0x40041 ,0x4f }, - {0x40061 ,0x0 }, - {0x40002 ,0x4040 }, - {0x40022 ,0x83 }, - {0x40042 ,0x51 }, - {0x40062 ,0x0 }, - {0x40003 ,0x811 }, - {0x40023 ,0x880 }, - {0x40043 ,0x0 }, - {0x40063 ,0x0 }, - {0x40004 ,0x720 }, - {0x40024 ,0xf }, - {0x40044 ,0x1740 }, - {0x40064 ,0x0 }, - {0x40005 ,0x16 }, - {0x40025 ,0x83 }, - {0x40045 ,0x4b }, - {0x40065 ,0x0 }, - {0x40006 ,0x716 }, - {0x40026 ,0xf }, - {0x40046 ,0x2001 }, - {0x40066 ,0x0 }, - {0x40007 ,0x716 }, - {0x40027 ,0xf }, - {0x40047 ,0x2800 }, - {0x40067 ,0x0 }, - {0x40008 ,0x716 }, - {0x40028 ,0xf }, - {0x40048 ,0xf00 }, - {0x40068 ,0x0 }, - {0x40009 ,0x720 }, - {0x40029 ,0xf }, - {0x40049 ,0x1400 }, - {0x40069 ,0x0 }, - {0x4000a ,0xe08 }, - {0x4002a ,0xc15 }, - {0x4004a ,0x0 }, - {0x4006a ,0x0 }, - {0x4000b ,0x625 }, - {0x4002b ,0x15 }, - {0x4004b ,0x0 }, - {0x4006b ,0x0 }, - {0x4000c ,0x4028 }, - {0x4002c ,0x80 }, - {0x4004c ,0x0 }, - {0x4006c ,0x0 }, - {0x4000d ,0xe08 }, - {0x4002d ,0xc1a }, - {0x4004d ,0x0 }, - {0x4006d ,0x0 }, - {0x4000e ,0x625 }, - {0x4002e ,0x1a }, - {0x4004e ,0x0 }, - {0x4006e ,0x0 }, - {0x4000f ,0x4040 }, - {0x4002f ,0x80 }, - {0x4004f ,0x0 }, - {0x4006f ,0x0 }, - {0x40010 ,0x2604 }, - {0x40030 ,0x15 }, - {0x40050 ,0x0 }, - {0x40070 ,0x0 }, - {0x40011 ,0x708 }, - {0x40031 ,0x5 }, - {0x40051 ,0x0 }, - {0x40071 ,0x2002 }, - {0x40012 ,0x8 }, - {0x40032 ,0x80 }, - {0x40052 ,0x0 }, - {0x40072 ,0x0 }, - {0x40013 ,0x2604 }, - {0x40033 ,0x1a }, - {0x40053 ,0x0 }, - {0x40073 ,0x0 }, - {0x40014 ,0x708 }, - {0x40034 ,0xa }, - {0x40054 ,0x0 }, - {0x40074 ,0x2002 }, - {0x40015 ,0x4040 }, - {0x40035 ,0x80 }, - {0x40055 ,0x0 }, - {0x40075 ,0x0 }, - {0x40016 ,0x60a }, - {0x40036 ,0x15 }, - {0x40056 ,0x1200 }, - {0x40076 ,0x0 }, - {0x40017 ,0x61a }, - {0x40037 ,0x15 }, - {0x40057 ,0x1300 }, - {0x40077 ,0x0 }, - {0x40018 ,0x60a }, - {0x40038 ,0x1a }, - {0x40058 ,0x1200 }, - {0x40078 ,0x0 }, - {0x40019 ,0x642 }, - {0x40039 ,0x1a }, - {0x40059 ,0x1300 }, - {0x40079 ,0x0 }, - {0x4001a ,0x4808 }, - {0x4003a ,0x880 }, - {0x4005a ,0x0 }, - {0x4007a ,0x0 }, - {0x900aa ,0x0 }, - {0x900ab ,0x790 }, - {0x900ac ,0x11a }, - {0x900ad ,0x8 }, - {0x900ae ,0x7aa }, - {0x900af ,0x2a }, - {0x900b0 ,0x10 }, - {0x900b1 ,0x7b2 }, - {0x900b2 ,0x2a }, - {0x900b3 ,0x0 }, - {0x900b4 ,0x7c8 }, - {0x900b5 ,0x109 }, - {0x900b6 ,0x10 }, - {0x900b7 ,0x10 }, - {0x900b8 ,0x109 }, - {0x900b9 ,0x10 }, - {0x900ba ,0x2a8 }, - {0x900bb ,0x129 }, - {0x900bc ,0x8 }, - {0x900bd ,0x370 }, - {0x900be ,0x129 }, - {0x900bf ,0xa }, - {0x900c0 ,0x3c8 }, - {0x900c1 ,0x1a9 }, - {0x900c2 ,0xc }, - {0x900c3 ,0x408 }, - {0x900c4 ,0x199 }, - {0x900c5 ,0x14 }, - {0x900c6 ,0x790 }, - {0x900c7 ,0x11a }, - {0x900c8 ,0x8 }, - {0x900c9 ,0x4 }, - {0x900ca ,0x18 }, - {0x900cb ,0xe }, - {0x900cc ,0x408 }, - {0x900cd ,0x199 }, - {0x900ce ,0x8 }, - {0x900cf ,0x8568 }, - {0x900d0 ,0x108 }, - {0x900d1 ,0x18 }, - {0x900d2 ,0x790 }, - {0x900d3 ,0x16a }, - {0x900d4 ,0x8 }, - {0x900d5 ,0x1d8 }, - {0x900d6 ,0x169 }, - {0x900d7 ,0x10 }, - {0x900d8 ,0x8558 }, - {0x900d9 ,0x168 }, - {0x900da ,0x1ff8 }, - {0x900db ,0x85a8 }, - {0x900dc ,0x1e8 }, - {0x900dd ,0x50 }, - {0x900de ,0x798 }, - {0x900df ,0x16a }, - {0x900e0 ,0x60 }, - {0x900e1 ,0x7a0 }, - {0x900e2 ,0x16a }, - {0x900e3 ,0x8 }, - {0x900e4 ,0x8310 }, - {0x900e5 ,0x168 }, - {0x900e6 ,0x8 }, - {0x900e7 ,0xa310 }, - {0x900e8 ,0x168 }, - {0x900e9 ,0xa }, - {0x900ea ,0x408 }, - {0x900eb ,0x169 }, - {0x900ec ,0x6e }, - {0x900ed ,0x0 }, - {0x900ee ,0x68 }, - {0x900ef ,0x0 }, - {0x900f0 ,0x408 }, - {0x900f1 ,0x169 }, - {0x900f2 ,0x0 }, - {0x900f3 ,0x8310 }, - {0x900f4 ,0x168 }, - {0x900f5 ,0x0 }, - {0x900f6 ,0xa310 }, - {0x900f7 ,0x168 }, - {0x900f8 ,0x1ff8 }, - {0x900f9 ,0x85a8 }, - {0x900fa ,0x1e8 }, - {0x900fb ,0x68 }, - {0x900fc ,0x798 }, - {0x900fd ,0x16a }, - {0x900fe ,0x78 }, - {0x900ff ,0x7a0 }, - {0x90100 ,0x16a }, - {0x90101 ,0x68 }, - {0x90102 ,0x790 }, - {0x90103 ,0x16a }, - {0x90104 ,0x8 }, - {0x90105 ,0x8b10 }, - {0x90106 ,0x168 }, - {0x90107 ,0x8 }, - {0x90108 ,0xab10 }, - {0x90109 ,0x168 }, - {0x9010a ,0xa }, - {0x9010b ,0x408 }, - {0x9010c ,0x169 }, - {0x9010d ,0x58 }, - {0x9010e ,0x0 }, - {0x9010f ,0x68 }, - {0x90110 ,0x0 }, - {0x90111 ,0x408 }, - {0x90112 ,0x169 }, - {0x90113 ,0x0 }, - {0x90114 ,0x8b10 }, - {0x90115 ,0x168 }, - {0x90116 ,0x1 }, - {0x90117 ,0xab10 }, - {0x90118 ,0x168 }, - {0x90119 ,0x0 }, - {0x9011a ,0x1d8 }, - {0x9011b ,0x169 }, - {0x9011c ,0x80 }, - {0x9011d ,0x790 }, - {0x9011e ,0x16a }, - {0x9011f ,0x18 }, - {0x90120 ,0x7aa }, - {0x90121 ,0x6a }, - {0x90122 ,0xa }, - {0x90123 ,0x0 }, - {0x90124 ,0x1e9 }, - {0x90125 ,0x8 }, - {0x90126 ,0x8080 }, - {0x90127 ,0x108 }, - {0x90128 ,0xf }, - {0x90129 ,0x408 }, - {0x9012a ,0x169 }, - {0x9012b ,0xc }, - {0x9012c ,0x0 }, - {0x9012d ,0x68 }, - {0x9012e ,0x9 }, - {0x9012f ,0x0 }, - {0x90130 ,0x1a9 }, - {0x90131 ,0x0 }, - {0x90132 ,0x408 }, - {0x90133 ,0x169 }, - {0x90134 ,0x0 }, - {0x90135 ,0x8080 }, - {0x90136 ,0x108 }, - {0x90137 ,0x8 }, - {0x90138 ,0x7aa }, - {0x90139 ,0x6a }, - {0x9013a ,0x0 }, - {0x9013b ,0x8568 }, - {0x9013c ,0x108 }, - {0x9013d ,0xb7 }, - {0x9013e ,0x790 }, - {0x9013f ,0x16a }, - {0x90140 ,0x1f }, - {0x90141 ,0x0 }, - {0x90142 ,0x68 }, - {0x90143 ,0x8 }, - {0x90144 ,0x8558 }, - {0x90145 ,0x168 }, - {0x90146 ,0xf }, - {0x90147 ,0x408 }, - {0x90148 ,0x169 }, - {0x90149 ,0xd }, - {0x9014a ,0x0 }, - {0x9014b ,0x68 }, - {0x9014c ,0x0 }, - {0x9014d ,0x408 }, - {0x9014e ,0x169 }, - {0x9014f ,0x0 }, - {0x90150 ,0x8558 }, - {0x90151 ,0x168 }, - {0x90152 ,0x8 }, - {0x90153 ,0x3c8 }, - {0x90154 ,0x1a9 }, - {0x90155 ,0x3 }, - {0x90156 ,0x370 }, - {0x90157 ,0x129 }, - {0x90158 ,0x20 }, - {0x90159 ,0x2aa }, - {0x9015a ,0x9 }, - {0x9015b ,0x8 }, - {0x9015c ,0xe8 }, - {0x9015d ,0x109 }, - {0x9015e ,0x0 }, - {0x9015f ,0x8140 }, - {0x90160 ,0x10c }, - {0x90161 ,0x10 }, - {0x90162 ,0x8138 }, - {0x90163 ,0x104 }, - {0x90164 ,0x8 }, - {0x90165 ,0x448 }, - {0x90166 ,0x109 }, - {0x90167 ,0xf }, - {0x90168 ,0x7c0 }, - {0x90169 ,0x109 }, - {0x9016a ,0x0 }, - {0x9016b ,0xe8 }, - {0x9016c ,0x109 }, - {0x9016d ,0x47 }, - {0x9016e ,0x630 }, - {0x9016f ,0x109 }, - {0x90170 ,0x8 }, - {0x90171 ,0x618 }, - {0x90172 ,0x109 }, - {0x90173 ,0x8 }, - {0x90174 ,0xe0 }, - {0x90175 ,0x109 }, - {0x90176 ,0x0 }, - {0x90177 ,0x7c8 }, - {0x90178 ,0x109 }, - {0x90179 ,0x8 }, - {0x9017a ,0x8140 }, - {0x9017b ,0x10c }, - {0x9017c ,0x0 }, - {0x9017d ,0x478 }, - {0x9017e ,0x109 }, - {0x9017f ,0x0 }, - {0x90180 ,0x1 }, - {0x90181 ,0x8 }, - {0x90182 ,0x8 }, - {0x90183 ,0x4 }, - {0x90184 ,0x0 }, - {0x90006 ,0x8 }, - {0x90007 ,0x7c8 }, - {0x90008 ,0x109 }, - {0x90009 ,0x0 }, - {0x9000a ,0x400 }, - {0x9000b ,0x106 }, - {0xd00e7 ,0x400 }, - {0x90017 ,0x0 }, - {0x9001f ,0x2b }, - {0x90026 ,0x69 }, - {0x400d0 ,0x0 }, - {0x400d1 ,0x101 }, - {0x400d2 ,0x105 }, - {0x400d3 ,0x107 }, - {0x400d4 ,0x10f }, - {0x400d5 ,0x202 }, - {0x400d6 ,0x20a }, - {0x400d7 ,0x20b }, - {0x2003a ,0x2 }, - {0x200be ,0x0 }, - {0x2000b ,0x419 }, - {0x2000c ,0xe9 }, - {0x2000d ,0x91c }, - {0x2000e ,0x2c }, - {0x9000c ,0x0 }, - {0x9000d ,0x173 }, - {0x9000e ,0x60 }, - {0x9000f ,0x6110 }, - {0x90010 ,0x2152 }, - {0x90011 ,0xdfbd }, - {0x90012 ,0x2060 }, - {0x90013 ,0x6152 }, - {0x20010 ,0x5a }, - {0x20011 ,0x3 }, - {0x40080 ,0xe0 }, - {0x40081 ,0x12 }, - {0x40082 ,0xe0 }, - {0x40083 ,0x12 }, - {0x40084 ,0xe0 }, - {0x40085 ,0x12 }, - {0x400fd ,0xf }, - {0x400f1 ,0xe }, - {0x10011 ,0x1 }, - {0x10012 ,0x1 }, - {0x10013 ,0x180 }, - {0x10018 ,0x1 }, - {0x10002 ,0x6209 }, - {0x100b2 ,0x1 }, - {0x101b4 ,0x1 }, - {0x102b4 ,0x1 }, - {0x103b4 ,0x1 }, - {0x104b4 ,0x1 }, - {0x105b4 ,0x1 }, - {0x106b4 ,0x1 }, - {0x107b4 ,0x1 }, - {0x108b4 ,0x1 }, - {0x11011 ,0x1 }, - {0x11012 ,0x1 }, - {0x11013 ,0x180 }, - {0x11018 ,0x1 }, - {0x11002 ,0x6209 }, - {0x110b2 ,0x1 }, - {0x111b4 ,0x1 }, - {0x112b4 ,0x1 }, - {0x113b4 ,0x1 }, - {0x114b4 ,0x1 }, - {0x115b4 ,0x1 }, - {0x116b4 ,0x1 }, - {0x117b4 ,0x1 }, - {0x118b4 ,0x1 }, - {0x20089 ,0x1 }, - {0x20088 ,0x19 }, - {0xc0080 ,0x0 }, - {0xd0000 ,0x1 } + {0xd0000 ,0x0 }, + {0x90000 ,0x10 }, + {0x90001 ,0x400 }, + {0x90002 ,0x10e }, + {0x90003 ,0x0 }, + {0x90004 ,0x0 }, + {0x90005 ,0x8 }, + {0x90029 ,0xb }, + {0x9002a ,0x480 }, + {0x9002b ,0x109 }, + {0x9002c ,0x8 }, + {0x9002d ,0x448 }, + {0x9002e ,0x139 }, + {0x9002f ,0x8 }, + {0x90030 ,0x478 }, + {0x90031 ,0x109 }, + {0x90032 ,0x0 }, + {0x90033 ,0xe8 }, + {0x90034 ,0x109 }, + {0x90035 ,0x2 }, + {0x90036 ,0x10 }, + {0x90037 ,0x139 }, + {0x90038 ,0xb }, + {0x90039 ,0x7c0 }, + {0x9003a ,0x139 }, + {0x9003b ,0x44 }, + {0x9003c ,0x633 }, + {0x9003d ,0x159 }, + {0x9003e ,0x14f }, + {0x9003f ,0x630 }, + {0x90040 ,0x159 }, + {0x90041 ,0x47 }, + {0x90042 ,0x633 }, + {0x90043 ,0x149 }, + {0x90044 ,0x4f }, + {0x90045 ,0x633 }, + {0x90046 ,0x179 }, + {0x90047 ,0x8 }, + {0x90048 ,0xe0 }, + {0x90049 ,0x109 }, + {0x9004a ,0x0 }, + {0x9004b ,0x7c8 }, + {0x9004c ,0x109 }, + {0x9004d ,0x0 }, + {0x9004e ,0x1 }, + {0x9004f ,0x8 }, + {0x90050 ,0x30 }, + {0x90051 ,0x65a }, + {0x90052 ,0x9 }, + {0x90053 ,0x0 }, + {0x90054 ,0x45a }, + {0x90055 ,0x9 }, + {0x90056 ,0x0 }, + {0x90057 ,0x448 }, + {0x90058 ,0x109 }, + {0x90059 ,0x40 }, + {0x9005a ,0x633 }, + {0x9005b ,0x179 }, + {0x9005c ,0x1 }, + {0x9005d ,0x618 }, + {0x9005e ,0x109 }, + {0x9005f ,0x40c0 }, + {0x90060 ,0x633 }, + {0x90061 ,0x149 }, + {0x90062 ,0x8 }, + {0x90063 ,0x4 }, + {0x90064 ,0x48 }, + {0x90065 ,0x4040 }, + {0x90066 ,0x633 }, + {0x90067 ,0x149 }, + {0x90068 ,0x0 }, + {0x90069 ,0x4 }, + {0x9006a ,0x48 }, + {0x9006b ,0x40 }, + {0x9006c ,0x633 }, + {0x9006d ,0x149 }, + {0x9006e ,0x0 }, + {0x9006f ,0x658 }, + {0x90070 ,0x109 }, + {0x90071 ,0x10 }, + {0x90072 ,0x4 }, + {0x90073 ,0x18 }, + {0x90074 ,0x0 }, + {0x90075 ,0x4 }, + {0x90076 ,0x78 }, + {0x90077 ,0x549 }, + {0x90078 ,0x633 }, + {0x90079 ,0x159 }, + {0x9007a ,0xd49 }, + {0x9007b ,0x633 }, + {0x9007c ,0x159 }, + {0x9007d ,0x94a }, + {0x9007e ,0x633 }, + {0x9007f ,0x159 }, + {0x90080 ,0x441 }, + {0x90081 ,0x633 }, + {0x90082 ,0x149 }, + {0x90083 ,0x42 }, + {0x90084 ,0x633 }, + {0x90085 ,0x149 }, + {0x90086 ,0x1 }, + {0x90087 ,0x633 }, + {0x90088 ,0x149 }, + {0x90089 ,0x0 }, + {0x9008a ,0xe0 }, + {0x9008b ,0x109 }, + {0x9008c ,0xa }, + {0x9008d ,0x10 }, + {0x9008e ,0x109 }, + {0x9008f ,0x9 }, + {0x90090 ,0x3c0 }, + {0x90091 ,0x149 }, + {0x90092 ,0x9 }, + {0x90093 ,0x3c0 }, + {0x90094 ,0x159 }, + {0x90095 ,0x18 }, + {0x90096 ,0x10 }, + {0x90097 ,0x109 }, + {0x90098 ,0x0 }, + {0x90099 ,0x3c0 }, + {0x9009a ,0x109 }, + {0x9009b ,0x18 }, + {0x9009c ,0x4 }, + {0x9009d ,0x48 }, + {0x9009e ,0x18 }, + {0x9009f ,0x4 }, + {0x900a0 ,0x58 }, + {0x900a1 ,0xb }, + {0x900a2 ,0x10 }, + {0x900a3 ,0x109 }, + {0x900a4 ,0x1 }, + {0x900a5 ,0x10 }, + {0x900a6 ,0x109 }, + {0x900a7 ,0x5 }, + {0x900a8 ,0x7c0 }, + {0x900a9 ,0x109 }, + {0x40000 ,0x811 }, + {0x40020 ,0x880 }, + {0x40040 ,0x0 }, + {0x40060 ,0x0 }, + {0x40001 ,0x4008 }, + {0x40021 ,0x83 }, + {0x40041 ,0x4f }, + {0x40061 ,0x0 }, + {0x40002 ,0x4040 }, + {0x40022 ,0x83 }, + {0x40042 ,0x51 }, + {0x40062 ,0x0 }, + {0x40003 ,0x811 }, + {0x40023 ,0x880 }, + {0x40043 ,0x0 }, + {0x40063 ,0x0 }, + {0x40004 ,0x720 }, + {0x40024 ,0xf }, + {0x40044 ,0x1740 }, + {0x40064 ,0x0 }, + {0x40005 ,0x16 }, + {0x40025 ,0x83 }, + {0x40045 ,0x4b }, + {0x40065 ,0x0 }, + {0x40006 ,0x716 }, + {0x40026 ,0xf }, + {0x40046 ,0x2001 }, + {0x40066 ,0x0 }, + {0x40007 ,0x716 }, + {0x40027 ,0xf }, + {0x40047 ,0x2800 }, + {0x40067 ,0x0 }, + {0x40008 ,0x716 }, + {0x40028 ,0xf }, + {0x40048 ,0xf00 }, + {0x40068 ,0x0 }, + {0x40009 ,0x720 }, + {0x40029 ,0xf }, + {0x40049 ,0x1400 }, + {0x40069 ,0x0 }, + {0x4000a ,0xe08 }, + {0x4002a ,0xc15 }, + {0x4004a ,0x0 }, + {0x4006a ,0x0 }, + {0x4000b ,0x625 }, + {0x4002b ,0x15 }, + {0x4004b ,0x0 }, + {0x4006b ,0x0 }, + {0x4000c ,0x4028 }, + {0x4002c ,0x80 }, + {0x4004c ,0x0 }, + {0x4006c ,0x0 }, + {0x4000d ,0xe08 }, + {0x4002d ,0xc1a }, + {0x4004d ,0x0 },
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Signature · 1 line
2.40.0
Part of the diff is not shown here. View the raw message.
PATCH 41/42 imx9: imx93_evk: update ddr timing file
Quoted 6 lines
From: Peng Fan <[email protected]>
Update DDR timing file generated by DDR Config Tool
1. Dynamic refresh rate is set by default
2. The 3rd freq will be 625MTS based on power and performance better than 100MTS.Signed-off-by Ye Li <[email protected]>Signed-off-by Peng Fan <[email protected]>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, 82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: [email protected] =====================================================================
PATCH 42/42 imx9: imx93_evk: enable sysreset
In reply to Peng Fan (OSS)From: Peng Fan <[email protected]>
Enable sysreset for i.MX93 EVK.
--- configs/imx93_11x11_evk_defconfig | 3 +++ configs/imx93_11x11_evk_ld_defconfig | 3 +++ 2 files changed, 6 insertions(+)
configs/imx93_11x11_evk_defconfig +3 -0
@@ -112,6 +112,9 @@ CONFIG_DM_RTC=y CONFIG_RTC_EMULATION=y CONFIG_DM_SERIAL=y CONFIG_FSL_LPUART=y +CONFIG_SYSRESET=y +CONFIG_SYSRESET_CMD_POWEROFF=y +CONFIG_SYSRESET_PSCI=y CONFIG_DM_THERMAL=y CONFIG_IMX_TMU=y CONFIG_ULP_WATCHDOG=y
configs/imx93_11x11_evk_ld_defconfig +3 -0
@@ -114,6 +114,9 @@ CONFIG_DM_RTC=y CONFIG_RTC_EMULATION=y CONFIG_DM_SERIAL=y CONFIG_FSL_LPUART=y +CONFIG_SYSRESET=y +CONFIG_SYSRESET_CMD_POWEROFF=y +CONFIG_SYSRESET_PSCI=y CONFIG_DM_THERMAL=y CONFIG_IMX_TMU=y CONFIG_ULP_WATCHDOG=y
Signature · 1 line
2.40.0
PATCH 42/42 imx9: imx93_evk: enable sysreset
Quoted 3 lines
From: Peng Fan <[email protected]>
Enable sysreset for i.MX93 EVK.Signed-off-by Peng Fan <[email protected]>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, 82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: [email protected] =====================================================================
Quoted 11 lines · Peng Fan (OSS)
From: Peng Fan <[email protected]>
This patchset includes updates mainly for i.MX9, such as Clock, Memory, Parts, Low drive mode, DDR, cpu driver, Variants
The first patch is not about i.MX9, just include it here since it is a simple one for i.MX8ULP.
For the watchdog
reset_cpu, I will move it out from watchdog driver in future patches which would includes other changes. I include it here mainly for sysreset support.
Good to hear, thanks for working on this.
Thanks,
Stefan
Quoted 130 lines
This patchset depends on two patches from Marek:
https://patchwork.ozlabs.org/project/uboot/patch/[email protected]/
https://patchwork.ozlabs.org/project/uboot/patch/[email protected]/Jacky Bai (4):
ddr: imx9: Change the saved ddr data base to0x2051c000
ddr: imx93: Add 625M bypass clock support
ddr: imx93: update the ddr init to support mult setpoints
ddr: imx9: update the rank setting for multi fsp supportPeng Fan (33):
imx8ulp: build ahab
imx:spl_imx_romapi: typo fix
imx: move imx8 sci header file toinclude/firmware/imx
imx: firmware: sci: add inline functions when IMX8 not enabled
imx:imx8_cpu: use static for local functions
imx:imx8_cpu: support i.MX9
imx:imx8_cpu: support get temperature for i.MX9
imx:imx8_cpu: print cpu grade temperature
imx9: configure M33 systick to 24M
imx9: add more PLL settings
imx9: use parameter freq whenset_arm_clk
imx9: correct getting LPI2C clk
imx9: simplify clk settings
imx9: cut off OPTEE memory region from U-Boot
imx9:imx93_evk: enableCPU_IMX
imx9:imx93_evk: drop unused macro
imx9:imx93_evk: selectIMX_TMU
imx9:imx93_evk: enableCONFIG_WDT
watchdog:ulp_wdog: guardreset_cpuwith condition check
imx9: soc: support reset cause
imx9: Get market segment and speed grading
imx9: clock: clearHW_CTRL_SEL
imx9: clock: addCONFIG_IMX9_LOW_DRIVE_MODEsupport
imx9: clock: config arm alt root to 500mhz
imx9: add i.MX93 variants support
imx9: correct coding style
imx9: use i.MX generic rom api function
imx9:imx93_evk: add low drive mode support on 11x11 EVK
arm: dts: imx93: sync device tree with Linux
arm: dts: imx93: add tmu
imx9:imx93_evk: Update spl stack & bss base address
imx9:imx93_evk: update ddr timing file
imx9:imx93_evk: enable sysresetYe Li (5):
thermal:imx_tmu: Update TMU driver to support iMX93
imx9: Change hard coded MAC to read from fuse
imx9: allow to bootaux Mcore with input address
ddr: imx9: Add workaround for DDRPHY rank-to-rank errata
imx9: Calculate DDR size from DDRC settingarch/arm/dts/imx93-11x11-evk-u-boot.dtsi | 29 - arch/arm/dts/imx93-11x11-evk.dts | 385 +- arch/arm/dts/imx93-pinfunc.h | 194 +- arch/arm/dts/imx93.dtsi | 618 +-- arch/arm/include/asm/arch-imx/cpu.h | 7 + arch/arm/include/asm/arch-imx8/power-domain.h | 2 +- arch/arm/include/asm/arch-imx8/sci/sci.h | 138 - arch/arm/include/asm/arch-imx8/sys_proto.h | 2 +- arch/arm/include/asm/arch-imx8m/ddr.h | 2 +- arch/arm/include/asm/arch-imx9/clock.h | 6 + arch/arm/include/asm/arch-imx9/ddr.h | 23 +- arch/arm/include/asm/arch-imx9/imx-regs.h | 3 + arch/arm/include/asm/mach-imx/sys_proto.h | 12 +- arch/arm/mach-imx/cmd_dek.c | 2 +- arch/arm/mach-imx/imx8/ahab.c | 2 +- arch/arm/mach-imx/imx8/cpu.c | 2 +- arch/arm/mach-imx/imx8/fdt.c | 2 +- arch/arm/mach-imx/imx8/iomux.c | 2 +- arch/arm/mach-imx/imx8/misc.c | 2 +- arch/arm/mach-imx/imx8/snvs_security_sc.c | 2 +- arch/arm/mach-imx/imx8ulp/Kconfig | 5 + arch/arm/mach-imx/imx8ulp/Makefile | 1 + arch/arm/mach-imx/imx9/Kconfig | 5 + arch/arm/mach-imx/imx9/clock.c | 113 +- arch/arm/mach-imx/imx9/imx_bootaux.c | 10 +- arch/arm/mach-imx/imx9/soc.c | 384 +- arch/arm/mach-imx/parse-container.c | 2 +- arch/arm/mach-imx/spl_imx_romapi.c | 2 +- .../imx8qm_rom7720_a1/imx8qm_rom7720_a1.c | 2 +- board/advantech/imx8qm_rom7720_a1/spl.c | 2 +- board/congatec/cgtqmx8/cgtqmx8.c | 2 +- board/freescale/imx8qm_mek/imx8qm_mek.c | 2 +- board/freescale/imx8qxp_mek/imx8qxp_mek.c | 2 +- board/freescale/imx8qxp_mek/spl.c | 2 +- board/freescale/imx93_evk/MAINTAINERS | 1 + board/freescale/imx93_evk/Makefile | 4 + board/freescale/imx93_evk/lpddr4x_timing.c | 3361 ++++++++++------- board/freescale/imx93_evk/lpddr4x_timing_ld.c | 1496 ++++++++ board/freescale/imx93_evk/spl.c | 26 +- board/siemens/capricorn/board.c | 2 +- board/toradex/apalis-imx8/apalis-imx8.c | 2 +- board/toradex/colibri-imx8x/colibri-imx8x.c | 2 +- configs/imx93_11x11_evk_defconfig | 12 +- configs/imx93_11x11_evk_ld_defconfig | 125 + drivers/clk/imx/clk-imx8.c | 2 +- drivers/clk/imx/clk-imx8qm.c | 2 +- drivers/clk/imx/clk-imx8qxp.c | 2 +- drivers/cpu/Kconfig | 6 + drivers/cpu/Makefile | 1 + drivers/cpu/imx8_cpu.c | 142 +- drivers/cpu/imx9_cpu.c | 224 ++ drivers/ddr/imx/imx9/Kconfig | 2 +- drivers/ddr/imx/imx9/ddr_init.c | 289 +- drivers/ddr/imx/phy/ddrphy_utils.c | 3 + drivers/ddr/imx/phy/helper.c | 5 +- drivers/misc/imx8/fuse.c | 2 +- drivers/misc/imx8/scu.c | 2 +- drivers/misc/imx8/scu_api.c | 2 +- drivers/pinctrl/nxp/pinctrl-scu.c | 2 +- .../power/domain/imx8-power-domain-legacy.c | 2 +- drivers/power/domain/imx8-power-domain.c | 2 +- drivers/thermal/Kconfig | 6 +- drivers/thermal/imx_scu_thermal.c | 2 +- drivers/thermal/imx_tmu.c | 101 + drivers/watchdog/ulp_wdog.c | 2 + include/configs/imx93_evk.h | 2 - include/dt-bindings/clock/imx93-clock.h | 17 +- include/dt-bindings/power/fsl,imx93-power.h | 15 + include/dt-bindings/power/imx93-power.h | 12 - .../firmware/imx}/sci/rpc.h | 0 include/firmware/imx/sci/sci.h | 379 ++ .../firmware/imx}/sci/svc/misc/api.h | 0 .../firmware/imx}/sci/svc/pad/api.h | 0 .../firmware/imx}/sci/svc/pm/api.h | 0 .../firmware/imx}/sci/svc/rm/api.h | 2 +- .../firmware/imx}/sci/svc/seco/api.h | 2 +- .../firmware/imx}/sci/types.h | 0 77 files changed, 5864 insertions(+), 2366 deletions(-)
Quoted 15 lines
delete mode 100644
arch/arm/include/asm/arch-imx8/sci/sci.h
create mode 100644board/freescale/imx93_evk/lpddr4x_timing_ld.c
create mode 100644 configs/imx93_11x11_evk_ld_defconfig
create mode 100644drivers/cpu/imx9_cpu.c
create mode 100644include/dt-bindings/power/fsl,imx93-power.h
delete mode 100644include/dt-bindings/power/imx93-power.h
rename {arch/arm/include/asm/arch-imx8=>include/firmware/imx}/sci/rpc.h(100%) create mode 100644include/firmware/imx/sci/sci.h
rename {arch/arm/include/asm/arch-imx8=>include/firmware/imx}/sci/svc/misc/api.h(100%) rename {arch/arm/include/asm/arch-imx8=>include/firmware/imx}/sci/svc/pad/api.h(100%) rename {arch/arm/include/asm/arch-imx8=>include/firmware/imx}/sci/svc/pm/api.h(100%) rename {arch/arm/include/asm/arch-imx8=>include/firmware/imx}/sci/svc/rm/api.h(98%) rename {arch/arm/include/asm/arch-imx8=>include/firmware/imx}/sci/svc/seco/api.h(96%) rename {arch/arm/include/asm/arch-imx8=>include/firmware/imx}/sci/types.h(100%)
Viele Grüße,
Stefan Roese
Signature · 3 lines
DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: [email protected]
Hi Stefano, Fabio
Do you have time to give a look? Is there a chance to for this patchset landed in 2023.07?
Thanks,
Peng
Quoted 157 lines · Peng Fan (OSS)
From: Peng Fan <[email protected]>
This patchset includes updates mainly for i.MX9, such as Clock, Memory, Parts, Low drive mode, DDR, cpu driver, Variants
The first patch is not about i.MX9, just include it here since it is a simple one for i.MX8ULP.
For the watchdog
reset_cpu, I will move it out from watchdog driver in future patches which would includes other changes. I include it here mainly for sysreset support.This patchset depends on two patches from Marek:
https://patchwork.ozlabs.org/project/uboot/patch/[email protected]/
https://patchwork.ozlabs.org/project/uboot/patch/[email protected]/Jacky Bai (4):
ddr: imx9: Change the saved ddr data base to0x2051c000
ddr: imx93: Add 625M bypass clock support
ddr: imx93: update the ddr init to support mult setpoints
ddr: imx9: update the rank setting for multi fsp supportPeng Fan (33):
imx8ulp: build ahab
imx:spl_imx_romapi: typo fix
imx: move imx8 sci header file toinclude/firmware/imx
imx: firmware: sci: add inline functions when IMX8 not enabled
imx:imx8_cpu: use static for local functions
imx:imx8_cpu: support i.MX9
imx:imx8_cpu: support get temperature for i.MX9
imx:imx8_cpu: print cpu grade temperature
imx9: configure M33 systick to 24M
imx9: add more PLL settings
imx9: use parameter freq whenset_arm_clk
imx9: correct getting LPI2C clk
imx9: simplify clk settings
imx9: cut off OPTEE memory region from U-Boot
imx9:imx93_evk: enableCPU_IMX
imx9:imx93_evk: drop unused macro
imx9:imx93_evk: selectIMX_TMU
imx9:imx93_evk: enableCONFIG_WDT
watchdog:ulp_wdog: guardreset_cpuwith condition check
imx9: soc: support reset cause
imx9: Get market segment and speed grading
imx9: clock: clearHW_CTRL_SEL
imx9: clock: addCONFIG_IMX9_LOW_DRIVE_MODEsupport
imx9: clock: config arm alt root to 500mhz
imx9: add i.MX93 variants support
imx9: correct coding style
imx9: use i.MX generic rom api function
imx9:imx93_evk: add low drive mode support on 11x11 EVK
arm: dts: imx93: sync device tree with Linux
arm: dts: imx93: add tmu
imx9:imx93_evk: Update spl stack & bss base address
imx9:imx93_evk: update ddr timing file
imx9:imx93_evk: enable sysresetYe Li (5):
thermal:imx_tmu: Update TMU driver to support iMX93
imx9: Change hard coded MAC to read from fuse
imx9: allow to bootaux Mcore with input address
ddr: imx9: Add workaround for DDRPHY rank-to-rank errata
imx9: Calculate DDR size from DDRC settingarch/arm/dts/imx93-11x11-evk-u-boot.dtsi | 29 - arch/arm/dts/imx93-11x11-evk.dts | 385 +- arch/arm/dts/imx93-pinfunc.h | 194 +- arch/arm/dts/imx93.dtsi | 618 +-- arch/arm/include/asm/arch-imx/cpu.h | 7 + arch/arm/include/asm/arch-imx8/power-domain.h | 2 +- arch/arm/include/asm/arch-imx8/sci/sci.h | 138 - arch/arm/include/asm/arch-imx8/sys_proto.h | 2 +- arch/arm/include/asm/arch-imx8m/ddr.h | 2 +- arch/arm/include/asm/arch-imx9/clock.h | 6 + arch/arm/include/asm/arch-imx9/ddr.h | 23 +- arch/arm/include/asm/arch-imx9/imx-regs.h | 3 + arch/arm/include/asm/mach-imx/sys_proto.h | 12 +- arch/arm/mach-imx/cmd_dek.c | 2 +- arch/arm/mach-imx/imx8/ahab.c | 2 +- arch/arm/mach-imx/imx8/cpu.c | 2 +- arch/arm/mach-imx/imx8/fdt.c | 2 +- arch/arm/mach-imx/imx8/iomux.c | 2 +- arch/arm/mach-imx/imx8/misc.c | 2 +- arch/arm/mach-imx/imx8/snvs_security_sc.c | 2 +- arch/arm/mach-imx/imx8ulp/Kconfig | 5 + arch/arm/mach-imx/imx8ulp/Makefile | 1 + arch/arm/mach-imx/imx9/Kconfig | 5 + arch/arm/mach-imx/imx9/clock.c | 113 +- arch/arm/mach-imx/imx9/imx_bootaux.c | 10 +- arch/arm/mach-imx/imx9/soc.c | 384 +- arch/arm/mach-imx/parse-container.c | 2 +- arch/arm/mach-imx/spl_imx_romapi.c | 2 +- .../imx8qm_rom7720_a1/imx8qm_rom7720_a1.c | 2 +- board/advantech/imx8qm_rom7720_a1/spl.c | 2 +- board/congatec/cgtqmx8/cgtqmx8.c | 2 +- board/freescale/imx8qm_mek/imx8qm_mek.c | 2 +- board/freescale/imx8qxp_mek/imx8qxp_mek.c | 2 +- board/freescale/imx8qxp_mek/spl.c | 2 +- board/freescale/imx93_evk/MAINTAINERS | 1 + board/freescale/imx93_evk/Makefile | 4 + board/freescale/imx93_evk/lpddr4x_timing.c | 3361 ++++++++++------- board/freescale/imx93_evk/lpddr4x_timing_ld.c | 1496 ++++++++ board/freescale/imx93_evk/spl.c | 26 +- board/siemens/capricorn/board.c | 2 +- board/toradex/apalis-imx8/apalis-imx8.c | 2 +- board/toradex/colibri-imx8x/colibri-imx8x.c | 2 +- configs/imx93_11x11_evk_defconfig | 12 +- configs/imx93_11x11_evk_ld_defconfig | 125 + drivers/clk/imx/clk-imx8.c | 2 +- drivers/clk/imx/clk-imx8qm.c | 2 +- drivers/clk/imx/clk-imx8qxp.c | 2 +- drivers/cpu/Kconfig | 6 + drivers/cpu/Makefile | 1 + drivers/cpu/imx8_cpu.c | 142 +- drivers/cpu/imx9_cpu.c | 224 ++ drivers/ddr/imx/imx9/Kconfig | 2 +- drivers/ddr/imx/imx9/ddr_init.c | 289 +- drivers/ddr/imx/phy/ddrphy_utils.c | 3 + drivers/ddr/imx/phy/helper.c | 5 +- drivers/misc/imx8/fuse.c | 2 +- drivers/misc/imx8/scu.c | 2 +- drivers/misc/imx8/scu_api.c | 2 +- drivers/pinctrl/nxp/pinctrl-scu.c | 2 +- .../power/domain/imx8-power-domain-legacy.c | 2 +- drivers/power/domain/imx8-power-domain.c | 2 +- drivers/thermal/Kconfig | 6 +- drivers/thermal/imx_scu_thermal.c | 2 +- drivers/thermal/imx_tmu.c | 101 + drivers/watchdog/ulp_wdog.c | 2 + include/configs/imx93_evk.h | 2 - include/dt-bindings/clock/imx93-clock.h | 17 +- include/dt-bindings/power/fsl,imx93-power.h | 15 + include/dt-bindings/power/imx93-power.h | 12 - .../firmware/imx}/sci/rpc.h | 0 include/firmware/imx/sci/sci.h | 379 ++ .../firmware/imx}/sci/svc/misc/api.h | 0 .../firmware/imx}/sci/svc/pad/api.h | 0 .../firmware/imx}/sci/svc/pm/api.h | 0 .../firmware/imx}/sci/svc/rm/api.h | 2 +- .../firmware/imx}/sci/svc/seco/api.h | 2 +- .../firmware/imx}/sci/types.h | 0 77 files changed, 5864 insertions(+), 2366 deletions(-)delete mode 100644
arch/arm/include/asm/arch-imx8/sci/sci.h
create mode 100644board/freescale/imx93_evk/lpddr4x_timing_ld.c
create mode 100644 configs/imx93_11x11_evk_ld_defconfig
create mode 100644drivers/cpu/imx9_cpu.c
create mode 100644include/dt-bindings/power/fsl,imx93-power.h
delete mode 100644include/dt-bindings/power/imx93-power.h
rename {arch/arm/include/asm/arch-imx8=>include/firmware/imx}/sci/rpc.h(100%) create mode 100644include/firmware/imx/sci/sci.h
rename {arch/arm/include/asm/arch-imx8=>include/firmware/imx}/sci/svc/misc/api.h(100%) rename {arch/arm/include/asm/arch-imx8=>include/firmware/imx}/sci/svc/pad/api.h(100%) rename {arch/arm/include/asm/arch-imx8=>include/firmware/imx}/sci/svc/pm/api.h(100%) rename {arch/arm/include/asm/arch-imx8=>include/firmware/imx}/sci/svc/rm/api.h(98%) rename {arch/arm/include/asm/arch-imx8=>include/firmware/imx}/sci/svc/seco/api.h(96%) rename {arch/arm/include/asm/arch-imx8=>include/firmware/imx}/sci/types.h(100%)
Hi peng,
Quoted 4 lines · Peng Fan
Hi Stefano, Fabio
Do you have time to give a look? Is there a chance to for this patchset landed in 2023.07?
Most patches are very small and clean. I have picked them up, I found a small issue due to the different place for sci.h, and I fixed this adding to your patch this:
board/advantech/imx8qm_dmsse20_a1/imx8qm_dmsse20_a1.c +1 -1
@@ -10,7 +10,7 @@#include <asm/io.h> #include <asm/gpio.h> #include <asm/arch/clock.h> -#include <asm/arch/sci/sci.h> +#include <firmware/imx/sci/sci.h> #include <asm/arch/imx8-pins.h> #include <asm/arch/iomux.h> #include <asm/arch/sys_proto.h>
board/advantech/imx8qm_dmsse20_a1/spl.c +1 -1
@@ -11,7 +11,7 @@#include <asm/io.h> #include <asm/gpio.h> #include <asm/arch/clock.h> -#include <asm/arch/sci/sci.h> +#include <firmware/imx/sci/sci.h> #include <asm/arch/imx8-pins.h> #include <asm/arch/iomux.h> #include <fsl_esdhc_imx.h>
(by the way, I do not think it is required to repost the patch, as the reason is clear and could be easy fixed).
I will rerun CI to check again, but then I agree to get this series soon.
Best regards,
Stefano
Quoted 161 lines
Thanks,
PengQuoted 157 lines · Peng Fan (OSS)
From: Peng Fan <[email protected]>
This patchset includes updates mainly for i.MX9, such as Clock, Memory, Parts, Low drive mode, DDR, cpu driver, Variants
The first patch is not about i.MX9, just include it here since it is a simple one for i.MX8ULP.
For the watchdog
reset_cpu, I will move it out from watchdog driver in future patches which would includes other changes. I include it here mainly for sysreset support.This patchset depends on two patches from Marek:
https://patchwork.ozlabs.org/project/uboot/patch/[email protected]/
https://patchwork.ozlabs.org/project/uboot/patch/[email protected]/Jacky Bai (4):
ddr: imx9: Change the saved ddr data base to0x2051c000
ddr: imx93: Add 625M bypass clock support
ddr: imx93: update the ddr init to support mult setpoints
ddr: imx9: update the rank setting for multi fsp supportPeng Fan (33):
imx8ulp: build ahab
imx:spl_imx_romapi: typo fix
imx: move imx8 sci header file toinclude/firmware/imx
imx: firmware: sci: add inline functions when IMX8 not enabled
imx:imx8_cpu: use static for local functions
imx:imx8_cpu: support i.MX9
imx:imx8_cpu: support get temperature for i.MX9
imx:imx8_cpu: print cpu grade temperature
imx9: configure M33 systick to 24M
imx9: add more PLL settings
imx9: use parameter freq whenset_arm_clk
imx9: correct getting LPI2C clk
imx9: simplify clk settings
imx9: cut off OPTEE memory region from U-Boot
imx9:imx93_evk: enableCPU_IMX
imx9:imx93_evk: drop unused macro
imx9:imx93_evk: selectIMX_TMU
imx9:imx93_evk: enableCONFIG_WDT
watchdog:ulp_wdog: guardreset_cpuwith condition check
imx9: soc: support reset cause
imx9: Get market segment and speed grading
imx9: clock: clearHW_CTRL_SEL
imx9: clock: addCONFIG_IMX9_LOW_DRIVE_MODEsupport
imx9: clock: config arm alt root to 500mhz
imx9: add i.MX93 variants support
imx9: correct coding style
imx9: use i.MX generic rom api function
imx9:imx93_evk: add low drive mode support on 11x11 EVK
arm: dts: imx93: sync device tree with Linux
arm: dts: imx93: add tmu
imx9:imx93_evk: Update spl stack & bss base address
imx9:imx93_evk: update ddr timing file
imx9:imx93_evk: enable sysresetYe Li (5):
thermal:imx_tmu: Update TMU driver to support iMX93
imx9: Change hard coded MAC to read from fuse
imx9: allow to bootaux Mcore with input address
ddr: imx9: Add workaround for DDRPHY rank-to-rank errata
imx9: Calculate DDR size from DDRC settingarch/arm/dts/imx93-11x11-evk-u-boot.dtsi | 29 - arch/arm/dts/imx93-11x11-evk.dts | 385 +- arch/arm/dts/imx93-pinfunc.h | 194 +- arch/arm/dts/imx93.dtsi | 618 +-- arch/arm/include/asm/arch-imx/cpu.h | 7 +
arch/arm/include/asm/arch-imx8/power-domain.h| 2 +- arch/arm/include/asm/arch-imx8/sci/sci.h | 138 - arch/arm/include/asm/arch-imx8/sys_proto.h | 2 +- arch/arm/include/asm/arch-imx8m/ddr.h | 2 +- arch/arm/include/asm/arch-imx9/clock.h | 6 + arch/arm/include/asm/arch-imx9/ddr.h | 23 +- arch/arm/include/asm/arch-imx9/imx-regs.h | 3 + arch/arm/include/asm/mach-imx/sys_proto.h | 12 +- arch/arm/mach-imx/cmd_dek.c | 2 +- arch/arm/mach-imx/imx8/ahab.c | 2 +- arch/arm/mach-imx/imx8/cpu.c | 2 +- arch/arm/mach-imx/imx8/fdt.c | 2 +- arch/arm/mach-imx/imx8/iomux.c | 2 +- arch/arm/mach-imx/imx8/misc.c | 2 +- arch/arm/mach-imx/imx8/snvs_security_sc.c | 2 +- arch/arm/mach-imx/imx8ulp/Kconfig | 5 + arch/arm/mach-imx/imx8ulp/Makefile | 1 + arch/arm/mach-imx/imx9/Kconfig | 5 + arch/arm/mach-imx/imx9/clock.c | 113 +- arch/arm/mach-imx/imx9/imx_bootaux.c | 10 +- arch/arm/mach-imx/imx9/soc.c | 384 +- arch/arm/mach-imx/parse-container.c | 2 +- arch/arm/mach-imx/spl_imx_romapi.c | 2 +- .../imx8qm_rom7720_a1/imx8qm_rom7720_a1.c | 2 +- board/advantech/imx8qm_rom7720_a1/spl.c | 2 +- board/congatec/cgtqmx8/cgtqmx8.c | 2 +- board/freescale/imx8qm_mek/imx8qm_mek.c | 2 +- board/freescale/imx8qxp_mek/imx8qxp_mek.c | 2 +- board/freescale/imx8qxp_mek/spl.c | 2 +- board/freescale/imx93_evk/MAINTAINERS | 1 + board/freescale/imx93_evk/Makefile | 4 + board/freescale/imx93_evk/lpddr4x_timing.c | 3361 ++++++++++-------board/freescale/imx93_evk/lpddr4x_timing_ld.c| 1496 ++++++++ board/freescale/imx93_evk/spl.c | 26 +- board/siemens/capricorn/board.c | 2 +- board/toradex/apalis-imx8/apalis-imx8.c | 2 +- board/toradex/colibri-imx8x/colibri-imx8x.c | 2 +- configs/imx93_11x11_evk_defconfig | 12 +- configs/imx93_11x11_evk_ld_defconfig | 125 + drivers/clk/imx/clk-imx8.c | 2 +- drivers/clk/imx/clk-imx8qm.c | 2 +- drivers/clk/imx/clk-imx8qxp.c | 2 +- drivers/cpu/Kconfig | 6 + drivers/cpu/Makefile | 1 + drivers/cpu/imx8_cpu.c | 142 +- drivers/cpu/imx9_cpu.c | 224 ++ drivers/ddr/imx/imx9/Kconfig | 2 +- drivers/ddr/imx/imx9/ddr_init.c | 289 +- drivers/ddr/imx/phy/ddrphy_utils.c | 3 + drivers/ddr/imx/phy/helper.c | 5 +- drivers/misc/imx8/fuse.c | 2 +- drivers/misc/imx8/scu.c | 2 +- drivers/misc/imx8/scu_api.c | 2 +- drivers/pinctrl/nxp/pinctrl-scu.c | 2 +- .../power/domain/imx8-power-domain-legacy.c | 2 +- drivers/power/domain/imx8-power-domain.c | 2 +- drivers/thermal/Kconfig | 6 +- drivers/thermal/imx_scu_thermal.c | 2 +- drivers/thermal/imx_tmu.c | 101 + drivers/watchdog/ulp_wdog.c | 2 + include/configs/imx93_evk.h | 2 - include/dt-bindings/clock/imx93-clock.h | 17 +- include/dt-bindings/power/fsl,imx93-power.h | 15 + include/dt-bindings/power/imx93-power.h | 12 - .../firmware/imx}/sci/rpc.h | 0 include/firmware/imx/sci/sci.h | 379 ++ .../firmware/imx}/sci/svc/misc/api.h | 0 .../firmware/imx}/sci/svc/pad/api.h | 0 .../firmware/imx}/sci/svc/pm/api.h | 0 .../firmware/imx}/sci/svc/rm/api.h | 2 +- .../firmware/imx}/sci/svc/seco/api.h | 2 +- .../firmware/imx}/sci/types.h | 077 files changed, 5864 insertions(+), 2366 deletions(-)delete mode 100644
arch/arm/include/asm/arch-imx8/sci/sci.h
create mode 100644board/freescale/imx93_evk/lpddr4x_timing_ld.c
create mode 100644 configs/imx93_11x11_evk_ld_defconfig
create mode 100644drivers/cpu/imx9_cpu.c
create mode 100644include/dt-bindings/power/fsl,imx93-power.h
delete mode 100644include/dt-bindings/power/imx93-power.h
rename {arch/arm/include/asm/arch-imx8=>include/firmware/imx}/sci/rpc.h(100%) create mode 100644include/firmware/imx/sci/sci.h
rename {arch/arm/include/asm/arch-imx8=>include/firmware/imx}/sci/svc/misc/api.h(100%) rename {arch/arm/include/asm/arch-imx8=>include/firmware/imx}/sci/svc/pad/api.h(100%) rename {arch/arm/include/asm/arch-imx8=>include/firmware/imx}/sci/svc/pm/api.h(100%) rename {arch/arm/include/asm/arch-imx8=>include/firmware/imx}/sci/svc/rm/api.h(98%) rename {arch/arm/include/asm/arch-imx8=>include/firmware/imx}/sci/svc/seco/api.h(96%) rename {arch/arm/include/asm/arch-imx8=>include/firmware/imx}/sci/types.h(100%)
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, 82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: [email protected] =====================================================================