* [DistroKit] [PATCH 2/6] v7a: barebox: add new rule for sama5d2 support
2020-09-29 6:02 [DistroKit] [PATCH 1/6] v7a: barebox: version bump v2020.08.1 → v2020.09.0 Ahmad Fatoum
@ 2020-09-29 6:02 ` Ahmad Fatoum
2020-09-29 10:33 ` Roland Hieber
2020-09-29 6:02 ` [DistroKit] [PATCH 3/6] v7a: kernel: extend " Ahmad Fatoum
` (3 subsequent siblings)
4 siblings, 1 reply; 14+ messages in thread
From: Ahmad Fatoum @ 2020-09-29 6:02 UTC (permalink / raw)
To: distrokit; +Cc: Ahmad Fatoum
Later commits will have the v7a platform generate an image for Cortex-A5
based sama5d2 as well. Import here a new barebox-at91 rule that extends
the barebox-common rule to provide support for the two sama5d27 boards
supported by barebox:
barebox-sama5d27-som1-ek.img
barebox-sama5d27-som1-ek-xload-mmc.img
barebox-groboards-sama5d27-giantboard.img
barebox-groboards-sama5d27-giantboard-xload-mmc.img
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
.../barebox-at91-defaultenv/init/bootsource | 9 +
configs/platform-v7a/barebox-at91.config | 847 ++++++++++++++++++
configs/platform-v7a/barebox-at91.config.diff | 129 +++
configs/platform-v7a/platformconfig | 1 +
.../platform-v7a/platforms/barebox-at91.in | 8 +
configs/platform-v7a/rules/barebox-at91.make | 108 +++
6 files changed, 1102 insertions(+)
create mode 100755 configs/platform-v7a/barebox-at91-defaultenv/init/bootsource
create mode 100644 configs/platform-v7a/barebox-at91.config
create mode 100644 configs/platform-v7a/barebox-at91.config.diff
create mode 100644 configs/platform-v7a/platforms/barebox-at91.in
create mode 100644 configs/platform-v7a/rules/barebox-at91.make
diff --git a/configs/platform-v7a/barebox-at91-defaultenv/init/bootsource b/configs/platform-v7a/barebox-at91-defaultenv/init/bootsource
new file mode 100755
index 000000000000..35ee4d9a5664
--- /dev/null
+++ b/configs/platform-v7a/barebox-at91-defaultenv/init/bootsource
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+if [ -n "$nv.boot.default" ]; then
+ exit
+fi
+
+if [ $bootsource = mmc ]; then
+ global.boot.default="mmc${bootsource_instance}.1 net"
+fi
diff --git a/configs/platform-v7a/barebox-at91.config b/configs/platform-v7a/barebox-at91.config
new file mode 100644
index 000000000000..48d48fe086f4
--- /dev/null
+++ b/configs/platform-v7a/barebox-at91.config
@@ -0,0 +1,847 @@
+#
+# Automatically generated file; DO NOT EDIT.
+# Barebox/arm 2020.09.0 Configuration
+#
+CONFIG_ARM=y
+CONFIG_ARM_LINUX=y
+CONFIG_HAVE_MACH_ARM_HEAD=y
+CONFIG_ARM_USE_COMPRESSED_DTB=y
+CONFIG_TEXT_BASE=0x0
+
+#
+# System Type
+#
+CONFIG_ARCH_AT91=y
+# CONFIG_ARCH_BCM283X is not set
+# CONFIG_ARCH_CLPS711X is not set
+# CONFIG_ARCH_DAVINCI is not set
+# CONFIG_ARCH_DIGIC is not set
+# CONFIG_ARCH_EP93XX is not set
+# CONFIG_ARCH_HIGHBANK is not set
+# CONFIG_ARCH_IMX is not set
+# CONFIG_ARCH_LAYERSCAPE is not set
+# CONFIG_ARCH_MVEBU is not set
+# CONFIG_ARCH_MXS is not set
+# CONFIG_ARCH_NOMADIK is not set
+# CONFIG_ARCH_OMAP is not set
+# CONFIG_ARCH_PXA is not set
+# CONFIG_ARCH_ROCKCHIP is not set
+# CONFIG_ARCH_SOCFPGA is not set
+# CONFIG_ARCH_S3C24xx is not set
+# CONFIG_ARCH_S5PCxx is not set
+# CONFIG_ARCH_S3C64xx is not set
+# CONFIG_ARCH_STM32MP is not set
+# CONFIG_ARCH_VERSATILE is not set
+# CONFIG_ARCH_VEXPRESS is not set
+# CONFIG_ARCH_TEGRA is not set
+# CONFIG_ARCH_UEMD is not set
+# CONFIG_ARCH_ZYNQ is not set
+# CONFIG_ARCH_ZYNQMP is not set
+# CONFIG_ARCH_QEMU is not set
+
+#
+# Processor Type
+#
+CONFIG_CPU_32=y
+CONFIG_CPU_V7=y
+CONFIG_CPU_32v7=y
+
+#
+# processor features
+#
+# CONFIG_BOOT_ENDIANNESS_SWITCH is not set
+CONFIG_HAVE_AT91_UTMI=y
+CONFIG_HAVE_AT91_USB_CLK=y
+CONFIG_COMMON_CLK_AT91=y
+CONFIG_HAVE_AT91_H32MX=y
+CONFIG_HAVE_AT91_GENERATED_CLK=y
+CONFIG_HAVE_AT91_AUDIO_PLL=y
+CONFIG_HAVE_AT91_I2S_MUX_CLK=y
+CONFIG_HAVE_AT91_DDRAMC=y
+CONFIG_AT91_MCI_PBL=y
+CONFIG_AT91SAM9_SMC=y
+CONFIG_HAVE_AT91SAM9_RST=y
+CONFIG_SOC_SAMA5=y
+CONFIG_SOC_SAMA5D2=y
+CONFIG_ARCH_TEXT_BASE=0x23f00000
+
+#
+# Atmel AT91 System-on-Chip
+#
+CONFIG_AT91_MULTI_BOARDS=y
+# CONFIG_MACH_AT91SAM9263EK is not set
+# CONFIG_MACH_AT91SAM9X5EK is not set
+# CONFIG_MACH_MICROCHIP_KSZ9477_EVB is not set
+CONFIG_MACH_SAMA5D27_SOM1=y
+CONFIG_MACH_SAMA5D27_GIANTBOARD=y
+
+#
+# AT91 Board Options
+#
+CONFIG_BAREBOX_MAX_IMAGE_SIZE=0xffffffff
+# CONFIG_BOARD_ARM_GENERIC_DT is not set
+CONFIG_AEABI=y
+# CONFIG_ARM_BOARD_APPEND_ATAG is not set
+# end of System Type
+
+#
+# ARM specific settings
+#
+CONFIG_ARM_OPTIMZED_STRING_FUNCTIONS=y
+CONFIG_ARM_EXCEPTIONS=y
+CONFIG_ARM_UNWIND=y
+# CONFIG_ARM_SEMIHOSTING is not set
+# CONFIG_ARM_PSCI is not set
+# CONFIG_ARM_PSCI_CLIENT is not set
+# end of ARM specific settings
+
+CONFIG_GREGORIAN_CALENDER=y
+CONFIG_HAS_KALLSYMS=y
+CONFIG_HAS_MODULES=y
+CONFIG_HAS_CACHE=y
+CONFIG_HAS_DMA=y
+CONFIG_GENERIC_GPIO=y
+CONFIG_BLOCK=y
+CONFIG_BLOCK_WRITE=y
+CONFIG_FILETYPE=y
+CONFIG_BINFMT=y
+CONFIG_UIMAGE=y
+CONFIG_LOGBUF=y
+CONFIG_STDDEV=y
+CONFIG_MENUTREE=y
+CONFIG_BOOT=y
+
+#
+# General Settings
+#
+CONFIG_LOCALVERSION=""
+CONFIG_LOCALVERSION_AUTO=y
+CONFIG_BANNER=y
+CONFIG_MEMINFO=y
+CONFIG_ENVIRONMENT_VARIABLES=y
+CONFIG_GLOBALVAR=y
+CONFIG_NVVAR=y
+
+#
+# memory layout
+#
+CONFIG_HAVE_PBL_IMAGE=y
+CONFIG_HAVE_PBL_MULTI_IMAGES=y
+CONFIG_HAVE_IMAGE_COMPRESSION=y
+CONFIG_PBL_IMAGE=y
+CONFIG_PBL_MULTI_IMAGES=y
+CONFIG_PBL_RELOCATABLE=y
+CONFIG_IMAGE_COMPRESSION=y
+# CONFIG_IMAGE_COMPRESSION_LZ4 is not set
+# CONFIG_IMAGE_COMPRESSION_LZO is not set
+# CONFIG_IMAGE_COMPRESSION_GZIP is not set
+# CONFIG_IMAGE_COMPRESSION_XZKERN is not set
+CONFIG_IMAGE_COMPRESSION_NONE=y
+CONFIG_MMU=y
+CONFIG_MMU_EARLY=y
+CONFIG_BAREBOX_MAX_PBL_SIZE=0xffffffff
+CONFIG_BAREBOX_MAX_BARE_INIT_SIZE=0xffffffff
+CONFIG_STACK_SIZE=0x8000
+CONFIG_MALLOC_SIZE=0x0
+# end of memory layout
+
+# CONFIG_EXPERIMENTAL is not set
+# CONFIG_MALLOC_DLMALLOC is not set
+CONFIG_MALLOC_TLSF=y
+CONFIG_HAVE_MOD_ARCH_SPECIFIC=y
+CONFIG_KALLSYMS=y
+CONFIG_RELOCATABLE=y
+# CONFIG_PANIC_HANG is not set
+CONFIG_PROMPT="barebox:"
+CONFIG_BAUDRATE=115200
+CONFIG_CBSIZE=1024
+CONFIG_SHELL_HUSH=y
+# CONFIG_SHELL_SIMPLE is not set
+# CONFIG_SHELL_NONE is not set
+CONFIG_GLOB=y
+CONFIG_GLOB_SORT=y
+CONFIG_PROMPT_HUSH_PS2="> "
+CONFIG_HUSH_FANCY_PROMPT=y
+CONFIG_CMDLINE_EDITING=y
+CONFIG_AUTO_COMPLETE=y
+CONFIG_MENU=y
+# CONFIG_PASSWORD is not set
+CONFIG_DYNAMIC_CRC_TABLE=y
+CONFIG_ERRNO_MESSAGES=y
+CONFIG_TIMESTAMP=y
+CONFIG_BOOTM=y
+CONFIG_BOOTM_SHOW_TYPE=y
+CONFIG_BOOTM_VERBOSE=y
+# CONFIG_BOOTM_INITRD is not set
+CONFIG_BOOTM_OFTREE=y
+CONFIG_BOOTM_OFTREE_UIMAGE=y
+# CONFIG_BOOTM_AIMAGE is not set
+# CONFIG_BOOTM_ELF is not set
+# CONFIG_BOOTM_FITIMAGE is not set
+CONFIG_BLSPEC=y
+CONFIG_FLEXIBLE_BOOTARGS=y
+CONFIG_BAREBOX_UPDATE=y
+CONFIG_IMD=y
+CONFIG_IMD_TARGET=y
+# CONFIG_KERNEL_INSTALL_TARGET is not set
+CONFIG_CONSOLE_FULL=y
+# CONFIG_CONSOLE_SIMPLE is not set
+# CONFIG_CONSOLE_NONE is not set
+CONFIG_CONSOLE_ACTIVATE_FIRST=y
+# CONFIG_CONSOLE_ACTIVATE_ALL is not set
+# CONFIG_CONSOLE_ACTIVATE_NONE is not set
+CONFIG_CONSOLE_ALLOW_COLOR=y
+CONFIG_PBL_CONSOLE=y
+# CONFIG_CONSOLE_RATP is not set
+CONFIG_PARTITION=y
+CONFIG_PARTITION_DISK=y
+CONFIG_PARTITION_DISK_DOS=y
+# CONFIG_PARTITION_DISK_EFI is not set
+CONFIG_ENV_HANDLING=y
+CONFIG_DEFAULT_ENVIRONMENT=y
+CONFIG_DEFAULT_COMPRESSION_BZIP2=y
+# CONFIG_DEFAULT_COMPRESSION_LZO is not set
+# CONFIG_DEFAULT_COMPRESSION_NONE is not set
+CONFIG_DEFAULT_ENVIRONMENT_GENERIC_NEW=y
+CONFIG_DEFAULT_ENVIRONMENT_GENERIC_NEW_MENU=y
+CONFIG_DEFAULT_ENVIRONMENT_PATH="$(objtree)/.ptxdist-defaultenv"
+# CONFIG_BAREBOXENV_TARGET is not set
+# CONFIG_BAREBOXCRC32_TARGET is not set
+CONFIG_POLLER=y
+CONFIG_STATE=y
+# CONFIG_STATE_CRYPTO is not set
+# CONFIG_STATE_BACKWARD_COMPATIBLE is not set
+# CONFIG_BOOTCHOOSER is not set
+CONFIG_RESET_SOURCE=y
+# CONFIG_MACHINE_ID is not set
+
+#
+# OP-TEE loading
+#
+# CONFIG_BOOTM_OPTEE is not set
+# CONFIG_PBL_OPTEE is not set
+# end of OP-TEE loading
+# end of General Settings
+
+#
+# Debugging
+#
+CONFIG_COMPILE_LOGLEVEL=6
+CONFIG_DEFAULT_LOGLEVEL=7
+# CONFIG_DEBUG_LL is not set
+CONFIG_DEBUG_AT91_UART_BASE=0xf8020000
+# CONFIG_DEBUG_INITCALLS is not set
+# CONFIG_PBL_BREAK is not set
+# CONFIG_UBSAN is not set
+# CONFIG_COMPILE_TEST is not set
+# end of Debugging
+
+CONFIG_HAS_DEBUG_LL=y
+CONFIG_COMMAND_SUPPORT=y
+CONFIG_COMPILE_HASH=y
+
+#
+# Commands
+#
+
+#
+# Information
+#
+CONFIG_CMD_AT91CLK=y
+CONFIG_CMD_ARM_CPUINFO=y
+CONFIG_CMD_DEVINFO=y
+CONFIG_CMD_DMESG=y
+CONFIG_CMD_DRVINFO=y
+CONFIG_CMD_HELP=y
+CONFIG_LONGHELP=y
+CONFIG_CMD_IOMEM=y
+CONFIG_CMD_IMD=y
+CONFIG_CMD_MEMINFO=y
+CONFIG_CMD_ARM_MMUINFO=y
+CONFIG_CMD_REGULATOR=y
+CONFIG_CMD_VERSION=y
+# CONFIG_CMD_MMC is not set
+# CONFIG_CMD_MMC_EXTCSD is not set
+# CONFIG_CMD_POLLER is not set
+# end of Information
+
+#
+# Boot
+#
+CONFIG_CMD_AT91_BOOT_TEST=y
+CONFIG_CMD_BOOT=y
+CONFIG_CMD_BOOTM=y
+# CONFIG_CMD_BOOTU is not set
+CONFIG_CMD_BOOTZ=y
+CONFIG_CMD_GO=y
+# CONFIG_CMD_LOADB is not set
+# CONFIG_CMD_LOADS is not set
+# CONFIG_CMD_LOADY is not set
+CONFIG_CMD_RESET=y
+CONFIG_CMD_UIMAGE=y
+# end of Boot
+
+#
+# Partition
+#
+CONFIG_CMD_PARTITION=y
+CONFIG_CMD_AUTOMOUNT=y
+CONFIG_CMD_MOUNT=y
+CONFIG_CMD_UMOUNT=y
+# end of Partition
+
+#
+# Environment
+#
+CONFIG_CMD_NV=y
+CONFIG_CMD_EXPORT=y
+CONFIG_CMD_DEFAULTENV=y
+CONFIG_CMD_GLOBAL=y
+CONFIG_CMD_LOADENV=y
+CONFIG_CMD_PRINTENV=y
+CONFIG_CMD_MAGICVAR=y
+CONFIG_CMD_MAGICVAR_HELP=y
+CONFIG_CMD_SAVEENV=y
+# end of Environment
+
+#
+# File
+#
+CONFIG_CMD_BASENAME=y
+CONFIG_CMD_CAT=y
+CONFIG_CMD_CD=y
+CONFIG_CMD_CP=y
+# CONFIG_CMD_CMP is not set
+CONFIG_CMD_DIGEST=y
+CONFIG_CMD_DIRNAME=y
+CONFIG_CMD_FILETYPE=y
+CONFIG_CMD_LN=y
+CONFIG_CMD_LS=y
+CONFIG_CMD_MD5SUM=y
+CONFIG_CMD_MKDIR=y
+CONFIG_CMD_PWD=y
+CONFIG_CMD_READLINK=y
+CONFIG_CMD_RM=y
+CONFIG_CMD_RMDIR=y
+CONFIG_CMD_SHA1SUM=y
+# CONFIG_CMD_SHA224SUM is not set
+# CONFIG_CMD_SHA256SUM is not set
+# CONFIG_CMD_SHA384SUM is not set
+# CONFIG_CMD_SHA512SUM is not set
+CONFIG_CMD_UNCOMPRESS=y
+# end of File
+
+#
+# Shell scripting
+#
+CONFIG_CMD_FALSE=y
+CONFIG_CMD_GETOPT=y
+CONFIG_CMD_LET=y
+CONFIG_CMD_MSLEEP=y
+CONFIG_CMD_READF=y
+CONFIG_CMD_SLEEP=y
+CONFIG_CMD_TEST=y
+CONFIG_CMD_TRUE=y
+# end of Shell scripting
+
+#
+# Network
+#
+CONFIG_CMD_DHCP=y
+CONFIG_CMD_HOST=y
+CONFIG_NET_CMD_IFUP=y
+# CONFIG_CMD_MIITOOL is not set
+CONFIG_CMD_PING=y
+CONFIG_CMD_TFTP=y
+CONFIG_CMD_IP_ROUTE_GET=y
+# end of Network
+
+#
+# Console and Framebuffer interaction
+#
+CONFIG_CMD_CLEAR=y
+CONFIG_CMD_ECHO=y
+CONFIG_CMD_ECHO_E=y
+CONFIG_CMD_EDIT=y
+# CONFIG_CMD_LOGIN is not set
+CONFIG_CMD_MENU=y
+CONFIG_CMD_MENU_MANAGEMENT=y
+CONFIG_CMD_MENUTREE=y
+CONFIG_CMD_READLINE=y
+CONFIG_CMD_TIMEOUT=y
+# end of Console and Framebuffer interaction
+
+#
+# Memory
+#
+CONFIG_CMD_CRC=y
+CONFIG_CMD_CRC_CMP=y
+CONFIG_CMD_MD=y
+CONFIG_CMD_MEMCMP=y
+CONFIG_CMD_MEMCPY=y
+CONFIG_CMD_MEMSET=y
+CONFIG_CMD_MEMTEST=y
+CONFIG_CMD_MM=y
+CONFIG_CMD_MW=y
+# end of Memory
+
+#
+# Hardware manipulation
+#
+CONFIG_CMD_CLK=y
+CONFIG_CMD_DETECT=y
+CONFIG_CMD_FLASH=y
+CONFIG_CMD_GPIO=y
+CONFIG_CMD_I2C=y
+CONFIG_CMD_LED=y
+# CONFIG_CMD_POWEROFF is not set
+CONFIG_CMD_SPI=y
+CONFIG_CMD_LED_TRIGGER=y
+CONFIG_CMD_WD=y
+CONFIG_CMD_WD_DEFAULT_TIMOUT=0
+# end of Hardware manipulation
+
+#
+# Miscellaneous
+#
+# CONFIG_CMD_2048 is not set
+CONFIG_CMD_BAREBOX_UPDATE=y
+# CONFIG_CMD_BLOBGEN is not set
+# CONFIG_CMD_FIRMWARELOAD is not set
+# CONFIG_CMD_OF_DIFF is not set
+CONFIG_CMD_OF_DUMP=y
+CONFIG_CMD_OF_NODE=y
+CONFIG_CMD_OF_PROPERTY=y
+# CONFIG_CMD_OF_DISPLAY_TIMINGS is not set
+# CONFIG_CMD_OF_FIXUP_STATUS is not set
+# CONFIG_CMD_OF_OVERLAY is not set
+CONFIG_CMD_OFTREE=y
+CONFIG_CMD_TIME=y
+CONFIG_CMD_STATE=y
+# CONFIG_CMD_DHRYSTONE is not set
+# CONFIG_CMD_SPD_DECODE is not set
+# CONFIG_CMD_SEED is not set
+# end of Miscellaneous
+# end of Commands
+
+CONFIG_NET=y
+CONFIG_NET_NFS=y
+# CONFIG_NET_NETCONSOLE is not set
+CONFIG_NET_RESOLV=y
+CONFIG_NET_IFUP=y
+CONFIG_NET_DHCP=y
+# CONFIG_NET_SNTP is not set
+
+#
+# Drivers
+#
+CONFIG_OFTREE=y
+CONFIG_OFTREE_MEM_GENERIC=y
+CONFIG_DTC=y
+CONFIG_OFDEVICE=y
+CONFIG_OF_GPIO=y
+CONFIG_OF_BAREBOX_DRIVERS=y
+CONFIG_OF_BAREBOX_ENV_IN_FS=y
+# CONFIG_OF_OVERLAY is not set
+# CONFIG_AIODEV is not set
+
+#
+# serial drivers
+#
+# CONFIG_SERIAL_DEV_BUS is not set
+# CONFIG_DRIVER_SERIAL_ARM_DCC is not set
+# CONFIG_DRIVER_SERIAL_NS16550 is not set
+CONFIG_DRIVER_SERIAL_ATMEL=y
+# CONFIG_DRIVER_SERIAL_CADENCE is not set
+# end of serial drivers
+
+CONFIG_HAS_MACB=y
+CONFIG_PHYLIB=y
+
+#
+# Network drivers
+#
+# CONFIG_DRIVER_NET_ARC_EMAC is not set
+# CONFIG_DRIVER_NET_CALXEDA_XGMAC is not set
+# CONFIG_DRIVER_NET_DESIGNWARE is not set
+# CONFIG_DRIVER_NET_DESIGNWARE_EQOS is not set
+# CONFIG_DRIVER_NET_ENC28J60 is not set
+# CONFIG_DRIVER_NET_FSL_FMAN is not set
+# CONFIG_DRIVER_NET_KS8851_MLL is not set
+CONFIG_DRIVER_NET_MACB=y
+CONFIG_DRIVER_NET_MICREL=y
+# CONFIG_DRIVER_NET_SMC911X is not set
+# CONFIG_DRIVER_NET_SMC91111 is not set
+
+#
+# phylib
+#
+
+#
+# MII PHY device drivers
+#
+# CONFIG_AR8327N_PHY is not set
+# CONFIG_AT803X_PHY is not set
+# CONFIG_DAVICOM_PHY is not set
+# CONFIG_DP83867_PHY is not set
+# CONFIG_LXT_PHY is not set
+# CONFIG_MARVELL_PHY is not set
+# CONFIG_MICREL_PHY is not set
+# CONFIG_NATIONAL_PHY is not set
+# CONFIG_REALTEK_PHY is not set
+# CONFIG_SMSC_PHY is not set
+# CONFIG_NET_DSA_MV88E6XXX is not set
+
+#
+# MII bus device drivers
+#
+# CONFIG_MDIO_BITBANG is not set
+# CONFIG_MDIO_BUS_MUX_GPIO is not set
+# end of phylib
+# end of Network drivers
+
+#
+# SPI drivers
+#
+CONFIG_SPI=y
+CONFIG_SPI_MEM=y
+# CONFIG_DRIVER_SPI_ATMEL is not set
+CONFIG_SPI_ATMEL_QUADSPI=y
+# CONFIG_DRIVER_SPI_FSL_QUADSPI is not set
+# CONFIG_DRIVER_SPI_GPIO is not set
+# end of SPI drivers
+
+CONFIG_I2C=y
+
+#
+# I2C Hardware Bus support
+#
+# CONFIG_I2C_GPIO is not set
+CONFIG_I2C_AT91=y
+# CONFIG_I2C_DESIGNWARE is not set
+# CONFIG_I2C_MV64XXX is not set
+# end of I2C Hardware Bus support
+
+# CONFIG_I2C_MUX is not set
+CONFIG_MTD=y
+CONFIG_MTD_WRITE=y
+CONFIG_MTD_OOB_DEVICE=y
+# CONFIG_MTD_RAW_DEVICE is not set
+# CONFIG_MTD_CONCAT is not set
+
+#
+# MTD debug options
+#
+# CONFIG_MTD_PEB_DEBUG is not set
+
+#
+# Self contained MTD devices
+#
+# CONFIG_MTD_DATAFLASH is not set
+CONFIG_MTD_M25P80=y
+# CONFIG_MTD_SST25L is not set
+# CONFIG_MTD_DOCG3 is not set
+# CONFIG_MTD_MTDRAM is not set
+# end of Self contained MTD devices
+
+# CONFIG_DRIVER_CFI is not set
+# CONFIG_NAND is not set
+CONFIG_MTD_SPI_NOR=y
+# CONFIG_MTD_SPI_NOR_USE_4K_SECTORS is not set
+# CONFIG_SPI_CADENCE_QUADSPI is not set
+# CONFIG_MTD_UBI is not set
+CONFIG_DISK=y
+CONFIG_DISK_WRITE=y
+
+#
+# drive types
+#
+# CONFIG_DISK_ATA is not set
+# CONFIG_DISK_AHCI is not set
+
+#
+# interface types
+#
+# CONFIG_DISK_INTF_PLATFORM_IDE is not set
+# CONFIG_USB_HOST is not set
+# CONFIG_USB_GADGET is not set
+# CONFIG_USB_MUSB is not set
+# CONFIG_VIDEO is not set
+CONFIG_MCI_SDHCI=y
+CONFIG_MCI=y
+
+#
+# --- Feature list ---
+#
+# CONFIG_MCI_STARTUP is not set
+CONFIG_MCI_INFO=y
+CONFIG_MCI_WRITE=y
+CONFIG_MCI_MMC_BOOT_PARTITIONS=y
+
+#
+# --- MCI host drivers ---
+#
+# CONFIG_MCI_DW is not set
+CONFIG_MCI_ATMEL=y
+CONFIG_MCI_ATMEL_SDHCI=y
+# CONFIG_MCI_ARASAN is not set
+# CONFIG_MCI_SPI is not set
+CONFIG_MCI_ATMEL_SDHCI_PBL=y
+CONFIG_HAVE_CLK=y
+CONFIG_CLKDEV_LOOKUP=y
+CONFIG_COMMON_CLK=y
+CONFIG_COMMON_CLK_OF_PROVIDER=y
+
+#
+# Clocksource
+#
+CONFIG_CLOCKSOURCE_DUMMY_RATE=1000
+CONFIG_CLOCKSOURCE_ATMEL_PIT=y
+CONFIG_CLOCKSOURCE_ARM_ARCHITECTED_TIMER=y
+# CONFIG_CLOCKSOURCE_DW_APB_TIMER is not set
+# end of Clocksource
+
+#
+# Multifunction device drivers
+#
+# CONFIG_MFD_ACT8846 is not set
+# CONFIG_MFD_DA9053 is not set
+# CONFIG_MFD_DA9063 is not set
+# CONFIG_MFD_LP3972 is not set
+# CONFIG_MFD_MC13XXX is not set
+# CONFIG_MFD_MC34704 is not set
+# CONFIG_MFD_MC9SDZ60 is not set
+# CONFIG_MFD_STMPE is not set
+CONFIG_MFD_SYSCON=y
+# CONFIG_MFD_TWL4030 is not set
+# CONFIG_MFD_TWL6030 is not set
+# CONFIG_MFD_STPMIC1 is not set
+CONFIG_MFD_ATMEL_FLEXCOM=y
+# end of Multifunction device drivers
+
+#
+# Misc devices
+#
+# CONFIG_JTAG is not set
+# CONFIG_SRAM is not set
+CONFIG_STATE_DRV=y
+CONFIG_DEV_MEM=y
+# CONFIG_UBOOTVAR is not set
+# end of Misc devices
+
+CONFIG_LED=y
+CONFIG_LED_GPIO=y
+CONFIG_LED_GPIO_OF=y
+# CONFIG_LED_GPIO_RGB is not set
+# CONFIG_LED_GPIO_BICOLOR is not set
+CONFIG_LED_TRIGGERS=y
+# CONFIG_LED_PCA955X is not set
+
+#
+# EEPROM support
+#
+# CONFIG_EEPROM_AT25 is not set
+# CONFIG_EEPROM_AT24 is not set
+# end of EEPROM support
+
+#
+# Input device support
+#
+# CONFIG_KEYBOARD_GPIO is not set
+# CONFIG_KEYBOARD_QT1070 is not set
+# CONFIG_INPUT_SPECIALKEYS is not set
+# end of Input device support
+
+CONFIG_WATCHDOG=y
+# CONFIG_WATCHDOG_POLLER is not set
+CONFIG_WATCHDOG_AT91SAM9=y
+# CONFIG_WATCHDOG_DW is not set
+# CONFIG_PWM is not set
+# CONFIG_HWRNG is not set
+
+#
+# DMA support
+#
+# end of DMA support
+
+CONFIG_GPIOLIB=y
+
+#
+# GPIO
+#
+# CONFIG_GPIO_74164 is not set
+# CONFIG_GPIO_GENERIC_PLATFORM is not set
+# CONFIG_GPIO_PCA953X is not set
+# CONFIG_GPIO_PCF857X is not set
+# CONFIG_GPIO_DESIGNWARE is not set
+# CONFIG_GPIO_SX150X is not set
+# end of GPIO
+
+# CONFIG_W1 is not set
+
+#
+# Pin controllers
+#
+CONFIG_PINCTRL=y
+CONFIG_PINCTRL_AT91PIO4=y
+# CONFIG_PINCTRL_SINGLE is not set
+# end of Pin controllers
+
+# CONFIG_NVMEM is not set
+
+#
+# Bus devices
+#
+# end of Bus devices
+
+CONFIG_REGULATOR=y
+CONFIG_REGULATOR_FIXED=y
+# CONFIG_REGULATOR_ANATOP is not set
+
+#
+# Remoteproc drivers
+#
+# CONFIG_REMOTEPROC is not set
+# end of Remoteproc drivers
+
+# CONFIG_RESET_CONTROLLER is not set
+# CONFIG_RTC_CLASS is not set
+
+#
+# Firmware Drivers
+#
+# CONFIG_FIRMWARE_ALTERA_SERIAL is not set
+# end of Firmware Drivers
+
+# CONFIG_GENERIC_PHY is not set
+# CONFIG_CRYPTO_HW is not set
+
+#
+# Memory controller drivers
+#
+# end of Memory controller drivers
+
+#
+# i.MX SoC drivers
+#
+# end of i.MX SoC drivers
+
+#
+# NVME Support
+#
+# end of NVME Support
+# end of Drivers
+
+#
+# Filesystem support
+#
+CONFIG_FS=y
+CONFIG_FS_LEGACY=y
+
+#
+# Some selected filesystems still use the legacy FS API.
+#
+
+#
+# Consider updating them.
+#
+CONFIG_FS_AUTOMOUNT=y
+# CONFIG_FS_CRAMFS is not set
+CONFIG_FS_EXT4=y
+CONFIG_FS_RAMFS=y
+CONFIG_FS_DEVFS=y
+CONFIG_FS_TFTP=y
+CONFIG_FS_NFS=y
+CONFIG_FS_FAT=y
+CONFIG_FS_FAT_WRITE=y
+CONFIG_FS_FAT_LFN=y
+# CONFIG_FS_JFFS2 is not set
+# CONFIG_FS_BPKFS is not set
+# CONFIG_FS_UIMAGEFS is not set
+# CONFIG_FS_PSTORE is not set
+# CONFIG_FS_SQUASHFS is not set
+
+#
+# ZLIB support disabled
+#
+
+#
+# LZ4 support disabled
+#
+
+#
+# LZO support disabled
+#
+
+#
+# XZ support disabled
+#
+
+#
+# ZSTD support disabled
+#
+# end of Filesystem support
+
+#
+# Library routines
+#
+CONFIG_PARAMETER=y
+CONFIG_UNCOMPRESS=y
+# CONFIG_ZLIB is not set
+CONFIG_BZLIB=y
+# CONFIG_LZ4_DECOMPRESS is not set
+# CONFIG_ZSTD_DECOMPRESS is not set
+# CONFIG_XZ_DECOMPRESS is not set
+# CONFIG_BASE64 is not set
+CONFIG_PROCESS_ESCAPE_SEQUENCE=y
+CONFIG_LZO_DECOMPRESS=y
+CONFIG_FNMATCH=y
+CONFIG_QSORT=y
+# CONFIG_RATP is not set
+# CONFIG_ALLOW_PRNG_FALLBACK is not set
+# CONFIG_CRC_CCITT is not set
+# CONFIG_CRC8 is not set
+
+#
+# Library gui routines
+#
+# end of Library gui routines
+
+# CONFIG_BAREBOX_LOGO is not set
+# CONFIG_NLS is not set
+# CONFIG_BLOBGEN is not set
+CONFIG_ARCH_HAS_STACK_DUMP=y
+CONFIG_ARCH_HAS_DATA_ABORT_MASK=y
+# end of Library routines
+
+#
+# Crypto support
+#
+CONFIG_CRC32=y
+CONFIG_DIGEST=y
+CONFIG_MD5=y
+CONFIG_SHA1=y
+# CONFIG_DIGEST_CRC32_GENERIC is not set
+CONFIG_DIGEST_MD5_GENERIC=y
+CONFIG_DIGEST_SHA1_GENERIC=y
+# CONFIG_DIGEST_SHA224_GENERIC is not set
+# CONFIG_DIGEST_SHA256_GENERIC is not set
+# CONFIG_DIGEST_SHA384_GENERIC is not set
+# CONFIG_DIGEST_SHA512_GENERIC is not set
+# CONFIG_DIGEST_HMAC_GENERIC is not set
+# CONFIG_DIGEST_SHA1_ARM is not set
+# CONFIG_DIGEST_SHA256_ARM is not set
+# CONFIG_CRYPTO_KEYSTORE is not set
+# end of Crypto support
+
+#
+# Firmware files
+#
+CONFIG_EXTRA_FIRMWARE_DIR="firmware"
+# end of Firmware files
+
+#
+# Host Tools
+#
+# CONFIG_COMPILE_HOST_TOOLS is not set
+# end of Host Tools
diff --git a/configs/platform-v7a/barebox-at91.config.diff b/configs/platform-v7a/barebox-at91.config.diff
new file mode 100644
index 000000000000..3f636d86a633
--- /dev/null
+++ b/configs/platform-v7a/barebox-at91.config.diff
@@ -0,0 +1,129 @@
+e6072dae533833bfa758a60d8e3b92b6
+CONFIG_ARCH_AT91=y
+# CONFIG_ARCH_BCM283X is not set
+CONFIG_ARCH_TEXT_BASE=0x23f00000
+# CONFIG_ARM_AMBA is undefined
+# CONFIG_ARM_SECURE_MONITOR is undefined
+# CONFIG_ARM_SMCCC is undefined
+CONFIG_ARM_USE_COMPRESSED_DTB=y
+CONFIG_AT91SAM9_SMC=y
+CONFIG_AT91_MCI_PBL=y
+CONFIG_AT91_MULTI_BOARDS=y
+# CONFIG_BOARD_ARM_GENERIC_DT is not set
+CONFIG_BOOTM_OFTREE_UIMAGE=y
+CONFIG_CLOCKSOURCE_ATMEL_PIT=y
+# CONFIG_CLOCKSOURCE_BCM283X is undefined
+CONFIG_CMD_AT91CLK=y
+CONFIG_CMD_AT91_BOOT_TEST=y
+CONFIG_CMD_MENU_MANAGEMENT=y
+# CONFIG_CMD_MMC is not set
+# CONFIG_CMD_SMC is undefined
+# CONFIG_CMD_USB is undefined
+# CONFIG_CMD_USBGADGET is undefined
+CONFIG_COMMON_CLK_AT91=y
+CONFIG_COMMON_CLK_OF_PROVIDER=y
+CONFIG_COMPILE_LOGLEVEL=6
+CONFIG_DEBUG_AT91_UART_BASE=0xf8020000
+CONFIG_DEFAULT_COMPRESSION_BZIP2=y
+# CONFIG_DEFAULT_COMPRESSION_GZIP is undefined
+# CONFIG_DEFAULT_COMPRESSION_NONE is not set
+# CONFIG_DEFAULT_COMPRESSION_XZ is undefined
+CONFIG_DEFAULT_LOGLEVEL=7
+CONFIG_DRIVER_NET_MACB=y
+CONFIG_DRIVER_NET_MICREL=y
+CONFIG_DRIVER_SERIAL_ATMEL=y
+# CONFIG_DRIVER_SPI_ATMEL is not set
+# CONFIG_DRIVER_SPI_FSL_QUADSPI is not set
+# CONFIG_DRIVER_SPI_GPIO is not set
+# CONFIG_FILE_LIST is undefined
+# CONFIG_GPIO_PL061 is undefined
+# CONFIG_GPIO_RASPBERRYPI_EXP is undefined
+CONFIG_HAS_MACB=y
+CONFIG_HAVE_AT91SAM9_RST=y
+CONFIG_HAVE_AT91_AUDIO_PLL=y
+CONFIG_HAVE_AT91_DDRAMC=y
+CONFIG_HAVE_AT91_GENERATED_CLK=y
+CONFIG_HAVE_AT91_H32MX=y
+CONFIG_HAVE_AT91_I2S_MUX_CLK=y
+CONFIG_HAVE_AT91_USB_CLK=y
+CONFIG_HAVE_AT91_UTMI=y
+CONFIG_HAVE_MACH_ARM_HEAD=y
+# CONFIG_HWRNG is not set
+# CONFIG_I2C_ALGOBIT is undefined
+CONFIG_I2C_AT91=y
+# CONFIG_I2C_GPIO is not set
+# CONFIG_IMAGE_COMPRESSION_LZO is not set
+CONFIG_IMAGE_COMPRESSION_NONE=y
+CONFIG_IMD_TARGET=y
+# CONFIG_KEYBOARD_USB is undefined
+# CONFIG_LIBFDT is undefined
+# CONFIG_MACH_AT91SAM9263EK is not set
+# CONFIG_MACH_AT91SAM9X5EK is not set
+# CONFIG_MACH_MICROCHIP_KSZ9477_EVB is not set
+# CONFIG_MACH_RPI2 is undefined
+# CONFIG_MACH_RPI3 is undefined
+# CONFIG_MACH_RPI is undefined
+# CONFIG_MACH_RPI_CM3 is undefined
+# CONFIG_MACH_RPI_COMMON is undefined
+CONFIG_MACH_SAMA5D27_GIANTBOARD=y
+CONFIG_MACH_SAMA5D27_SOM1=y
+CONFIG_MCI_ATMEL=y
+CONFIG_MCI_ATMEL_SDHCI=y
+CONFIG_MCI_ATMEL_SDHCI_PBL=y
+# CONFIG_MCI_BCM283X is undefined
+# CONFIG_MCI_BCM283X_SDHOST is undefined
+# CONFIG_MCI_MMCI is undefined
+CONFIG_MCI_MMC_BOOT_PARTITIONS=y
+CONFIG_MCI_SDHCI=y
+# CONFIG_MCI_STARTUP is not set
+CONFIG_MFD_ATMEL_FLEXCOM=y
+CONFIG_MFD_SYSCON=y
+CONFIG_MTD_M25P80=y
+CONFIG_MTD_SPI_NOR=y
+# CONFIG_MTD_SPI_NOR_USE_4K_SECTORS is not set
+# CONFIG_MTD_SST25L is not set
+# CONFIG_NET_USB is undefined
+# CONFIG_NET_USB_ASIX is undefined
+# CONFIG_NET_USB_SMSC95XX is undefined
+CONFIG_OF_BAREBOX_ENV_IN_FS=y
+CONFIG_PBL_CONSOLE=y
+CONFIG_PINCTRL_AT91PIO4=y
+# CONFIG_PINCTRL_BCM283X is undefined
+CONFIG_PROMPT="barebox:"
+# CONFIG_REGULATOR_ANATOP is not set
+# CONFIG_REGULATOR_BCM283X is undefined
+CONFIG_REGULATOR_FIXED=y
+# CONFIG_SERIAL_AMBA_PL011 is undefined
+CONFIG_SOC_SAMA5=y
+CONFIG_SOC_SAMA5D2=y
+CONFIG_SPI_ATMEL_QUADSPI=y
+# CONFIG_SPI_CADENCE_QUADSPI is not set
+CONFIG_SPI_MEM=y
+# CONFIG_THUMB2_BAREBOX is undefined
+# CONFIG_USB is undefined
+# CONFIG_USBGADGET_START is undefined
+# CONFIG_USB_DWC2_GADGET is undefined
+# CONFIG_USB_DWC2_HOST is undefined
+# CONFIG_USB_DWC3 is undefined
+# CONFIG_USB_EHCI is undefined
+# CONFIG_USB_GADGET is not set
+# CONFIG_USB_GADGET_AUTOSTART is undefined
+# CONFIG_USB_GADGET_DFU is undefined
+# CONFIG_USB_GADGET_FASTBOOT is undefined
+# CONFIG_USB_GADGET_SERIAL is undefined
+# CONFIG_USB_HOST is not set
+# CONFIG_USB_HUB_USB251XB is undefined
+# CONFIG_USB_NET_AX88179_178A is undefined
+# CONFIG_USB_STORAGE is undefined
+# CONFIG_USB_ULPI is undefined
+# CONFIG_USB_XHCI is undefined
+CONFIG_WATCHDOG_AT91SAM9=y
+# CONFIG_WATCHDOG_BCM2835 is undefined
+# CONFIG_XZ_DECOMPRESS is not set
+# CONFIG_XZ_DEC_ARM is undefined
+# CONFIG_XZ_DEC_ARMTHUMB is undefined
+# CONFIG_XZ_DEC_IA64 is undefined
+# CONFIG_XZ_DEC_POWERPC is undefined
+# CONFIG_XZ_DEC_SPARC is undefined
+# CONFIG_XZ_DEC_X86 is undefined
+# CONFIG_ZLIB is not set
diff --git a/configs/platform-v7a/platformconfig b/configs/platform-v7a/platformconfig
index 1120985ee8c9..139d0fd10965 100644
--- a/configs/platform-v7a/platformconfig
+++ b/configs/platform-v7a/platformconfig
@@ -172,6 +172,7 @@ PTXCONF_BAREBOX_COMMON_MD5="907dc813298fcded06fa9c788d3fb6c8"
PTXCONF_BAREBOX_COMMON_NEEDS_HOST_LZOP=y
PTXCONF_BAREBOX_AM335X_MLO=y
PTXCONF_BAREBOX_AM335X=y
+PTXCONF_BAREBOX_AT91=y
PTXCONF_BAREBOX_MX6=y
PTXCONF_BAREBOX_RPI2=y
PTXCONF_BAREBOX_STM32MP=y
diff --git a/configs/platform-v7a/platforms/barebox-at91.in b/configs/platform-v7a/platforms/barebox-at91.in
new file mode 100644
index 000000000000..2d5bb9b4e6e9
--- /dev/null
+++ b/configs/platform-v7a/platforms/barebox-at91.in
@@ -0,0 +1,8 @@
+## SECTION=bootloader
+
+config BAREBOX_AT91
+ tristate
+ prompt "Barebox (at91)"
+ select BAREBOX_COMMON
+ help
+ Barebox image for AT91 SoCs
diff --git a/configs/platform-v7a/rules/barebox-at91.make b/configs/platform-v7a/rules/barebox-at91.make
new file mode 100644
index 000000000000..25d6c3f4cba6
--- /dev/null
+++ b/configs/platform-v7a/rules/barebox-at91.make
@@ -0,0 +1,108 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2017 by Sascha Hauer <s.hauer@pengutronix.de>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_BAREBOX_AT91) += barebox-at91
+
+#
+# Paths and names
+#
+BAREBOX_AT91_VERSION := $(call remove_quotes,$(PTXCONF_BAREBOX_COMMON_VERSION))
+BAREBOX_AT91_MD5 := $(call remove_quotes,$(PTXCONF_BAREBOX_COMMON_MD5))
+BAREBOX_AT91 := barebox-$(BAREBOX_AT91_VERSION)
+BAREBOX_AT91_SUFFIX := tar.bz2
+BAREBOX_AT91_DIR := $(BUILDDIR)/barebox-at91-$(BAREBOX_AT91_VERSION)
+BAREBOX_AT91_CONFIG := $(call ptx/in-platformconfigdir, barebox-at91.config)
+BAREBOX_AT91_REF_CONFIG := $(call ptx/in-platformconfigdir, barebox.config)
+BAREBOX_AT91_LICENSE := GPL-2.0
+BAREBOX_AT91_URL := $(call barebox-url, BAREBOX_AT91)
+BAREBOX_AT91_SOURCE := $(SRCDIR)/$(BAREBOX_AT91).$(BAREBOX_AT91_SUFFIX)
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+BAREBOX_AT91_WRAPPER_BLACKLIST := \
+ TARGET_HARDEN_RELRO \
+ TARGET_HARDEN_BINDNOW \
+ TARGET_HARDEN_PIE \
+ TARGET_DEBUG \
+ TARGET_BUILD_ID
+
+BAREBOX_AT91_CONF_ENV := KCONFIG_NOTIMESTAMP=1
+BAREBOX_AT91_CONF_OPT := $(call barebox-opts, BAREBOX_AT91)
+
+BAREBOX_AT91_MAKE_ENV := $(BAREBOX_AT91_CONF_ENV)
+BAREBOX_AT91_MAKE_OPT := $(BAREBOX_AT91_CONF_OPT)
+
+BAREBOX_AT91_IMAGES := \
+ images/barebox-sama5d27-som1-ek.img \
+ images/barebox-sama5d27-som1-ek-xload-mmc.img \
+ images/barebox-groboards-sama5d27-giantboard.img \
+ images/barebox-groboards-sama5d27-giantboard-xload-mmc.img
+
+BAREBOX_AT91_IMAGES := $(addprefix $(BAREBOX_AT91_DIR)/,$(BAREBOX_AT91_IMAGES))
+
+ifdef PTXCONF_BAREBOX_AT91
+$(BAREBOX_AT91_CONFIG):
+ @echo
+ @echo "****************************************************************************"
+ @echo " Please generate a bareboxconfig with 'ptxdist menuconfig barebox-at91'"
+ @echo "****************************************************************************"
+ @echo
+ @echo
+ @exit 1
+endif
+
+$(STATEDIR)/barebox-at91.prepare: $(BAREBOX_AT91_CONFIG)
+ @$(call targetinfo)
+ @rm -f "$(BAREBOX_AT91_DIR)/.ptxdist-defaultenv"
+ @ln -s "$(call ptx/in-platformconfigdir, barebox-at91-defaultenv)" \
+ "$(BAREBOX_AT91_DIR)/.ptxdist-defaultenv"
+ @$(call world/prepare, BAREBOX_AT91)
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/barebox-at91.install:
+ @$(call targetinfo)
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Targetinstall
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/barebox-at91.targetinstall:
+ @$(call targetinfo)
+ @$(foreach image, $(BAREBOX_AT91_IMAGES), \
+ install -m 644 \
+ $(image) $(IMAGEDIR)/$(notdir $(image));)
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Clean
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/barebox-at91.clean:
+ @$(call targetinfo)
+ @$(call clean_pkg, BAREBOX_AT91)
+ @$(foreach image, $(BAREBOX_AT91_IMAGES), \
+ rm -fv $(IMAGEDIR)/$(notdir $(image))-at91;)
+
+# ----------------------------------------------------------------------------
+# oldconfig / menuconfig
+# ----------------------------------------------------------------------------
+
+barebox-at91_oldconfig barebox-at91_menuconfig barebox-at91_nconfig: $(STATEDIR)/barebox-at91.extract
+ @$(call world/kconfig, BAREBOX_AT91, $(subst barebox-at91_,,$@))
+
+# vim: syntax=make
--
2.28.0
_______________________________________________
DistroKit mailing list
DistroKit@pengutronix.de
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [DistroKit] [PATCH 2/6] v7a: barebox: add new rule for sama5d2 support
2020-09-29 6:02 ` [DistroKit] [PATCH 2/6] v7a: barebox: add new rule for sama5d2 support Ahmad Fatoum
@ 2020-09-29 10:33 ` Roland Hieber
0 siblings, 0 replies; 14+ messages in thread
From: Roland Hieber @ 2020-09-29 10:33 UTC (permalink / raw)
To: Ahmad Fatoum; +Cc: distrokit
On Tue, Sep 29, 2020 at 08:02:32AM +0200, Ahmad Fatoum wrote:
[...]
> diff --git a/configs/platform-v7a/rules/barebox-at91.make b/configs/platform-v7a/rules/barebox-at91.make
> new file mode 100644
> index 000000000000..25d6c3f4cba6
> --- /dev/null
> +++ b/configs/platform-v7a/rules/barebox-at91.make
> @@ -0,0 +1,108 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2017 by Sascha Hauer <s.hauer@pengutronix.de>
Hello Sascha :-)
--
Roland Hieber, Pengutronix e.K. | r.hieber@pengutronix.de |
Steuerwalder Str. 21 | https://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
DistroKit mailing list
DistroKit@pengutronix.de
^ permalink raw reply [flat|nested] 14+ messages in thread
* [DistroKit] [PATCH 3/6] v7a: kernel: extend for sama5d2 support
2020-09-29 6:02 [DistroKit] [PATCH 1/6] v7a: barebox: version bump v2020.08.1 → v2020.09.0 Ahmad Fatoum
2020-09-29 6:02 ` [DistroKit] [PATCH 2/6] v7a: barebox: add new rule for sama5d2 support Ahmad Fatoum
@ 2020-09-29 6:02 ` Ahmad Fatoum
2020-09-29 10:36 ` Roland Hieber
2020-09-29 6:02 ` [DistroKit] [PATCH 4/6] v7a: generate image for sama5d27 SOM1 Evaluation Kit Ahmad Fatoum
` (2 subsequent siblings)
4 siblings, 1 reply; 14+ messages in thread
From: Ahmad Fatoum @ 2020-09-29 6:02 UTC (permalink / raw)
To: distrokit; +Cc: Ahmad Fatoum
In preparation for generating images for the sama5d27, have our
multiplatform kernel configuration target the sama5d2 as well.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
configs/platform-v7a/kernelconfig | 131 ++++++++++++++++++++++++++++--
1 file changed, 126 insertions(+), 5 deletions(-)
diff --git a/configs/platform-v7a/kernelconfig b/configs/platform-v7a/kernelconfig
index a9ebdecde2f0..49871455ea2f 100644
--- a/configs/platform-v7a/kernelconfig
+++ b/configs/platform-v7a/kernelconfig
@@ -280,7 +280,26 @@ CONFIG_ARCH_MULTI_V6_V7=y
# CONFIG_ARCH_ALPINE is not set
# CONFIG_ARCH_ARTPEC is not set
# CONFIG_ARCH_ASPEED is not set
-# CONFIG_ARCH_AT91 is not set
+CONFIG_ARCH_AT91=y
+CONFIG_SOC_SAMA5D2=y
+# CONFIG_SOC_SAMA5D3 is not set
+# CONFIG_SOC_SAMA5D4 is not set
+
+#
+# Clocksource driver selection
+#
+CONFIG_ATMEL_CLOCKSOURCE_PIT=y
+CONFIG_ATMEL_CLOCKSOURCE_TCB=y
+CONFIG_HAVE_AT91_UTMI=y
+CONFIG_HAVE_AT91_USB_CLK=y
+CONFIG_COMMON_CLK_AT91=y
+CONFIG_HAVE_AT91_H32MX=y
+CONFIG_HAVE_AT91_GENERATED_CLK=y
+CONFIG_HAVE_AT91_AUDIO_PLL=y
+CONFIG_HAVE_AT91_I2S_MUX_CLK=y
+CONFIG_SOC_SAM_V7=y
+CONFIG_SOC_SAMA5=y
+CONFIG_ATMEL_PM=y
CONFIG_ARCH_BCM=y
#
@@ -605,6 +624,7 @@ CONFIG_DT_IDLE_STATES=y
CONFIG_ARM_CPUIDLE=y
# CONFIG_ARM_PSCI_CPUIDLE is not set
# CONFIG_ARM_HIGHBANK_CPUIDLE is not set
+CONFIG_ARM_AT91_CPUIDLE=y
# end of ARM CPU Idle Drivers
# end of CPU Idle
# end of CPU Power Management
@@ -1290,8 +1310,10 @@ CONFIG_BLK_DEV_LOOP_MIN_COUNT=8
# Misc devices
#
# CONFIG_AD525X_DPOT is not set
+# CONFIG_ATMEL_TCLIB is not set
# CONFIG_DUMMY_IRQ is not set
# CONFIG_ICS932S401 is not set
+# CONFIG_ATMEL_SSC is not set
# CONFIG_ENCLOSURE_SERVICES is not set
# CONFIG_APDS9802ALS is not set
# CONFIG_ISL29003 is not set
@@ -1389,7 +1411,9 @@ CONFIG_ETHERNET=y
# CONFIG_NET_VENDOR_ARC is not set
# CONFIG_NET_VENDOR_AURORA is not set
# CONFIG_NET_VENDOR_BROADCOM is not set
-# CONFIG_NET_VENDOR_CADENCE is not set
+CONFIG_NET_VENDOR_CADENCE=y
+CONFIG_MACB=y
+CONFIG_MACB_USE_HWSTAMP=y
# CONFIG_NET_VENDOR_CAVIUM is not set
# CONFIG_NET_VENDOR_CIRRUS is not set
# CONFIG_NET_VENDOR_CORTINA is not set
@@ -1645,6 +1669,10 @@ CONFIG_SERIAL_8250_FSL=y
CONFIG_SERIAL_AMBA_PL011=y
CONFIG_SERIAL_AMBA_PL011_CONSOLE=y
# CONFIG_SERIAL_EARLYCON_ARM_SEMIHOST is not set
+CONFIG_SERIAL_ATMEL=y
+CONFIG_SERIAL_ATMEL_CONSOLE=y
+CONFIG_SERIAL_ATMEL_PDC=y
+CONFIG_SERIAL_ATMEL_TTYAT=y
# CONFIG_SERIAL_MAX3100 is not set
# CONFIG_SERIAL_MAX310X is not set
CONFIG_SERIAL_IMX=y
@@ -1685,6 +1713,7 @@ CONFIG_NULL_TTY=y
# CONFIG_IPMB_DEVICE_INTERFACE is not set
CONFIG_HW_RANDOM=y
# CONFIG_HW_RANDOM_TIMERIOMEM is not set
+CONFIG_HW_RANDOM_ATMEL=y
CONFIG_HW_RANDOM_BCM2835=y
# CONFIG_HW_RANDOM_IPROC_RNG200 is not set
CONFIG_HW_RANDOM_OMAP=y
@@ -1717,6 +1746,8 @@ CONFIG_I2C_HELPER_AUTO=y
#
# I2C system bus drivers (mostly embedded / system-on-chip)
#
+CONFIG_I2C_AT91=y
+# CONFIG_I2C_AT91_SLAVE_EXPERIMENTAL is not set
CONFIG_I2C_BCM2835=y
CONFIG_I2C_BRCMSTB=y
# CONFIG_I2C_CBUS_GPIO is not set
@@ -1767,6 +1798,9 @@ CONFIG_SPI_MASTER=y
# SPI Master Controller Drivers
#
# CONFIG_SPI_ALTERA is not set
+CONFIG_SPI_ATMEL=y
+# CONFIG_SPI_AT91_USART is not set
+CONFIG_SPI_ATMEL_QUADSPI=y
# CONFIG_SPI_AXI_SPI_ENGINE is not set
CONFIG_SPI_BCM2835=y
CONFIG_SPI_BCM2835AUX=y
@@ -1841,6 +1875,8 @@ CONFIG_GENERIC_PINMUX_FUNCTIONS=y
CONFIG_PINCONF=y
CONFIG_GENERIC_PINCONF=y
# CONFIG_DEBUG_PINCTRL is not set
+# CONFIG_PINCTRL_AT91 is not set
+CONFIG_PINCTRL_AT91PIO4=y
# CONFIG_PINCTRL_MCP23S08 is not set
CONFIG_PINCTRL_SINGLE=y
# CONFIG_PINCTRL_SX150X is not set
@@ -1939,6 +1975,9 @@ CONFIG_GPIO_TWL4030=y
CONFIG_POWER_AVS=y
# CONFIG_QCOM_CPR is not set
CONFIG_POWER_RESET=y
+CONFIG_POWER_RESET_AT91_POWEROFF=y
+CONFIG_POWER_RESET_AT91_RESET=y
+CONFIG_POWER_RESET_AT91_SAMA5D2_SHDWC=y
# CONFIG_POWER_RESET_BRCMKONA is not set
# CONFIG_POWER_RESET_BRCMSTB is not set
# CONFIG_POWER_RESET_GPIO is not set
@@ -2048,6 +2087,8 @@ CONFIG_WATCHDOG_OPEN_TIMEOUT=0
# CONFIG_XILINX_WATCHDOG is not set
# CONFIG_ZIIRAVE_WATCHDOG is not set
# CONFIG_ARM_SP805_WATCHDOG is not set
+# CONFIG_AT91SAM9X_WATCHDOG is not set
+CONFIG_SAMA5D4_WATCHDOG=y
# CONFIG_CADENCE_WATCHDOG is not set
# CONFIG_FTWDT010_WATCHDOG is not set
# CONFIG_DW_WATCHDOG is not set
@@ -2080,8 +2121,10 @@ CONFIG_MFD_CORE=y
# CONFIG_MFD_AS3722 is not set
# CONFIG_PMIC_ADP5520 is not set
# CONFIG_MFD_AAT2870_CORE is not set
-# CONFIG_MFD_ATMEL_FLEXCOM is not set
+CONFIG_MFD_AT91_USART=y
+CONFIG_MFD_ATMEL_FLEXCOM=y
# CONFIG_MFD_ATMEL_HLCDC is not set
+CONFIG_MFD_ATMEL_SMC=y
# CONFIG_MFD_BCM590XX is not set
# CONFIG_MFD_BD9571MWV is not set
# CONFIG_MFD_AXP20X_I2C is not set
@@ -2413,6 +2456,7 @@ CONFIG_USB_EHCI_TT_NEWSCHED=y
# CONFIG_USB_EHCI_FSL is not set
CONFIG_USB_EHCI_MXC=y
CONFIG_USB_EHCI_HCD_OMAP=y
+CONFIG_USB_EHCI_HCD_AT91=y
# CONFIG_USB_EHCI_HCD_PLATFORM is not set
# CONFIG_USB_OXU210HP_HCD is not set
# CONFIG_USB_ISP116X_HCD is not set
@@ -2448,6 +2492,8 @@ CONFIG_USB_EHCI_HCD_OMAP=y
# CONFIG_USB_CDNS3 is not set
CONFIG_USB_MUSB_HDRC=y
CONFIG_USB_MUSB_HOST=y
+# CONFIG_USB_MUSB_GADGET is not set
+# CONFIG_USB_MUSB_DUAL_ROLE is not set
#
# Platform Glue Layer
@@ -2469,9 +2515,12 @@ CONFIG_USB_DWC2_HOST=y
#
# Gadget/Dual-role mode requires USB Gadget support to be enabled
#
+# CONFIG_USB_DWC2_PERIPHERAL is not set
+# CONFIG_USB_DWC2_DUAL_ROLE is not set
# CONFIG_USB_DWC2_DEBUG is not set
# CONFIG_USB_DWC2_TRACK_MISSED_SOFS is not set
CONFIG_USB_CHIPIDEA=y
+# CONFIG_USB_CHIPIDEA_UDC is not set
CONFIG_USB_CHIPIDEA_HOST=y
CONFIG_USB_CHIPIDEA_MSM=y
CONFIG_USB_CHIPIDEA_IMX=y
@@ -2526,7 +2575,62 @@ CONFIG_USB_MXS_PHY=y
# CONFIG_USB_ULPI is not set
# end of USB Physical Layer drivers
-# CONFIG_USB_GADGET is not set
+CONFIG_USB_GADGET=y
+# CONFIG_USB_GADGET_DEBUG is not set
+# CONFIG_USB_GADGET_DEBUG_FILES is not set
+# CONFIG_USB_GADGET_DEBUG_FS is not set
+CONFIG_USB_GADGET_VBUS_DRAW=2
+CONFIG_USB_GADGET_STORAGE_NUM_BUFFERS=2
+# CONFIG_U_SERIAL_CONSOLE is not set
+
+#
+# USB Peripheral Controller
+#
+# CONFIG_USB_AT91 is not set
+CONFIG_USB_ATMEL_USBA=y
+# CONFIG_USB_FSL_USB2 is not set
+# CONFIG_USB_FUSB300 is not set
+# CONFIG_USB_FOTG210_UDC is not set
+# CONFIG_USB_GR_UDC is not set
+# CONFIG_USB_R8A66597 is not set
+# CONFIG_USB_PXA27X is not set
+# CONFIG_USB_MV_UDC is not set
+# CONFIG_USB_MV_U3D is not set
+# CONFIG_USB_SNP_UDC_PLAT is not set
+# CONFIG_USB_M66592 is not set
+# CONFIG_USB_BDC_UDC is not set
+# CONFIG_USB_NET2272 is not set
+# CONFIG_USB_GADGET_XILINX is not set
+# CONFIG_USB_MAX3420_UDC is not set
+# CONFIG_USB_DUMMY_HCD is not set
+# end of USB Peripheral Controller
+
+CONFIG_USB_LIBCOMPOSITE=m
+CONFIG_USB_F_ACM=m
+CONFIG_USB_U_SERIAL=m
+CONFIG_USB_U_ETHER=m
+CONFIG_USB_F_ECM=m
+# CONFIG_USB_CONFIGFS is not set
+
+#
+# USB Gadget precomposed configurations
+#
+# CONFIG_USB_ZERO is not set
+# CONFIG_USB_ETH is not set
+# CONFIG_USB_G_NCM is not set
+# CONFIG_USB_GADGETFS is not set
+# CONFIG_USB_FUNCTIONFS is not set
+# CONFIG_USB_MASS_STORAGE is not set
+# CONFIG_USB_G_SERIAL is not set
+# CONFIG_USB_G_PRINTER is not set
+CONFIG_USB_CDC_COMPOSITE=m
+# CONFIG_USB_G_ACM_MS is not set
+# CONFIG_USB_G_MULTI is not set
+# CONFIG_USB_G_HID is not set
+# CONFIG_USB_G_DBGP is not set
+# CONFIG_USB_RAW_GADGET is not set
+# end of USB Gadget precomposed configurations
+
# CONFIG_TYPEC is not set
CONFIG_USB_ROLE_SWITCH=y
CONFIG_MMC=y
@@ -2548,7 +2652,7 @@ CONFIG_MMC_SDHCI_IO_ACCESSORS=y
CONFIG_MMC_SDHCI_PLTFM=y
# CONFIG_MMC_SDHCI_OF_ARASAN is not set
# CONFIG_MMC_SDHCI_OF_ASPEED is not set
-# CONFIG_MMC_SDHCI_OF_AT91 is not set
+CONFIG_MMC_SDHCI_OF_AT91=y
CONFIG_MMC_SDHCI_OF_ESDHC=y
# CONFIG_MMC_SDHCI_OF_DWCMSHC is not set
# CONFIG_MMC_SDHCI_CADENCE is not set
@@ -2558,6 +2662,7 @@ CONFIG_MMC_SDHCI_ESDHC_IMX=y
CONFIG_MMC_SDHCI_IPROC=y
# CONFIG_MMC_OMAP is not set
# CONFIG_MMC_OMAP_HS is not set
+CONFIG_MMC_ATMELMCI=y
# CONFIG_MMC_MXC is not set
# CONFIG_MMC_SPI is not set
# CONFIG_MMC_DW is not set
@@ -2758,6 +2863,8 @@ CONFIG_RTC_I2C_AND_SPI=y
CONFIG_RTC_DRV_OMAP=y
# CONFIG_RTC_DRV_PL030 is not set
# CONFIG_RTC_DRV_PL031 is not set
+# CONFIG_RTC_DRV_AT91RM9200 is not set
+# CONFIG_RTC_DRV_AT91SAM9 is not set
# CONFIG_RTC_DRV_CADENCE is not set
# CONFIG_RTC_DRV_FTRTC010 is not set
# CONFIG_RTC_DRV_MXC is not set
@@ -2780,6 +2887,8 @@ CONFIG_DMA_VIRTUAL_CHANNELS=y
CONFIG_DMA_OF=y
# CONFIG_ALTERA_MSGDMA is not set
# CONFIG_AMBA_PL08X is not set
+# CONFIG_AT_HDMAC is not set
+CONFIG_AT_XDMAC=y
CONFIG_DMA_BCM2835=y
# CONFIG_DW_AXI_DMAC is not set
# CONFIG_FSL_EDMA is not set
@@ -2901,6 +3010,8 @@ CONFIG_ARM_ARCH_TIMER_EVTSTREAM=y
CONFIG_ARM_GLOBAL_TIMER=y
CONFIG_ARM_TIMER_SP804=y
CONFIG_CLKSRC_ARM_GLOBAL_TIMER_SCHED_CLOCK=y
+CONFIG_ATMEL_PIT=y
+CONFIG_ATMEL_TCB_CLKSRC=y
CONFIG_CLKSRC_VERSATILE=y
CONFIG_CLKSRC_IMX_GPT=y
# CONFIG_MICROCHIP_PIT64B is not set
@@ -2950,6 +3061,9 @@ CONFIG_STM32_RPROC=y
#
# end of Aspeed SoC drivers
+CONFIG_AT91_SOC_ID=y
+# CONFIG_AT91_SOC_SFR is not set
+
#
# Broadcom SoC drivers
#
@@ -3019,6 +3133,8 @@ CONFIG_EXTCON=y
CONFIG_MEMORY=y
CONFIG_DDR=y
# CONFIG_ARM_PL172_MPMC is not set
+CONFIG_ATMEL_SDRAMC=y
+CONFIG_ATMEL_EBI=y
CONFIG_TI_EMIF=y
CONFIG_OMAP_GPMC=y
# CONFIG_OMAP_GPMC_DEBUG is not set
@@ -3028,6 +3144,7 @@ CONFIG_PL353_SMC=y
CONFIG_PWM=y
CONFIG_PWM_SYSFS=y
# CONFIG_PWM_DEBUG is not set
+CONFIG_PWM_ATMEL=y
CONFIG_PWM_BCM2835=y
# CONFIG_PWM_FSL_FTM is not set
# CONFIG_PWM_IMX1 is not set
@@ -3048,6 +3165,7 @@ CONFIG_IRQCHIP=y
CONFIG_ARM_GIC=y
CONFIG_ARM_GIC_MAX_NR=1
# CONFIG_AL_FIC is not set
+CONFIG_ATMEL_AIC5_IRQ=y
CONFIG_OMAP_IRQCHIP=y
CONFIG_STM32_EXTI=y
# CONFIG_IMX_IRQSTEER is not set
@@ -3517,6 +3635,9 @@ CONFIG_CRYPTO_DEV_FSL_CAAM_PKC_API=y
CONFIG_CRYPTO_DEV_FSL_CAAM_RNG_API=y
# CONFIG_CRYPTO_DEV_OMAP is not set
# CONFIG_CRYPTO_DEV_SAHARA is not set
+# CONFIG_CRYPTO_DEV_ATMEL_AES is not set
+# CONFIG_CRYPTO_DEV_ATMEL_TDES is not set
+# CONFIG_CRYPTO_DEV_ATMEL_SHA is not set
# CONFIG_CRYPTO_DEV_ATMEL_ECC is not set
# CONFIG_CRYPTO_DEV_ATMEL_SHA204A is not set
# CONFIG_CRYPTO_DEV_MXS_DCP is not set
--
2.28.0
_______________________________________________
DistroKit mailing list
DistroKit@pengutronix.de
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [DistroKit] [PATCH 3/6] v7a: kernel: extend for sama5d2 support
2020-09-29 6:02 ` [DistroKit] [PATCH 3/6] v7a: kernel: extend " Ahmad Fatoum
@ 2020-09-29 10:36 ` Roland Hieber
2020-09-29 13:29 ` Ahmad Fatoum
0 siblings, 1 reply; 14+ messages in thread
From: Roland Hieber @ 2020-09-29 10:36 UTC (permalink / raw)
To: Ahmad Fatoum; +Cc: distrokit
On Tue, Sep 29, 2020 at 08:02:33AM +0200, Ahmad Fatoum wrote:
> In preparation for generating images for the sama5d27, have our
> multiplatform kernel configuration target the sama5d2 as well.
>
> Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
> ---
> configs/platform-v7a/kernelconfig | 131 ++++++++++++++++++++++++++++--
> 1 file changed, 126 insertions(+), 5 deletions(-)
>
> diff --git a/configs/platform-v7a/kernelconfig b/configs/platform-v7a/kernelconfig
> index a9ebdecde2f0..49871455ea2f 100644
> --- a/configs/platform-v7a/kernelconfig
> +++ b/configs/platform-v7a/kernelconfig
> @@ -280,7 +280,26 @@ CONFIG_ARCH_MULTI_V6_V7=y
> # CONFIG_ARCH_ALPINE is not set
> # CONFIG_ARCH_ARTPEC is not set
> # CONFIG_ARCH_ASPEED is not set
> -# CONFIG_ARCH_AT91 is not set
> +CONFIG_ARCH_AT91=y
> +CONFIG_SOC_SAMA5D2=y
> +# CONFIG_SOC_SAMA5D3 is not set
> +# CONFIG_SOC_SAMA5D4 is not set
> +
> +#
> +# Clocksource driver selection
> +#
> +CONFIG_ATMEL_CLOCKSOURCE_PIT=y
> +CONFIG_ATMEL_CLOCKSOURCE_TCB=y
> +CONFIG_HAVE_AT91_UTMI=y
> +CONFIG_HAVE_AT91_USB_CLK=y
> +CONFIG_COMMON_CLK_AT91=y
> +CONFIG_HAVE_AT91_H32MX=y
> +CONFIG_HAVE_AT91_GENERATED_CLK=y
> +CONFIG_HAVE_AT91_AUDIO_PLL=y
> +CONFIG_HAVE_AT91_I2S_MUX_CLK=y
> +CONFIG_SOC_SAM_V7=y
> +CONFIG_SOC_SAMA5=y
> +CONFIG_ATMEL_PM=y
> CONFIG_ARCH_BCM=y
>
> #
> @@ -605,6 +624,7 @@ CONFIG_DT_IDLE_STATES=y
> CONFIG_ARM_CPUIDLE=y
> # CONFIG_ARM_PSCI_CPUIDLE is not set
> # CONFIG_ARM_HIGHBANK_CPUIDLE is not set
> +CONFIG_ARM_AT91_CPUIDLE=y
> # end of ARM CPU Idle Drivers
> # end of CPU Idle
> # end of CPU Power Management
> @@ -1290,8 +1310,10 @@ CONFIG_BLK_DEV_LOOP_MIN_COUNT=8
> # Misc devices
> #
> # CONFIG_AD525X_DPOT is not set
> +# CONFIG_ATMEL_TCLIB is not set
> # CONFIG_DUMMY_IRQ is not set
> # CONFIG_ICS932S401 is not set
> +# CONFIG_ATMEL_SSC is not set
> # CONFIG_ENCLOSURE_SERVICES is not set
> # CONFIG_APDS9802ALS is not set
> # CONFIG_ISL29003 is not set
> @@ -1389,7 +1411,9 @@ CONFIG_ETHERNET=y
> # CONFIG_NET_VENDOR_ARC is not set
> # CONFIG_NET_VENDOR_AURORA is not set
> # CONFIG_NET_VENDOR_BROADCOM is not set
> -# CONFIG_NET_VENDOR_CADENCE is not set
> +CONFIG_NET_VENDOR_CADENCE=y
> +CONFIG_MACB=y
> +CONFIG_MACB_USE_HWSTAMP=y
> # CONFIG_NET_VENDOR_CAVIUM is not set
> # CONFIG_NET_VENDOR_CIRRUS is not set
> # CONFIG_NET_VENDOR_CORTINA is not set
> @@ -1645,6 +1669,10 @@ CONFIG_SERIAL_8250_FSL=y
> CONFIG_SERIAL_AMBA_PL011=y
> CONFIG_SERIAL_AMBA_PL011_CONSOLE=y
> # CONFIG_SERIAL_EARLYCON_ARM_SEMIHOST is not set
> +CONFIG_SERIAL_ATMEL=y
> +CONFIG_SERIAL_ATMEL_CONSOLE=y
> +CONFIG_SERIAL_ATMEL_PDC=y
> +CONFIG_SERIAL_ATMEL_TTYAT=y
> # CONFIG_SERIAL_MAX3100 is not set
> # CONFIG_SERIAL_MAX310X is not set
> CONFIG_SERIAL_IMX=y
> @@ -1685,6 +1713,7 @@ CONFIG_NULL_TTY=y
> # CONFIG_IPMB_DEVICE_INTERFACE is not set
> CONFIG_HW_RANDOM=y
> # CONFIG_HW_RANDOM_TIMERIOMEM is not set
> +CONFIG_HW_RANDOM_ATMEL=y
> CONFIG_HW_RANDOM_BCM2835=y
> # CONFIG_HW_RANDOM_IPROC_RNG200 is not set
> CONFIG_HW_RANDOM_OMAP=y
> @@ -1717,6 +1746,8 @@ CONFIG_I2C_HELPER_AUTO=y
> #
> # I2C system bus drivers (mostly embedded / system-on-chip)
> #
> +CONFIG_I2C_AT91=y
> +# CONFIG_I2C_AT91_SLAVE_EXPERIMENTAL is not set
> CONFIG_I2C_BCM2835=y
> CONFIG_I2C_BRCMSTB=y
> # CONFIG_I2C_CBUS_GPIO is not set
> @@ -1767,6 +1798,9 @@ CONFIG_SPI_MASTER=y
> # SPI Master Controller Drivers
> #
> # CONFIG_SPI_ALTERA is not set
> +CONFIG_SPI_ATMEL=y
> +# CONFIG_SPI_AT91_USART is not set
> +CONFIG_SPI_ATMEL_QUADSPI=y
> # CONFIG_SPI_AXI_SPI_ENGINE is not set
> CONFIG_SPI_BCM2835=y
> CONFIG_SPI_BCM2835AUX=y
> @@ -1841,6 +1875,8 @@ CONFIG_GENERIC_PINMUX_FUNCTIONS=y
> CONFIG_PINCONF=y
> CONFIG_GENERIC_PINCONF=y
> # CONFIG_DEBUG_PINCTRL is not set
> +# CONFIG_PINCTRL_AT91 is not set
> +CONFIG_PINCTRL_AT91PIO4=y
> # CONFIG_PINCTRL_MCP23S08 is not set
> CONFIG_PINCTRL_SINGLE=y
> # CONFIG_PINCTRL_SX150X is not set
> @@ -1939,6 +1975,9 @@ CONFIG_GPIO_TWL4030=y
> CONFIG_POWER_AVS=y
> # CONFIG_QCOM_CPR is not set
> CONFIG_POWER_RESET=y
> +CONFIG_POWER_RESET_AT91_POWEROFF=y
> +CONFIG_POWER_RESET_AT91_RESET=y
> +CONFIG_POWER_RESET_AT91_SAMA5D2_SHDWC=y
> # CONFIG_POWER_RESET_BRCMKONA is not set
> # CONFIG_POWER_RESET_BRCMSTB is not set
> # CONFIG_POWER_RESET_GPIO is not set
> @@ -2048,6 +2087,8 @@ CONFIG_WATCHDOG_OPEN_TIMEOUT=0
> # CONFIG_XILINX_WATCHDOG is not set
> # CONFIG_ZIIRAVE_WATCHDOG is not set
> # CONFIG_ARM_SP805_WATCHDOG is not set
> +# CONFIG_AT91SAM9X_WATCHDOG is not set
> +CONFIG_SAMA5D4_WATCHDOG=y
> # CONFIG_CADENCE_WATCHDOG is not set
> # CONFIG_FTWDT010_WATCHDOG is not set
> # CONFIG_DW_WATCHDOG is not set
> @@ -2080,8 +2121,10 @@ CONFIG_MFD_CORE=y
> # CONFIG_MFD_AS3722 is not set
> # CONFIG_PMIC_ADP5520 is not set
> # CONFIG_MFD_AAT2870_CORE is not set
> -# CONFIG_MFD_ATMEL_FLEXCOM is not set
> +CONFIG_MFD_AT91_USART=y
> +CONFIG_MFD_ATMEL_FLEXCOM=y
> # CONFIG_MFD_ATMEL_HLCDC is not set
> +CONFIG_MFD_ATMEL_SMC=y
> # CONFIG_MFD_BCM590XX is not set
> # CONFIG_MFD_BD9571MWV is not set
> # CONFIG_MFD_AXP20X_I2C is not set
> @@ -2413,6 +2456,7 @@ CONFIG_USB_EHCI_TT_NEWSCHED=y
> # CONFIG_USB_EHCI_FSL is not set
> CONFIG_USB_EHCI_MXC=y
> CONFIG_USB_EHCI_HCD_OMAP=y
> +CONFIG_USB_EHCI_HCD_AT91=y
> # CONFIG_USB_EHCI_HCD_PLATFORM is not set
> # CONFIG_USB_OXU210HP_HCD is not set
> # CONFIG_USB_ISP116X_HCD is not set
> @@ -2448,6 +2492,8 @@ CONFIG_USB_EHCI_HCD_OMAP=y
> # CONFIG_USB_CDNS3 is not set
> CONFIG_USB_MUSB_HDRC=y
> CONFIG_USB_MUSB_HOST=y
> +# CONFIG_USB_MUSB_GADGET is not set
> +# CONFIG_USB_MUSB_DUAL_ROLE is not set
>
> #
> # Platform Glue Layer
> @@ -2469,9 +2515,12 @@ CONFIG_USB_DWC2_HOST=y
> #
> # Gadget/Dual-role mode requires USB Gadget support to be enabled
> #
> +# CONFIG_USB_DWC2_PERIPHERAL is not set
> +# CONFIG_USB_DWC2_DUAL_ROLE is not set
> # CONFIG_USB_DWC2_DEBUG is not set
> # CONFIG_USB_DWC2_TRACK_MISSED_SOFS is not set
> CONFIG_USB_CHIPIDEA=y
> +# CONFIG_USB_CHIPIDEA_UDC is not set
> CONFIG_USB_CHIPIDEA_HOST=y
> CONFIG_USB_CHIPIDEA_MSM=y
> CONFIG_USB_CHIPIDEA_IMX=y
> @@ -2526,7 +2575,62 @@ CONFIG_USB_MXS_PHY=y
> # CONFIG_USB_ULPI is not set
> # end of USB Physical Layer drivers
>
> -# CONFIG_USB_GADGET is not set
> +CONFIG_USB_GADGET=y
Hmmm, is this related to AT91? Otherwise I'd do it a separate commit.
- Roland
> +# CONFIG_USB_GADGET_DEBUG is not set
> +# CONFIG_USB_GADGET_DEBUG_FILES is not set
> +# CONFIG_USB_GADGET_DEBUG_FS is not set
> +CONFIG_USB_GADGET_VBUS_DRAW=2
> +CONFIG_USB_GADGET_STORAGE_NUM_BUFFERS=2
> +# CONFIG_U_SERIAL_CONSOLE is not set
> +
> +#
> +# USB Peripheral Controller
> +#
> +# CONFIG_USB_AT91 is not set
> +CONFIG_USB_ATMEL_USBA=y
> +# CONFIG_USB_FSL_USB2 is not set
> +# CONFIG_USB_FUSB300 is not set
> +# CONFIG_USB_FOTG210_UDC is not set
> +# CONFIG_USB_GR_UDC is not set
> +# CONFIG_USB_R8A66597 is not set
> +# CONFIG_USB_PXA27X is not set
> +# CONFIG_USB_MV_UDC is not set
> +# CONFIG_USB_MV_U3D is not set
> +# CONFIG_USB_SNP_UDC_PLAT is not set
> +# CONFIG_USB_M66592 is not set
> +# CONFIG_USB_BDC_UDC is not set
> +# CONFIG_USB_NET2272 is not set
> +# CONFIG_USB_GADGET_XILINX is not set
> +# CONFIG_USB_MAX3420_UDC is not set
> +# CONFIG_USB_DUMMY_HCD is not set
> +# end of USB Peripheral Controller
> +
> +CONFIG_USB_LIBCOMPOSITE=m
> +CONFIG_USB_F_ACM=m
> +CONFIG_USB_U_SERIAL=m
> +CONFIG_USB_U_ETHER=m
> +CONFIG_USB_F_ECM=m
> +# CONFIG_USB_CONFIGFS is not set
> +
> +#
> +# USB Gadget precomposed configurations
> +#
> +# CONFIG_USB_ZERO is not set
> +# CONFIG_USB_ETH is not set
> +# CONFIG_USB_G_NCM is not set
> +# CONFIG_USB_GADGETFS is not set
> +# CONFIG_USB_FUNCTIONFS is not set
> +# CONFIG_USB_MASS_STORAGE is not set
> +# CONFIG_USB_G_SERIAL is not set
> +# CONFIG_USB_G_PRINTER is not set
> +CONFIG_USB_CDC_COMPOSITE=m
> +# CONFIG_USB_G_ACM_MS is not set
> +# CONFIG_USB_G_MULTI is not set
> +# CONFIG_USB_G_HID is not set
> +# CONFIG_USB_G_DBGP is not set
> +# CONFIG_USB_RAW_GADGET is not set
> +# end of USB Gadget precomposed configurations
> +
> # CONFIG_TYPEC is not set
> CONFIG_USB_ROLE_SWITCH=y
> CONFIG_MMC=y
> @@ -2548,7 +2652,7 @@ CONFIG_MMC_SDHCI_IO_ACCESSORS=y
> CONFIG_MMC_SDHCI_PLTFM=y
> # CONFIG_MMC_SDHCI_OF_ARASAN is not set
> # CONFIG_MMC_SDHCI_OF_ASPEED is not set
> -# CONFIG_MMC_SDHCI_OF_AT91 is not set
> +CONFIG_MMC_SDHCI_OF_AT91=y
> CONFIG_MMC_SDHCI_OF_ESDHC=y
> # CONFIG_MMC_SDHCI_OF_DWCMSHC is not set
> # CONFIG_MMC_SDHCI_CADENCE is not set
> @@ -2558,6 +2662,7 @@ CONFIG_MMC_SDHCI_ESDHC_IMX=y
> CONFIG_MMC_SDHCI_IPROC=y
> # CONFIG_MMC_OMAP is not set
> # CONFIG_MMC_OMAP_HS is not set
> +CONFIG_MMC_ATMELMCI=y
> # CONFIG_MMC_MXC is not set
> # CONFIG_MMC_SPI is not set
> # CONFIG_MMC_DW is not set
> @@ -2758,6 +2863,8 @@ CONFIG_RTC_I2C_AND_SPI=y
> CONFIG_RTC_DRV_OMAP=y
> # CONFIG_RTC_DRV_PL030 is not set
> # CONFIG_RTC_DRV_PL031 is not set
> +# CONFIG_RTC_DRV_AT91RM9200 is not set
> +# CONFIG_RTC_DRV_AT91SAM9 is not set
> # CONFIG_RTC_DRV_CADENCE is not set
> # CONFIG_RTC_DRV_FTRTC010 is not set
> # CONFIG_RTC_DRV_MXC is not set
> @@ -2780,6 +2887,8 @@ CONFIG_DMA_VIRTUAL_CHANNELS=y
> CONFIG_DMA_OF=y
> # CONFIG_ALTERA_MSGDMA is not set
> # CONFIG_AMBA_PL08X is not set
> +# CONFIG_AT_HDMAC is not set
> +CONFIG_AT_XDMAC=y
> CONFIG_DMA_BCM2835=y
> # CONFIG_DW_AXI_DMAC is not set
> # CONFIG_FSL_EDMA is not set
> @@ -2901,6 +3010,8 @@ CONFIG_ARM_ARCH_TIMER_EVTSTREAM=y
> CONFIG_ARM_GLOBAL_TIMER=y
> CONFIG_ARM_TIMER_SP804=y
> CONFIG_CLKSRC_ARM_GLOBAL_TIMER_SCHED_CLOCK=y
> +CONFIG_ATMEL_PIT=y
> +CONFIG_ATMEL_TCB_CLKSRC=y
> CONFIG_CLKSRC_VERSATILE=y
> CONFIG_CLKSRC_IMX_GPT=y
> # CONFIG_MICROCHIP_PIT64B is not set
> @@ -2950,6 +3061,9 @@ CONFIG_STM32_RPROC=y
> #
> # end of Aspeed SoC drivers
>
> +CONFIG_AT91_SOC_ID=y
> +# CONFIG_AT91_SOC_SFR is not set
> +
> #
> # Broadcom SoC drivers
> #
> @@ -3019,6 +3133,8 @@ CONFIG_EXTCON=y
> CONFIG_MEMORY=y
> CONFIG_DDR=y
> # CONFIG_ARM_PL172_MPMC is not set
> +CONFIG_ATMEL_SDRAMC=y
> +CONFIG_ATMEL_EBI=y
> CONFIG_TI_EMIF=y
> CONFIG_OMAP_GPMC=y
> # CONFIG_OMAP_GPMC_DEBUG is not set
> @@ -3028,6 +3144,7 @@ CONFIG_PL353_SMC=y
> CONFIG_PWM=y
> CONFIG_PWM_SYSFS=y
> # CONFIG_PWM_DEBUG is not set
> +CONFIG_PWM_ATMEL=y
> CONFIG_PWM_BCM2835=y
> # CONFIG_PWM_FSL_FTM is not set
> # CONFIG_PWM_IMX1 is not set
> @@ -3048,6 +3165,7 @@ CONFIG_IRQCHIP=y
> CONFIG_ARM_GIC=y
> CONFIG_ARM_GIC_MAX_NR=1
> # CONFIG_AL_FIC is not set
> +CONFIG_ATMEL_AIC5_IRQ=y
> CONFIG_OMAP_IRQCHIP=y
> CONFIG_STM32_EXTI=y
> # CONFIG_IMX_IRQSTEER is not set
> @@ -3517,6 +3635,9 @@ CONFIG_CRYPTO_DEV_FSL_CAAM_PKC_API=y
> CONFIG_CRYPTO_DEV_FSL_CAAM_RNG_API=y
> # CONFIG_CRYPTO_DEV_OMAP is not set
> # CONFIG_CRYPTO_DEV_SAHARA is not set
> +# CONFIG_CRYPTO_DEV_ATMEL_AES is not set
> +# CONFIG_CRYPTO_DEV_ATMEL_TDES is not set
> +# CONFIG_CRYPTO_DEV_ATMEL_SHA is not set
> # CONFIG_CRYPTO_DEV_ATMEL_ECC is not set
> # CONFIG_CRYPTO_DEV_ATMEL_SHA204A is not set
> # CONFIG_CRYPTO_DEV_MXS_DCP is not set
> --
> 2.28.0
>
>
> _______________________________________________
> DistroKit mailing list
> DistroKit@pengutronix.de
>
--
Roland Hieber, Pengutronix e.K. | r.hieber@pengutronix.de |
Steuerwalder Str. 21 | https://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
DistroKit mailing list
DistroKit@pengutronix.de
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [DistroKit] [PATCH 3/6] v7a: kernel: extend for sama5d2 support
2020-09-29 10:36 ` Roland Hieber
@ 2020-09-29 13:29 ` Ahmad Fatoum
0 siblings, 0 replies; 14+ messages in thread
From: Ahmad Fatoum @ 2020-09-29 13:29 UTC (permalink / raw)
To: Roland Hieber; +Cc: distrokit
On 9/29/20 12:36 PM, Roland Hieber wrote:
> On Tue, Sep 29, 2020 at 08:02:33AM +0200, Ahmad Fatoum wrote:
>> In preparation for generating images for the sama5d27, have our
>> multiplatform kernel configuration target the sama5d2 as well.
>>
>> Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
>> ---
>> configs/platform-v7a/kernelconfig | 131 ++++++++++++++++++++++++++++--
>> 1 file changed, 126 insertions(+), 5 deletions(-)
>>
>> diff --git a/configs/platform-v7a/kernelconfig b/configs/platform-v7a/kernelconfig
>> index a9ebdecde2f0..49871455ea2f 100644
>> --- a/configs/platform-v7a/kernelconfig
>> +++ b/configs/platform-v7a/kernelconfig
>> @@ -280,7 +280,26 @@ CONFIG_ARCH_MULTI_V6_V7=y
>> # CONFIG_ARCH_ALPINE is not set
>> # CONFIG_ARCH_ARTPEC is not set
>> # CONFIG_ARCH_ASPEED is not set
>> -# CONFIG_ARCH_AT91 is not set
>> +CONFIG_ARCH_AT91=y
>> +CONFIG_SOC_SAMA5D2=y
>> +# CONFIG_SOC_SAMA5D3 is not set
>> +# CONFIG_SOC_SAMA5D4 is not set
>> +
>> +#
>> +# Clocksource driver selection
>> +#
>> +CONFIG_ATMEL_CLOCKSOURCE_PIT=y
>> +CONFIG_ATMEL_CLOCKSOURCE_TCB=y
>> +CONFIG_HAVE_AT91_UTMI=y
>> +CONFIG_HAVE_AT91_USB_CLK=y
>> +CONFIG_COMMON_CLK_AT91=y
>> +CONFIG_HAVE_AT91_H32MX=y
>> +CONFIG_HAVE_AT91_GENERATED_CLK=y
>> +CONFIG_HAVE_AT91_AUDIO_PLL=y
>> +CONFIG_HAVE_AT91_I2S_MUX_CLK=y
>> +CONFIG_SOC_SAM_V7=y
>> +CONFIG_SOC_SAMA5=y
>> +CONFIG_ATMEL_PM=y
>> CONFIG_ARCH_BCM=y
>>
>> #
>> @@ -605,6 +624,7 @@ CONFIG_DT_IDLE_STATES=y
>> CONFIG_ARM_CPUIDLE=y
>> # CONFIG_ARM_PSCI_CPUIDLE is not set
>> # CONFIG_ARM_HIGHBANK_CPUIDLE is not set
>> +CONFIG_ARM_AT91_CPUIDLE=y
>> # end of ARM CPU Idle Drivers
>> # end of CPU Idle
>> # end of CPU Power Management
>> @@ -1290,8 +1310,10 @@ CONFIG_BLK_DEV_LOOP_MIN_COUNT=8
>> # Misc devices
>> #
>> # CONFIG_AD525X_DPOT is not set
>> +# CONFIG_ATMEL_TCLIB is not set
>> # CONFIG_DUMMY_IRQ is not set
>> # CONFIG_ICS932S401 is not set
>> +# CONFIG_ATMEL_SSC is not set
>> # CONFIG_ENCLOSURE_SERVICES is not set
>> # CONFIG_APDS9802ALS is not set
>> # CONFIG_ISL29003 is not set
>> @@ -1389,7 +1411,9 @@ CONFIG_ETHERNET=y
>> # CONFIG_NET_VENDOR_ARC is not set
>> # CONFIG_NET_VENDOR_AURORA is not set
>> # CONFIG_NET_VENDOR_BROADCOM is not set
>> -# CONFIG_NET_VENDOR_CADENCE is not set
>> +CONFIG_NET_VENDOR_CADENCE=y
>> +CONFIG_MACB=y
>> +CONFIG_MACB_USE_HWSTAMP=y
>> # CONFIG_NET_VENDOR_CAVIUM is not set
>> # CONFIG_NET_VENDOR_CIRRUS is not set
>> # CONFIG_NET_VENDOR_CORTINA is not set
>> @@ -1645,6 +1669,10 @@ CONFIG_SERIAL_8250_FSL=y
>> CONFIG_SERIAL_AMBA_PL011=y
>> CONFIG_SERIAL_AMBA_PL011_CONSOLE=y
>> # CONFIG_SERIAL_EARLYCON_ARM_SEMIHOST is not set
>> +CONFIG_SERIAL_ATMEL=y
>> +CONFIG_SERIAL_ATMEL_CONSOLE=y
>> +CONFIG_SERIAL_ATMEL_PDC=y
>> +CONFIG_SERIAL_ATMEL_TTYAT=y
>> # CONFIG_SERIAL_MAX3100 is not set
>> # CONFIG_SERIAL_MAX310X is not set
>> CONFIG_SERIAL_IMX=y
>> @@ -1685,6 +1713,7 @@ CONFIG_NULL_TTY=y
>> # CONFIG_IPMB_DEVICE_INTERFACE is not set
>> CONFIG_HW_RANDOM=y
>> # CONFIG_HW_RANDOM_TIMERIOMEM is not set
>> +CONFIG_HW_RANDOM_ATMEL=y
>> CONFIG_HW_RANDOM_BCM2835=y
>> # CONFIG_HW_RANDOM_IPROC_RNG200 is not set
>> CONFIG_HW_RANDOM_OMAP=y
>> @@ -1717,6 +1746,8 @@ CONFIG_I2C_HELPER_AUTO=y
>> #
>> # I2C system bus drivers (mostly embedded / system-on-chip)
>> #
>> +CONFIG_I2C_AT91=y
>> +# CONFIG_I2C_AT91_SLAVE_EXPERIMENTAL is not set
>> CONFIG_I2C_BCM2835=y
>> CONFIG_I2C_BRCMSTB=y
>> # CONFIG_I2C_CBUS_GPIO is not set
>> @@ -1767,6 +1798,9 @@ CONFIG_SPI_MASTER=y
>> # SPI Master Controller Drivers
>> #
>> # CONFIG_SPI_ALTERA is not set
>> +CONFIG_SPI_ATMEL=y
>> +# CONFIG_SPI_AT91_USART is not set
>> +CONFIG_SPI_ATMEL_QUADSPI=y
>> # CONFIG_SPI_AXI_SPI_ENGINE is not set
>> CONFIG_SPI_BCM2835=y
>> CONFIG_SPI_BCM2835AUX=y
>> @@ -1841,6 +1875,8 @@ CONFIG_GENERIC_PINMUX_FUNCTIONS=y
>> CONFIG_PINCONF=y
>> CONFIG_GENERIC_PINCONF=y
>> # CONFIG_DEBUG_PINCTRL is not set
>> +# CONFIG_PINCTRL_AT91 is not set
>> +CONFIG_PINCTRL_AT91PIO4=y
>> # CONFIG_PINCTRL_MCP23S08 is not set
>> CONFIG_PINCTRL_SINGLE=y
>> # CONFIG_PINCTRL_SX150X is not set
>> @@ -1939,6 +1975,9 @@ CONFIG_GPIO_TWL4030=y
>> CONFIG_POWER_AVS=y
>> # CONFIG_QCOM_CPR is not set
>> CONFIG_POWER_RESET=y
>> +CONFIG_POWER_RESET_AT91_POWEROFF=y
>> +CONFIG_POWER_RESET_AT91_RESET=y
>> +CONFIG_POWER_RESET_AT91_SAMA5D2_SHDWC=y
>> # CONFIG_POWER_RESET_BRCMKONA is not set
>> # CONFIG_POWER_RESET_BRCMSTB is not set
>> # CONFIG_POWER_RESET_GPIO is not set
>> @@ -2048,6 +2087,8 @@ CONFIG_WATCHDOG_OPEN_TIMEOUT=0
>> # CONFIG_XILINX_WATCHDOG is not set
>> # CONFIG_ZIIRAVE_WATCHDOG is not set
>> # CONFIG_ARM_SP805_WATCHDOG is not set
>> +# CONFIG_AT91SAM9X_WATCHDOG is not set
>> +CONFIG_SAMA5D4_WATCHDOG=y
>> # CONFIG_CADENCE_WATCHDOG is not set
>> # CONFIG_FTWDT010_WATCHDOG is not set
>> # CONFIG_DW_WATCHDOG is not set
>> @@ -2080,8 +2121,10 @@ CONFIG_MFD_CORE=y
>> # CONFIG_MFD_AS3722 is not set
>> # CONFIG_PMIC_ADP5520 is not set
>> # CONFIG_MFD_AAT2870_CORE is not set
>> -# CONFIG_MFD_ATMEL_FLEXCOM is not set
>> +CONFIG_MFD_AT91_USART=y
>> +CONFIG_MFD_ATMEL_FLEXCOM=y
>> # CONFIG_MFD_ATMEL_HLCDC is not set
>> +CONFIG_MFD_ATMEL_SMC=y
>> # CONFIG_MFD_BCM590XX is not set
>> # CONFIG_MFD_BD9571MWV is not set
>> # CONFIG_MFD_AXP20X_I2C is not set
>> @@ -2413,6 +2456,7 @@ CONFIG_USB_EHCI_TT_NEWSCHED=y
>> # CONFIG_USB_EHCI_FSL is not set
>> CONFIG_USB_EHCI_MXC=y
>> CONFIG_USB_EHCI_HCD_OMAP=y
>> +CONFIG_USB_EHCI_HCD_AT91=y
>> # CONFIG_USB_EHCI_HCD_PLATFORM is not set
>> # CONFIG_USB_OXU210HP_HCD is not set
>> # CONFIG_USB_ISP116X_HCD is not set
>> @@ -2448,6 +2492,8 @@ CONFIG_USB_EHCI_HCD_OMAP=y
>> # CONFIG_USB_CDNS3 is not set
>> CONFIG_USB_MUSB_HDRC=y
>> CONFIG_USB_MUSB_HOST=y
>> +# CONFIG_USB_MUSB_GADGET is not set
>> +# CONFIG_USB_MUSB_DUAL_ROLE is not set
>>
>> #
>> # Platform Glue Layer
>> @@ -2469,9 +2515,12 @@ CONFIG_USB_DWC2_HOST=y
>> #
>> # Gadget/Dual-role mode requires USB Gadget support to be enabled
>> #
>> +# CONFIG_USB_DWC2_PERIPHERAL is not set
>> +# CONFIG_USB_DWC2_DUAL_ROLE is not set
>> # CONFIG_USB_DWC2_DEBUG is not set
>> # CONFIG_USB_DWC2_TRACK_MISSED_SOFS is not set
>> CONFIG_USB_CHIPIDEA=y
>> +# CONFIG_USB_CHIPIDEA_UDC is not set
>> CONFIG_USB_CHIPIDEA_HOST=y
>> CONFIG_USB_CHIPIDEA_MSM=y
>> CONFIG_USB_CHIPIDEA_IMX=y
>> @@ -2526,7 +2575,62 @@ CONFIG_USB_MXS_PHY=y
>> # CONFIG_USB_ULPI is not set
>> # end of USB Physical Layer drivers
>>
>> -# CONFIG_USB_GADGET is not set
>> +CONFIG_USB_GADGET=y
>
> Hmmm, is this related to AT91? Otherwise I'd do it a separate commit.
CONFIG_USB_ATMEL_USBA=y depends on this. The giantboard doesn't have
any standard connectivity but a USB gadget port, so I figured I'd turn
this on.
>
> - Roland
>
>
>> +# CONFIG_USB_GADGET_DEBUG is not set
>> +# CONFIG_USB_GADGET_DEBUG_FILES is not set
>> +# CONFIG_USB_GADGET_DEBUG_FS is not set
>> +CONFIG_USB_GADGET_VBUS_DRAW=2
>> +CONFIG_USB_GADGET_STORAGE_NUM_BUFFERS=2
>> +# CONFIG_U_SERIAL_CONSOLE is not set
>> +
>> +#
>> +# USB Peripheral Controller
>> +#
>> +# CONFIG_USB_AT91 is not set
>> +CONFIG_USB_ATMEL_USBA=y
>> +# CONFIG_USB_FSL_USB2 is not set
>> +# CONFIG_USB_FUSB300 is not set
>> +# CONFIG_USB_FOTG210_UDC is not set
>> +# CONFIG_USB_GR_UDC is not set
>> +# CONFIG_USB_R8A66597 is not set
>> +# CONFIG_USB_PXA27X is not set
>> +# CONFIG_USB_MV_UDC is not set
>> +# CONFIG_USB_MV_U3D is not set
>> +# CONFIG_USB_SNP_UDC_PLAT is not set
>> +# CONFIG_USB_M66592 is not set
>> +# CONFIG_USB_BDC_UDC is not set
>> +# CONFIG_USB_NET2272 is not set
>> +# CONFIG_USB_GADGET_XILINX is not set
>> +# CONFIG_USB_MAX3420_UDC is not set
>> +# CONFIG_USB_DUMMY_HCD is not set
>> +# end of USB Peripheral Controller
>> +
>> +CONFIG_USB_LIBCOMPOSITE=m
>> +CONFIG_USB_F_ACM=m
>> +CONFIG_USB_U_SERIAL=m
>> +CONFIG_USB_U_ETHER=m
>> +CONFIG_USB_F_ECM=m
>> +# CONFIG_USB_CONFIGFS is not set
>> +
>> +#
>> +# USB Gadget precomposed configurations
>> +#
>> +# CONFIG_USB_ZERO is not set
>> +# CONFIG_USB_ETH is not set
>> +# CONFIG_USB_G_NCM is not set
>> +# CONFIG_USB_GADGETFS is not set
>> +# CONFIG_USB_FUNCTIONFS is not set
>> +# CONFIG_USB_MASS_STORAGE is not set
>> +# CONFIG_USB_G_SERIAL is not set
>> +# CONFIG_USB_G_PRINTER is not set
>> +CONFIG_USB_CDC_COMPOSITE=m
>> +# CONFIG_USB_G_ACM_MS is not set
>> +# CONFIG_USB_G_MULTI is not set
>> +# CONFIG_USB_G_HID is not set
>> +# CONFIG_USB_G_DBGP is not set
>> +# CONFIG_USB_RAW_GADGET is not set
>> +# end of USB Gadget precomposed configurations
>> +
>> # CONFIG_TYPEC is not set
>> CONFIG_USB_ROLE_SWITCH=y
>> CONFIG_MMC=y
>> @@ -2548,7 +2652,7 @@ CONFIG_MMC_SDHCI_IO_ACCESSORS=y
>> CONFIG_MMC_SDHCI_PLTFM=y
>> # CONFIG_MMC_SDHCI_OF_ARASAN is not set
>> # CONFIG_MMC_SDHCI_OF_ASPEED is not set
>> -# CONFIG_MMC_SDHCI_OF_AT91 is not set
>> +CONFIG_MMC_SDHCI_OF_AT91=y
>> CONFIG_MMC_SDHCI_OF_ESDHC=y
>> # CONFIG_MMC_SDHCI_OF_DWCMSHC is not set
>> # CONFIG_MMC_SDHCI_CADENCE is not set
>> @@ -2558,6 +2662,7 @@ CONFIG_MMC_SDHCI_ESDHC_IMX=y
>> CONFIG_MMC_SDHCI_IPROC=y
>> # CONFIG_MMC_OMAP is not set
>> # CONFIG_MMC_OMAP_HS is not set
>> +CONFIG_MMC_ATMELMCI=y
>> # CONFIG_MMC_MXC is not set
>> # CONFIG_MMC_SPI is not set
>> # CONFIG_MMC_DW is not set
>> @@ -2758,6 +2863,8 @@ CONFIG_RTC_I2C_AND_SPI=y
>> CONFIG_RTC_DRV_OMAP=y
>> # CONFIG_RTC_DRV_PL030 is not set
>> # CONFIG_RTC_DRV_PL031 is not set
>> +# CONFIG_RTC_DRV_AT91RM9200 is not set
>> +# CONFIG_RTC_DRV_AT91SAM9 is not set
>> # CONFIG_RTC_DRV_CADENCE is not set
>> # CONFIG_RTC_DRV_FTRTC010 is not set
>> # CONFIG_RTC_DRV_MXC is not set
>> @@ -2780,6 +2887,8 @@ CONFIG_DMA_VIRTUAL_CHANNELS=y
>> CONFIG_DMA_OF=y
>> # CONFIG_ALTERA_MSGDMA is not set
>> # CONFIG_AMBA_PL08X is not set
>> +# CONFIG_AT_HDMAC is not set
>> +CONFIG_AT_XDMAC=y
>> CONFIG_DMA_BCM2835=y
>> # CONFIG_DW_AXI_DMAC is not set
>> # CONFIG_FSL_EDMA is not set
>> @@ -2901,6 +3010,8 @@ CONFIG_ARM_ARCH_TIMER_EVTSTREAM=y
>> CONFIG_ARM_GLOBAL_TIMER=y
>> CONFIG_ARM_TIMER_SP804=y
>> CONFIG_CLKSRC_ARM_GLOBAL_TIMER_SCHED_CLOCK=y
>> +CONFIG_ATMEL_PIT=y
>> +CONFIG_ATMEL_TCB_CLKSRC=y
>> CONFIG_CLKSRC_VERSATILE=y
>> CONFIG_CLKSRC_IMX_GPT=y
>> # CONFIG_MICROCHIP_PIT64B is not set
>> @@ -2950,6 +3061,9 @@ CONFIG_STM32_RPROC=y
>> #
>> # end of Aspeed SoC drivers
>>
>> +CONFIG_AT91_SOC_ID=y
>> +# CONFIG_AT91_SOC_SFR is not set
>> +
>> #
>> # Broadcom SoC drivers
>> #
>> @@ -3019,6 +3133,8 @@ CONFIG_EXTCON=y
>> CONFIG_MEMORY=y
>> CONFIG_DDR=y
>> # CONFIG_ARM_PL172_MPMC is not set
>> +CONFIG_ATMEL_SDRAMC=y
>> +CONFIG_ATMEL_EBI=y
>> CONFIG_TI_EMIF=y
>> CONFIG_OMAP_GPMC=y
>> # CONFIG_OMAP_GPMC_DEBUG is not set
>> @@ -3028,6 +3144,7 @@ CONFIG_PL353_SMC=y
>> CONFIG_PWM=y
>> CONFIG_PWM_SYSFS=y
>> # CONFIG_PWM_DEBUG is not set
>> +CONFIG_PWM_ATMEL=y
>> CONFIG_PWM_BCM2835=y
>> # CONFIG_PWM_FSL_FTM is not set
>> # CONFIG_PWM_IMX1 is not set
>> @@ -3048,6 +3165,7 @@ CONFIG_IRQCHIP=y
>> CONFIG_ARM_GIC=y
>> CONFIG_ARM_GIC_MAX_NR=1
>> # CONFIG_AL_FIC is not set
>> +CONFIG_ATMEL_AIC5_IRQ=y
>> CONFIG_OMAP_IRQCHIP=y
>> CONFIG_STM32_EXTI=y
>> # CONFIG_IMX_IRQSTEER is not set
>> @@ -3517,6 +3635,9 @@ CONFIG_CRYPTO_DEV_FSL_CAAM_PKC_API=y
>> CONFIG_CRYPTO_DEV_FSL_CAAM_RNG_API=y
>> # CONFIG_CRYPTO_DEV_OMAP is not set
>> # CONFIG_CRYPTO_DEV_SAHARA is not set
>> +# CONFIG_CRYPTO_DEV_ATMEL_AES is not set
>> +# CONFIG_CRYPTO_DEV_ATMEL_TDES is not set
>> +# CONFIG_CRYPTO_DEV_ATMEL_SHA is not set
>> # CONFIG_CRYPTO_DEV_ATMEL_ECC is not set
>> # CONFIG_CRYPTO_DEV_ATMEL_SHA204A is not set
>> # CONFIG_CRYPTO_DEV_MXS_DCP is not set
>> --
>> 2.28.0
>>
>>
>> _______________________________________________
>> DistroKit mailing list
>> DistroKit@pengutronix.de
>>
>
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
DistroKit mailing list
DistroKit@pengutronix.de
^ permalink raw reply [flat|nested] 14+ messages in thread
* [DistroKit] [PATCH 4/6] v7a: generate image for sama5d27 SOM1 Evaluation Kit
2020-09-29 6:02 [DistroKit] [PATCH 1/6] v7a: barebox: version bump v2020.08.1 → v2020.09.0 Ahmad Fatoum
2020-09-29 6:02 ` [DistroKit] [PATCH 2/6] v7a: barebox: add new rule for sama5d2 support Ahmad Fatoum
2020-09-29 6:02 ` [DistroKit] [PATCH 3/6] v7a: kernel: extend " Ahmad Fatoum
@ 2020-09-29 6:02 ` Ahmad Fatoum
2020-09-29 6:02 ` [DistroKit] [PATCH 5/6] v7a: at91: add sama5d2-based giant board device tree Ahmad Fatoum
2020-09-29 6:02 ` [DistroKit] [PATCH 6/6] v7a: sama5d2: generate image for Groboard Giantboard as well Ahmad Fatoum
4 siblings, 0 replies; 14+ messages in thread
From: Ahmad Fatoum @ 2020-09-29 6:02 UTC (permalink / raw)
To: distrokit; +Cc: Ahmad Fatoum
With the previous barebox and kernel changes, we can combine it with the
DistroKit-v7a rootfs to get an image to boot on the sama5d27-som1-ek.
Do this.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
.../platform-v7a/config/images/at91-sd.config | 30 ++++++++++++++++
configs/platform-v7a/platformconfig | 4 ++-
.../platforms/blspec-sama5d27-som1-ek.in | 5 +++
.../platforms/image-sama5d27-som1-ek.in | 11 ++++++
.../loader/entries/sama5d27-som1-ek.conf | 6 ++++
.../rules/blspec-sama5d27-som1-ek.make | 36 +++++++++++++++++++
.../rules/image-sama5d27-som1-ek.make | 36 +++++++++++++++++++
7 files changed, 127 insertions(+), 1 deletion(-)
create mode 100644 configs/platform-v7a/config/images/at91-sd.config
create mode 100644 configs/platform-v7a/platforms/blspec-sama5d27-som1-ek.in
create mode 100644 configs/platform-v7a/platforms/image-sama5d27-som1-ek.in
create mode 100644 configs/platform-v7a/projectroot/loader/entries/sama5d27-som1-ek.conf
create mode 100644 configs/platform-v7a/rules/blspec-sama5d27-som1-ek.make
create mode 100644 configs/platform-v7a/rules/image-sama5d27-som1-ek.make
diff --git a/configs/platform-v7a/config/images/at91-sd.config b/configs/platform-v7a/config/images/at91-sd.config
new file mode 100644
index 000000000000..6108a20b601d
--- /dev/null
+++ b/configs/platform-v7a/config/images/at91-sd.config
@@ -0,0 +1,30 @@
+image @IMAGE@-boot.vfat {
+ vfat {
+ file BOOT.BIN { image = @FSBL@ }
+ file barebox.bin { image = @SSBL@ }
+ }
+ size = 3M
+}
+
+image @IMAGE@ {
+ hdimage {
+ align = 1M
+ disk-signature = 0x67823abf
+ }
+ partition boot {
+ image = @IMAGE@-boot.vfat
+ size = 3M
+ partition-type = 0xc
+ bootable = true
+ }
+ partition root-A {
+ image = root.ext2
+ partition-type = 0x83
+ size = 512M
+ }
+ partition data {
+ partition-type = 0x83
+ size = 512M
+ }
+}
+/* vim: set tabstop=8 noexpandtab : */
diff --git a/configs/platform-v7a/platformconfig b/configs/platform-v7a/platformconfig
index 139d0fd10965..add98b21b759 100644
--- a/configs/platform-v7a/platformconfig
+++ b/configs/platform-v7a/platformconfig
@@ -144,7 +144,7 @@ PTXCONF_KERNEL_EXTRA_MAKEVARS=""
PTXCONF_DTC=y
PTXCONF_DTC_INSTALL_OFTREE=y
PTXCONF_DTC_OFTREE_DTS_PATH="${PTXDIST_PLATFORMCONFIGDIR}/dts:${KERNEL_DIR}/arch/${GENERIC_KERNEL_ARCH}/boot/dts"
-PTXCONF_DTC_OFTREE_DTS="am335x-bone.dts am335x-boneblack.dts vexpress-v2p-ca9.dts bcm2836-rpi-2-b.dts imx6q-sabrelite.dts imx6sx-udoo-neo-full.dts imx6dl-riotboard.dts imx6q-nitrogen6x.dts imx6qp-nitrogen6_max.dts bcm2837-rpi-3-b.dts stm32mp157c-dk2.dts stm32mp157c-lxa-mc1.dts"
+PTXCONF_DTC_OFTREE_DTS="am335x-bone.dts am335x-boneblack.dts vexpress-v2p-ca9.dts bcm2836-rpi-2-b.dts imx6q-sabrelite.dts imx6sx-udoo-neo-full.dts imx6dl-riotboard.dts imx6q-nitrogen6x.dts imx6qp-nitrogen6_max.dts bcm2837-rpi-3-b.dts stm32mp157c-dk2.dts stm32mp157c-lxa-mc1.dts at91-sama5d27_som1_ek.dts"
PTXCONF_DTC_EXTRA_ARGS=""
PTXCONF_HOST_DTC=y
PTXCONF_HOST_DTC_VERSION="1.5.1"
@@ -217,6 +217,7 @@ PTXCONF_BLSPEC_RIOTBOARD=y
PTXCONF_BLSPEC_RPI2=y
PTXCONF_BLSPEC_RPI3=y
PTXCONF_BLSPEC_SABRELITE=y
+PTXCONF_BLSPEC_SAMA5D27_SOM1_EK=y
PTXCONF_BLSPEC_STM32MP157C_DK2=y
PTXCONF_BLSPEC_UDOO_NEO=y
PTXCONF_BLSPEC_VEXPRESS=y
@@ -264,6 +265,7 @@ PTXCONF_IMAGE_ROOT_TGZ_LABEL=""
PTXCONF_IMAGE_RPI2=y
PTXCONF_IMAGE_RPI3=y
PTXCONF_IMAGE_SABRELITE=y
+PTXCONF_IMAGE_SAMA5D27_SOM1_EK=y
PTXCONF_IMAGE_STM32MP157C_DK2=y
PTXCONF_IMAGE_UDOO_NEO=y
PTXCONF_IMAGE_VEXPRESS_NOR=y
diff --git a/configs/platform-v7a/platforms/blspec-sama5d27-som1-ek.in b/configs/platform-v7a/platforms/blspec-sama5d27-som1-ek.in
new file mode 100644
index 000000000000..942fc77a81c5
--- /dev/null
+++ b/configs/platform-v7a/platforms/blspec-sama5d27-som1-ek.in
@@ -0,0 +1,5 @@
+## SECTION=blspec
+
+config BLSPEC_SAMA5D27_SOM1_EK
+ tristate
+ prompt "/loader/entries/sama5d27-som1-ek.conf bootloader spec entry"
diff --git a/configs/platform-v7a/platforms/image-sama5d27-som1-ek.in b/configs/platform-v7a/platforms/image-sama5d27-som1-ek.in
new file mode 100644
index 000000000000..1170cb858359
--- /dev/null
+++ b/configs/platform-v7a/platforms/image-sama5d27-som1-ek.in
@@ -0,0 +1,11 @@
+## SECTION=image
+
+config IMAGE_SAMA5D27_SOM1_EK
+ tristate
+ select HOST_GENIMAGE
+ select IMAGE_ROOT_EXT
+ select HOST_DOSFSTOOLS
+ select BAREBOX_AT91
+ prompt "Generate images/sama5d27-som1-ek.hdimg"
+ help
+ Includes DistroKit support for the Microchip sama5d27 SOM1 evaluation Kit
diff --git a/configs/platform-v7a/projectroot/loader/entries/sama5d27-som1-ek.conf b/configs/platform-v7a/projectroot/loader/entries/sama5d27-som1-ek.conf
new file mode 100644
index 000000000000..3cbcf54294b3
--- /dev/null
+++ b/configs/platform-v7a/projectroot/loader/entries/sama5d27-som1-ek.conf
@@ -0,0 +1,6 @@
+title PTXdist - Pengutronix-DistroKit
+version @VERSION@
+options rootwait
+linux /boot/zImage
+devicetree /boot/at91-sama5d27_som1_ek.dtb
+linux-appendroot true
diff --git a/configs/platform-v7a/rules/blspec-sama5d27-som1-ek.make b/configs/platform-v7a/rules/blspec-sama5d27-som1-ek.make
new file mode 100644
index 000000000000..1c84bc7936f6
--- /dev/null
+++ b/configs/platform-v7a/rules/blspec-sama5d27-som1-ek.make
@@ -0,0 +1,36 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2020 by Ahmad Fatoum <a.fatoum@pengutronix.de>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_BLSPEC_SAMA5D27_SOM1_EK) += blspec-sama5d27-som1-ek
+
+BLSPEC_SAMA5D27_SOM1_EK_VERSION := 5.8
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/blspec-sama5d27-som1-ek.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, blspec-sama5d27-som1-ek)
+ @$(call install_fixup,blspec-sama5d27-som1-ek,PRIORITY,optional)
+ @$(call install_fixup,blspec-sama5d27-som1-ek,SECTION,base)
+ @$(call install_fixup,blspec-sama5d27-som1-ek,AUTHOR,"Ahmad Fatoum <afa@pengutronix.de>")
+ @$(call install_fixup,blspec-sama5d27-som1-ek,DESCRIPTION,missing)
+
+ @$(call install_alternative, blspec-sama5d27-som1-ek, 0, 0, 0644, \
+ /loader/entries/sama5d27-som1-ek.conf)
+
+ @$(call install_finish,blspec-sama5d27-som1-ek)
+
+ @$(call touch)
+
+# vim: syntax=make
diff --git a/configs/platform-v7a/rules/image-sama5d27-som1-ek.make b/configs/platform-v7a/rules/image-sama5d27-som1-ek.make
new file mode 100644
index 000000000000..66ac025606db
--- /dev/null
+++ b/configs/platform-v7a/rules/image-sama5d27-som1-ek.make
@@ -0,0 +1,36 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2020 by Ahmad Fatoum <a.fatoum@pengutronix.de>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+IMAGE_PACKAGES-$(PTXCONF_IMAGE_SAMA5D27_SOM1_EK) += image-sama5d27-som1-ek
+
+#
+# Paths and names
+#
+IMAGE_SAMA5D27_SOM1_EK := image-sama5d27-som1-ek
+IMAGE_SAMA5D27_SOM1_EK_DIR := $(BUILDDIR)/$(IMAGE_SAMA5D27_SOM1_EK)
+IMAGE_SAMA5D27_SOM1_EK_IMAGE := $(IMAGEDIR)/sama5d27-som1-ek.hdimg
+IMAGE_SAMA5D27_SOM1_EK_FILES := $(IMAGEDIR)/root.tgz
+IMAGE_SAMA5D27_SOM1_EK_CONFIG := at91-sd.config
+
+# ----------------------------------------------------------------------------
+# Image
+# ----------------------------------------------------------------------------
+
+IMAGE_SAMA5D27_SOM1_EK_ENV := \
+ FSBL=barebox-sama5d27-som1-ek-xload-mmc.img \
+ SSBL=barebox-sama5d27-som1-ek.img
+
+$(IMAGE_SAMA5D27_SOM1_EK_IMAGE):
+ @$(call targetinfo)
+ @$(call image/genimage, IMAGE_SAMA5D27_SOM1_EK)
+ @$(call finish)
+
+# vim: syntax=make
--
2.28.0
_______________________________________________
DistroKit mailing list
DistroKit@pengutronix.de
^ permalink raw reply [flat|nested] 14+ messages in thread
* [DistroKit] [PATCH 5/6] v7a: at91: add sama5d2-based giant board device tree
2020-09-29 6:02 [DistroKit] [PATCH 1/6] v7a: barebox: version bump v2020.08.1 → v2020.09.0 Ahmad Fatoum
` (2 preceding siblings ...)
2020-09-29 6:02 ` [DistroKit] [PATCH 4/6] v7a: generate image for sama5d27 SOM1 Evaluation Kit Ahmad Fatoum
@ 2020-09-29 6:02 ` Ahmad Fatoum
2020-09-29 6:02 ` [DistroKit] [PATCH 6/6] v7a: sama5d2: generate image for Groboard Giantboard as well Ahmad Fatoum
4 siblings, 0 replies; 14+ messages in thread
From: Ahmad Fatoum @ 2020-09-29 6:02 UTC (permalink / raw)
To: distrokit; +Cc: Ahmad Fatoum
The Groboards Giant Board is a ATSAMA5D27C-D1G SiP-based SBC.
The board features a 500MHz ARM Cortex-A5 and 128MB DDR2 SDRAM in the
SiP as well as a MicroSD slot on the PCB.
The device tree is taken from the one in barebox itself based on the
vendor's DTS available at https://github.com/Groboards/giantboard-tools
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
.../dts/at91-sama5d27_giantboard.dts | 299 ++++++++++++++++++
configs/platform-v7a/platformconfig | 2 +-
2 files changed, 300 insertions(+), 1 deletion(-)
create mode 100644 configs/platform-v7a/dts/at91-sama5d27_giantboard.dts
diff --git a/configs/platform-v7a/dts/at91-sama5d27_giantboard.dts b/configs/platform-v7a/dts/at91-sama5d27_giantboard.dts
new file mode 100644
index 000000000000..502f22e46bbc
--- /dev/null
+++ b/configs/platform-v7a/dts/at91-sama5d27_giantboard.dts
@@ -0,0 +1,299 @@
+// SPDX-License-Identifer: GPL-2.0-or-later OR X11
+/*
+ * at91-sama5d27_giantboard.dts - Device Tree file for SAMA5D27 Giant Board
+ *
+ * Copyright (c) 2017, Microchip Technology Inc.
+ * 2016 Nicolas Ferre <nicolas.ferre@atmel.com>
+ * 2017 Cristian Birsan <cristian.birsan@microchip.com>
+ * 2017 Claudiu Beznea <claudiu.beznea@microchip.com>
+ * 2019 Ahmad Fatoum <a.fatoum@pengutronix.de>
+ */
+
+/dts-v1/;
+
+#include "sama5d2.dtsi"
+#include "sama5d2-pinfunc.h"
+#include <dt-bindings/mfd/atmel-flexcom.h>
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/regulator/active-semi,8945a-regulator.h>
+
+/ {
+ model = "Giant Board";
+ compatible = "groboards,sama5d27-giantboard", "atmel,sama5d27", "atmel,sama5d2", "atmel,sama5";
+
+ chosen {
+ stdout-path = &uart1;
+ };
+
+ leds {
+ compatible = "gpio-leds";
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_led_gpio_default>;
+
+ orange {
+ label = "orange";
+ gpios = <&pioA PIN_PA6 GPIO_ACTIVE_HIGH>;
+ linux,default-trigger = "mmc0";
+ };
+ };
+
+ memory {
+ reg = <0x20000000 0x8000000>;
+ };
+};
+
+&slow_xtal {
+ clock-frequency = <32768>;
+};
+
+&main_xtal {
+ clock-frequency = <24000000>;
+};
+
+&usb0 {
+ status = "okay";
+};
+
+&sdmmc1 {
+ bus-width = <4>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_sdmmc1_default>;
+ status = "okay";
+};
+
+&spi0 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_spi0_default>;
+ status = "disabled";
+};
+
+&uart1 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_uart1_default>;
+ atmel,use-dma-rx;
+ atmel,use-dma-tx;
+ status = "okay";
+};
+
+&shutdown_controller {
+ atmel,shdwc-debouncer = <976>;
+ atmel,wakeup-rtc-timer;
+
+ input@0 {
+ reg = <0>;
+ atmel,wakeup-type = "low";
+ };
+};
+
+&watchdog {
+ status = "okay";
+};
+
+&i2c0 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_i2c0_default>;
+ dmas = <0>, <0>;
+};
+
+&i2c1 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_i2c1_default>;
+ dmas = <0>, <0>;
+ i2c-sda-hold-time-ns = <350>;
+ status = "okay";
+
+ pmic@5b {
+ compatible = "active-semi,act8945a";
+ reg = <0x5b>;
+ active-semi,vsel-low;
+
+ regulators {
+ vdd_1v8_reg: REG_DCDC1 {
+ regulator-name = "VDD_1V8";
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <1800000>;
+ regulator-always-on;
+
+ regulator-allowed-modes = <ACT8945A_REGULATOR_MODE_FIXED>,
+ <ACT8945A_REGULATOR_MODE_LOWPOWER>;
+ regulator-initial-mode = <ACT8945A_REGULATOR_MODE_FIXED>;
+
+ regulator-state-mem {
+ regulator-on-in-suspend;
+ regulator-suspend-min-microvolt=<1850000>;
+ regulator-suspend-max-microvolt=<1850000>;
+ regulator-changeable-in-suspend;
+ regulator-mode=<ACT8945A_REGULATOR_MODE_LOWPOWER>;
+ };
+ };
+
+ vdd_1v2_reg: REG_DCDC2 {
+ regulator-name = "VDD_1V2";
+ regulator-min-microvolt = <1100000>;
+ regulator-max-microvolt = <1300000>;
+ regulator-allowed-modes = <ACT8945A_REGULATOR_MODE_FIXED>,
+ <ACT8945A_REGULATOR_MODE_LOWPOWER>;
+ regulator-initial-mode = <ACT8945A_REGULATOR_MODE_FIXED>;
+ regulator-always-on;
+
+ regulator-state-mem {
+ regulator-off-in-suspend;
+ };
+ };
+
+ vdd_3v3_reg: REG_DCDC3 {
+ regulator-name = "VDD_3V3";
+ regulator-min-microvolt = <3300000>;
+ regulator-max-microvolt = <3300000>;
+ regulator-allowed-modes = <ACT8945A_REGULATOR_MODE_FIXED>,
+ <ACT8945A_REGULATOR_MODE_LOWPOWER>;
+ regulator-initial-mode = <ACT8945A_REGULATOR_MODE_FIXED>;
+ regulator-always-on;
+
+ regulator-state-mem {
+ regulator-off-in-suspend;
+ };
+ };
+
+ vdd_fuse_reg: REG_LDO1 {
+ regulator-name = "VDD_FUSE";
+ regulator-min-microvolt = <2500000>;
+ regulator-max-microvolt = <2500000>;
+ regulator-allowed-modes = <ACT8945A_REGULATOR_MODE_NORMAL>,
+ <ACT8945A_REGULATOR_MODE_LOWPOWER>;
+ regulator-initial-mode = <ACT8945A_REGULATOR_MODE_NORMAL>;
+ regulator-always-on;
+
+ regulator-state-mem {
+ regulator-off-in-suspend;
+ };
+ };
+
+ vdd_3v3_lp_reg: REG_LDO2 {
+ regulator-name = "VDD_3V3_LP";
+ regulator-min-microvolt = <3300000>;
+ regulator-max-microvolt = <3300000>;
+ regulator-allowed-modes = <ACT8945A_REGULATOR_MODE_NORMAL>,
+ <ACT8945A_REGULATOR_MODE_LOWPOWER>;
+ regulator-initial-mode = <ACT8945A_REGULATOR_MODE_NORMAL>;
+ regulator-always-on;
+
+ regulator-state-mem {
+ regulator-off-in-suspend;
+ };
+ };
+
+ vdd_led_reg: REG_LDO3 {
+ regulator-name = "VDD_LED";
+ regulator-min-microvolt = <3300000>;
+ regulator-max-microvolt = <3300000>;
+ regulator-allowed-modes = <ACT8945A_REGULATOR_MODE_NORMAL>,
+ <ACT8945A_REGULATOR_MODE_LOWPOWER>;
+ regulator-initial-mode = <ACT8945A_REGULATOR_MODE_NORMAL>;
+ regulator-always-on;
+
+ regulator-state-mem {
+ regulator-off-in-suspend;
+ };
+ };
+
+ vdd_sdhc_1v8_reg: REG_LDO4 {
+ regulator-name = "VDD_SDHC_1V8";
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <1800000>;
+ regulator-allowed-modes = <ACT8945A_REGULATOR_MODE_NORMAL>,
+ <ACT8945A_REGULATOR_MODE_LOWPOWER>;
+ regulator-initial-mode = <ACT8945A_REGULATOR_MODE_NORMAL>;
+ regulator-always-on;
+
+ regulator-state-mem {
+ regulator-off-in-suspend;
+ };
+ };
+ };
+
+ charger {
+ compatible = "active-semi,act8945a-charger";
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_charger_chglev &pinctrl_charger_lbo &pinctrl_charger_irq>;
+ interrupt-parent = <&pioA>;
+ interrupts = <PIN_PB13 IRQ_TYPE_EDGE_RISING>;
+
+ active-semi,chglev-gpios = <&pioA PIN_PA12 GPIO_ACTIVE_HIGH>;
+ active-semi,lbo-gpios = <&pioA PIN_PC8 GPIO_ACTIVE_LOW>;
+ active-semi,input-voltage-threshold-microvolt = <6600>;
+ active-semi,precondition-timeout = <40>;
+ active-semi,total-timeout = <3>;
+ };
+ };
+};
+
+&adc {
+ vddana-supply = <&vdd_3v3_reg>;
+ vref-supply = <&vdd_3v3_reg>;
+ status = "disabled";
+};
+
+&pioA {
+ pinctrl_i2c0_default: i2c0_default {
+ pinmux = <PIN_PB31__TWD0>,
+ <PIN_PC0__TWCK0>;
+ bias-disable;
+ };
+
+ pinctrl_i2c1_default: i2c1_default {
+ pinmux = <PIN_PD4__TWD1>,
+ <PIN_PD5__TWCK1>;
+ bias-disable;
+ };
+
+ pinctrl_led_gpio_default: led_gpio_default {
+ pinmux = <PIN_PA6__GPIO>;
+ bias-pull-down;
+ };
+
+ pinctrl_sdmmc1_default: sdmmc1_default {
+ cmd_data {
+ pinmux = <PIN_PA28__SDMMC1_CMD>,
+ <PIN_PA18__SDMMC1_DAT0>,
+ <PIN_PA19__SDMMC1_DAT1>,
+ <PIN_PA20__SDMMC1_DAT2>,
+ <PIN_PA21__SDMMC1_DAT3>;
+ bias-pull-up;
+ };
+
+ conf-ck_cd {
+ pinmux = <PIN_PA22__SDMMC1_CK>,
+ <PIN_PA30__SDMMC1_CD>;
+ bias-disable;
+ };
+ };
+
+ pinctrl_spi0_default: spi0_default {
+ pinmux = <PIN_PA14__SPI0_SPCK>,
+ <PIN_PA15__SPI0_MOSI>,
+ <PIN_PA16__SPI0_MISO>;
+ bias-disable;
+ };
+
+ pinctrl_uart1_default: uart1_default {
+ pinmux = <PIN_PD2__URXD1>,
+ <PIN_PD3__UTXD1>;
+ bias-disable;
+ };
+
+ pinctrl_charger_chglev: charger_chglev {
+ pinmux = <PIN_PA12__GPIO>;
+ bias-disable;
+ };
+
+ pinctrl_charger_irq: charger_irq {
+ pinmux = <PIN_PB13__GPIO>;
+ bias-disable;
+ };
+
+ pinctrl_charger_lbo: charger_lbo {
+ pinmux = <PIN_PC8__GPIO>;
+ bias-pull-up;
+ };
+};
diff --git a/configs/platform-v7a/platformconfig b/configs/platform-v7a/platformconfig
index add98b21b759..e6034c9a999c 100644
--- a/configs/platform-v7a/platformconfig
+++ b/configs/platform-v7a/platformconfig
@@ -144,7 +144,7 @@ PTXCONF_KERNEL_EXTRA_MAKEVARS=""
PTXCONF_DTC=y
PTXCONF_DTC_INSTALL_OFTREE=y
PTXCONF_DTC_OFTREE_DTS_PATH="${PTXDIST_PLATFORMCONFIGDIR}/dts:${KERNEL_DIR}/arch/${GENERIC_KERNEL_ARCH}/boot/dts"
-PTXCONF_DTC_OFTREE_DTS="am335x-bone.dts am335x-boneblack.dts vexpress-v2p-ca9.dts bcm2836-rpi-2-b.dts imx6q-sabrelite.dts imx6sx-udoo-neo-full.dts imx6dl-riotboard.dts imx6q-nitrogen6x.dts imx6qp-nitrogen6_max.dts bcm2837-rpi-3-b.dts stm32mp157c-dk2.dts stm32mp157c-lxa-mc1.dts at91-sama5d27_som1_ek.dts"
+PTXCONF_DTC_OFTREE_DTS="am335x-bone.dts am335x-boneblack.dts vexpress-v2p-ca9.dts bcm2836-rpi-2-b.dts imx6q-sabrelite.dts imx6sx-udoo-neo-full.dts imx6dl-riotboard.dts imx6q-nitrogen6x.dts imx6qp-nitrogen6_max.dts bcm2837-rpi-3-b.dts stm32mp157c-dk2.dts stm32mp157c-lxa-mc1.dts at91-sama5d27_som1_ek.dts at91-sama5d27_giantboard.dts"
PTXCONF_DTC_EXTRA_ARGS=""
PTXCONF_HOST_DTC=y
PTXCONF_HOST_DTC_VERSION="1.5.1"
--
2.28.0
_______________________________________________
DistroKit mailing list
DistroKit@pengutronix.de
^ permalink raw reply [flat|nested] 14+ messages in thread
* [DistroKit] [PATCH 6/6] v7a: sama5d2: generate image for Groboard Giantboard as well
2020-09-29 6:02 [DistroKit] [PATCH 1/6] v7a: barebox: version bump v2020.08.1 → v2020.09.0 Ahmad Fatoum
` (3 preceding siblings ...)
2020-09-29 6:02 ` [DistroKit] [PATCH 5/6] v7a: at91: add sama5d2-based giant board device tree Ahmad Fatoum
@ 2020-09-29 6:02 ` Ahmad Fatoum
2020-09-29 10:40 ` Roland Hieber
4 siblings, 1 reply; 14+ messages in thread
From: Ahmad Fatoum @ 2020-09-29 6:02 UTC (permalink / raw)
To: distrokit; +Cc: Ahmad Fatoum
Add the same bit of boilerplate we added for the EK1 to get an image
generated for the giant board as well.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
configs/platform-v7a/platformconfig | 2 ++
.../platforms/blspec-sama5d27-giantboard.in | 5 +++
.../platforms/image-sama5d27-giantboard.in | 11 ++++++
.../loader/entries/sama5d27-giantboard.conf | 6 ++++
.../rules/blspec-sama5d27-giantboard.make | 36 +++++++++++++++++++
.../rules/image-sama5d27-giantboard.make | 36 +++++++++++++++++++
6 files changed, 96 insertions(+)
create mode 100644 configs/platform-v7a/platforms/blspec-sama5d27-giantboard.in
create mode 100644 configs/platform-v7a/platforms/image-sama5d27-giantboard.in
create mode 100644 configs/platform-v7a/projectroot/loader/entries/sama5d27-giantboard.conf
create mode 100644 configs/platform-v7a/rules/blspec-sama5d27-giantboard.make
create mode 100644 configs/platform-v7a/rules/image-sama5d27-giantboard.make
diff --git a/configs/platform-v7a/platformconfig b/configs/platform-v7a/platformconfig
index e6034c9a999c..a06231d0b175 100644
--- a/configs/platform-v7a/platformconfig
+++ b/configs/platform-v7a/platformconfig
@@ -217,6 +217,7 @@ PTXCONF_BLSPEC_RIOTBOARD=y
PTXCONF_BLSPEC_RPI2=y
PTXCONF_BLSPEC_RPI3=y
PTXCONF_BLSPEC_SABRELITE=y
+PTXCONF_BLSPEC_SAMA5D27_GIANTBOARD=y
PTXCONF_BLSPEC_SAMA5D27_SOM1_EK=y
PTXCONF_BLSPEC_STM32MP157C_DK2=y
PTXCONF_BLSPEC_UDOO_NEO=y
@@ -265,6 +266,7 @@ PTXCONF_IMAGE_ROOT_TGZ_LABEL=""
PTXCONF_IMAGE_RPI2=y
PTXCONF_IMAGE_RPI3=y
PTXCONF_IMAGE_SABRELITE=y
+PTXCONF_IMAGE_SAMA5D27_GIANTBOARD=y
PTXCONF_IMAGE_SAMA5D27_SOM1_EK=y
PTXCONF_IMAGE_STM32MP157C_DK2=y
PTXCONF_IMAGE_UDOO_NEO=y
diff --git a/configs/platform-v7a/platforms/blspec-sama5d27-giantboard.in b/configs/platform-v7a/platforms/blspec-sama5d27-giantboard.in
new file mode 100644
index 000000000000..9ed66c0ce77c
--- /dev/null
+++ b/configs/platform-v7a/platforms/blspec-sama5d27-giantboard.in
@@ -0,0 +1,5 @@
+## SECTION=blspec
+
+config BLSPEC_SAMA5D27_GIANTBOARD
+ tristate
+ prompt "/loader/entries/sama5d27-giantboard.conf bootloader spec entry"
diff --git a/configs/platform-v7a/platforms/image-sama5d27-giantboard.in b/configs/platform-v7a/platforms/image-sama5d27-giantboard.in
new file mode 100644
index 000000000000..cff29c700bcd
--- /dev/null
+++ b/configs/platform-v7a/platforms/image-sama5d27-giantboard.in
@@ -0,0 +1,11 @@
+## SECTION=image
+
+config IMAGE_SAMA5D27_GIANTBOARD
+ tristate
+ select HOST_GENIMAGE
+ select IMAGE_ROOT_EXT
+ select HOST_DOSFSTOOLS
+ select BAREBOX_AT91
+ prompt "Generate images/sama5d27-giantboard.hdimg"
+ help
+ Includes DistroKit support for the Groboards sama5d27-based Giantboard
diff --git a/configs/platform-v7a/projectroot/loader/entries/sama5d27-giantboard.conf b/configs/platform-v7a/projectroot/loader/entries/sama5d27-giantboard.conf
new file mode 100644
index 000000000000..636e24195f98
--- /dev/null
+++ b/configs/platform-v7a/projectroot/loader/entries/sama5d27-giantboard.conf
@@ -0,0 +1,6 @@
+title PTXdist - Pengutronix-DistroKit
+version @VERSION@
+options rootwait
+linux /boot/zImage
+devicetree /boot/at91-sama5d27_giantboard.dtb
+linux-appendroot true
diff --git a/configs/platform-v7a/rules/blspec-sama5d27-giantboard.make b/configs/platform-v7a/rules/blspec-sama5d27-giantboard.make
new file mode 100644
index 000000000000..d944d912f5d6
--- /dev/null
+++ b/configs/platform-v7a/rules/blspec-sama5d27-giantboard.make
@@ -0,0 +1,36 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2020 by Ahmad Fatoum <a.fatoum@pengutronix.de>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_BLSPEC_SAMA5D27_GIANTBOARD) += blspec-sama5d27-giantboard
+
+BLSPEC_SAMA5D27_GIANTBOARD_VERSION := 5.8
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/blspec-sama5d27-giantboard.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, blspec-sama5d27-giantboard)
+ @$(call install_fixup,blspec-sama5d27-giantboard,PRIORITY,optional)
+ @$(call install_fixup,blspec-sama5d27-giantboard,SECTION,base)
+ @$(call install_fixup,blspec-sama5d27-giantboard,AUTHOR,"Ahmad Fatoum <afa@pengutronix.de>")
+ @$(call install_fixup,blspec-sama5d27-giantboard,DESCRIPTION,missing)
+
+ @$(call install_alternative, blspec-sama5d27-giantboard, 0, 0, 0644, \
+ /loader/entries/sama5d27-giantboard.conf)
+
+ @$(call install_finish,blspec-sama5d27-giantboard)
+
+ @$(call touch)
+
+# vim: syntax=make
diff --git a/configs/platform-v7a/rules/image-sama5d27-giantboard.make b/configs/platform-v7a/rules/image-sama5d27-giantboard.make
new file mode 100644
index 000000000000..cd7f619d02e6
--- /dev/null
+++ b/configs/platform-v7a/rules/image-sama5d27-giantboard.make
@@ -0,0 +1,36 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2020 by Ahmad Fatoum <a.fatoum@pengutronix.de>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+IMAGE_PACKAGES-$(PTXCONF_IMAGE_SAMA5D27_GIANTBOARD) += image-sama5d27-giantboard
+
+#
+# Paths and names
+#
+IMAGE_SAMA5D27_GIANTBOARD := image-sama5d27-giantboard
+IMAGE_SAMA5D27_GIANTBOARD_DIR := $(BUILDDIR)/$(IMAGE_SAMA5D27_GIANTBOARD)
+IMAGE_SAMA5D27_GIANTBOARD_IMAGE := $(IMAGEDIR)/sama5d27-giantboard.hdimg
+IMAGE_SAMA5D27_GIANTBOARD_FILES := $(IMAGEDIR)/root.tgz
+IMAGE_SAMA5D27_GIANTBOARD_CONFIG := at91-sd.config
+
+# ----------------------------------------------------------------------------
+# Image
+# ----------------------------------------------------------------------------
+
+IMAGE_SAMA5D27_GIANTBOARD_ENV := \
+ FSBL=barebox-groboards-sama5d27-giantboard-xload-mmc.img \
+ SSBL=barebox-groboards-sama5d27-giantboard.img
+
+$(IMAGE_SAMA5D27_GIANTBOARD_IMAGE):
+ @$(call targetinfo)
+ @$(call image/genimage, IMAGE_SAMA5D27_GIANTBOARD)
+ @$(call finish)
+
+# vim: syntax=make
--
2.28.0
_______________________________________________
DistroKit mailing list
DistroKit@pengutronix.de
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [DistroKit] [PATCH 6/6] v7a: sama5d2: generate image for Groboard Giantboard as well
2020-09-29 6:02 ` [DistroKit] [PATCH 6/6] v7a: sama5d2: generate image for Groboard Giantboard as well Ahmad Fatoum
@ 2020-09-29 10:40 ` Roland Hieber
2020-09-29 13:39 ` [DistroKit] [PATCH] doc: document the new SAMA5D2 boards Ahmad Fatoum
0 siblings, 1 reply; 14+ messages in thread
From: Roland Hieber @ 2020-09-29 10:40 UTC (permalink / raw)
To: Ahmad Fatoum; +Cc: distrokit
On Tue, Sep 29, 2020 at 08:02:36AM +0200, Ahmad Fatoum wrote:
> Add the same bit of boilerplate we added for the EK1 to get an image
> generated for the giant board as well.
>
> Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
> ---
> configs/platform-v7a/platformconfig | 2 ++
> .../platforms/blspec-sama5d27-giantboard.in | 5 +++
> .../platforms/image-sama5d27-giantboard.in | 11 ++++++
> .../loader/entries/sama5d27-giantboard.conf | 6 ++++
> .../rules/blspec-sama5d27-giantboard.make | 36 +++++++++++++++++++
> .../rules/image-sama5d27-giantboard.make | 36 +++++++++++++++++++
> 6 files changed, 96 insertions(+)
> create mode 100644 configs/platform-v7a/platforms/blspec-sama5d27-giantboard.in
> create mode 100644 configs/platform-v7a/platforms/image-sama5d27-giantboard.in
> create mode 100644 configs/platform-v7a/projectroot/loader/entries/sama5d27-giantboard.conf
> create mode 100644 configs/platform-v7a/rules/blspec-sama5d27-giantboard.make
> create mode 100644 configs/platform-v7a/rules/image-sama5d27-giantboard.make
Could you also please add at least a minimal doc snippet in
doc/hardware.rst?
- Roland
>
> diff --git a/configs/platform-v7a/platformconfig b/configs/platform-v7a/platformconfig
> index e6034c9a999c..a06231d0b175 100644
> --- a/configs/platform-v7a/platformconfig
> +++ b/configs/platform-v7a/platformconfig
> @@ -217,6 +217,7 @@ PTXCONF_BLSPEC_RIOTBOARD=y
> PTXCONF_BLSPEC_RPI2=y
> PTXCONF_BLSPEC_RPI3=y
> PTXCONF_BLSPEC_SABRELITE=y
> +PTXCONF_BLSPEC_SAMA5D27_GIANTBOARD=y
> PTXCONF_BLSPEC_SAMA5D27_SOM1_EK=y
> PTXCONF_BLSPEC_STM32MP157C_DK2=y
> PTXCONF_BLSPEC_UDOO_NEO=y
> @@ -265,6 +266,7 @@ PTXCONF_IMAGE_ROOT_TGZ_LABEL=""
> PTXCONF_IMAGE_RPI2=y
> PTXCONF_IMAGE_RPI3=y
> PTXCONF_IMAGE_SABRELITE=y
> +PTXCONF_IMAGE_SAMA5D27_GIANTBOARD=y
> PTXCONF_IMAGE_SAMA5D27_SOM1_EK=y
> PTXCONF_IMAGE_STM32MP157C_DK2=y
> PTXCONF_IMAGE_UDOO_NEO=y
> diff --git a/configs/platform-v7a/platforms/blspec-sama5d27-giantboard.in b/configs/platform-v7a/platforms/blspec-sama5d27-giantboard.in
> new file mode 100644
> index 000000000000..9ed66c0ce77c
> --- /dev/null
> +++ b/configs/platform-v7a/platforms/blspec-sama5d27-giantboard.in
> @@ -0,0 +1,5 @@
> +## SECTION=blspec
> +
> +config BLSPEC_SAMA5D27_GIANTBOARD
> + tristate
> + prompt "/loader/entries/sama5d27-giantboard.conf bootloader spec entry"
> diff --git a/configs/platform-v7a/platforms/image-sama5d27-giantboard.in b/configs/platform-v7a/platforms/image-sama5d27-giantboard.in
> new file mode 100644
> index 000000000000..cff29c700bcd
> --- /dev/null
> +++ b/configs/platform-v7a/platforms/image-sama5d27-giantboard.in
> @@ -0,0 +1,11 @@
> +## SECTION=image
> +
> +config IMAGE_SAMA5D27_GIANTBOARD
> + tristate
> + select HOST_GENIMAGE
> + select IMAGE_ROOT_EXT
> + select HOST_DOSFSTOOLS
> + select BAREBOX_AT91
> + prompt "Generate images/sama5d27-giantboard.hdimg"
> + help
> + Includes DistroKit support for the Groboards sama5d27-based Giantboard
> diff --git a/configs/platform-v7a/projectroot/loader/entries/sama5d27-giantboard.conf b/configs/platform-v7a/projectroot/loader/entries/sama5d27-giantboard.conf
> new file mode 100644
> index 000000000000..636e24195f98
> --- /dev/null
> +++ b/configs/platform-v7a/projectroot/loader/entries/sama5d27-giantboard.conf
> @@ -0,0 +1,6 @@
> +title PTXdist - Pengutronix-DistroKit
> +version @VERSION@
> +options rootwait
> +linux /boot/zImage
> +devicetree /boot/at91-sama5d27_giantboard.dtb
> +linux-appendroot true
> diff --git a/configs/platform-v7a/rules/blspec-sama5d27-giantboard.make b/configs/platform-v7a/rules/blspec-sama5d27-giantboard.make
> new file mode 100644
> index 000000000000..d944d912f5d6
> --- /dev/null
> +++ b/configs/platform-v7a/rules/blspec-sama5d27-giantboard.make
> @@ -0,0 +1,36 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2020 by Ahmad Fatoum <a.fatoum@pengutronix.de>
> +#
> +# For further information about the PTXdist project and license conditions
> +# see the README file.
> +#
> +
> +#
> +# We provide this package
> +#
> +PACKAGES-$(PTXCONF_BLSPEC_SAMA5D27_GIANTBOARD) += blspec-sama5d27-giantboard
> +
> +BLSPEC_SAMA5D27_GIANTBOARD_VERSION := 5.8
> +
> +# ----------------------------------------------------------------------------
> +# Target-Install
> +# ----------------------------------------------------------------------------
> +
> +$(STATEDIR)/blspec-sama5d27-giantboard.targetinstall:
> + @$(call targetinfo)
> +
> + @$(call install_init, blspec-sama5d27-giantboard)
> + @$(call install_fixup,blspec-sama5d27-giantboard,PRIORITY,optional)
> + @$(call install_fixup,blspec-sama5d27-giantboard,SECTION,base)
> + @$(call install_fixup,blspec-sama5d27-giantboard,AUTHOR,"Ahmad Fatoum <afa@pengutronix.de>")
> + @$(call install_fixup,blspec-sama5d27-giantboard,DESCRIPTION,missing)
> +
> + @$(call install_alternative, blspec-sama5d27-giantboard, 0, 0, 0644, \
> + /loader/entries/sama5d27-giantboard.conf)
> +
> + @$(call install_finish,blspec-sama5d27-giantboard)
> +
> + @$(call touch)
> +
> +# vim: syntax=make
> diff --git a/configs/platform-v7a/rules/image-sama5d27-giantboard.make b/configs/platform-v7a/rules/image-sama5d27-giantboard.make
> new file mode 100644
> index 000000000000..cd7f619d02e6
> --- /dev/null
> +++ b/configs/platform-v7a/rules/image-sama5d27-giantboard.make
> @@ -0,0 +1,36 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2020 by Ahmad Fatoum <a.fatoum@pengutronix.de>
> +#
> +# For further information about the PTXdist project and license conditions
> +# see the README file.
> +#
> +
> +#
> +# We provide this package
> +#
> +IMAGE_PACKAGES-$(PTXCONF_IMAGE_SAMA5D27_GIANTBOARD) += image-sama5d27-giantboard
> +
> +#
> +# Paths and names
> +#
> +IMAGE_SAMA5D27_GIANTBOARD := image-sama5d27-giantboard
> +IMAGE_SAMA5D27_GIANTBOARD_DIR := $(BUILDDIR)/$(IMAGE_SAMA5D27_GIANTBOARD)
> +IMAGE_SAMA5D27_GIANTBOARD_IMAGE := $(IMAGEDIR)/sama5d27-giantboard.hdimg
> +IMAGE_SAMA5D27_GIANTBOARD_FILES := $(IMAGEDIR)/root.tgz
> +IMAGE_SAMA5D27_GIANTBOARD_CONFIG := at91-sd.config
> +
> +# ----------------------------------------------------------------------------
> +# Image
> +# ----------------------------------------------------------------------------
> +
> +IMAGE_SAMA5D27_GIANTBOARD_ENV := \
> + FSBL=barebox-groboards-sama5d27-giantboard-xload-mmc.img \
> + SSBL=barebox-groboards-sama5d27-giantboard.img
> +
> +$(IMAGE_SAMA5D27_GIANTBOARD_IMAGE):
> + @$(call targetinfo)
> + @$(call image/genimage, IMAGE_SAMA5D27_GIANTBOARD)
> + @$(call finish)
> +
> +# vim: syntax=make
> --
> 2.28.0
>
>
> _______________________________________________
> DistroKit mailing list
> DistroKit@pengutronix.de
>
--
Roland Hieber, Pengutronix e.K. | r.hieber@pengutronix.de |
Steuerwalder Str. 21 | https://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
DistroKit mailing list
DistroKit@pengutronix.de
^ permalink raw reply [flat|nested] 14+ messages in thread
* [DistroKit] [PATCH] doc: document the new SAMA5D2 boards
2020-09-29 10:40 ` Roland Hieber
@ 2020-09-29 13:39 ` Ahmad Fatoum
2020-09-30 9:30 ` Roland Hieber
2020-10-11 22:38 ` Roland Hieber
0 siblings, 2 replies; 14+ messages in thread
From: Ahmad Fatoum @ 2020-09-29 13:39 UTC (permalink / raw)
To: distrokit; +Cc: Ahmad Fatoum, Roland Hieber
Add some basic documentation for the two new boards added in the
previous commits.
Suggested-by: Roland Hieber <rhi@pengutronix.de>
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
doc/hardware.rst | 1 +
doc/hardware_v7a_sama5d2.rst | 20 ++++++++++++++++++++
2 files changed, 21 insertions(+)
create mode 100644 doc/hardware_v7a_sama5d2.rst
diff --git a/doc/hardware.rst b/doc/hardware.rst
index 703261842dde..117fb17cdee5 100644
--- a/doc/hardware.rst
+++ b/doc/hardware.rst
@@ -49,6 +49,7 @@ It supports the following hardware:
hardware_v7a_raspi2
hardware_v7a_raspi3
hardware_v7a_udoo_neo
+ hardware_v7a_sama5d2
If you want to get DistroKit running on your ARMv7-A board which is not
listed above, here is a short overview of the generic way:
diff --git a/doc/hardware_v7a_sama5d2.rst b/doc/hardware_v7a_sama5d2.rst
new file mode 100644
index 000000000000..bc2ae8bc674d
--- /dev/null
+++ b/doc/hardware_v7a_sama5d2.rst
@@ -0,0 +1,20 @@
+SAMA5D2 boards
+==============
+
+DistroKit supports two SAMA5D27 baords out of the box:
+
+ * SAMA5D27-SOM1-EK
+ * Groboards Giant Board
+
+Boot Media
+----------
+
+Use one of the ``platform-v7a/images/sama5d27-*.hdimg`` images and copy it
+onto your SD card. The Giant board has only 1 microSD slot, the EK has
+additionally 1 normal SD-sized slot. Both can be used.
+
+Serial Console
+--------------
+The EK has an on-board USB-serial adapter interfaced to J10. This is the
+default console and power supply. The Giant board can be supplied over the
+microUSB as well, but it has no serial port there by default.
--
2.28.0
_______________________________________________
DistroKit mailing list
DistroKit@pengutronix.de
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [DistroKit] [PATCH] doc: document the new SAMA5D2 boards
2020-09-29 13:39 ` [DistroKit] [PATCH] doc: document the new SAMA5D2 boards Ahmad Fatoum
@ 2020-09-30 9:30 ` Roland Hieber
2020-10-11 22:38 ` Roland Hieber
1 sibling, 0 replies; 14+ messages in thread
From: Roland Hieber @ 2020-09-30 9:30 UTC (permalink / raw)
To: Ahmad Fatoum; +Cc: distrokit
On Tue, Sep 29, 2020 at 03:39:53PM +0200, Ahmad Fatoum wrote:
> Add some basic documentation for the two new boards added in the
> previous commits.
>
> Suggested-by: Roland Hieber <rhi@pengutronix.de>
> Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Whee thx \o/ :)
- Roland
> ---
> doc/hardware.rst | 1 +
> doc/hardware_v7a_sama5d2.rst | 20 ++++++++++++++++++++
> 2 files changed, 21 insertions(+)
> create mode 100644 doc/hardware_v7a_sama5d2.rst
>
> diff --git a/doc/hardware.rst b/doc/hardware.rst
> index 703261842dde..117fb17cdee5 100644
> --- a/doc/hardware.rst
> +++ b/doc/hardware.rst
> @@ -49,6 +49,7 @@ It supports the following hardware:
> hardware_v7a_raspi2
> hardware_v7a_raspi3
> hardware_v7a_udoo_neo
> + hardware_v7a_sama5d2
>
> If you want to get DistroKit running on your ARMv7-A board which is not
> listed above, here is a short overview of the generic way:
> diff --git a/doc/hardware_v7a_sama5d2.rst b/doc/hardware_v7a_sama5d2.rst
> new file mode 100644
> index 000000000000..bc2ae8bc674d
> --- /dev/null
> +++ b/doc/hardware_v7a_sama5d2.rst
> @@ -0,0 +1,20 @@
> +SAMA5D2 boards
> +==============
> +
> +DistroKit supports two SAMA5D27 baords out of the box:
> +
> + * SAMA5D27-SOM1-EK
> + * Groboards Giant Board
> +
> +Boot Media
> +----------
> +
> +Use one of the ``platform-v7a/images/sama5d27-*.hdimg`` images and copy it
> +onto your SD card. The Giant board has only 1 microSD slot, the EK has
> +additionally 1 normal SD-sized slot. Both can be used.
> +
> +Serial Console
> +--------------
> +The EK has an on-board USB-serial adapter interfaced to J10. This is the
> +default console and power supply. The Giant board can be supplied over the
> +microUSB as well, but it has no serial port there by default.
> --
> 2.28.0
>
>
> _______________________________________________
> DistroKit mailing list
> DistroKit@pengutronix.de
>
--
Roland Hieber, Pengutronix e.K. | r.hieber@pengutronix.de |
Steuerwalder Str. 21 | https://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
DistroKit mailing list
DistroKit@pengutronix.de
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [DistroKit] [PATCH] doc: document the new SAMA5D2 boards
2020-09-29 13:39 ` [DistroKit] [PATCH] doc: document the new SAMA5D2 boards Ahmad Fatoum
2020-09-30 9:30 ` Roland Hieber
@ 2020-10-11 22:38 ` Roland Hieber
2020-10-11 22:53 ` Ahmad Fatoum
1 sibling, 1 reply; 14+ messages in thread
From: Roland Hieber @ 2020-10-11 22:38 UTC (permalink / raw)
To: Ahmad Fatoum; +Cc: distrokit
On Tue, Sep 29, 2020 at 03:39:53PM +0200, Ahmad Fatoum wrote:
> Add some basic documentation for the two new boards added in the
> previous commits.
>
> Suggested-by: Roland Hieber <rhi@pengutronix.de>
> Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
> ---
> doc/hardware.rst | 1 +
> doc/hardware_v7a_sama5d2.rst | 20 ++++++++++++++++++++
> 2 files changed, 21 insertions(+)
> create mode 100644 doc/hardware_v7a_sama5d2.rst
>
> diff --git a/doc/hardware.rst b/doc/hardware.rst
> index 703261842dde..117fb17cdee5 100644
> --- a/doc/hardware.rst
> +++ b/doc/hardware.rst
> @@ -49,6 +49,7 @@ It supports the following hardware:
> hardware_v7a_raspi2
> hardware_v7a_raspi3
> hardware_v7a_udoo_neo
> + hardware_v7a_sama5d2
>
\o/
> If you want to get DistroKit running on your ARMv7-A board which is not
> listed above, here is a short overview of the generic way:
> diff --git a/doc/hardware_v7a_sama5d2.rst b/doc/hardware_v7a_sama5d2.rst
> new file mode 100644
> index 000000000000..bc2ae8bc674d
> --- /dev/null
> +++ b/doc/hardware_v7a_sama5d2.rst
> @@ -0,0 +1,20 @@
> +SAMA5D2 boards
> +==============
> +
> +DistroKit supports two SAMA5D27 baords out of the box:
s/baords/boards/
> +
> + * SAMA5D27-SOM1-EK
> + * Groboards Giant Board
> +
> +Boot Media
> +----------
> +
> +Use one of the ``platform-v7a/images/sama5d27-*.hdimg`` images and copy it
Ambiguous. Better:
PTXdist generates ``platform-v7a/images/sama5d27-*.hdimg``. Use the
respective image for your board and copy it ...
?
> +onto your SD card. The Giant board has only 1 microSD slot, the EK has
> +additionally 1 normal SD-sized slot. Both can be used.
> +
> +Serial Console
> +--------------
> +The EK has an on-board USB-serial adapter interfaced to J10. This is the
> +default console and power supply. The Giant board can be supplied over the
> +microUSB as well, but it has no serial port there by default.
So how to get a console on the Giant board?
- Roland
> --
> 2.28.0
>
>
--
Roland Hieber, Pengutronix e.K. | r.hieber@pengutronix.de |
Steuerwalder Str. 21 | https://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
DistroKit mailing list
DistroKit@pengutronix.de
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [DistroKit] [PATCH] doc: document the new SAMA5D2 boards
2020-10-11 22:38 ` Roland Hieber
@ 2020-10-11 22:53 ` Ahmad Fatoum
0 siblings, 0 replies; 14+ messages in thread
From: Ahmad Fatoum @ 2020-10-11 22:53 UTC (permalink / raw)
To: Roland Hieber; +Cc: distrokit
On 10/12/20 12:38 AM, Roland Hieber wrote:
> On Tue, Sep 29, 2020 at 03:39:53PM +0200, Ahmad Fatoum wrote:
>> Add some basic documentation for the two new boards added in the
>> previous commits.
>>
>> Suggested-by: Roland Hieber <rhi@pengutronix.de>
>> Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
>> ---
>> doc/hardware.rst | 1 +
>> doc/hardware_v7a_sama5d2.rst | 20 ++++++++++++++++++++
>> 2 files changed, 21 insertions(+)
>> create mode 100644 doc/hardware_v7a_sama5d2.rst
>>
>> diff --git a/doc/hardware.rst b/doc/hardware.rst
>> index 703261842dde..117fb17cdee5 100644
>> --- a/doc/hardware.rst
>> +++ b/doc/hardware.rst
>> @@ -49,6 +49,7 @@ It supports the following hardware:
>> hardware_v7a_raspi2
>> hardware_v7a_raspi3
>> hardware_v7a_udoo_neo
>> + hardware_v7a_sama5d2
>>
>
> \o/
>
>> If you want to get DistroKit running on your ARMv7-A board which is not
>> listed above, here is a short overview of the generic way:
>> diff --git a/doc/hardware_v7a_sama5d2.rst b/doc/hardware_v7a_sama5d2.rst
>> new file mode 100644
>> index 000000000000..bc2ae8bc674d
>> --- /dev/null
>> +++ b/doc/hardware_v7a_sama5d2.rst
>> @@ -0,0 +1,20 @@
>> +SAMA5D2 boards
>> +==============
>> +
>> +DistroKit supports two SAMA5D27 baords out of the box:
>
> s/baords/boards/
Ok.
>
>> +
>> + * SAMA5D27-SOM1-EK
>> + * Groboards Giant Board
>> +
>> +Boot Media
>> +----------
>> +
>> +Use one of the ``platform-v7a/images/sama5d27-*.hdimg`` images and copy it
>
> Ambiguous. Better:
>
> PTXdist generates ``platform-v7a/images/sama5d27-*.hdimg``. Use the
> respective image for your board and copy it ...
>
> ?
>
>> +onto your SD card. The Giant board has only 1 microSD slot, the EK has
>> +additionally 1 normal SD-sized slot. Both can be used.
Can do.
>> +
>> +Serial Console
>> +--------------
>> +The EK has an on-board USB-serial adapter interfaced to J10. This is the
>> +default console and power supply. The Giant board can be supplied over the
>> +microUSB as well, but it has no serial port there by default.
>
> So how to get a console on the Giant board?
You connect to the pins that say TX/RX.
>
> - Roland
>
>> --
>> 2.28.0
>>
>>
>
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
DistroKit mailing list
DistroKit@pengutronix.de
^ permalink raw reply [flat|nested] 14+ messages in thread