summaryrefslogtreecommitdiff
path: root/board/scalys/simc-t10xx/simc-t10xx.c
diff options
context:
space:
mode:
authorJoris van Vossen <joris.van.vossen@sintecs.nl>2020-01-17 09:24:44 (GMT)
committerJoris van Vossen <joris.van.vossen@sintecs.nl>2020-01-17 12:39:03 (GMT)
commit2d09eb46306dc029c7b25f3bdd1b705f9b92353c (patch)
tree362e2605ddc6782719c3787e84e9833b876694a5 /board/scalys/simc-t10xx/simc-t10xx.c
parentc9b89a4f8b11463e3bd8587a05ae0955e2e86c2a (diff)
downloadu-boot-fsl-qoriq-2d09eb46306dc029c7b25f3bdd1b705f9b92353c.tar.xz
Moved SERDES lane multiplexing configuration before PCIe initialization.
Clean-up of ddr related code and fixed a buffer overflow. Made M speedgrade default and added support for P speedgrade with through Kconfig.
Diffstat (limited to 'board/scalys/simc-t10xx/simc-t10xx.c')
-rw-r--r--board/scalys/simc-t10xx/simc-t10xx.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/board/scalys/simc-t10xx/simc-t10xx.c b/board/scalys/simc-t10xx/simc-t10xx.c
index 2f9b8d3..e567579 100644
--- a/board/scalys/simc-t10xx/simc-t10xx.c
+++ b/board/scalys/simc-t10xx/simc-t10xx.c
@@ -34,6 +34,8 @@ int checkboard(void)
{
#ifdef CONFIG_TARGET_QT1040_1GB
printf("Board: QT1040-1GB\n" );
+#elif defined(CONFIG_TARGET_QT1040_4GB)
+ printf("Board: QT1040-4GB\n" );
#else
printf("Board: simc-t10xx\n" );
#endif
@@ -43,8 +45,6 @@ int checkboard(void)
int misc_init_r(void)
{
const void* bcd_dtc_blob;
- int serdes_config;
- ccsr_gur_t __iomem *gur = (void __iomem *)(CONFIG_SYS_MPC85xx_GUTS_ADDR);
int ret;
debug("t10xx: misc_init_r\n");
@@ -61,10 +61,7 @@ int misc_init_r(void)
gpio_direction_output(MODULE_LED_RED, 0);
gpio_direction_output(MODULE_LED_GREEN, 1);
- /* SERDES configuration is determined boot time through the RCW config.
- * It is located in the fourth RCW word (bit 128-135 of the RCW). */
- serdes_config = ( in_be32(&gur->rcwsr[4]) >> 24);
- scalys_carrier_setup_muxing(serdes_config);
+ /* Configuration of SERDES lane is done in pci_init_board() of pci.c */
bcd_dtc_blob = get_boardinfo_eeprom();
if (bcd_dtc_blob != NULL) {
@@ -149,5 +146,5 @@ void board_detail(void)
void board_reset(void)
{
- printf("U-boot reset command not implemented.\n");
+ printf("Resetting now\n");
}