Skip to content

Commit 7953b25

Browse files
Added fix for ethernet phy reset pin. Updatd README
1 parent f950da6 commit 7953b25

File tree

6 files changed

+48
-20
lines changed

6 files changed

+48
-20
lines changed

board/microchip/polarberry/program_all.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
source ./FLASH_CONFIG.CONF
44

5-
./Program_HSS_to_eNVM.sh
6-
./Program_UBOOT_to_eMMC.sh
5+
./program_hss.sh
6+
./program_uboot.sh
77

88
echo "reset" > $UART_DEVICE
99

10-
./Program_LINUX_to_eMMC.sh
10+
./program_linux.sh

board/microchip/som1-soc/README

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
After that in the directory "/home/promwad/microchip_buildroot/buildroot-external-microchip/board/microchip/polarberry" you can find script for board flashing.
2-
31
There are 4 scipts:
4-
1) Program_HSS_to_eNVM.sh
5-
2) Program_UBOOT_to_eMMC.sh
6-
3) Program_LINUX_to_eNVM.sh
7-
4) Program_ALL_to_Polarberry.sh
2+
1) program_hss.sh
3+
2) Program_uboot.sh
4+
3) Program_linux.sh
5+
4) Program_all.sh
86

97
and settings file: FLASH_CONFIG.CONF
108

@@ -37,11 +35,21 @@ IMAGE_NAME - here you need to set file name with LINUX image that is placed on
3735
(default value is "fitimage_polarberry.itb", and this file is built by buildroot and placed in "output/images" directory)
3836

3937

40-
To start building images via buildroot you need to run this command in buildrood sources:
41-
1) "make sundancedsp_polarberry_defconfig BR2_EXTERNAL=../buildroot-external-microchip"
42-
(where BR2_EXTERNAL shall point to the mbuildroot microsemi sources).
38+
To start building images via buildroot you need:
39+
40+
1) Microchip Softconsole shall be installed (Microchip-SoftConsole-v2022.2-RISC-V-747-linux-x64-installer.run)
41+
2) Microchip Program Debug tools shall be installed (Program_Debug_PolarFire_v2023.2_SP1.bin)
42+
43+
3) run this command in buildrood sources:
44+
45+
3.1) "make sundancedsp_polarberry_defconfig BR2_EXTERNAL=../buildroot-external-microchip"
46+
(where BR2_EXTERNAL shall point to the buildroot microsemi sources).
47+
48+
3.2) "make"
49+
50+
51+
4352

44-
2) "make"
4553
Building will take time. Succesfull building will finish like this:
4654

4755
FIT description: Linux fitImage for Polaberry

board/microchip/som1-soc/uboot/uboot_som1-soc.dts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -183,11 +183,6 @@
183183
phy-mode = "sgmii";
184184
phy-handle = <&phy5>;
185185

186-
/* phy4: ethernet-phy@4 {
187-
reg = <4>;
188-
ti,fifo-depth = <0x01>;
189-
};
190-
*/
191186
phy5: ethernet-phy@5 {
192187
reg = <5>;
193188
ti,fifo-depth = <0x01>;

configs/sundancedsp_polarberry_defconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ BR2_PACKAGE_HOST_MTOOLS=y
5252
BR2_PACKAGE_HART_SOFTWARE_SERVICES=y
5353
BR2_PACKAGE_HART_SOFTWARE_SERVICES_CONFIG="boards/polarberry/def_config"
5454
BR2_PACKAGE_HART_SOFTWARE_SERVICES_BOARD="polarberry"
55-
BR2_PACKAGE_HART_SOFTWARE_SERVICES_DIE="MPFS250T_ES"
56-
BR2_PACKAGE_HART_SOFTWARE_SERVICES_PACKAGE="FCVG484"OA
55+
BR2_PACKAGE_HART_SOFTWARE_SERVICES_DIE="MPFS250T"
56+
BR2_PACKAGE_HART_SOFTWARE_SERVICES_PACKAGE="FCVG484"
5757
BR2_PACKAGE_HOST_HSS_PAYLOAD_GENERATOR=y
5858
BR2_PACKAGE_HOST_HSS_PAYLOAD_GENERATOR_CFG="$(BR2_EXTERNAL_MCHP_PATH)/board/microchip/polarberry/payload-config.yaml"
5959
BR2_PACKAGE_HOST_HSS_PAYLOAD_GENERATOR_SRC="output/images/u-boot.bin"
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
diff -ruN a/boards/som1-soc/hss_board_init.c b/boards/som1-soc/hss_board_init.c
2+
--- a/boards/som1-soc/hss_board_init.c 2024-01-10 04:21:31.283722794 -0800
3+
+++ b/boards/som1-soc/hss_board_init.c 2024-01-10 04:08:02.513198414 -0800
4+
@@ -23,6 +23,8 @@
5+
#include "ssmb_ipi.h"
6+
#include "hss_registry.h"
7+
8+
+#include "mss_gpio.h"
9+
+
10+
#ifndef __IO
11+
# define __IO volatile
12+
#endif
13+
@@ -79,6 +81,12 @@
14+
15+
bool HSS_BoardLateInit(void)
16+
{
17+
+ mHSS_PUTS("Clear (set to HIGH\1) Ethernet PHY RESET: GPIO0_LO, PIN13\n");
18+
+
19+
+ MSS_GPIO_init(GPIO0_LO);
20+
+ MSS_GPIO_config(GPIO0_LO, MSS_GPIO_13, MSS_GPIO_OUTPUT_MODE);
21+
+ MSS_GPIO_set_outputs(GPIO0_LO, MSS_GPIO_13_MASK);
22+
+
23+
return true;
24+
}
25+

0 commit comments

Comments
 (0)