|
@@ -1,6 +1,7 @@
|
|
|
// SPDX-License-Identifier: GPL-2.0+
|
|
|
/*
|
|
|
* Copyright 2013 Freescale Semiconductor, Inc.
|
|
|
+ * Copyright 2023 NXP
|
|
|
*/
|
|
|
|
|
|
#include <common.h>
|
|
@@ -22,6 +23,7 @@
|
|
|
#include <asm/fsl_law.h>
|
|
|
#include <asm/fsl_serdes.h>
|
|
|
#include <asm/fsl_liodn.h>
|
|
|
+#include <clock_legacy.h>
|
|
|
#include <fm_eth.h>
|
|
|
#include "../common/sleep.h"
|
|
|
#include "t104xrdb.h"
|
|
@@ -29,6 +31,13 @@
|
|
|
|
|
|
DECLARE_GLOBAL_DATA_PTR;
|
|
|
|
|
|
+#if CONFIG_IS_ENABLED(DM_SERIAL)
|
|
|
+int get_serial_clock(void)
|
|
|
+{
|
|
|
+ return get_bus_freq(0) / 2;
|
|
|
+}
|
|
|
+#endif
|
|
|
+
|
|
|
int checkboard(void)
|
|
|
{
|
|
|
struct cpu_type *cpu = gd->arch.cpu;
|
|
@@ -88,6 +97,9 @@ int board_early_init_r(void)
|
|
|
MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
|
|
|
0, flash_esel, BOOKE_PAGESZ_256M, 1);
|
|
|
#endif
|
|
|
+
|
|
|
+ pci_init();
|
|
|
+
|
|
|
return 0;
|
|
|
}
|
|
|
|