summaryrefslogtreecommitdiffstats
path: root/configs/platform-v7a
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2020-01-08 10:55:41 +0100
committerRobert Schwebel <r.schwebel@pengutronix.de>2020-01-08 23:09:03 +0100
commit68bfd2e1fb896d730ff6256d519f954988bf02b9 (patch)
treec4351870a991ef5b17bd6e7a25749573a9be0ec4 /configs/platform-v7a
parent04726e7c91e8466bea5c97716447684f8aa71c69 (diff)
downloadDistroKit-68bfd2e1fb896d730ff6256d519f954988bf02b9.tar.gz
DistroKit-68bfd2e1fb896d730ff6256d519f954988bf02b9.tar.xz
barebox-rpi2: Update config
Enable more features and clean up: - Enable DWC2 USB controller support - Enable Networking - Compile in thumb2 mode - Disable unused USB gadget support - Set malloc area size to 0x0 to let barebox autoconfigure memory size - Disable unused I2C support - Disable unused EHCI driver - Enable raspberrypi EXP GPIO driver Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'configs/platform-v7a')
-rw-r--r--configs/platform-v7a/barebox-rpi2.config69
-rw-r--r--configs/platform-v7a/barebox-rpi2.config.diff47
2 files changed, 61 insertions, 55 deletions
diff --git a/configs/platform-v7a/barebox-rpi2.config b/configs/platform-v7a/barebox-rpi2.config
index 0c86d6e..fd3e220 100644
--- a/configs/platform-v7a/barebox-rpi2.config
+++ b/configs/platform-v7a/barebox-rpi2.config
@@ -62,8 +62,9 @@ CONFIG_MACH_RPI3=y
CONFIG_BAREBOX_MAX_IMAGE_SIZE=0xffffffff
CONFIG_BOARD_ARM_GENERIC_DT=y
+CONFIG_ARM_ASM_UNIFIED=y
CONFIG_AEABI=y
-# CONFIG_THUMB2_BAREBOX is not set
+CONFIG_THUMB2_BAREBOX=y
# CONFIG_ARM_BOARD_APPEND_ATAG is not set
# end of System Type
@@ -95,8 +96,6 @@ CONFIG_LOGBUF=y
CONFIG_STDDEV=y
CONFIG_BAREBOX_UPDATE=y
CONFIG_MENUTREE=y
-CONFIG_FILE_LIST=y
-CONFIG_USBGADGET_START=y
CONFIG_BOOT=y
#
@@ -130,7 +129,7 @@ CONFIG_MMU_EARLY=y
CONFIG_BAREBOX_MAX_PBL_SIZE=0xffffffff
CONFIG_BAREBOX_MAX_BARE_INIT_SIZE=0xffffffff
CONFIG_STACK_SIZE=0x8000
-CONFIG_MALLOC_SIZE=0x400000
+CONFIG_MALLOC_SIZE=0x0
# end of memory layout
# CONFIG_EXPERIMENTAL is not set
@@ -159,7 +158,7 @@ CONFIG_TIMESTAMP=y
CONFIG_BOOTM=y
CONFIG_BOOTM_SHOW_TYPE=y
CONFIG_BOOTM_VERBOSE=y
-# CONFIG_BOOTM_INITRD is not set
+CONFIG_BOOTM_INITRD=y
CONFIG_BOOTM_OFTREE=y
# CONFIG_BOOTM_OFTREE_UIMAGE is not set
# CONFIG_BOOTM_AIMAGE is not set
@@ -327,7 +326,7 @@ CONFIG_CMD_TRUE=y
CONFIG_CMD_DHCP=y
CONFIG_CMD_HOST=y
CONFIG_NET_CMD_IFUP=y
-# CONFIG_CMD_MIITOOL is not set
+CONFIG_CMD_MIITOOL=y
CONFIG_CMD_PING=y
CONFIG_CMD_TFTP=y
CONFIG_CMD_IP_ROUTE_GET=y
@@ -369,13 +368,11 @@ 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_USB=y
-CONFIG_CMD_USBGADGET=y
CONFIG_CMD_WD=y
CONFIG_CMD_WD_DEFAULT_TIMOUT=0
# end of Hardware manipulation
@@ -404,8 +401,8 @@ CONFIG_CMD_STATE=y
# end of Commands
CONFIG_NET=y
-CONFIG_NET_NFS=y
-# CONFIG_NET_NETCONSOLE is not set
+# CONFIG_NET_NFS is not set
+CONFIG_NET_NETCONSOLE=y
CONFIG_NET_RESOLV=y
CONFIG_NET_IFUP=y
CONFIG_NET_DHCP=y
@@ -491,19 +488,7 @@ CONFIG_SPI=y
CONFIG_DRIVER_SPI_GPIO=y
# end of SPI drivers
-CONFIG_I2C=y
-CONFIG_I2C_ALGOBIT=y
-
-#
-# I2C Hardware Bus support
-#
-CONFIG_I2C_GPIO=y
-# CONFIG_I2C_DESIGNWARE is not set
-# CONFIG_I2C_MV64XXX is not set
-# CONFIG_I2C_STM32 is not set
-# end of I2C Hardware Bus support
-
-# CONFIG_I2C_MUX is not set
+# CONFIG_I2C is not set
CONFIG_MTD=y
CONFIG_MTD_WRITE=y
CONFIG_MTD_OOB_DEVICE=y
@@ -544,7 +529,8 @@ CONFIG_DISK_WRITE=y
CONFIG_USB=y
CONFIG_USB_HOST=y
# CONFIG_USB_DWC3 is not set
-CONFIG_USB_EHCI=y
+# CONFIG_USB_EHCI is not set
+CONFIG_USB_DWC2_HOST=y
# CONFIG_USB_XHCI is not set
# CONFIG_USB_ULPI is not set
CONFIG_USB_STORAGE=y
@@ -552,17 +538,7 @@ CONFIG_USB_STORAGE=y
#
# USB Miscellaneous drivers
#
-# CONFIG_USB_HUB_USB251XB is not set
-CONFIG_USB_GADGET=y
-CONFIG_USB_GADGET_AUTOSTART=y
-
-#
-# USB Gadget drivers
-#
-# CONFIG_USB_GADGET_DFU is not set
-CONFIG_USB_GADGET_SERIAL=y
-# CONFIG_USB_GADGET_FASTBOOT is not set
-# CONFIG_USB_GADGET_FASTBOOT_SPARSE is not set
+# CONFIG_USB_GADGET is not set
# CONFIG_USB_MUSB is not set
# CONFIG_VIDEO is not set
CONFIG_MCI=y
@@ -570,7 +546,7 @@ CONFIG_MCI=y
#
# --- Feature list ---
#
-CONFIG_MCI_STARTUP=y
+# CONFIG_MCI_STARTUP is not set
CONFIG_MCI_INFO=y
CONFIG_MCI_WRITE=y
CONFIG_MCI_MMC_BOOT_PARTITIONS=y
@@ -581,7 +557,7 @@ CONFIG_MCI_MMC_BOOT_PARTITIONS=y
# CONFIG_MCI_DW is not set
CONFIG_MCI_BCM283X=y
CONFIG_MCI_BCM283X_SDHOST=y
-CONFIG_MCI_MMCI=y
+# CONFIG_MCI_MMCI is not set
# CONFIG_MCI_SPI is not set
CONFIG_HAVE_CLK=y
CONFIG_CLKDEV_LOOKUP=y
@@ -599,18 +575,8 @@ CONFIG_CLOCKSOURCE_ARMV8_TIMER=y
#
# MFD
#
-# 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 is not set
-# CONFIG_MFD_TWL4030 is not set
-# CONFIG_MFD_TWL6030 is not set
-# CONFIG_MFD_STPMIC1 is not set
# CONFIG_FINTEK_SUPERIO is not set
# CONFIG_SMSC_SUPERIO is not set
# end of MFD
@@ -631,20 +597,17 @@ 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_KEYBOARD_USB is not set
# CONFIG_INPUT_SPECIALKEYS is not set
# end of Input device support
@@ -654,7 +617,7 @@ CONFIG_WATCHDOG=y
# CONFIG_WATCHDOG_DW is not set
CONFIG_WATCHDOG_BCM2835=y
# CONFIG_PWM is not set
-CONFIG_HWRNG=y
+# CONFIG_HWRNG is not set
#
# DMA support
@@ -668,11 +631,9 @@ CONFIG_GPIOLIB=y
#
# 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_PL061 is not set
+CONFIG_GPIO_RASPBERRYPI_EXP=y
# CONFIG_GPIO_DESIGNWARE is not set
-# CONFIG_GPIO_SX150X is not set
# end of GPIO
# CONFIG_W1 is not set
diff --git a/configs/platform-v7a/barebox-rpi2.config.diff b/configs/platform-v7a/barebox-rpi2.config.diff
index 0c24a61..f493e1d 100644
--- a/configs/platform-v7a/barebox-rpi2.config.diff
+++ b/configs/platform-v7a/barebox-rpi2.config.diff
@@ -1,14 +1,59 @@
6740c59d874d4e8459025d536717c542
+CONFIG_ARM_ASM_UNIFIED=y
+CONFIG_BOOTM_INITRD=y
+# CONFIG_CMD_I2C is undefined
+CONFIG_CMD_MIITOOL=y
+# CONFIG_CMD_USBGADGET is undefined
CONFIG_DRIVER_SERIAL_NS16550=y
# CONFIG_EEPROM_93XX46 is not set
+# CONFIG_EEPROM_AT24 is undefined
+# CONFIG_FILE_LIST is undefined
+# CONFIG_GPIO_PCA953X is undefined
+# CONFIG_GPIO_PCF857X is undefined
+CONFIG_GPIO_RASPBERRYPI_EXP=y
+# CONFIG_GPIO_SX150X is undefined
+# CONFIG_HWRNG is not set
+# CONFIG_I2C is not set
+# CONFIG_I2C_ALGOBIT is undefined
+# CONFIG_I2C_DESIGNWARE is undefined
+# CONFIG_I2C_GPIO is undefined
+# CONFIG_I2C_MUX is undefined
+# CONFIG_I2C_MV64XXX is undefined
+# CONFIG_I2C_STM32 is undefined
+# CONFIG_KEYBOARD_QT1070 is undefined
+# CONFIG_LED_PCA955X is undefined
CONFIG_MACH_RPI2=y
-CONFIG_MALLOC_SIZE=0x400000
CONFIG_MCI_BCM283X=y
CONFIG_MCI_BCM283X_SDHOST=y
+# CONFIG_MCI_MMCI is not set
CONFIG_MCI_MMC_BOOT_PARTITIONS=y
+# CONFIG_MCI_STARTUP is not set
+# CONFIG_MFD_ACT8846 is undefined
+# CONFIG_MFD_DA9053 is undefined
+# CONFIG_MFD_DA9063 is undefined
+# CONFIG_MFD_LP3972 is undefined
+# CONFIG_MFD_MC34704 is undefined
+# CONFIG_MFD_MC9SDZ60 is undefined
+# CONFIG_MFD_STMPE is undefined
+# CONFIG_MFD_STPMIC1 is undefined
+# CONFIG_MFD_TWL4030 is undefined
+# CONFIG_MFD_TWL6030 is undefined
+CONFIG_NET_NETCONSOLE=y
+# CONFIG_NET_NFS is not set
CONFIG_NVMEM=y
# CONFIG_NVMEM_SNVS_LPGPR is not set
CONFIG_PINCTRL_BCM283X=y
CONFIG_PROMPT="R-Pi> "
CONFIG_SERIAL_AMBA_PL011=y
+CONFIG_THUMB2_BAREBOX=y
+# CONFIG_USBGADGET_START is undefined
+CONFIG_USB_DWC2_HOST=y
+# CONFIG_USB_EHCI is not set
+# 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_FASTBOOT_SPARSE is undefined
+# CONFIG_USB_GADGET_SERIAL is undefined
+# CONFIG_USB_HUB_USB251XB is undefined
CONFIG_WATCHDOG_BCM2835=y