Commit 0b4b82ad1461cc37434e7e0c1de00a61193a95db
1 parent
4aba5fb857
Exists in
smarc_8mq_lf_v2020.04
and in
11 other branches
arm: zynq: Remove checkboard and enable DISPLAY_CPUINFO
Now that showing silicon version is part of the CPU info display, let's remove checkboard(). Note that the generic show_board_info() will still show the DT 'model' property. For instance: U-Boot 2018.05-rc2-00025-g611b3ee0159b (Apr 19 2018 - 11:23:12 +0200) CPU: Zynq 7z045 Silicon: v1.0 Model: Zynq ZC706 Development Board I2C: ready Based on patches from Ariel D'Alessandro <ariel@vanguardiasur.com.ar>, and Ezequiel Garcia <ezequiel@vanguardiasur.com.ar> mini configuration doesn't need to show this information. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Showing 19 changed files with 19 additions and 34 deletions Side-by-side Diff
- arch/arm/mach-zynq/cpu.c
- board/xilinx/zynq/board.c
- configs/syzygy_hub_defconfig
- configs/topic_miami_defconfig
- configs/topic_miamilite_defconfig
- configs/topic_miamiplus_defconfig
- configs/zynq_cc108_defconfig
- configs/zynq_microzed_defconfig
- configs/zynq_picozed_defconfig
- configs/zynq_z_turn_defconfig
- configs/zynq_zc702_defconfig
- configs/zynq_zc706_defconfig
- configs/zynq_zc770_xm010_defconfig
- configs/zynq_zc770_xm011_defconfig
- configs/zynq_zc770_xm011_x16_defconfig
- configs/zynq_zc770_xm012_defconfig
- configs/zynq_zc770_xm013_defconfig
- configs/zynq_zed_defconfig
- configs/zynq_zybo_defconfig
arch/arm/mach-zynq/cpu.c
... | ... | @@ -123,4 +123,23 @@ |
123 | 123 | return 0; |
124 | 124 | } |
125 | 125 | #endif |
126 | + | |
127 | +#ifdef CONFIG_DISPLAY_CPUINFO | |
128 | +int print_cpuinfo(void) | |
129 | +{ | |
130 | + u32 version; | |
131 | + int cpu_id = cpu_desc_id(); | |
132 | + | |
133 | + if (cpu_id < 0) | |
134 | + return 0; | |
135 | + | |
136 | + version = zynq_get_silicon_version() << 1; | |
137 | + if (version > (PCW_SILICON_VERSION_3 << 1)) | |
138 | + version += 1; | |
139 | + | |
140 | + printf("CPU: Zynq %s\n", zynq_fpga_descs[cpu_id].devicename); | |
141 | + printf("Silicon: v%d.%d\n", version >> 1, version & 1); | |
142 | + return 0; | |
143 | +} | |
144 | +#endif |
board/xilinx/zynq/board.c
... | ... | @@ -13,7 +13,6 @@ |
13 | 13 | #include <zynqpl.h> |
14 | 14 | #include <asm/arch/hardware.h> |
15 | 15 | #include <asm/arch/sys_proto.h> |
16 | -#include <asm/arch/ps7_init_gpl.h> | |
17 | 16 | |
18 | 17 | DECLARE_GLOBAL_DATA_PTR; |
19 | 18 | |
... | ... | @@ -72,22 +71,6 @@ |
72 | 71 | |
73 | 72 | return 0; |
74 | 73 | } |
75 | - | |
76 | -#ifdef CONFIG_DISPLAY_BOARDINFO | |
77 | -int checkboard(void) | |
78 | -{ | |
79 | - u32 version = zynq_get_silicon_version(); | |
80 | - | |
81 | - version <<= 1; | |
82 | - if (version > (PCW_SILICON_VERSION_3 << 1)) | |
83 | - version += 1; | |
84 | - | |
85 | - puts("Board: Xilinx Zynq\n"); | |
86 | - printf("Silicon: v%d.%d\n", version >> 1, version & 1); | |
87 | - | |
88 | - return 0; | |
89 | -} | |
90 | -#endif | |
91 | 74 | |
92 | 75 | int zynq_board_read_rom_ethaddr(unsigned char *ethaddr) |
93 | 76 | { |
configs/syzygy_hub_defconfig
configs/topic_miami_defconfig
configs/topic_miamilite_defconfig
configs/topic_miamiplus_defconfig
configs/zynq_cc108_defconfig
configs/zynq_microzed_defconfig
configs/zynq_picozed_defconfig
configs/zynq_z_turn_defconfig
configs/zynq_zc702_defconfig
configs/zynq_zc706_defconfig
configs/zynq_zc770_xm010_defconfig
configs/zynq_zc770_xm011_defconfig
configs/zynq_zc770_xm011_x16_defconfig
configs/zynq_zc770_xm012_defconfig
configs/zynq_zc770_xm013_defconfig
configs/zynq_zed_defconfig
configs/zynq_zybo_defconfig