From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Mon, 17 Apr 2023 15:12:02 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1poOeH-006KQ2-Sv for lore@lore.pengutronix.de; Mon, 17 Apr 2023 15:12:02 +0200 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1poOeH-0003yo-6b; Mon, 17 Apr 2023 15:12:01 +0200 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1poOe0-0003qt-Gt; Mon, 17 Apr 2023 15:11:44 +0200 Received: from [2a0a:edc0:0:1101:1d::54] (helo=dude05.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1poOdz-00BtBC-Sb; Mon, 17 Apr 2023 15:11:43 +0200 Received: from afa by dude05.red.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1poOdy-003oPd-I2; Mon, 17 Apr 2023 15:11:42 +0200 From: Ahmad Fatoum To: distrokit@pengutronix.de Date: Mon, 17 Apr 2023 15:11:38 +0200 Message-Id: <20230417131141.908678-3-a.fatoum@pengutronix.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230417131141.908678-1-a.fatoum@pengutronix.de> References: <20230417131141.908678-1-a.fatoum@pengutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [DistroKit] [PATCH 2/5] v7a: at91bootstrap: configure v4.0.6-rc1 for Wifx L1 X-BeenThere: distrokit@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: DistroKit Mailinglist List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ahmad Fatoum Sender: "DistroKit" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: distrokit-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false We will use AT91Bootstrap as first stage bootloader for the Wifx L1 for now, so let's add a suitable config file. We import v4.0.6-rc1 as that's the first tag that contains commit 41cd6c4 ("crt0_gnu.S: always pass along r4 to next stage"), which is required for later boot firmware to determine what the initial boot medium was. Signed-off-by: Ahmad Fatoum --- .../platform-v7a/at91bootstrap-wifx-l1.config | 296 ++++++++++++++++++ configs/platform-v7a/platformconfig | 6 +- 2 files changed, 301 insertions(+), 1 deletion(-) create mode 100644 configs/platform-v7a/at91bootstrap-wifx-l1.config diff --git a/configs/platform-v7a/at91bootstrap-wifx-l1.config b/configs/platform-v7a/at91bootstrap-wifx-l1.config new file mode 100644 index 000000000000..16a4426fe3ab --- /dev/null +++ b/configs/platform-v7a/at91bootstrap-wifx-l1.config @@ -0,0 +1,296 @@ +# +# Automatically generated make config: don't edit +# +CONFIG_HAVE_DOT_CONFIG=y +CONFIG_LOAD_AND_JUMP=y +# CONFIG_DIRECT_JUMP is not set +# CONFIG_INIT_AND_STOP is not set +CONFIG_LOAD_SW=y +CONFIG_JUMP_TO_SW=y +# CONFIG_SAM9X60 is not set +# CONFIG_SAMA5D2 is not set +# CONFIG_SAMA5D3X is not set +CONFIG_SAMA5D4=y +# CONFIG_SAMA7G5 is not set +CONFIG_DEVICENAME="sama5d4" + +# +# Clock Signals +# + +# +# Main Crystal configuration +# +CONFIG_CRYSTAL_12_000MHZ=y +# CONFIG_CRYSTAL_16_000MHZ is not set +# CONFIG_CRYSTAL_16_36766MHZ is not set +# CONFIG_CRYSTAL_18_432MHZ is not set +# CONFIG_CRYSTAL_24_000MHZ is not set +# CONFIG_MCK_BYPASS is not set + +# +# Slow Clock Configuration Options +# +CONFIG_SCLK=y +CONFIG_ALLOW_CRYSTAL_12_000MHZ=y +# CONFIG_CPU_CLK_266MHZ is not set +# CONFIG_CPU_CLK_332MHZ is not set +# CONFIG_CPU_CLK_348MHZ is not set +# CONFIG_CPU_CLK_396MHZ is not set +# CONFIG_CPU_CLK_444MHZ is not set +# CONFIG_CPU_CLK_492MHZ is not set +# CONFIG_CPU_CLK_498MHZ is not set +# CONFIG_CPU_CLK_510MHZ is not set +# CONFIG_CPU_CLK_528MHZ is not set +# CONFIG_CPU_CLK_594MHZ is not set +CONFIG_CPU_CLK_600MHZ=y +# CONFIG_CPU_CLK_800MHZ is not set +# CONFIG_CPU_CLK_1000MHZ is not set +CONFIG_ALLOW_CPU_CLK_444MHZ=y +CONFIG_ALLOW_CPU_CLK_510MHZ=y +CONFIG_ALLOW_CPU_CLK_528MHZ=y +CONFIG_ALLOW_CPU_CLK_594MHZ=y +CONFIG_ALLOW_CPU_CLK_600MHZ=y +# CONFIG_DISABLE_CPU_CLK_240MHZ is not set +# CONFIG_BUS_SPEED_116MHZ is not set +# CONFIG_BUS_SPEED_124MHZ is not set +# CONFIG_BUS_SPEED_133MHZ is not set +# CONFIG_BUS_SPEED_148MHZ is not set +# CONFIG_BUS_SPEED_164MHZ is not set +# CONFIG_BUS_SPEED_166MHZ is not set +# CONFIG_BUS_SPEED_170MHZ is not set +# CONFIG_BUS_SPEED_176MHZ is not set +CONFIG_BUS_SPEED_200MHZ=y +CONFIG_SUPPORT_BUS_SPEED_148MHZ=y +CONFIG_SUPPORT_BUS_SPEED_170MHZ=y +CONFIG_SUPPORT_BUS_SPEED_176MHZ=y +CONFIG_SUPPORT_BUS_SPEED_200MHZ=y + +# +# Console and Debug +# +CONFIG_CONSOLE_INDEX=1 +# CONFIG_DEBUG is not set +CONFIG_HW_DISPLAY_BANNER=y +CONFIG_HW_BANNER="\"\\n\\nAT91Bootstrap \" AT91BOOTSTRAP_VERSION \" (\" COMPILE_TIME \")\\n\\n\"" +CONFIG_LINK_ADDR="0x200000" +CONFIG_TOP_OF_MEMORY="0x210000" +CONFIG_CPU_HAS_TRUSTZONE=y +# CONFIG_CPU_HAS_TZC400 is not set +CONFIG_CPU_V7=y +# CONFIG_HAS_PMIC_ACT8865 is not set +# CONFIG_SUPPORT_PM is not set +# CONFIG_HAS_ONE_WIRE is not set +# CONFIG_HAS_EEPROM is not set +CONFIG_HAS_EHT0_PHY=y +CONFIG_HAS_EHT1_PHY=y +CONFIG_HAS_AUDIO_CODEC=y +CONFIG_HAS_HDMI=y +# CONFIG_CORE_ARM926EJS is not set +CONFIG_CORE_CORTEX_A5=y +# CONFIG_CORE_CORTEX_A7 is not set +# CONFIG_CPU_HAS_UMCTL2 is not set +CONFIG_CPU_HAS_DDRC=y +# CONFIG_CPU_HAS_SDDRC is not set +# CONFIG_CPU_HAS_SDRAMC is not set +CONFIG_CPU_HAS_SCKC=y +CONFIG_CPU_HAS_H32MXDIV=y +CONFIG_CPU_HAS_HSMCI0=y +CONFIG_CPU_HAS_HSMCI1=y +# CONFIG_CPU_HAS_HSMCI2 is not set +# CONFIG_CPU_HAS_MCI0 is not set +# CONFIG_CPU_HAS_MCI1 is not set +# CONFIG_CPU_HAS_SDHC0 is not set +# CONFIG_CPU_HAS_SDHC1 is not set +# CONFIG_CPU_HAS_SDHC2 is not set +CONFIG_CPU_HAS_SPI=y +# CONFIG_CPU_HAS_SPI_IOSET is not set +# CONFIG_CPU_HAS_QSPI is not set +# CONFIG_CPU_HAS_QSPI_IOSET is not set +# CONFIG_CPU_HAS_SCLK_BYPASS is not set +CONFIG_CPU_HAS_PIO3=y +CONFIG_CPU_HAS_L2CC=y +CONFIG_CPU_HAS_PMECC=y +# CONFIG_HAS_HW_INFO is not set +# CONFIG_TWI is not set +# CONFIG_MACB is not set +# CONFIG_AES is not set +# CONFIG_LOAD_HW_INFO is not set +CONFIG_CPU_HAS_TWI0=y +CONFIG_CPU_HAS_TWI1=y +CONFIG_CPU_HAS_TWI2=y +CONFIG_CPU_HAS_TWI3=y +CONFIG_CPU_HAS_AES=y +# CONFIG_CPU_HAS_PIO4 is not set +# CONFIG_CPU_HAS_FLEXCOM0 is not set +# CONFIG_CPU_HAS_FLEXCOM1 is not set +# CONFIG_CPU_HAS_FLEXCOM2 is not set +# CONFIG_CPU_HAS_FLEXCOM3 is not set +# CONFIG_CPU_HAS_FLEXCOM4 is not set +# CONFIG_CPU_HAS_FLEXCOM5 is not set +# CONFIG_CPU_HAS_FLEXCOM6 is not set +# CONFIG_CPU_HAS_FLEXCOM7 is not set +# CONFIG_CPU_HAS_FLEXCOM8 is not set +# CONFIG_CPU_HAS_FLEXCOM9 is not set +# CONFIG_CPU_HAS_FLEXCOM10 is not set +# CONFIG_CPU_HAS_FLEXCOM11 is not set +# CONFIG_CPU_HAS_FLEXCOM12 is not set +# CONFIG_CPU_HAS_WDT2 is not set +# CONFIG_CPU_HAS_DWDT is not set + +# +# DRAM +# +# CONFIG_SDRAM is not set +# CONFIG_SDDRC is not set +CONFIG_DDRC=y +# CONFIG_UMCTL2 is not set +# CONFIG_PUBL is not set +# CONFIG_ALLOW_PSRAM is not set +# CONFIG_DDR_SEL_ADDR is not set +CONFIG_BANK_4=y +# CONFIG_BANK_8 is not set +# CONFIG_DDR_SET_BY_DEVICE is not set +# CONFIG_DDR_SET_BY_JEDEC is not set +CONFIG_DDR_SET_BY_TIMING=y +# CONFIG_LPDDR1 is not set +# CONFIG_LPDDR2 is not set +# CONFIG_LPDDR3 is not set +CONFIG_DDR2=y +# CONFIG_DDR3 is not set +CONFIG_DBW_16=y +# CONFIG_DBW_32 is not set +# CONFIG_DDR_64_MBIT is not set +# CONFIG_DDR_128_MBIT is not set +# CONFIG_DDR_256_MBIT is not set +# CONFIG_DDR_512_MBIT is not set +# CONFIG_DDR_1_GBIT is not set +CONFIG_DDR_2_GBIT=y +# CONFIG_DDR_4_GBIT is not set +# CONFIG_DDR_8_GBIT is not set +# CONFIG_CAS_2 is not set +CONFIG_CAS_3=y +# CONFIG_CAS_4 is not set +# CONFIG_CAS_5 is not set +# CONFIG_CAS_6 is not set +# CONFIG_CAS_7 is not set +# CONFIG_CAS_8 is not set +# CONFIG_NOT_DQS_DISABLED is not set +CONFIG_DDR_TRSA=9 +CONFIG_DDR_TRCD=3 +CONFIG_DDR_TWR=3 +CONFIG_DDR_TRC=12 +CONFIG_DDR_TRP=3 +CONFIG_DDR_TRRD=2 +CONFIG_DDR_TWTR=2 +CONFIG_DDR_TMRD=2 +CONFIG_DDR_TRFC=26 +CONFIG_DDR_TXSNR=28 +CONFIG_DDR_TXSRD=200 +CONFIG_DDR_TXP=2 +CONFIG_DDR_TXARD=2 +CONFIG_DDR_TXARDS=8 +CONFIG_DDR_TRPA=3 +CONFIG_DDR_TRTP=2 +CONFIG_DDR_TFAW=9 +CONFIG_DDR_RTC=1563 + +# +# Extra parameters +# +# CONFIG_SAMA5D2_LPDDR2 is not set +# CONFIG_MMU is not set + +# +# Flash Memory +# +# CONFIG_DATAFLASH is not set +# CONFIG_FLASH is not set +# CONFIG_NANDFLASH is not set +CONFIG_SDCARD=y +CONFIG_MEMORY="sdcard" + +# +# SD Card Configuration +# +CONFIG_AT91_MCI=y +# CONFIG_AT91_MCI0 is not set +CONFIG_AT91_MCI1=y +# CONFIG_AT91_MCI2 is not set +CONFIG_FATFS=y +CONFIG_ALLOW_BOOT_FROM_DATAFLASH_CS0=y +CONFIG_BOOTSTRAP_MAXSIZE="65536" +CONFIG_PROJECT="sdcard" +CONFIG_LOAD_UBOOT=y +# CONFIG_LOAD_LINUX is not set +# CONFIG_LOAD_ANDROID is not set +# CONFIG_LOAD_1MB is not set +# CONFIG_LOAD_4MB is not set +# CONFIG_LOAD_64KB is not set +CONFIG_JUMP_ADDR="0x26F00000" + +# +# U-Boot Image Storage Setup +# +CONFIG_IMAGE_NAME="barebox.bin" +CONFIG_MACH_TYPE="9999" +# CONFIG_OVERRIDE_MACH_TYPE is not set +# CONFIG_SECURE is not set +CONFIG_DISABLE_WATCHDOG=y + +# +# ARM TrustZone Options +# +CONFIG_MATRIX=y +# CONFIG_LOAD_OPTEE is not set +# CONFIG_ENTER_NWD is not set +CONFIG_REDIRECT_ALL_INTS_AIC=y +# CONFIG_TZC400 is not set +# CONFIG_BACKUP_MODE is not set + +# +# Board's Workaround Options +# +CONFIG_BOARD_QUIRK_NONE=y +# CONFIG_BOARD_QUIRK_SAMA5D3 is not set +# CONFIG_BOARD_QUIRK_SAMA5D4 is not set +# CONFIG_BOARD_QUIRK_SAMA5D2_XULT is not set +# CONFIG_BOARD_QUIRK_SAMA5D2_ICP is not set +# CONFIG_BOARD_QUIRK_SAMA5D2_SIP is not set +# CONFIG_BOARD_QUIRK_SAM9X60_EK is not set +# CONFIG_BOARD_QUIRK_SAM9X60_EB is not set +# CONFIG_BOARD_QUIRK_SAMA7G5_EK is not set +# CONFIG_BOARD_QUIRK_SAM9X60_CURIOSITY is not set +# CONFIG_LED_ON_BOARD is not set + +# +# TWI BUS setting +# +# CONFIG_TWI0 is not set +# CONFIG_TWI1 is not set +# CONFIG_TWI2 is not set +CONFIG_TWI3=y +# CONFIG_ACT8865 is not set +# CONFIG_MCP16502 is not set + +# +# Board Hardware Information Options +# + +# +# Basic Drivers support +# +CONFIG_PIT=y +CONFIG_WDT=y +# CONFIG_WDT2 is not set +CONFIG_RSTC=y +CONFIG_USART=y +CONFIG_PIO=y +CONFIG_PIO_E=y +CONFIG_PMC_COMMON=y +CONFIG_PMC_V1=y +CONFIG_PMC_PERIPH_CLK_SAM9X5=y +CONFIG_PMC_UTMI_CLK=y +CONFIG_PMC_PLL_CLK=y +CONFIG_PMC_MCK_CLK=y +# CONFIG_SHDWC is not set diff --git a/configs/platform-v7a/platformconfig b/configs/platform-v7a/platformconfig index cd6c2118dcac..52142dab6e4b 100644 --- a/configs/platform-v7a/platformconfig +++ b/configs/platform-v7a/platformconfig @@ -177,7 +177,10 @@ PTXCONF_CONSOLE_SPEED="115200" # bootloaders # # PTXCONF_AT91BOOTSTRAP is not set -# PTXCONF_AT91BOOTSTRAP2 is not set +PTXCONF_AT91BOOTSTRAP2=y +PTXCONF_AT91BOOTSTRAP2_VERSION="4.0.6-rc1" +PTXCONF_AT91BOOTSTRAP2_MD5="ef321a80bf428bfd6cb642c96126ef6c" +PTXCONF_AT91BOOTSTRAP2_CONFIG="at91bootstrap-wifx-l1.config" PTXCONF_BAREBOX_COMMON_ARCH_STRING="arm" PTXCONF_BAREBOX_COMMON=y PTXCONF_BAREBOX_COMMON_VERSION="2023.02.1" @@ -305,6 +308,7 @@ PTXCONF_HOST_M4=y PTXCONF_HOST_MTOOLS=y PTXCONF_HOST_OPENSSL=y PTXCONF_HOST_SYSTEM_BC=y +PTXCONF_HOST_SYSTEM_PYTHON3=y PTXCONF_HOST_UTIL_LINUX=y PTXCONF_HOST_TF_A=y -- 2.39.2