]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board: cssi: Activate SMC relocation on CMPC885 board for MIAE device
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Wed, 3 May 2023 07:25:10 +0000 (09:25 +0200)
committerChristophe Leroy <christophe.leroy@csgroup.eu>
Fri, 5 May 2023 05:26:53 +0000 (07:26 +0200)
When CMPC885 board is used for MIAE device, SCC2 SCC3 and SMC2
are used for serial lines. Therefore only SCC4 is available for
handling the TDM line.

In order to use SCC4 in QMC mode without loosing SMC2, SMC2
must be relocated.

Activate SMC relocation and relocate SMC2 at offset 0x1fc0 which
is unused.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
board/cssi/cmpc885/cmpc885.c
configs/CMPC885_defconfig

index 40128f170a280e285c7c825aaf394b14a82a40aa..5e6aa8b8cfa6da89b5edd92eedaa8a06cced819d 100644 (file)
@@ -11,6 +11,7 @@
 #include <env.h>
 #include <common.h>
 #include <mpc8xx.h>
+#include <asm/cpm_8xx.h>
 #include <asm/io.h>
 #include <dm.h>
 #include <stdio.h>
@@ -451,6 +452,9 @@ void iop_setup_miae(void)
        /* Wait reset on FPGA_F */
        udelay(100);
 
+       /* Load CPM relocation code */
+       cpm_load_patch(cp);
+
        /* Set the front panel LED color to red */
        clrbits_8((unsigned char  __iomem *)CONFIG_FPGA_BASE + 0x44, 0x02);
 
index ca5dfd2b83c0f197260fda55f3a8c970da46c95a..f55af97f08f4e7184c475b24c82b4304eaf00159 100644 (file)
@@ -10,6 +10,8 @@ CONFIG_MPC8xx=y
 # CONFIG_PCI is not set
 CONFIG_TARGET_CMPC885=y
 CONFIG_MPC885=y
+CONFIG_SMC_UCODE_PATCH=y
+CONFIG_SMC2_RPBASE=0x1fc0
 CONFIG_CMD_IMMAP=y
 CONFIG_SYS_SIUMCR=0x00620000
 CONFIG_SYS_TBSCR=0x00C3