Skip to content

Commit

Permalink
zynq: Minor modifications for Adapteva Parallella board
Browse files Browse the repository at this point in the history
Minor modifications so that the Adapteva Parallella board can piggy-back
on most of the zynq board code.

Signed-off-by: Ola Jeppsson <[email protected]>
  • Loading branch information
olajep committed May 6, 2015
1 parent c7ce810 commit 9e2e95d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions board/xilinx/zynq/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ int board_init(void)
return 0;
}

int board_late_init(void)
__weak int board_late_init(void)
{
switch ((zynq_slcr_get_boot_mode()) & ZYNQ_BM_MASK) {
case ZYNQ_BM_QSPI:
Expand All @@ -104,7 +104,7 @@ int board_late_init(void)
}

#ifdef CONFIG_DISPLAY_BOARDINFO
int checkboard(void)
__weak int checkboard(void)
{
puts("Board:\tXilinx Zynq\n");
return 0;
Expand Down
6 changes: 5 additions & 1 deletion include/configs/zynq-common.h
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@
#endif

/* Default environment */
#ifndef CONFIG_EXTRA_ENV_SETTINGS
#define CONFIG_PREBOOT
#define CONFIG_EXTRA_ENV_SETTINGS \
"ethaddr=00:0a:35:00:01:22\0" \
Expand Down Expand Up @@ -355,6 +356,7 @@
"zynqrsa 0x100000 && " \
"bootm ${kernel_load_address} ${ramdisk_load_address} ${devicetree_load_address}\0" \
DFU_ALT_INFO
#endif /* ifndef CONFIG_EXTRA_ENV_SETTINGS */

/* Default environment */
#define CONFIG_IPADDR 10.10.70.102
Expand All @@ -366,7 +368,9 @@
#else
#define CONFIG_BOOTCOMMAND "run $modeboot"
#endif
#ifndef CONFIG_BOOTDELAY
#define CONFIG_BOOTDELAY 3 /* -1 to Disable autoboot */
#endif
#define CONFIG_SYS_LOAD_ADDR 0 /* default? */

/* Miscellaneous configurable options */
Expand Down Expand Up @@ -494,7 +498,7 @@
#endif

/* MMC support */
#ifdef CONFIG_ZYNQ_SDHCI0
#ifdef CONFIG_ZYNQ_SDHCI
#define CONFIG_SPL_MMC_SUPPORT
#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 0x300 /* address 0x60000 */
#define CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS 0x200 /* 256 KB */
Expand Down

0 comments on commit 9e2e95d

Please sign in to comment.