summaryrefslogtreecommitdiff
path: root/board/cssi/cmpc885/cmpc885.c
diff options
context:
space:
mode:
authorChristophe Leroy <christophe.leroy@csgroup.eu>2023-05-03 09:25:10 +0200
committerChristophe Leroy <christophe.leroy@csgroup.eu>2023-05-05 07:26:53 +0200
commit0ec8ebef87d78529d1b4f3e7beaced0b9fbea629 (patch)
tree680e9110fa2e422ab9dd795decda0775f409b3e5 /board/cssi/cmpc885/cmpc885.c
parent388cb1a10f091e494b837a8666d49866e9c7b1e2 (diff)
board: cssi: Activate SMC relocation on CMPC885 board for MIAE device
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>
Diffstat (limited to 'board/cssi/cmpc885/cmpc885.c')
-rw-r--r--board/cssi/cmpc885/cmpc885.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/board/cssi/cmpc885/cmpc885.c b/board/cssi/cmpc885/cmpc885.c
index 40128f170a2..5e6aa8b8cfa 100644
--- a/board/cssi/cmpc885/cmpc885.c
+++ b/board/cssi/cmpc885/cmpc885.c
@@ -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);