]> git.sur5r.net Git - u-boot/commitdiff
board: Kconfig: Re-Arrangement of PPA firmware and header addresses
authorBhaskar Upadhaya <Bhaskar.Upadhaya@nxp.com>
Wed, 23 May 2018 05:33:29 +0000 (11:03 +0530)
committerYork Sun <york.sun@nxp.com>
Fri, 8 Jun 2018 23:43:19 +0000 (16:43 -0700)
PPA firmware and header address may vary depending upon different
boards, configure ppa firmware and header address in board specific
Kconfig.

Signed-off-by: Vinitha V Pillai <vinitha.pillai@nxp.com>
Signed-off-by: Jagdish Gediya <jagdish.gediya@nxp.com>
Signed-off-by: Bhaskar Upadhaya <Bhaskar.Upadhaya@nxp.com>
Reviewed-by: York Sun <york.sun@nxp.com>
arch/arm/cpu/armv8/fsl-layerscape/Kconfig
board/freescale/ls1012afrdm/Kconfig
board/freescale/ls1012aqds/Kconfig
board/freescale/ls1012ardb/Kconfig
board/freescale/ls1043aqds/Kconfig
board/freescale/ls1043ardb/Kconfig
board/freescale/ls1046aqds/Kconfig
board/freescale/ls1046ardb/Kconfig
board/freescale/ls1088a/Kconfig
board/freescale/ls2080aqds/Kconfig
board/freescale/ls2080ardb/Kconfig

index 546de33b72e6e35d33702fe4e989aa5ce61df6f5..f2111fadc05888843ebdb751248c7db88113f322 100644 (file)
@@ -261,40 +261,6 @@ config SYS_LS_PPA_FW_IN_NAND
 
 endchoice
 
-config SYS_LS_PPA_FW_ADDR
-       hex "Address of PPA firmware loading from"
-       depends on FSL_LS_PPA
-       default 0x20400000 if SYS_LS_PPA_FW_IN_XIP && QSPI_BOOT && ARCH_LS2080A
-       default 0x40400000 if SYS_LS_PPA_FW_IN_XIP && QSPI_BOOT
-       default 0x580400000 if SYS_LS_PPA_FW_IN_XIP && ARCH_LS2080A
-       default 0x20400000 if SYS_LS_PPA_FW_IN_XIP && ARCH_LS1088A
-       default 0x60400000 if SYS_LS_PPA_FW_IN_XIP
-       default 0x400000 if SYS_LS_PPA_FW_IN_MMC
-       default 0x400000 if SYS_LS_PPA_FW_IN_NAND
-
-       help
-         If the PPA firmware locate at XIP flash, such as NOR or
-         QSPI flash, this address is a directly memory-mapped.
-         If it is in a serial accessed flash, such as NAND and SD
-         card, it is a byte offset.
-
-config SYS_LS_PPA_ESBC_ADDR
-       hex "hdr address of PPA firmware loading from"
-       depends on FSL_LS_PPA && CHAIN_OF_TRUST
-       default 0x60680000 if SYS_LS_PPA_FW_IN_XIP && ARCH_LS1043A
-       default 0x40680000 if SYS_LS_PPA_FW_IN_XIP && ARCH_LS1046A
-       default 0x40680000 if SYS_LS_PPA_FW_IN_XIP && ARCH_LS1012A
-       default 0x20680000 if SYS_LS_PPA_FW_IN_XIP && QSPI_BOOT && ARCH_LS2080A
-       default 0x580680000 if SYS_LS_PPA_FW_IN_XIP && ARCH_LS2080A
-       default 0x20680000 if SYS_LS_PPA_FW_IN_XIP && ARCH_LS1088A
-       default 0x680000 if SYS_LS_PPA_FW_IN_MMC
-       default 0x680000 if SYS_LS_PPA_FW_IN_NAND
-       help
-         If the PPA header firmware locate at XIP flash, such as NOR or
-         QSPI flash, this address is a directly memory-mapped.
-         If it is in a serial accessed flash, such as NAND and SD
-         card, it is a byte offset.
-
 config LS_PPA_ESBC_HDR_SIZE
        hex "Length of PPA ESBC header"
        depends on FSL_LS_PPA && CHAIN_OF_TRUST && !SYS_LS_PPA_FW_IN_XIP
