2 * Copyright 2014 Freescale Semiconductor, Inc.
4 * SPDX-License-Identifier: GPL-2.0+
11 #include <linux/compiler.h>
13 #include <asm/processor.h>
14 #include <asm/cache.h>
15 #include <asm/immap_85xx.h>
16 #include <asm/fsl_law.h>
17 #include <asm/fsl_serdes.h>
18 #include <asm/fsl_portals.h>
19 #include <asm/fsl_liodn.h>
24 DECLARE_GLOBAL_DATA_PTR;
28 struct cpu_type *cpu = gd->arch.cpu;
30 printf("Board: %sRDB, ", cpu->name);
32 puts("SERDES Reference Clocks:\n");
33 printf(" SERDES1=100MHz SERDES2=156.25MHz\n"
34 " SERDES3=100MHz SERDES4=100MHz\n");
39 int board_early_init_r(void)
41 const unsigned int flashbase = CONFIG_SYS_FLASH_BASE;
42 const u8 flash_esel = find_tlb_idx((void *)flashbase, 1);
45 * Remap Boot flash + PROMJET region to caching-inhibited
46 * so that flash can be erased properly.
49 /* Flush d-cache and invalidate i-cache of any FLASH data */
53 /* invalidate existing TLB entry for flash + promjet */
54 disable_tlb(flash_esel);
56 set_tlb(1, flashbase, CONFIG_SYS_FLASH_BASE_PHYS,
57 MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
58 0, flash_esel, BOOKE_PAGESZ_256M, 1);
61 #ifdef CONFIG_SYS_DPAA_QBMAN
73 void ft_board_setup(void *blob, bd_t *bd)
78 ft_cpu_setup(blob, bd);
80 base = getenv_bootm_low();
81 size = getenv_bootm_size();
83 fdt_fixup_memory(blob, (u64)base, (u64)size);
86 pci_of_setup(blob, bd);
89 fdt_fixup_liodn(blob);
90 fdt_fixup_dr_usb(blob, bd);
92 #ifdef CONFIG_SYS_DPAA_FMAN
93 fdt_fixup_fman_ethernet(blob);
94 fdt_fixup_board_enet(blob);
99 * This function is called by bdinfo to print detail board information.
100 * As an exmaple for future board, we organize the messages into
101 * several sections. If applicable, the message is in the format of
103 * It should aligned with normal output of bdinfo command.
105 * Voltage: Core, DDR and another configurable voltages
106 * Clock : Critical clocks which are not printed already
107 * RCW : RCW source if not printed already
108 * Misc : Other important information not in above catagories
110 void board_detail(void)
114 /* RCW section SW3[4] */
116 puts("RCW source = ");
117 switch (rcwsrc & 0x1) {
122 puts("I2C normal addressing\n");