Commit 48313fe51008f777ee97e8963ff8b392fb6c4228

Authored by Andre Przywara
Committed by Jagan Teki
1 parent e66a34eaba

sunxi: Move common defconfig options to Kconfig

Some config symbols are found in *almost* every _defconfig file for
Allwinner boards, because those options are actually a platform choice,
and not a per-board decision.
Some of these options are older, some have recently been added.

Move those options to be set for all Allwinner boards in their
respective Kconfig files.

The rationales are as follows:
- NR_DRAM_BANKS: All Allwinner SoC map DRAM at one contiguous region of
  address space only, starting at 1 GB. So it's always one bank.
- SPL_{DOS,EFI}_PARTITION: The Allwinner SPL does only support raw MMC
  accesses, we don't care about filesystems or partitions in there, so
  there is no need to define those symbols at all.
- USE_PREBOOT: We start USB early when a keyboard is configured, using the
  preboot env variable, so we need to set this variable.
- SYS_RELOC_GD_ENV_ADDR: We don't specify any ENV_ADDR, so need this
  symbol to be set (according to 8d8ee47e03e).
- SYS_USB_EVENT_POLL_VIA_INT_QUEUE: According to commit eab9433aa55428,
  specifying this reduces the latency of the USB keyboard handling, so
  this was formerly enabled in config headers for all Allwinner boards.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Acked-by: Maxime Ripard <mripard@kernel.org>
Tested-by: Jagan Teki <jagan@amarulasolutions.com> # Amarula A64-Relic
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>

Showing 4 changed files with 6 additions and 0 deletions Side-by-side Diff

... ... @@ -115,6 +115,7 @@
115 115  
116 116 config NR_DRAM_BANKS
117 117 int "Number of DRAM banks"
  118 + default 1 if ARCH_SUNXI
118 119 default 4
119 120 help
120 121 This defines the number of DRAM banks.
... ... @@ -989,6 +989,8 @@
989 989 select USB_KEYBOARD if DISTRO_DEFAULTS
990 990 select USB_STORAGE if DISTRO_DEFAULTS
991 991 select SPL_USE_TINY_PRINTF
  992 + select USE_PREBOOT
  993 + select SYS_RELOC_GD_ENV_ADDR
992 994 imply CMD_DM
993 995 imply CMD_GPT
994 996 imply CMD_UBI if MTD_RAW_NAND
... ... @@ -46,6 +46,7 @@
46 46 config SPL_DOS_PARTITION
47 47 bool "Enable MS Dos partition table for SPL"
48 48 depends on SPL && PARTITIONS
  49 + default n if ARCH_SUNXI
49 50 default y if DOS_PARTITION
50 51  
51 52 config ISO_PARTITION
... ... @@ -112,6 +113,7 @@
112 113 config SPL_EFI_PARTITION
113 114 bool "Enable EFI GPT partition table for SPL"
114 115 depends on SPL && PARTITIONS
  116 + default n if ARCH_SUNXI
115 117 default y if EFI_PARTITION
116 118  
117 119 config PARTITION_UUIDS
... ... @@ -108,6 +108,7 @@
108 108  
109 109 choice
110 110 prompt "USB keyboard polling"
  111 + default SYS_USB_EVENT_POLL_VIA_INT_QUEUE if ARCH_SUNXI
111 112 default SYS_USB_EVENT_POLL
112 113 ---help---
113 114 Enable a polling mechanism for USB keyboard.