index 22d521b6cf5cd152b3c701287c71d2c0c31f5e35..fd33807ae38f61f6ec613d7a4328d036bb0c43df 100644 (file)
@@ -12,6 +12,10 @@ config SYS_SOC
 config SYS_CONFIG_NAME
        default "ls1012afrdm"
 
+config SYS_LS_PPA_FW_ADDR
+       hex "PPA Firmware Addr"
+       default 0x40400000
+
 if FSL_PFE
 
 config BOARD_SPECIFIC_OPTIONS # dummy
index c0b12ed78f265387a0724aad2db91665721aaffd..b702fb274099848283331b0b24fc7700ab53be16 100644 (file)
@@ -12,6 +12,9 @@ config SYS_SOC
 config SYS_CONFIG_NAME
        default "ls1012aqds"
 
+config SYS_LS_PPA_FW_ADDR
+        hex "PPA Firmware Addr"
+        default 0x40400000
 
 if FSL_PFE
 
index 493d4779bc2a0b3cb34d2ad9ab85b339b21c0849..4cd66bd5488d80c390e91390479e17c6c95b7a12 100644 (file)
@@ -12,6 +12,16 @@ config SYS_SOC
 config SYS_CONFIG_NAME
        default "ls1012ardb"
 
+config SYS_LS_PPA_FW_ADDR
+        hex "PPA Firmware Addr"
+        default 0x40400000
+
+if CHAIN_OF_TRUST
+config SYS_LS_PPA_ESBC_ADDR
+       hex "PPA Firmware HDR Addr"
+       default 0x40680000
+endif
+
 if FSL_PFE
 
 config BOARD_SPECIFIC_OPTIONS # dummy
@@ -59,6 +69,10 @@ config SYS_SOC
 config SYS_CONFIG_NAME
         default "ls1012a2g5rdb"
 
+config SYS_LS_PPA_FW_ADDR
+        hex "PPA Firmware Addr"
+        default 0x40400000
+
 if FSL_PFE
 
 config BOARD_SPECIFIC_OPTIONS # dummy
index 95d288812a97a3e9b76b5521b9267a7dc4498668..182900efb7b28163d5b5bbccc765e4316bd2b229 100644 (file)
@@ -12,6 +12,22 @@ config SYS_SOC
 config SYS_CONFIG_NAME
        default "ls1043aqds"
 
+if FSL_LS_PPA
+config SYS_LS_PPA_FW_ADDR
+       hex "PPA Firmware Addr"
+       default 0x40400000 if SYS_LS_PPA_FW_IN_XIP && QSPI_BOOT
+       default 0x60400000 if SYS_LS_PPA_FW_IN_XIP
+       default 0x400000 if SYS_LS_PPA_FW_IN_MMC || SYS_LS_PPA_FW_IN_NAND
+
+if CHAIN_OF_TRUST
+config SYS_LS_PPA_ESBC_ADDR
+       hex "PPA Firmware HDR Addr"
+       default 0x40680000 if SYS_LS_PPA_FW_IN_XIP && QSPI_BOOT
+       default 0x60680000 if SYS_LS_PPA_FW_IN_XIP
+       default 0x680000 if SYS_LS_PPA_FW_IN_MMC || SYS_LS_PPA_FW_IN_NAND
+endif
+endif
+
 source "board/freescale/common/Kconfig"
 
 endif
index 1bab7cab613f86a443bea1ae4176919fbd0e19f6..3d9e295c4e71273b02b2b7d4ee7977bf613affc9 100644 (file)
@@ -22,6 +22,20 @@ config SYS_HAS_ARMV8_SECURE_BASE
          If enabled, please also define the value for ARMV8_SECURE_BASE,
          for LS1043ARDB, it could be some address in OCRAM.
 
