DistroKit Mailinglist
 help / color / mirror / Atom feed
From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: distrokit@pengutronix.de
Cc: Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: [DistroKit] [PATCH 2/5] v7a: at91bootstrap: configure v4.0.6-rc1 for Wifx L1
Date: Mon, 17 Apr 2023 15:11:38 +0200	[thread overview]
Message-ID: <20230417131141.908678-3-a.fatoum@pengutronix.de> (raw)
In-Reply-To: <20230417131141.908678-1-a.fatoum@pengutronix.de>

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 <a.fatoum@pengutronix.de>
---
 .../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




  parent reply	other threads:[~2023-04-17 13:12 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-17 13:11 [DistroKit] [PATCH 0/5] v7a: add first support " Ahmad Fatoum
2023-04-17 13:11 ` [DistroKit] [PATCH 1/5] at91bootstrap2: make targetinstall v4.x compatible Ahmad Fatoum
2023-04-17 13:11 ` Ahmad Fatoum [this message]
2023-04-17 13:11 ` [DistroKit] [PATCH 3/5] v7a: barebox: extend support to SAMA5D4-based Wifx L1 Ahmad Fatoum
2023-04-17 13:11 ` [DistroKit] [PATCH 4/5] v7a: kernel: " Ahmad Fatoum
2023-04-17 13:11 ` [DistroKit] [PATCH 5/5] v7a: add Wifx L1 SD-Card image Ahmad Fatoum
2023-04-17 13:59 ` [DistroKit] [PATCH 0/5] v7a: add first support for Wifx L1 Robert Schwebel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230417131141.908678-3-a.fatoum@pengutronix.de \
    --to=a.fatoum@pengutronix.de \
    --cc=distrokit@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox