diff options
author | Jaewon Lee <jaewon.lee@xilinx.com> | 2019-01-14 11:52:19 -0800 |
---|---|---|
committer | Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com> | 2019-08-15 16:59:12 -0700 |
commit | 5d7c5d2cc40c26ec6ddf1ec916ac326b7fb4021a (patch) | |
tree | bae93af28bef11f8e89f86f276294631f33f9435 | |
parent | f3c8b1c9a8ae6a1690f7f5d907b65c588f65446a (diff) | |
download | meta-xilinx-5d7c5d2cc40c26ec6ddf1ec916ac326b7fb4021a.tar.gz |
microblaze-kc705-Convert-microblaze-generic-to-k.patch:update patch
Update microblaze patch to convert microblaze generic to kc705 for
2019.1 release.
Signed-off-by: Jaewon Lee <jaewon.lee@xilinx.com>
Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
-rw-r--r-- | meta-xilinx-bsp/recipes-bsp/u-boot/u-boot-xlnx/v2018.3/microblaze-kc705-Convert-microblaze-generic-to-k.patch | 449 |
1 files changed, 207 insertions, 242 deletions
diff --git a/meta-xilinx-bsp/recipes-bsp/u-boot/u-boot-xlnx/v2018.3/microblaze-kc705-Convert-microblaze-generic-to-k.patch b/meta-xilinx-bsp/recipes-bsp/u-boot/u-boot-xlnx/v2018.3/microblaze-kc705-Convert-microblaze-generic-to-k.patch index ce8771f8..7550b68b 100644 --- a/meta-xilinx-bsp/recipes-bsp/u-boot/u-boot-xlnx/v2018.3/microblaze-kc705-Convert-microblaze-generic-to-k.patch +++ b/meta-xilinx-bsp/recipes-bsp/u-boot/u-boot-xlnx/v2018.3/microblaze-kc705-Convert-microblaze-generic-to-k.patch | |||
@@ -1,26 +1,25 @@ | |||
1 | From 539838b4fe4afecd9b6874c5ac397ab7f5b343d4 Mon Sep 17 00:00:00 2001 | 1 | From afe880f500cff7a9486379c5ad7a4f3379015a62 Mon Sep 17 00:00:00 2001 |
2 | From: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com> | 2 | From: Jaewon Lee <jaewon.lee@xilinx.com> |
3 | Date: Tue, 10 Apr 2018 18:34:45 -0700 | 3 | Date: Mon, 14 Jan 2019 11:30:56 -0800 |
4 | Subject: [PATCH] kc705-microblazeel: Convert microblaze-generic to | 4 | Subject: [PATCH] kc705-microblazeel: Convert microblaze-generic to |
5 | kc705-microblazeel | 5 | kc705-microblazeel |
6 | 6 | ||
7 | This is an update to earlier kc705-trd patch done by Nathan Rossi. | 7 | This is an update to earlier kc705-trd patch done by Nathan Rossi. |
8 | Starting from v2016.1, KC705 will no longer refer to deprecated KC705 | ||
9 | TRD application. | ||
10 | 8 | ||
11 | Change the microblaze-generic board to match the kc705-microblazeel. | 9 | Change the microblaze-generic board to match the kc705-microblazeel. |
12 | This patch is not intended for upstream and serves as an intermediate | 10 | This patch is not intended for upstream and serves as an intermediate |
13 | solution until OF support in upstream u-boot allows for easy support for | 11 | solution until OF support in upstream u-boot allows for easy support for |
14 | custom microblaze boards. | 12 | custom microblaze boards. |
15 | 13 | ||
14 | Signed-off-by: Jaewon Lee <jaewon.lee@xilinx.com> | ||
16 | Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com> | 15 | Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com> |
17 | Upstream-Status: Not-Upstreamable [meta-xilinx/kc705 specific] | 16 | Upstream-Status: Not-Upstreamable [meta-xilinx/kc705 specific] |
18 | --- | 17 | --- |
19 | arch/microblaze/dts/microblaze-generic.dts | 590 ++++++++++++++++++++++++++++- | 18 | arch/microblaze/dts/microblaze-generic.dts | 590 ++++++++++++++++++++++++++++- |
20 | board/xilinx/microblaze-generic/config.mk | 30 +- | 19 | board/xilinx/microblaze-generic/config.mk | 28 +- |
21 | configs/microblaze-generic_defconfig | 57 ++- | 20 | configs/microblaze-generic_defconfig | 75 ++-- |
22 | include/configs/microblaze-generic.h | 396 ++++++++----------- | 21 | include/configs/microblaze-generic.h | 348 ++++++++--------- |
23 | 4 files changed, 782 insertions(+), 291 deletions(-) | 22 | 4 files changed, 782 insertions(+), 259 deletions(-) |
24 | 23 | ||
25 | diff --git a/arch/microblaze/dts/microblaze-generic.dts b/arch/microblaze/dts/microblaze-generic.dts | 24 | diff --git a/arch/microblaze/dts/microblaze-generic.dts b/arch/microblaze/dts/microblaze-generic.dts |
26 | index 08a1396..f8e616b 100644 | 25 | index 08a1396..f8e616b 100644 |
@@ -621,17 +620,15 @@ index 08a1396..f8e616b 100644 | |||
621 | +}; | 620 | +}; |
622 | + | 621 | + |
623 | diff --git a/board/xilinx/microblaze-generic/config.mk b/board/xilinx/microblaze-generic/config.mk | 622 | diff --git a/board/xilinx/microblaze-generic/config.mk b/board/xilinx/microblaze-generic/config.mk |
624 | index 1dee2d6..cb75fde 100644 | 623 | index a953977..cb75fde 100644 |
625 | --- a/board/xilinx/microblaze-generic/config.mk | 624 | --- a/board/xilinx/microblaze-generic/config.mk |
626 | +++ b/board/xilinx/microblaze-generic/config.mk | 625 | +++ b/board/xilinx/microblaze-generic/config.mk |
627 | @@ -1,20 +1,10 @@ | 626 | @@ -1,18 +1,10 @@ |
627 | -# SPDX-License-Identifier: GPL-2.0+ | ||
628 | -# | 628 | -# |
629 | -# (C) Copyright 2007 - 2016 Michal Simek | 629 | -# (C) Copyright 2007 - 2016 Michal Simek |
630 | -# | 630 | -# |
631 | -# Michal SIMEK <monstr@monstr.eu> | 631 | -# Michal SIMEK <monstr@monstr.eu> |
632 | -# | ||
633 | -# SPDX-License-Identifier: GPL-2.0+ | ||
634 | -# | ||
635 | - | 632 | - |
636 | -CPU_VER := $(shell echo $(CONFIG_XILINX_MICROBLAZE0_HW_VER)) | 633 | -CPU_VER := $(shell echo $(CONFIG_XILINX_MICROBLAZE0_HW_VER)) |
637 | - | 634 | - |
@@ -656,21 +653,24 @@ index 1dee2d6..cb75fde 100644 | |||
656 | +PLATFORM_CPPFLAGS += -mcpu=v10.0 | 653 | +PLATFORM_CPPFLAGS += -mcpu=v10.0 |
657 | +PLATFORM_CPPFLAGS += -fgnu89-inline | 654 | +PLATFORM_CPPFLAGS += -fgnu89-inline |
658 | diff --git a/configs/microblaze-generic_defconfig b/configs/microblaze-generic_defconfig | 655 | diff --git a/configs/microblaze-generic_defconfig b/configs/microblaze-generic_defconfig |
659 | index 08d99f2..bac6939 100644 | 656 | index 02e62e2..8d64be4 100644 |
660 | --- a/configs/microblaze-generic_defconfig | 657 | --- a/configs/microblaze-generic_defconfig |
661 | +++ b/configs/microblaze-generic_defconfig | 658 | +++ b/configs/microblaze-generic_defconfig |
662 | @@ -1,5 +1,4 @@ | 659 | @@ -1,73 +1,58 @@ |
663 | CONFIG_MICROBLAZE=y | 660 | CONFIG_MICROBLAZE=y |
664 | -CONFIG_SYS_TEXT_BASE=0x29000000 | 661 | -CONFIG_SYS_TEXT_BASE=0x29000000 |
665 | CONFIG_SPL_LIBCOMMON_SUPPORT=y | 662 | CONFIG_SPL_LIBCOMMON_SUPPORT=y |
666 | CONFIG_SPL_LIBGENERIC_SUPPORT=y | 663 | CONFIG_SPL_LIBGENERIC_SUPPORT=y |
667 | CONFIG_SPL_SERIAL_SUPPORT=y | 664 | CONFIG_SPL_SERIAL_SUPPORT=y |
668 | @@ -8,50 +7,50 @@ CONFIG_XILINX_MICROBLAZE0_USE_MSR_INSTR=1 | 665 | -CONFIG_SPL=y |
666 | CONFIG_TARGET_MICROBLAZE_GENERIC=y | ||
667 | CONFIG_XILINX_MICROBLAZE0_USE_MSR_INSTR=1 | ||
669 | CONFIG_XILINX_MICROBLAZE0_USE_BARREL=1 | 668 | CONFIG_XILINX_MICROBLAZE0_USE_BARREL=1 |
670 | CONFIG_XILINX_MICROBLAZE0_USE_DIV=1 | 669 | CONFIG_XILINX_MICROBLAZE0_USE_DIV=1 |
671 | CONFIG_XILINX_MICROBLAZE0_USE_HW_MUL=1 | 670 | CONFIG_XILINX_MICROBLAZE0_USE_HW_MUL=1 |
671 | -CONFIG_NR_DRAM_BANKS=1 | ||
672 | +CONFIG_SYS_TEXT_BASE=0x80400000 | 672 | +CONFIG_SYS_TEXT_BASE=0x80400000 |
673 | CONFIG_DEFAULT_DEVICE_TREE="microblaze-generic" | 673 | +CONFIG_DEFAULT_DEVICE_TREE="microblaze-generic" |
674 | CONFIG_FIT=y | 674 | CONFIG_FIT=y |
675 | CONFIG_FIT_VERBOSE=y | 675 | CONFIG_FIT_VERBOSE=y |
676 | -CONFIG_BOOTDELAY=-1 | 676 | -CONFIG_BOOTDELAY=-1 |
@@ -678,13 +678,14 @@ index 08d99f2..bac6939 100644 | |||
678 | -CONFIG_BOOTARGS="root=romfs" | 678 | -CONFIG_BOOTARGS="root=romfs" |
679 | +CONFIG_BOOTDELAY=4 | 679 | +CONFIG_BOOTDELAY=4 |
680 | CONFIG_SYS_CONSOLE_IS_IN_ENV=y | 680 | CONFIG_SYS_CONSOLE_IS_IN_ENV=y |
681 | -CONFIG_SPL=y | 681 | -CONFIG_DISPLAY_BOARDINFO=y |
682 | -CONFIG_SPL_BOARD_INIT=y | 682 | -CONFIG_SPL_BOARD_INIT=y |
683 | -CONFIG_SPL_SYS_MALLOC_SIMPLE=y | 683 | -CONFIG_SPL_SYS_MALLOC_SIMPLE=y |
684 | CONFIG_SPL_NOR_SUPPORT=y | 684 | CONFIG_SPL_NOR_SUPPORT=y |
685 | CONFIG_SPL_OS_BOOT=y | 685 | CONFIG_SPL_OS_BOOT=y |
686 | CONFIG_SYS_OS_BASE=0x2c060000 | 686 | CONFIG_SYS_OS_BASE=0x2c060000 |
687 | CONFIG_HUSH_PARSER=y | 687 | CONFIG_HUSH_PARSER=y |
688 | -# CONFIG_AUTO_COMPLETE is not set | ||
688 | -CONFIG_SYS_PROMPT="U-Boot-mONStR> " | 689 | -CONFIG_SYS_PROMPT="U-Boot-mONStR> " |
689 | -CONFIG_CMD_IMLS=y | 690 | -CONFIG_CMD_IMLS=y |
690 | -CONFIG_CMD_SPL=y | 691 | -CONFIG_CMD_SPL=y |
@@ -693,50 +694,65 @@ index 08d99f2..bac6939 100644 | |||
693 | -CONFIG_CMD_GPIO=y | 694 | -CONFIG_CMD_GPIO=y |
694 | CONFIG_CMD_SAVES=y | 695 | CONFIG_CMD_SAVES=y |
695 | # CONFIG_CMD_SETEXPR is not set | 696 | # CONFIG_CMD_SETEXPR is not set |
696 | -CONFIG_CMD_TFTPPUT=y | ||
697 | +CONFIG_SYS_ENET=y | 697 | +CONFIG_SYS_ENET=y |
698 | +CONFIG_NET=y | 698 | +CONFIG_NET=y |
699 | +CONFIG_NETDEVICES=y | 699 | +CONFIG_NETDEVICES=y |
700 | +CONFIG_CMD_NET=y | 700 | +CONFIG_CMD_NET=y |
701 | CONFIG_CMD_DHCP=y | 701 | CONFIG_CMD_DHCP=y |
702 | -CONFIG_CMD_TFTPPUT=y | ||
702 | +CONFIG_CMD_NFS=y | 703 | +CONFIG_CMD_NFS=y |
703 | CONFIG_CMD_MII=y | 704 | CONFIG_CMD_MII=y |
704 | CONFIG_CMD_PING=y | 705 | CONFIG_CMD_PING=y |
705 | CONFIG_CMD_JFFS2=y | 706 | CONFIG_CMD_JFFS2=y |
706 | -CONFIG_SPL_OF_CONTROL=y | 707 | -CONFIG_SPL_OF_CONTROL=y |
707 | CONFIG_OF_EMBED=y | 708 | CONFIG_OF_EMBED=y |
708 | -CONFIG_ENV_IS_IN_FLASH=y | 709 | -CONFIG_DEFAULT_DEVICE_TREE="microblaze-generic" |
709 | -CONFIG_NETCONSOLE=y | 710 | -CONFIG_NETCONSOLE=y |
710 | -CONFIG_SPL_DM=y | 711 | -CONFIG_SPL_DM=y |
711 | -CONFIG_MTD_NOR_FLASH=y | 712 | +CONFIG_DM_ETH=y |
712 | -CONFIG_PHY_ATHEROS=y | ||
713 | -CONFIG_PHY_BROADCOM=y | ||
714 | -CONFIG_PHY_DAVICOM=y | ||
715 | -CONFIG_PHY_LXT=y | ||
716 | -CONFIG_PHY_MARVELL=y | ||
717 | -CONFIG_PHY_MICREL=y | ||
718 | -CONFIG_PHY_MICREL_KSZ90X1=y | ||
719 | -CONFIG_PHY_NATSEMI=y | ||
720 | -CONFIG_PHY_REALTEK=y | ||
721 | -CONFIG_PHY_VITESSE=y | ||
722 | CONFIG_DM_ETH=y | ||
723 | +CONFIG_SYS_MALLOC_F=y | 713 | +CONFIG_SYS_MALLOC_F=y |
724 | +CONFIG_SYS_GENERIC_BOARD=y | 714 | +CONFIG_SYS_GENERIC_BOARD=y |
725 | CONFIG_XILINX_AXIEMAC=y | 715 | +CONFIG_XILINX_AXIEMAC=y |
726 | -CONFIG_XILINX_EMACLITE=y | 716 | +CONFIG_SYS_NS16550=y |
727 | CONFIG_SYS_NS16550=y | ||
728 | -CONFIG_XILINX_UARTLITE=y | ||
729 | +CONFIG_CMD_FLASH=y | 717 | +CONFIG_CMD_FLASH=y |
730 | +CONFIG_MTD_NOR_FLASH=y | 718 | +CONFIG_MTD_NOR_FLASH=y |
731 | +CONFIG_CMD_IMLS=y | 719 | +CONFIG_CMD_IMLS=y |
732 | +CONFIG_CMD_GPIO=y | 720 | +CONFIG_CMD_GPIO=y |
721 | CONFIG_DM_GPIO=y | ||
722 | CONFIG_XILINX_GPIO=y | ||
723 | -CONFIG_LED=y | ||
724 | -CONFIG_LED_GPIO=y | ||
725 | -CONFIG_MTD_NOR_FLASH=y | ||
726 | -CONFIG_MTD_DEVICE=y | ||
727 | -CONFIG_FLASH_CFI_DRIVER=y | ||
728 | -CONFIG_SYS_FLASH_USE_BUFFER_WRITE=y | ||
729 | -CONFIG_FLASH_CFI_MTD=y | ||
730 | -CONFIG_SYS_FLASH_PROTECTION=y | ||
731 | -CONFIG_SYS_FLASH_CFI=y | ||
732 | -CONFIG_PHY_ATHEROS=y | ||
733 | -CONFIG_PHY_BROADCOM=y | ||
734 | -CONFIG_PHY_DAVICOM=y | ||
735 | -CONFIG_PHY_LXT=y | ||
736 | -CONFIG_PHY_MARVELL=y | ||
733 | +CONFIG_CMD_TFTPPUT=y | 737 | +CONFIG_CMD_TFTPPUT=y |
734 | +CONFIG_NETCONSOLE=y | 738 | +CONFIG_NETCONSOLE=y |
735 | +CONFIG_XILINX_FSL_LINKS=0 | 739 | +CONFIG_XILINX_FSL_LINKS=0 |
736 | +CONFIG_PHY_GIGE=y | 740 | +CONFIG_PHY_GIGE=y |
737 | +CONFIG_ENV_IS_IN_FLASH=y | 741 | +CONFIG_ENV_IS_IN_FLASH=y |
738 | +CONFIG_PHY_MICREL=y | 742 | CONFIG_PHY_MICREL=y |
739 | +CONFIG_PHY_MICREL_KSZ90X1=y | 743 | CONFIG_PHY_MICREL_KSZ90X1=y |
744 | -CONFIG_PHY_NATSEMI=y | ||
745 | -CONFIG_PHY_REALTEK=y | ||
746 | -CONFIG_PHY_VITESSE=y | ||
747 | -CONFIG_DM_ETH=y | ||
748 | -CONFIG_XILINX_AXIEMAC=y | ||
749 | -CONFIG_XILINX_EMACLITE=y | ||
750 | -CONFIG_SYS_NS16550=y | ||
751 | -CONFIG_XILINX_UARTLITE=y | ||
752 | -CONFIG_SYSRESET_GPIO=y | ||
753 | -CONFIG_SYSRESET_MICROBLAZE=y | ||
754 | -CONFIG_WDT=y | ||
755 | -CONFIG_XILINX_TB_WATCHDOG=y | ||
740 | +CONFIG_SPL_DM_SERIAL=y | 756 | +CONFIG_SPL_DM_SERIAL=y |
741 | +CONFIG_SPL_OF_LIBFDT=y | 757 | +CONFIG_SPL_OF_LIBFDT=y |
742 | +CONFIG_PHY_XILINX=y | 758 | +CONFIG_PHY_XILINX=y |
@@ -745,16 +761,15 @@ index 08d99f2..bac6939 100644 | |||
745 | +# CONFIG_BOOTARGS is not set | 761 | +# CONFIG_BOOTARGS is not set |
746 | +# CONFIG_USE_BOOTARGS is not set | 762 | +# CONFIG_USE_BOOTARGS is not set |
747 | diff --git a/include/configs/microblaze-generic.h b/include/configs/microblaze-generic.h | 763 | diff --git a/include/configs/microblaze-generic.h b/include/configs/microblaze-generic.h |
748 | index 16481cb..1377c5e 100644 | 764 | index ba0952c..fd1da2b 100644 |
749 | --- a/include/configs/microblaze-generic.h | 765 | --- a/include/configs/microblaze-generic.h |
750 | +++ b/include/configs/microblaze-generic.h | 766 | +++ b/include/configs/microblaze-generic.h |
751 | @@ -1,254 +1,178 @@ | 767 | @@ -1,205 +1,173 @@ |
768 | -/* SPDX-License-Identifier: GPL-2.0+ */ | ||
752 | -/* | 769 | -/* |
753 | - * (C) Copyright 2007-2010 Michal Simek | 770 | - * (C) Copyright 2007-2010 Michal Simek |
754 | - * | 771 | - * |
755 | - * Michal SIMEK <monstr@monstr.eu> | 772 | - * Michal SIMEK <monstr@monstr.eu> |
756 | - * | ||
757 | - * SPDX-License-Identifier: GPL-2.0+ | ||
758 | - */ | 773 | - */ |
759 | - | 774 | - |
760 | #ifndef __CONFIG_H | 775 | #ifndef __CONFIG_H |
@@ -771,17 +786,96 @@ index 16481cb..1377c5e 100644 | |||
771 | -#undef SPIFLASH | 786 | -#undef SPIFLASH |
772 | -#undef RAMENV /* hold environment in flash */ | 787 | -#undef RAMENV /* hold environment in flash */ |
773 | -#else | 788 | -#else |
774 | -#ifdef XILINX_SPI_FLASH_BASEADDR | ||
775 | -#undef FLASH | ||
776 | -#define SPIFLASH | ||
777 | -#undef RAMENV /* hold environment in flash */ | ||
778 | -#else | ||
779 | -#undef FLASH | 789 | -#undef FLASH |
780 | -#undef SPIFLASH | 790 | -#undef SPIFLASH |
781 | -#define RAMENV /* hold environment in RAM */ | 791 | -#define RAMENV /* hold environment in RAM */ |
782 | -#endif | 792 | -#endif |
783 | -#endif | 793 | +#define CONFIG_SYS_BAUDRATE_TABLE { 300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200, 230400 } |
784 | - | 794 | + |
795 | +/* processor - microblaze_0 */ | ||
796 | +#define XILINX_USE_MSR_INSTR 1 | ||
797 | +#define XILINX_USE_ICACHE 1 | ||
798 | +#define XILINX_USE_DCACHE 1 | ||
799 | +#define XILINX_DCACHE_BYTE_SIZE 16384 | ||
800 | +#define XILINX_PVR 2 | ||
801 | +#define MICROBLAZE_V5 | ||
802 | +#define CONFIG_CMD_IRQ | ||
803 | +#define CONFIG_DCACHE | ||
804 | +#define CONFIG_ICACHE | ||
805 | + | ||
806 | +/* main_memory - ddr3_sdram */ | ||
807 | + | ||
808 | + | ||
809 | +/* uart - rs232_uart */ | ||
810 | +#define CONFIG_SYS_NS16550_COM1 ((XILINX_UART16550_BASEADDR & ~0xF) + 0x1000) | ||
811 | +#define CONFIG_SYS_NS16550_REG_SIZE -4 | ||
812 | +#define CONSOLE_ARG "console=console=ttyS0,115200\0" | ||
813 | +#define CONFIG_SYS_NS16550_SERIAL | ||
814 | +#define CONFIG_CONS_INDEX 1 | ||
815 | +#define ESERIAL0 "eserial0=setenv stdout eserial0;setenv stdin eserial0\0" | ||
816 | +#define SERIAL_MULTI "serial=setenv stdout serial;setenv stdin serial\0" | ||
817 | +#define CONFIG_SYS_NS16550_CLK 200000000 | ||
818 | +#define CONFIG_BAUDRATE 115200 | ||
819 | + | ||
820 | +/* ethernet - axi_ethernet */ | ||
821 | +#define CONFIG_PHY_XILINX | ||
822 | +#define CONFIG_MII | ||
823 | +#define CONFIG_PHY_MARVELL | ||
824 | +#define CONFIG_PHY_NATSEMI | ||
825 | +#define CONFIG_NET_MULTI | ||
826 | +#define CONFIG_PHY_REALTEK | ||
827 | +#define CONFIG_NETCONSOLE 1 | ||
828 | +#define CONFIG_SERVERIP 172.25.229.115 | ||
829 | +#define CONFIG_IPADDR | ||
830 | + | ||
831 | +/* nor_flash - linear_flash */ | ||
832 | +#define CONFIG_SYS_FLASH_BASE 0x60000000 | ||
833 | +#define CONFIG_FLASH_END 0x68000000 | ||
834 | +#define CONFIG_SYS_MAX_FLASH_SECT 2048 | ||
835 | +#define CONFIG_SYS_FLASH_PROTECTION | ||
836 | +#define CONFIG_SYS_FLASH_EMPTY_INFO | ||
837 | +#define CONFIG_SYS_FLASH_CFI | ||
838 | +#define CONFIG_FLASH_CFI_DRIVER | ||
839 | +#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE | ||
840 | +#define CONFIG_SYS_MAX_FLASH_BANKS 1 | ||
841 | + | ||
842 | +/* timer - axi_timer_0 */ | ||
843 | + | ||
844 | +/* intc - microblaze_0_axi_intc */ | ||
845 | + | ||
846 | +/* FPGA */ | ||
847 | + | ||
848 | +/* Memory testing handling */ | ||
849 | +#define CONFIG_SYS_MEMTEST_START 0x80000000 | ||
850 | +#define CONFIG_SYS_MEMTEST_END (0x80000000 + 0x1000) | ||
851 | +#define CONFIG_SYS_LOAD_ADDR 0x80000000 /* default load address */ | ||
852 | + | ||
853 | +/* global pointer options */ | ||
854 | +#define CONFIG_SYS_GBL_DATA_OFFSET (0x40000000 - GENERATED_GBL_DATA_SIZE) | ||
855 | + | ||
856 | +/* Size of malloc() pool */ | ||
857 | +#define SIZE 0x100000 | ||
858 | +#define CONFIG_SYS_MALLOC_LEN SIZE | ||
859 | +#define CONFIG_SYS_MONITOR_LEN SIZE | ||
860 | +#define CONFIG_SYS_MONITOR_BASE (0x80000000 + CONFIG_SYS_GBL_DATA_OFFSET - CONFIG_SYS_MONITOR_LEN - GENERATED_BD_INFO_SIZE) | ||
861 | +#define CONFIG_SYS_MALLOC_BASE (CONFIG_SYS_MONITOR_BASE - CONFIG_SYS_MALLOC_LEN) | ||
862 | + | ||
863 | +/* stack */ | ||
864 | +#define CONFIG_SYS_INIT_SP_OFFSET (CONFIG_SYS_TEXT_BASE - CONFIG_SYS_MALLOC_F_LEN) | ||
865 | + | ||
866 | +/* No of_control support yet*/ | ||
867 | + | ||
868 | +/* BOOTP options */ | ||
869 | +#define CONFIG_BOOTP_SERVERIP | ||
870 | +#define CONFIG_BOOTP_BOOTFILESIZE | ||
871 | +#define CONFIG_BOOTP_BOOTPATH | ||
872 | +#define CONFIG_BOOTP_GATEWAY | ||
873 | +#define CONFIG_BOOTP_HOSTNAME | ||
874 | +#define CONFIG_BOOTP_MAY_FAIL | ||
875 | +#define CONFIG_BOOTP_DNS | ||
876 | +#define CONFIG_BOOTP_SUBNETMASK | ||
877 | +#define CONFIG_BOOTP_PXE | ||
878 | |||
785 | -/* uart */ | 879 | -/* uart */ |
786 | -/* The following table includes the supported baudrates */ | 880 | -/* The following table includes the supported baudrates */ |
787 | -# define CONFIG_SYS_BAUDRATE_TABLE \ | 881 | -# define CONFIG_SYS_BAUDRATE_TABLE \ |
@@ -790,22 +884,6 @@ index 16481cb..1377c5e 100644 | |||
790 | -/* setting reset address */ | 884 | -/* setting reset address */ |
791 | -/*#define CONFIG_SYS_RESET_ADDRESS CONFIG_SYS_TEXT_BASE*/ | 885 | -/*#define CONFIG_SYS_RESET_ADDRESS CONFIG_SYS_TEXT_BASE*/ |
792 | - | 886 | - |
793 | -/* gpio */ | ||
794 | -#ifdef XILINX_GPIO_BASEADDR | ||
795 | -# define CONFIG_XILINX_GPIO | ||
796 | -# define CONFIG_SYS_GPIO_0_ADDR XILINX_GPIO_BASEADDR | ||
797 | -#endif | ||
798 | - | ||
799 | -/* watchdog */ | ||
800 | -#if defined(XILINX_WATCHDOG_BASEADDR) && defined(XILINX_WATCHDOG_IRQ) | ||
801 | -# define CONFIG_WATCHDOG_BASEADDR XILINX_WATCHDOG_BASEADDR | ||
802 | -# define CONFIG_WATCHDOG_IRQ XILINX_WATCHDOG_IRQ | ||
803 | -# ifndef CONFIG_SPL_BUILD | ||
804 | -# define CONFIG_HW_WATCHDOG | ||
805 | -# define CONFIG_XILINX_TB_WATCHDOG | ||
806 | -# endif | ||
807 | -#endif | ||
808 | - | ||
809 | -#define CONFIG_SYS_MALLOC_LEN 0xC0000 | 887 | -#define CONFIG_SYS_MALLOC_LEN 0xC0000 |
810 | - | 888 | - |
811 | -/* Stack location before relocation */ | 889 | -/* Stack location before relocation */ |
@@ -833,8 +911,6 @@ index 16481cb..1377c5e 100644 | |||
833 | -#ifdef FLASH | 911 | -#ifdef FLASH |
834 | -# define CONFIG_SYS_FLASH_BASE XILINX_FLASH_START | 912 | -# define CONFIG_SYS_FLASH_BASE XILINX_FLASH_START |
835 | -# define CONFIG_SYS_FLASH_SIZE XILINX_FLASH_SIZE | 913 | -# define CONFIG_SYS_FLASH_SIZE XILINX_FLASH_SIZE |
836 | -# define CONFIG_SYS_FLASH_CFI 1 | ||
837 | -# define CONFIG_FLASH_CFI_DRIVER 1 | ||
838 | -/* ?empty sector */ | 914 | -/* ?empty sector */ |
839 | -# define CONFIG_SYS_FLASH_EMPTY_INFO 1 | 915 | -# define CONFIG_SYS_FLASH_EMPTY_INFO 1 |
840 | -/* max number of memory banks */ | 916 | -/* max number of memory banks */ |
@@ -842,9 +918,7 @@ index 16481cb..1377c5e 100644 | |||
842 | -/* max number of sectors on one chip */ | 918 | -/* max number of sectors on one chip */ |
843 | -# define CONFIG_SYS_MAX_FLASH_SECT 512 | 919 | -# define CONFIG_SYS_MAX_FLASH_SECT 512 |
844 | -/* hardware flash protection */ | 920 | -/* hardware flash protection */ |
845 | -# define CONFIG_SYS_FLASH_PROTECTION | ||
846 | -/* use buffered writes (20x faster) */ | 921 | -/* use buffered writes (20x faster) */ |
847 | -# define CONFIG_SYS_FLASH_USE_BUFFER_WRITE 1 | ||
848 | -# ifdef RAMENV | 922 | -# ifdef RAMENV |
849 | -# define CONFIG_ENV_SIZE 0x1000 | 923 | -# define CONFIG_ENV_SIZE 0x1000 |
850 | -# define CONFIG_ENV_ADDR (CONFIG_SYS_MONITOR_BASE - CONFIG_ENV_SIZE) | 924 | -# define CONFIG_ENV_ADDR (CONFIG_SYS_MONITOR_BASE - CONFIG_ENV_SIZE) |
@@ -859,8 +933,6 @@ index 16481cb..1377c5e 100644 | |||
859 | -#else /* !FLASH */ | 933 | -#else /* !FLASH */ |
860 | - | 934 | - |
861 | -#ifdef SPIFLASH | 935 | -#ifdef SPIFLASH |
862 | -# define CONFIG_SYS_SPI_BASE XILINX_SPI_FLASH_BASEADDR | ||
863 | -# define CONFIG_SPI 1 | ||
864 | -# define CONFIG_SF_DEFAULT_MODE SPI_MODE_3 | 936 | -# define CONFIG_SF_DEFAULT_MODE SPI_MODE_3 |
865 | -# define CONFIG_SF_DEFAULT_SPEED XILINX_SPI_FLASH_MAX_FREQ | 937 | -# define CONFIG_SF_DEFAULT_SPEED XILINX_SPI_FLASH_MAX_FREQ |
866 | -# define CONFIG_SF_DEFAULT_CS XILINX_SPI_FLASH_CS | 938 | -# define CONFIG_SF_DEFAULT_CS XILINX_SPI_FLASH_CS |
@@ -892,139 +964,53 @@ index 16481cb..1377c5e 100644 | |||
892 | -#else | 964 | -#else |
893 | -# undef CONFIG_ICACHE | 965 | -# undef CONFIG_ICACHE |
894 | -#endif | 966 | -#endif |
895 | - | 967 | +/*Command line configuration.*/ |
968 | +#define CONFIG_CMDLINE_EDITING | ||
969 | +#define CONFIG_AUTO_COMPLETE | ||
970 | |||
896 | -#if defined(XILINX_USE_DCACHE) | 971 | -#if defined(XILINX_USE_DCACHE) |
897 | -# define CONFIG_DCACHE | 972 | -# define CONFIG_DCACHE |
898 | -#else | 973 | -#else |
899 | -# undef CONFIG_DCACHE | 974 | -# undef CONFIG_DCACHE |
900 | -#endif | 975 | -#endif |
901 | - | 976 | +/* Miscellaneous configurable options */ |
977 | +#define CONFIG_SYS_CBSIZE 2048/* Console I/O Buffer Size */ | ||
978 | +#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16) | ||
979 | +#define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE | ||
980 | |||
902 | -#ifndef XILINX_DCACHE_BYTE_SIZE | 981 | -#ifndef XILINX_DCACHE_BYTE_SIZE |
903 | -#define XILINX_DCACHE_BYTE_SIZE 32768 | 982 | -#define XILINX_DCACHE_BYTE_SIZE 32768 |
904 | -#endif | 983 | -#endif |
905 | - | 984 | |
906 | -/* | 985 | -/* |
907 | - * BOOTP options | 986 | - * BOOTP options |
908 | - */ | 987 | - */ |
909 | +#define CONFIG_SYS_BAUDRATE_TABLE { 300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200, 230400 } | 988 | -#define CONFIG_BOOTP_BOOTFILESIZE |
910 | + | 989 | +/* Use the HUSH parser */ |
911 | +/* processor - microblaze_0 */ | 990 | +#define CONFIG_SYS_PROMPT_HUSH_PS2 "> " |
912 | +#define XILINX_USE_MSR_INSTR 1 | ||
913 | +#define XILINX_USE_ICACHE 1 | ||
914 | +#define XILINX_USE_DCACHE 1 | ||
915 | +#define XILINX_DCACHE_BYTE_SIZE 16384 | ||
916 | +#define XILINX_PVR 2 | ||
917 | +#define MICROBLAZE_V5 | ||
918 | +#define CONFIG_CMD_IRQ | ||
919 | +#define CONFIG_DCACHE | ||
920 | +#define CONFIG_ICACHE | ||
921 | + | ||
922 | +/* main_memory - ddr3_sdram */ | ||
923 | + | ||
924 | + | ||
925 | +/* uart - rs232_uart */ | ||
926 | +#define CONFIG_SYS_NS16550_COM1 ((XILINX_UART16550_BASEADDR & ~0xF) + 0x1000) | ||
927 | +#define CONFIG_SYS_NS16550_REG_SIZE -4 | ||
928 | +#define CONSOLE_ARG "console=console=ttyS0,115200\0" | ||
929 | +#define CONFIG_SYS_NS16550_SERIAL | ||
930 | +#define CONFIG_CONS_INDEX 1 | ||
931 | +#define ESERIAL0 "eserial0=setenv stdout eserial0;setenv stdin eserial0\0" | ||
932 | +#define SERIAL_MULTI "serial=setenv stdout serial;setenv stdin serial\0" | ||
933 | +#define CONFIG_SYS_NS16550_CLK 200000000 | ||
934 | +#define CONFIG_BAUDRATE 115200 | ||
935 | + | ||
936 | +/* ethernet - axi_ethernet */ | ||
937 | +#define CONFIG_PHY_XILINX | ||
938 | +#define CONFIG_MII | ||
939 | +#define CONFIG_PHY_MARVELL | ||
940 | +#define CONFIG_PHY_NATSEMI | ||
941 | +#define CONFIG_NET_MULTI | ||
942 | +#define CONFIG_PHY_REALTEK | ||
943 | +#define CONFIG_NETCONSOLE 1 | ||
944 | +#define CONFIG_SERVERIP 172.25.229.115 | ||
945 | +#define CONFIG_IPADDR | ||
946 | + | ||
947 | +/* nor_flash - linear_flash */ | ||
948 | +#define CONFIG_SYS_FLASH_BASE 0x60000000 | ||
949 | +#define CONFIG_FLASH_END 0x68000000 | ||
950 | +#define CONFIG_SYS_MAX_FLASH_SECT 2048 | ||
951 | +#define CONFIG_SYS_FLASH_PROTECTION | ||
952 | +#define CONFIG_SYS_FLASH_EMPTY_INFO | ||
953 | +#define CONFIG_SYS_FLASH_CFI | ||
954 | +#define CONFIG_FLASH_CFI_DRIVER | ||
955 | +#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE | ||
956 | +#define CONFIG_SYS_MAX_FLASH_BANKS 1 | ||
957 | + | ||
958 | +/* timer - axi_timer_0 */ | ||
959 | + | ||
960 | +/* gpio - reset_gpio */ | ||
961 | +#define XILINX_GPIO_BASEADDR 0x40000000 | ||
962 | +#define CONFIG_SYS_GPIO_0_ADDR 0x40000000 | ||
963 | +#define CONFIG_XILINX_GPIO | ||
964 | + | ||
965 | +/* intc - microblaze_0_axi_intc */ | ||
966 | + | ||
967 | +/* FPGA */ | ||
968 | + | ||
969 | +/* Memory testing handling */ | ||
970 | +#define CONFIG_SYS_MEMTEST_START 0x80000000 | ||
971 | +#define CONFIG_SYS_MEMTEST_END (0x80000000 + 0x1000) | ||
972 | +#define CONFIG_SYS_LOAD_ADDR 0x80000000 /* default load address */ | ||
973 | + | ||
974 | +/* global pointer options */ | ||
975 | +#define CONFIG_SYS_GBL_DATA_OFFSET (0x40000000 - GENERATED_GBL_DATA_SIZE) | ||
976 | + | ||
977 | +/* Size of malloc() pool */ | ||
978 | +#define SIZE 0x100000 | ||
979 | +#define CONFIG_SYS_MALLOC_LEN SIZE | ||
980 | +#define CONFIG_SYS_MONITOR_LEN SIZE | ||
981 | +#define CONFIG_SYS_MONITOR_BASE (0x80000000 + CONFIG_SYS_GBL_DATA_OFFSET - CONFIG_SYS_MONITOR_LEN - GENERATED_BD_INFO_SIZE) | ||
982 | +#define CONFIG_SYS_MALLOC_BASE (CONFIG_SYS_MONITOR_BASE - CONFIG_SYS_MALLOC_LEN) | ||
983 | + | ||
984 | +/* stack */ | ||
985 | +#define CONFIG_SYS_INIT_SP_OFFSET (CONFIG_SYS_TEXT_BASE - CONFIG_SYS_MALLOC_F_LEN) | ||
986 | + | ||
987 | +/* No of_control support yet*/ | ||
988 | + | ||
989 | +/* BOOTP options */ | ||
990 | +#define CONFIG_BOOTP_SERVERIP | ||
991 | #define CONFIG_BOOTP_BOOTFILESIZE | ||
992 | #define CONFIG_BOOTP_BOOTPATH | ||
993 | #define CONFIG_BOOTP_GATEWAY | ||
994 | #define CONFIG_BOOTP_HOSTNAME | ||
995 | +#define CONFIG_BOOTP_MAY_FAIL | ||
996 | +#define CONFIG_BOOTP_DNS | ||
997 | +#define CONFIG_BOOTP_SUBNETMASK | ||
998 | +#define CONFIG_BOOTP_PXE | ||
999 | 991 | ||
1000 | -#if defined(CONFIG_CMD_JFFS2) | ||
1001 | -# define CONFIG_MTD_PARTITIONS | ||
1002 | -#endif | ||
1003 | - | ||
1004 | -#if defined(CONFIG_CMD_UBI) | ||
1005 | -# define CONFIG_MTD_PARTITIONS | ||
1006 | -#endif | ||
1007 | - | ||
1008 | -#if defined(CONFIG_MTD_PARTITIONS) | 992 | -#if defined(CONFIG_MTD_PARTITIONS) |
1009 | -/* MTD partitions */ | 993 | -/* MTD partitions */ |
1010 | -#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ | 994 | +#define CONFIG_ENV_VARS_UBOOT_CONFIG |
1011 | -#define CONFIG_FLASH_CFI_MTD | 995 | +#define CONFIG_ENV_OVERWRITE /* Allow to overwrite the u-boot environment variables */ |
1012 | - | 996 | |
1013 | -/* default mtd partition table */ | 997 | -/* default mtd partition table */ |
1014 | -#endif | 998 | -#endif |
1015 | - | 999 | +#define CONFIG_LMB |
1000 | |||
1016 | -/* size of console buffer */ | 1001 | -/* size of console buffer */ |
1017 | -#define CONFIG_SYS_CBSIZE 512 | 1002 | -#define CONFIG_SYS_CBSIZE 512 |
1018 | -/* max number of command args */ | 1003 | -/* max number of command args */ |
1019 | -#define CONFIG_SYS_MAXARGS 15 | 1004 | -#define CONFIG_SYS_MAXARGS 15 |
1020 | -#define CONFIG_SYS_LONGHELP | ||
1021 | -/* default load address */ | 1005 | -/* default load address */ |
1022 | -#define CONFIG_SYS_LOAD_ADDR 0 | 1006 | -#define CONFIG_SYS_LOAD_ADDR 0 |
1023 | - | 1007 | +/* FDT support */ |
1024 | -#define CONFIG_HOSTNAME XILINX_BOARD_NAME | 1008 | +#define CONFIG_DISPLAY_BOARDINFO_LATE |
1009 | |||
1010 | -#define CONFIG_HOSTNAME "microblaze-generic" | ||
1025 | -#define CONFIG_BOOTCOMMAND "base 0;tftp 11000000 image.img;bootm" | 1011 | -#define CONFIG_BOOTCOMMAND "base 0;tftp 11000000 image.img;bootm" |
1026 | - | 1012 | |
1027 | -/* architecture dependent code */ | 1013 | /* architecture dependent code */ |
1028 | -#define CONFIG_SYS_USR_EXCEP /* user exception */ | 1014 | -#define CONFIG_SYS_USR_EXCEP /* user exception */ |
1029 | - | 1015 | - |
1030 | -#define CONFIG_PREBOOT "echo U-BOOT for ${hostname};setenv preboot;echo" | 1016 | -#define CONFIG_PREBOOT "echo U-BOOT for ${hostname};setenv preboot;echo" |
@@ -1041,66 +1027,8 @@ index 16481cb..1377c5e 100644 | |||
1041 | - "setenv stdin serial\0" | 1027 | - "setenv stdin serial\0" |
1042 | -#endif | 1028 | -#endif |
1043 | - | 1029 | - |
1044 | +/*Command line configuration.*/ | ||
1045 | #define CONFIG_CMDLINE_EDITING | ||
1046 | +#define CONFIG_AUTO_COMPLETE | ||
1047 | |||
1048 | -/* Enable flat device tree support */ | 1030 | -/* Enable flat device tree support */ |
1049 | -#define CONFIG_LMB 1 | 1031 | -#define CONFIG_LMB 1 |
1050 | - | ||
1051 | -#if defined(CONFIG_XILINX_AXIEMAC) | ||
1052 | -# define CONFIG_MII 1 | ||
1053 | -# define CONFIG_SYS_FAULT_ECHO_LINK_DOWN 1 | ||
1054 | -#else | ||
1055 | -# undef CONFIG_MII | ||
1056 | -#endif | ||
1057 | - | ||
1058 | -/* SPL part */ | ||
1059 | -#define CONFIG_SPL_FRAMEWORK | ||
1060 | +/* Miscellaneous configurable options */ | ||
1061 | +#define CONFIG_SYS_CBSIZE 2048/* Console I/O Buffer Size */ | ||
1062 | +#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16) | ||
1063 | +#define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE | ||
1064 | |||
1065 | -#ifdef CONFIG_SYS_FLASH_BASE | ||
1066 | -# define CONFIG_SYS_UBOOT_BASE CONFIG_SYS_FLASH_BASE | ||
1067 | -#endif | ||
1068 | - | ||
1069 | -/* for booting directly linux */ | ||
1070 | |||
1071 | -#define CONFIG_SYS_FDT_BASE (CONFIG_SYS_FLASH_BASE + \ | ||
1072 | - 0x40000) | ||
1073 | -#define CONFIG_SYS_FDT_SIZE (16<<10) | ||
1074 | -#define CONFIG_SYS_SPL_ARGS_ADDR (CONFIG_SYS_TEXT_BASE + \ | ||
1075 | - 0x1000000) | ||
1076 | +/* Use the HUSH parser */ | ||
1077 | +#define CONFIG_SYS_PROMPT_HUSH_PS2 "> " | ||
1078 | |||
1079 | -/* SP location before relocation, must use scratch RAM */ | ||
1080 | -/* BRAM start */ | ||
1081 | -#define CONFIG_SYS_INIT_RAM_ADDR 0x0 | ||
1082 | -/* BRAM size - will be generated */ | ||
1083 | -#define CONFIG_SYS_INIT_RAM_SIZE 0x100000 | ||
1084 | +#define CONFIG_ENV_VARS_UBOOT_CONFIG | ||
1085 | +#define CONFIG_ENV_OVERWRITE /* Allow to overwrite the u-boot environment variables */ | ||
1086 | |||
1087 | -# define CONFIG_SPL_STACK_ADDR (CONFIG_SYS_INIT_RAM_ADDR + \ | ||
1088 | - CONFIG_SYS_INIT_RAM_SIZE - \ | ||
1089 | - CONFIG_SYS_MALLOC_F_LEN) | ||
1090 | +#define CONFIG_LMB | ||
1091 | |||
1092 | -/* Just for sure that there is a space for stack */ | ||
1093 | -#define CONFIG_SPL_STACK_SIZE 0x100 | ||
1094 | +/* FDT support */ | ||
1095 | +#define CONFIG_DISPLAY_BOARDINFO_LATE | ||
1096 | |||
1097 | -#define CONFIG_SYS_UBOOT_START CONFIG_SYS_TEXT_BASE | ||
1098 | |||
1099 | -#define CONFIG_SPL_MAX_FOOTPRINT (CONFIG_SYS_INIT_RAM_SIZE - \ | ||
1100 | - CONFIG_SYS_INIT_RAM_ADDR - \ | ||
1101 | - CONFIG_SYS_MALLOC_F_LEN - \ | ||
1102 | - CONFIG_SPL_STACK_SIZE) | ||
1103 | +/* architecture dependent code */ | ||
1104 | +#define CONFIG_SYS_USR_EXCEP /* user exception */ | 1032 | +#define CONFIG_SYS_USR_EXCEP /* user exception */ |
1105 | +#define CONFIG_SYS_HZ 1000 | 1033 | +#define CONFIG_SYS_HZ 1000 |
1106 | + | 1034 | + |
@@ -1161,8 +1089,45 @@ index 16481cb..1377c5e 100644 | |||
1161 | +/* BOOTCOMMAND */ | 1089 | +/* BOOTCOMMAND */ |
1162 | +#define CONFIG_BOOTCOMMAND "run default_bootcmd" | 1090 | +#define CONFIG_BOOTCOMMAND "run default_bootcmd" |
1163 | 1091 | ||
1092 | -#if defined(CONFIG_XILINX_AXIEMAC) | ||
1093 | -# define CONFIG_SYS_FAULT_ECHO_LINK_DOWN 1 | ||
1094 | #endif | ||
1095 | - | ||
1096 | -/* SPL part */ | ||
1097 | - | ||
1098 | -#ifdef CONFIG_SYS_FLASH_BASE | ||
1099 | -# define CONFIG_SYS_UBOOT_BASE CONFIG_SYS_FLASH_BASE | ||
1100 | -#endif | ||
1101 | - | ||
1102 | -/* for booting directly linux */ | ||
1103 | - | ||
1104 | -#define CONFIG_SYS_FDT_BASE (CONFIG_SYS_FLASH_BASE + \ | ||
1105 | - 0x40000) | ||
1106 | -#define CONFIG_SYS_FDT_SIZE (16 << 10) | ||
1107 | -#define CONFIG_SYS_SPL_ARGS_ADDR (CONFIG_SYS_TEXT_BASE + \ | ||
1108 | - 0x1000000) | ||
1109 | - | ||
1110 | -/* SP location before relocation, must use scratch RAM */ | ||
1111 | -/* BRAM start */ | ||
1112 | -#define CONFIG_SYS_INIT_RAM_ADDR 0x0 | ||
1113 | -/* BRAM size - will be generated */ | ||
1114 | -#define CONFIG_SYS_INIT_RAM_SIZE 0x100000 | ||
1115 | - | ||
1116 | -# define CONFIG_SPL_STACK_ADDR (CONFIG_SYS_INIT_RAM_ADDR + \ | ||
1117 | - CONFIG_SYS_INIT_RAM_SIZE - \ | ||
1118 | - CONFIG_SYS_MALLOC_F_LEN) | ||
1119 | - | ||
1120 | -/* Just for sure that there is a space for stack */ | ||
1121 | -#define CONFIG_SPL_STACK_SIZE 0x100 | ||
1122 | - | ||
1123 | -#define CONFIG_SYS_UBOOT_START CONFIG_SYS_TEXT_BASE | ||
1124 | - | ||
1125 | -#define CONFIG_SPL_MAX_FOOTPRINT (CONFIG_SYS_INIT_RAM_SIZE - \ | ||
1126 | - CONFIG_SYS_INIT_RAM_ADDR - \ | ||
1127 | - CONFIG_SYS_MALLOC_F_LEN - \ | ||
1128 | - CONFIG_SPL_STACK_SIZE) | ||
1129 | - | ||
1164 | -#endif /* __CONFIG_H */ | 1130 | -#endif /* __CONFIG_H */ |
1165 | +#endif | ||
1166 | -- | 1131 | -- |
1167 | 2.7.4 | 1132 | 2.7.5 |
1168 | 1133 | ||