+if FSL_LS_PPA
+config SYS_LS_PPA_FW_ADDR
+       hex "PPA Firmware Addr"
+       default 0x60400000 if SYS_LS_PPA_FW_IN_XIP
+       default 0x400000 if SYS_LS_PPA_FW_IN_MMC || SYS_LS_PPA_FW_IN_NAND
+
+if CHAIN_OF_TRUST
+config SYS_LS_PPA_ESBC_ADDR
+       hex "PPA Firmware HDR Addr"
+       default 0x60680000 if SYS_LS_PPA_FW_IN_XIP
+       default 0x680000 if SYS_LS_PPA_FW_IN_MMC || SYS_LS_PPA_FW_IN_NAND
+endif
+endif
+
 source "board/freescale/common/Kconfig"
 
 endif
index 070827d7b9fd205d05d075d116b56ad4d4961455..1616dcc683eb92b43dfd38c5b388aee1c1f42e08 100644 (file)
@@ -12,6 +12,22 @@ config SYS_SOC
 config SYS_CONFIG_NAME
        default "ls1046aqds"
 
+if FSL_LS_PPA
+config SYS_LS_PPA_FW_ADDR
+       hex "PPA Firmware Addr"
+       default 0x40400000 if SYS_LS_PPA_FW_IN_XIP && QSPI_BOOT
+       default 0x60400000 if SYS_LS_PPA_FW_IN_XIP
+       default 0x400000 if SYS_LS_PPA_FW_IN_MMC || SYS_LS_PPA_FW_IN_NAND
+
+if CHAIN_OF_TRUST
+config SYS_LS_PPA_ESBC_ADDR
+       hex "PPA Firmware HDR Addr"
+       default 0x40680000 if SYS_LS_PPA_FW_IN_XIP && QSPI_BOOT
+       default 0x60680000 if SYS_LS_PPA_FW_IN_XIP
+       default 0x680000 if SYS_LS_PPA_FW_IN_MMC || SYS_LS_PPA_FW_IN_NAND
+endif
+endif
+
 source "board/freescale/common/Kconfig"
 
 endif
index b9f2ed7e4bb24c9def3ec99b2ac24667dee5a90a..4c31e0e88572a3206f141e8f4ee648669aabcee8 100644 (file)
@@ -12,5 +12,20 @@ config SYS_SOC
 
 config SYS_CONFIG_NAME
        default "ls1046ardb"
+
+if FSL_LS_PPA
+config SYS_LS_PPA_FW_ADDR
+       hex "PPA Firmware Addr"
+       default 0x40400000 if SYS_LS_PPA_FW_IN_XIP && QSPI_BOOT
+       default 0x400000 if SYS_LS_PPA_FW_IN_MMC || SYS_LS_PPA_FW_IN_NAND
+
+if CHAIN_OF_TRUST
+config SYS_LS_PPA_ESBC_ADDR
+       hex "PPA Firmware HDR Addr"
+       default 0x40680000 if SYS_LS_PPA_FW_IN_XIP && QSPI_BOOT
+       default 0x680000 if SYS_LS_PPA_FW_IN_MMC || SYS_LS_PPA_FW_IN_NAND
+endif
+endif
+
 source "board/freescale/common/Kconfig"
 endif
index 4479dd075844d8eb6d79057c859a54f159298ecf..8bb828e3fd6685b5ae9e3509b034e99945bce292 100644 (file)
@@ -12,6 +12,20 @@ config SYS_SOC
 config SYS_CONFIG_NAME
        default "ls1088aqds"
 
+if FSL_LS_PPA
+config SYS_LS_PPA_FW_ADDR
+        hex "PPA Firmware Addr"
+       default 0x20400000 if SYS_LS_PPA_FW_IN_XIP
+       default 0x400000 if SYS_LS_PPA_FW_IN_MMC || SYS_LS_PPA_FW_IN_NAND
+
+if CHAIN_OF_TRUST
+config SYS_LS_PPA_ESBC_ADDR
+       hex "PPA Firmware HDR Addr"
+       default 0x20680000 if SYS_LS_PPA_FW_IN_XIP
+       default 0x680000 if SYS_LS_PPA_FW_IN_MMC || SYS_LS_PPA_FW_IN_NAND
+endif
+endif
+
 source "board/freescale/common/Kconfig"
 endif
 
