Skip to content

Commit 2e4c910

Browse files
Jerry0443ConchuOD
authored andcommitted
sama7d65: Add eth_phy overlay support
Adding support for using the eth_phy uboot variable to include the appropriate gmac overlay. Also including gmac0 as the primary ethernet interface for uboot and creating the loadaddr variable so that the iminfo command knows the default address when no address is specified. Signed-off-by: Jerry Ray <[email protected]> Reviewed-by: Nayab Sayed <[email protected]> Signed-off-by: Conor Dooley <[email protected]>
1 parent 28dba11 commit 2e4c910

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

board/microchip/sama7d65_curiosity/uboot-env.txt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,18 @@ board_name=sama7d65_curiosity
33
video_mode_mipi=Unknown-1:720x1280-16
44
video_mode_lvds=Unknown-1:800x480-16
55
eth_phy=lan8840
6-
at91_display_detect=run lvdstest; run mipitest; run at91_prepare_bootargs; run at91_prepare_display_overlay
6+
at91_display_detect=run lvdstest; run mipitest; run at91_prepare_bootargs; run at91_prepare_display_overlay; run at91_prepare_eth_overlay
77
lvdstest=test -n $display && test $display = ST7262 && setenv display_var 'lvds' && setenv at91_video_bootargs video=${video_mode_lvds}
88
mipitest=test -n $display && test $display = HX8394 && setenv display_var 'mipi' && setenv at91_video_bootargs video=${video_mode_mipi}
99
at91_prepare_bootargs=test -n $at91_video_bootargs && setenv bootargs ${bootargs} ${at91_video_bootargs}
1010
at91_prepare_display_overlay=test -n $display_var && setenv at91_overlays_config ${at91_overlays_config}'#'${display_var}
11+
at91_prepare_eth_overlay=test -n $eth_phy && setenv at91_overlays_config ${at91_overlays_config}'#'${eth_phy}
1112
bootargs=console=ttyS0,115200 root=/dev/mmcblk0p2 rw rootfstype=ext4 rootwait atmel.pm_modes=standby,ulp0 cma=192m
1213
bootcmd=run at91_display_detect; run bootcmd_boot;
13-
bootcmd_boot=fatload mmc 0:1 0x63000000 sama7d65_curiosity.itb; bootm 0x63000000#kernel_dtb${at91_overlays_config}
14+
bootcmd_boot=fatload mmc 0:1 ${loadaddr} sama7d65_curiosity.itb; bootm ${loadaddr}#kernel_dtb${at91_overlays_config}
1415
bootdelay=1
15-
ethact=gmac0
16+
ethprime=gmac0
17+
loadaddr=0x63000000
1618
stderr=serial
1719
stdin=serial
1820
stdout=serial

0 commit comments

Comments
 (0)