@@ -29,5 +43,19 @@ config SYS_SOC
 config SYS_CONFIG_NAME
        default "ls1088ardb"
 
+if FSL_LS_PPA
+config SYS_LS_PPA_FW_ADDR
+        hex "PPA Firmware Addr"
+       default 0x20400000 if SYS_LS_PPA_FW_IN_XIP
+       default 0x400000 if SYS_LS_PPA_FW_IN_MMC || SYS_LS_PPA_FW_IN_NAND
+
+if CHAIN_OF_TRUST
+config SYS_LS_PPA_ESBC_ADDR
+       hex "PPA Firmware HDR Addr"
+       default 0x20680000 if SYS_LS_PPA_FW_IN_XIP
+       default 0x680000 if SYS_LS_PPA_FW_IN_MMC || SYS_LS_PPA_FW_IN_NAND
+endif
+endif
+
 source "board/freescale/common/Kconfig"
 endif
index e2b2c8d0898636f645f16e3a3acfa562f85bccc9..6b2b64581d606e2c25a0e2ab43caeac5f6c1f851 100644 (file)
@@ -13,6 +13,22 @@ config SYS_SOC
 config SYS_CONFIG_NAME
        default "ls2080aqds"
 
+if FSL_LS_PPA
+config SYS_LS_PPA_FW_ADDR
+       hex "PPA Firmware Addr"
+       default 0x20400000 if SYS_LS_PPA_FW_IN_XIP && QSPI_BOOT
+       default 0x580400000 if SYS_LS_PPA_FW_IN_XIP
+       default 0x400000 if SYS_LS_PPA_FW_IN_MMC || SYS_LS_PPA_FW_IN_NAND
+
+if CHAIN_OF_TRUST
+config SYS_LS_PPA_ESBC_ADDR
+       hex "PPA Firmware HDR Addr"
+       default 0x20680000 if SYS_LS_PPA_FW_IN_XIP && QSPI_BOOT
+       default 0x580680000 if SYS_LS_PPA_FW_IN_XIP
+       default 0x680000 if SYS_LS_PPA_FW_IN_MMC || SYS_LS_PPA_FW_IN_NAND
+endif
+endif
+
 source "board/freescale/common/Kconfig"
 
 endif
index 8f64642593dc53a728d42079fc386fae4b54f3f3..678d58257303066f44d002327a129e4aa6ad5477 100644 (file)
@@ -1,5 +1,4 @@
-
-if TARGET_LS2080ARDB
+if TARGET_LS2080ARDB || TARGET_LS2081ARDB
 
 config SYS_BOARD
        default "ls2080ardb"
@@ -15,21 +14,21 @@ config SYS_CONFIG_NAME
 
 source "board/freescale/common/Kconfig"
 
+if FSL_LS_PPA
+config SYS_LS_PPA_FW_ADDR
+       hex "PPA Firmware Addr"
+       default 0x20400000 if SYS_LS_PPA_FW_IN_XIP && QSPI_BOOT
+       default 0x580400000 if SYS_LS_PPA_FW_IN_XIP
+       default 0x400000 if SYS_LS_PPA_FW_IN_MMC || SYS_LS_PPA_FW_IN_NAND
+
+if CHAIN_OF_TRUST
+config SYS_LS_PPA_ESBC_ADDR
+       hex "PPA Firmware HDR Addr"
+       default 0x20680000 if SYS_LS_PPA_FW_IN_XIP && QSPI_BOOT
+       default 0x580680000 if SYS_LS_PPA_FW_IN_XIP
+       default 0x680000 if SYS_LS_PPA_FW_IN_MMC || SYS_LS_PPA_FW_IN_NAND
+endif
 endif
-
-if TARGET_LS2081ARDB
-
-config SYS_BOARD
-       default "ls2080ardb"
-
-config SYS_VENDOR
-       default "freescale"
-
-config SYS_SOC
-       default "fsl-layerscape"
-
-config SYS_CONFIG_NAME
-       default "ls2080ardb"
 
 source "board/freescale/common/Kconfig"