Kconfig: Drop some sandbox-related items
Subsystems (8)
cover Kconfig: Drop some sandbox-related items
In an effort to pare down the sandbox.h header file, this series moves some options to Kconfig.
It also adds a migration warning for CONFIG_TIMER.
Simon Glass (10):
trace: sandbox: Use only the Kconfig options
sandbox: Drop CONFIG_HOST_MAX_DEVICES
Convert CONFIG_SYS_FDT_LOAD_ADDR to Kconfig
Convert CONFIG_PHYSMEM to Kconfig
sandbox: video: Drop CONFIG_LCD_BMP_RLE8
Convert CONFIG_KEYBOARD to Kconfig
keyboard: Add a migration message
sandbox: Drop CONFIG_SYS_TIMER_RATE
ide: Drop unused CONFIG options
timer: Add a migration message
Makefile | 5 + README | 23 --- arch/Kconfig | 3 + arch/arm/mach-exynos/Kconfig | 1 + arch/arm/mach-kirkwood/include/mach/config.h | 2 - arch/powerpc/include/asm/config.h | 3 - arch/sandbox/Kconfig | 10 ++ cmd/Kconfig | 2 + cmd/host.c | 2 +- common/lcd.c | 142 ------------------- configs/chromebit_mickey_defconfig | 1 + configs/chromebook_jerry_defconfig | 1 + configs/chromebook_minnie_defconfig | 1 + configs/chromebook_speedy_defconfig | 1 + configs/novena_defconfig | 1 + configs/smdk5250_defconfig | 1 + configs/smdk5420_defconfig | 1 + configs/tools-only_defconfig | 7 +- doc/develop/driver-model/migration.rst | 16 +++ doc/develop/trace.rst | 14 +- drivers/block/ide.c | 12 +- drivers/block/sandbox.c | 6 +- drivers/input/Kconfig | 9 ++ include/configs/edison.h | 3 - include/configs/edminiv2.h | 2 - include/configs/exynos5-dt-common.h | 3 - include/configs/novena.h | 1 - include/configs/r2dplus.h | 1 - include/configs/sandbox.h | 19 --- include/configs/smdk5250.h | 1 - include/configs/smdk5420.h | 2 - include/configs/veyron.h | 2 - include/configs/x86-common.h | 2 - include/sandboxblockdev.h | 3 + lib/Kconfig | 10 ++ scripts/config_whitelist.txt | 7 - 36 files changed, 85 insertions(+), 235 deletions(-)
Signature · 1 line
2.34.0.rc1.387.gb447b232ab-goog
PATCH 1/10 trace: sandbox: Use only the Kconfig options
At present there are Kconfig options for tracing, but sandbox uses plain #defines to set them. Correct this and make the tracing command default to enabled so that this is not needed.
---
cmd/Kconfig | 2 ++ doc/develop/trace.rst | 14 +++++++------- 2 files changed, 9 insertions(+), 7 deletions(-)
cmd/Kconfig +2 -0
@@ -2350,6 +2350,8 @@ config CMD_LOG config CMD_TRACE bool "trace - Support tracing of function calls and timing" + depends on TRACE + default y help Enables a command to control using of function tracing within U-Boot. This allows recording of call traces including timing
doc/develop/trace.rst +7 -7
@@ -30,16 +30,16 @@ Sandbox is a build of U-Boot that can run under Linux so it is a convenient way of trying out tracing before you use it on your actual board. To do this, follow these steps: -Add the following to include/configs/sandbox.h (if not already there) +Add the following to config/sandbox_defconfig (if not already there) .. code-block:: c - #define CONFIG_TRACE - #define CONFIG_CMD_TRACE - #define CONFIG_TRACE_BUFFER_SIZE (16 << 20) - #define CONFIG_TRACE_EARLY_SIZE (8 << 20) - #define CONFIG_TRACE_EARLY - #define CONFIG_TRACE_EARLY_ADDR 0x00100000 + CONFIG_TRACE=y + CONFIG_TRACE_BUFFER_SIZE=0x01000000 + CONFIG_TRACE_BUFFER_SIZE=0x01000000 + CONFIG_TRACE_EARLY_SIZE=0x800000 + CONFIG_TRACE_EARLY=y + CONFIG_TRACE_EARLY_ADDR=0x00100000 Build sandbox U-Boot with tracing enabled:
Signature · 1 line
2.34.0.rc1.387.gb447b232ab-goog
Re: [PATCH 01/10] trace: sandbox: Use only the Kconfig options
Quoted 36 lines · Simon Glass
At present there are
Kconfigoptions for tracing, but sandbox uses plain #defines to set them. Correct this and make the tracing command default to enabled so that this is not needed.Signed-off-by Simon Glass <[email protected]>---
cmd/Kconfig | 2 ++ doc/develop/trace.rst | 14 +++++++------- 2 files changed, 9 insertions(+), 7 deletions(-)cmd/Kconfig +2
-0@@ -2350,6 +2350,8 @@ config CMD_LOG config CMD_TRACE bool "trace - Support tracing of function calls and timing" + depends on TRACE + default y help Enables a command to control using of function tracing within U-Boot. This allows recording of call traces including timingdoc/develop/trace.rst +1
-1@@ -30,16 +30,16 @@ Sandbox is a build of U-Boot that can run under Linux so it is a convenient way of trying out tracing before you use it on your actual board. To do this, follow these steps: -Add the following to include/configs/sandbox.h (if not already there) +Add the following to config/sandbox_defconfig (if not already there) .. code-block:: c
doc/develop/trace.rst Sandbox is a build of U-Boot that can run under Linux so it is a convenient · line 39
Quoted 10 lines
doc/develop/trace.rst +3
-6- #define CONFIG_TRACE - #define CONFIG_CMD_TRACE - #define CONFIG_TRACE_BUFFER_SIZE (16 << 20) - #define CONFIG_TRACE_EARLY_SIZE (8 << 20) - #define CONFIG_TRACE_EARLY - #define CONFIG_TRACE_EARLY_ADDR 0x00100000 + CONFIG_TRACE=y + CONFIG_TRACE_BUFFER_SIZE=0x01000000 + CONFIG_TRACE_BUFFER_SIZE=0x01000000
This line is duplicate. And it is anyway the default value in lib/Kconfig:229. So both lines can be removed.
doc/develop/trace.rst Sandbox is a build of U-Boot that can run under Linux so it is a convenient · line 40
Quoted 1 line
doc/develop/trace.rst +1
-0+ CONFIG_TRACE_EARLY_SIZE=0x800000
Is the CONFIG_TRACE_EARLY default inadequate and should be changed?
doc/develop/trace.rst Sandbox is a build of U-Boot that can run under Linux so it is a convenient · line 42
Quoted 2 lines
doc/develop/trace.rst +2
-0+ CONFIG_TRACE_EARLY=y + CONFIG_TRACE_EARLY_ADDR=0x00100000
This is the default value. The line can be removed.
Best regards
Heinrich
Quoted 4 lines
doc/develop/trace.rst +0
-0Build sandbox U-Boot with tracing enabled:
Re: [PATCH 01/10] trace: sandbox: Use only the Kconfig options
Hi Heinrich,
Quoted 52 lines · Heinrich Schuchardt
Quoted 36 lines · Simon Glass
At present there are
Kconfigoptions for tracing, but sandbox uses plain #defines to set them. Correct this and make the tracing command default to enabled so that this is not needed.Signed-off-by Simon Glass <[email protected]>---
cmd/Kconfig | 2 ++ doc/develop/trace.rst | 14 +++++++------- 2 files changed, 9 insertions(+), 7 deletions(-)cmd/Kconfig +2
-0@@ -2350,6 +2350,8 @@ config CMD_LOG config CMD_TRACE bool "trace - Support tracing of function calls and timing" + depends on TRACE + default y help Enables a command to control using of function tracing within U-Boot. This allows recording of call traces including timingdoc/develop/trace.rst +1
-1@@ -30,16 +30,16 @@ Sandbox is a build of U-Boot that can run under Linux so it is a convenient way of trying out tracing before you use it on your actual board. To do this, follow these steps: -Add the following to include/configs/sandbox.h (if not already there) +Add the following to config/sandbox_defconfig (if not already there) .. code-block:: cdoc/develop/trace.rst Sandbox is a build of U-Boot that can run under Linux so it is a convenient · line 39
Quoted 10 lines
doc/develop/trace.rst +3
-6- #define CONFIG_TRACE - #define CONFIG_CMD_TRACE - #define CONFIG_TRACE_BUFFER_SIZE (16 << 20) - #define CONFIG_TRACE_EARLY_SIZE (8 << 20) - #define CONFIG_TRACE_EARLY - #define CONFIG_TRACE_EARLY_ADDR 0x00100000 + CONFIG_TRACE=y + CONFIG_TRACE_BUFFER_SIZE=0x01000000 + CONFIG_TRACE_BUFFER_SIZE=0x01000000This line is duplicate. And it is anyway the default value in lib/Kconfig:229. So both lines can be removed.
Quoted 3 lines
doc/develop/trace.rst Sandbox is a build of U-Boot that can run under Linux so it is a convenient · line 40
Quoted 1 line
doc/develop/trace.rst +1
-0+ CONFIG_TRACE_EARLY_SIZE=0x800000Is the
CONFIG_TRACE_EARLYdefault inadequate and should be changed?
Yes it is helpful to have it a lot larger for sandbox.
Quoted 6 lines
doc/develop/trace.rst Sandbox is a build of U-Boot that can run under Linux so it is a convenient · line 42
Quoted 4 lines
doc/develop/trace.rst +2
-0+ CONFIG_TRACE_EARLY=y + CONFIG_TRACE_EARLY_ADDR=0x00100000This is the default value. The line can be removed.
Right, but this is documentation, so I think it is important to have everything in there, isn't it?
Regards,
Simon
PATCH 2/10 sandbox: Drop CONFIG_HOST_MAX_DEVICES
In reply to Simon GlassThis can go in the related header file. Drop the CONFIG option.
---
cmd/host.c | 2 +- drivers/block/sandbox.c | 6 +++--- include/configs/sandbox.h | 2 -- include/sandboxblockdev.h | 3 +++ scripts/config_whitelist.txt | 1 - 5 files changed, 7 insertions(+), 7 deletions(-)
cmd/host.c +1 -1
@@ -78,7 +78,7 @@ static int do_host_info(struct cmd_tbl *cmdtp, int flag, int argc,if (argc <1 || argc >2 )return CMD_RET_USAGE ;int min_dev =0 ; -int max_dev =CONFIG_HOST_MAX_DEVICES -1 ; +int max_dev =SANDBOX_HOST_MAX_DEVICES -1 ;if (argc >=2 ) {char *ep;char *dev_str = argv[1 ];
drivers/block/sandbox.c +3 -3
@@ -19,11 +19,11 @@DECLARE_GLOBAL_DATA_PTR ;#ifndef CONFIG_BLK -static struct host_block_dev host_devices[CONFIG_HOST_MAX_DEVICES ]; +static struct host_block_dev host_devices[SANDBOX_HOST_MAX_DEVICES ];static struct host_block_dev *find_host_device (int dev) { -if (dev >=0 && dev <CONFIG_HOST_MAX_DEVICES ) +if (dev >=0 && dev <SANDBOX_HOST_MAX_DEVICES )return &host_devices[dev];return NULL ;
@@ -259,7 +259,7 @@ U_BOOT_DRIVER(sandbox_host_blk) = {U_BOOT_LEGACY_BLK (sandbox_host) = { .if_typename ="host" , .if_type =IF_TYPE_HOST , - .max_devs =CONFIG_HOST_MAX_DEVICES , + .max_devs =SANDBOX_HOST_MAX_DEVICES , .get_dev = host_get_dev_err, };#endif
include/configs/sandbox.h +0 -2
@@ -14,8 +14,6 @@#define CONFIG_SYS_TIMER_RATE 1000000#endif -#define CONFIG_HOST_MAX_DEVICES 4 -#define CONFIG_MALLOC_F_ADDR 0x0010000#define CONFIG_SYS_CBSIZE 1024/* Console I/O Buffer Size */
include/sandboxblockdev.h +3 -0
@@ -6,6 +6,9 @@ #ifndef __SANDBOX_BLOCK_DEV__ #define __SANDBOX_BLOCK_DEV__ +/* Maximum number of host devices - see drivers/block/sandbox.c */ +#define SANDBOX_HOST_MAX_DEVICES 4 + struct host_block_dev { #ifndef CONFIG_BLK struct blk_desc blk_dev;
scripts/config_whitelist.txt +0 -1
@@ -440,7 +440,6 @@ CONFIG_HIDE_LOGO_VERSION CONFIG_HIKEY_GPIO CONFIG_HITACHI_SX14 CONFIG_HOSTNAME -CONFIG_HOST_MAX_DEVICES CONFIG_HPS_ALTERAGRP_DBGATCLK CONFIG_HPS_ALTERAGRP_MAINCLK CONFIG_HPS_ALTERAGRP_MPUCLK
Signature · 1 line
2.34.0.rc1.387.gb447b232ab-goog
Re: [PATCH 02/10] sandbox: Drop CONFIG_HOST_MAX_DEVICES
Quoted 1 line · Simon Glass
This can go in the related header file. Drop the CONFIG option.
4 devices seems to be adequate.
Quoted 91 lines
Signed-off-by Simon Glass <[email protected]>---
cmd/host.c | 2 +- drivers/block/sandbox.c | 6 +++--- include/configs/sandbox.h | 2 -- include/sandboxblockdev.h | 3 +++ scripts/config_whitelist.txt | 1 - 5 files changed, 7 insertions(+), 7 deletions(-)cmd/host.c +1
-1@@ -78,7 +78,7 @@ static int do_host_info(struct cmd_tbl *cmdtp, int flag, int argc,if (argc <1 || argc >2 )return CMD_RET_USAGE ;int min_dev =0 ; -int max_dev =CONFIG_HOST_MAX_DEVICES -1 ; +int max_dev =SANDBOX_HOST_MAX_DEVICES -1 ;if (argc >=2 ) {char *ep;char *dev_str = argv[1 ];drivers/block/sandbox.c +3
-3@@ -19,11 +19,11 @@DECLARE_GLOBAL_DATA_PTR ;#ifndef CONFIG_BLK -static struct host_block_dev host_devices[CONFIG_HOST_MAX_DEVICES ]; +static struct host_block_dev host_devices[SANDBOX_HOST_MAX_DEVICES ];static struct host_block_dev *find_host_device (int dev) { -if (dev >=0 && dev <CONFIG_HOST_MAX_DEVICES ) +if (dev >=0 && dev <SANDBOX_HOST_MAX_DEVICES )return &host_devices[dev];return NULL ;@@ -259,7 +259,7 @@ U_BOOT_DRIVER(sandbox_host_blk) = {U_BOOT_LEGACY_BLK (sandbox_host) = { .if_typename ="host" , .if_type =IF_TYPE_HOST , - .max_devs =CONFIG_HOST_MAX_DEVICES , + .max_devs =SANDBOX_HOST_MAX_DEVICES , .get_dev = host_get_dev_err, };#endif include/configs/sandbox.h +0
-2@@ -14,8 +14,6 @@#define CONFIG_SYS_TIMER_RATE 1000000#endif -#define CONFIG_HOST_MAX_DEVICES 4 -#define CONFIG_MALLOC_F_ADDR 0x0010000#define CONFIG_SYS_CBSIZE 1024/* Console I/O Buffer Size */ include/sandboxblockdev.h +3
-0@@ -6,6 +6,9 @@ #ifndef __SANDBOX_BLOCK_DEV__ #define __SANDBOX_BLOCK_DEV__ +/* Maximum number of host devices - see drivers/block/sandbox.c */ +#define SANDBOX_HOST_MAX_DEVICES 4 + struct host_block_dev { #ifndef CONFIG_BLK struct blk_desc blk_dev;scripts/config_whitelist.txt +0
-1@@ -440,7 +440,6 @@ CONFIG_HIDE_LOGO_VERSION CONFIG_HIKEY_GPIO CONFIG_HITACHI_SX14 CONFIG_HOSTNAME -CONFIG_HOST_MAX_DEVICES CONFIG_HPS_ALTERAGRP_DBGATCLK CONFIG_HPS_ALTERAGRP_MAINCLK CONFIG_HPS_ALTERAGRP_MPUCLK
PATCH 3/10 Convert CONFIG_SYS_FDT_LOAD_ADDR to Kconfig
In reply to Simon GlassThis converts the following to Kconfig:
CONFIG_SYS_FDT_LOAD_ADDR
---
arch/sandbox/Kconfig | 10 ++++++++++ include/configs/sandbox.h | 6 ------ scripts/config_whitelist.txt | 1 - 3 files changed, 10 insertions(+), 7 deletions(-)
arch/sandbox/Kconfig +10 -0
@@ -68,4 +68,14 @@ config SANDBOX_BITS_PER_LONG default 32 if HOST_32BIT default 64 if HOST_64BIT +config SYS_FDT_LOAD_ADDR + hex "Address at which to load devicetree" + default 0x100 + help + With sandbox the devicetree is loaded into the emulated RAM. This sets + the address that is used. There must be enough space at this address + to load the full devicetree without it overwriting anything else. + + See `doc/arch/sandbox.rst` for more information. + endmenu
include/configs/sandbox.h +0 -6
@@ -18,12 +18,6 @@#define CONFIG_SYS_CBSIZE 1024/* Console I/O Buffer Size */ -/* turn on command-line edit/c/auto */ - -/* SPI - enable all SPI flash types for testing purposes */ - -#define CONFIG_SYS_FDT_LOAD_ADDR 0x100 -#define CONFIG_PHYSMEM /* Size of our emulated memory */
scripts/config_whitelist.txt +0 -1
@@ -1613,7 +1613,6 @@ CONFIG_SYS_FAST_CLK CONFIG_SYS_FAULT_ECHO_LINK_DOWN CONFIG_SYS_FAULT_MII_ADDR CONFIG_SYS_FDT_BASE -CONFIG_SYS_FDT_LOAD_ADDR CONFIG_SYS_FDT_PAD CONFIG_SYS_FEC0_IOBASE CONFIG_SYS_FEC1_IOBASE
Signature · 1 line
2.34.0.rc1.387.gb447b232ab-goog
PATCH 4/10 Convert CONFIG_PHYSMEM to Kconfig
In reply to Simon GlassThis converts the following to Kconfig:
CONFIG_PHYSMEM
---
README | 8 -------- arch/Kconfig | 2 ++ include/configs/edison.h | 3 --- include/configs/sandbox.h | 2 -- include/configs/x86-common.h | 2 -- lib/Kconfig | 10 ++++++++++ scripts/config_whitelist.txt | 1 - 7 files changed, 12 insertions(+), 16 deletions(-)
README +0 -8
@@ -1716,14 +1716,6 @@ The following options need to be configured: HERMES, IP860, RPXlite, LWMON, FLAGADM -- Access to physical memory region (> 4GB) - Some basic support is provided for operations on memory not - normally accessible to U-Boot - e.g. some architectures - support access to more than 4GB of memory on 32-bit - machines using physical address extension or similar. - Define CONFIG_PHYSMEM to access this basic support, which - currently only supports clearing the memory. - - Error Recovery: CONFIG_NET_RETRY_COUNT
arch/Kconfig +2 -0
@@ -194,6 +194,7 @@ config SANDBOX imply PHY_FIXED imply DM_DSA imply CMD_EXTENSION + imply PHYSMEM config SH bool "SuperH architecture"
@@ -245,6 +246,7 @@ config X86 imply USB_ETHER_SMSC95XX imply USB_HOST_ETHER imply PCH + imply PHYSMEM imply RTC_MC146818 imply ACPIGEN if !QEMU imply SYSINFO if GENERATE_SMBIOS_TABLE
include/configs/edison.h +0 -3
@@ -14,9 +14,6 @@#define CONFIG_SYS_MAXARGS 128#define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE -/* Memory */ -#define CONFIG_PHYSMEM -#define CONFIG_SYS_STACK_SIZE (32 * 1024)#define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE
include/configs/sandbox.h +0 -2
@@ -18,8 +18,6 @@#define CONFIG_SYS_CBSIZE 1024/* Console I/O Buffer Size */ -#define CONFIG_PHYSMEM -/* Size of our emulated memory */ #define SB_CONCAT (x, y) x ## y#define SB_TO_UL (s) SB_CONCAT(s, UL)
include/configs/x86-common.h +0 -2
@@ -14,8 +14,6 @@* High Level Configuration Options * (easy to change) */ -#define CONFIG_PHYSMEM -#define CONFIG_SYS_BOOTM_LEN (16 << 20)/* SATA AHCI storage */
lib/Kconfig +10 -0
@@ -15,6 +15,16 @@ config SYS_NUM_ADDR_MAP help Sets the number of entries in the virtual-physical mapping table. +config PHYSMEM + bool "Access to physical memory region (> 4GB)" + help + Some basic support is provided for operations on memory not + normally accessible to 32-bit U-Boot - e.g. some architectures + support access to more than 4GB of memory on 32-bit + machines using physical address extension or similar. + Enable this to access this basic support, which only supports clearing + the memory. + config BCH bool "Enable Software based BCH ECC" help
scripts/config_whitelist.txt +0 -1
@@ -916,7 +916,6 @@ CONFIG_PCI_SYS_BUS CONFIG_PCI_SYS_PHYS CONFIG_PCI_SYS_SIZE CONFIG_PEN_ADDR_BIG_ENDIAN -CONFIG_PHYSMEM CONFIG_PHY_BASE_ADR CONFIG_PHY_ET1011C_TX_CLK_FIX CONFIG_PHY_ID
Signature · 1 line
2.34.0.rc1.387.gb447b232ab-goog
Re: [PATCH 04/10] Convert CONFIG_PHYSMEM to Kconfig
Quoted 99 lines · Simon Glass
This converts the following to
Kconfig:
CONFIG_PHYSMEMSigned-off-by Simon Glass <[email protected]>---
README | 8 -------- arch/Kconfig | 2 ++ include/configs/edison.h | 3 --- include/configs/sandbox.h | 2 -- include/configs/x86-common.h | 2 -- lib/Kconfig | 10 ++++++++++ scripts/config_whitelist.txt | 1 - 7 files changed, 12 insertions(+), 16 deletions(-)README +0
-8@@ -1716,14 +1716,6 @@ The following options need to be configured: HERMES, IP860, RPXlite, LWMON, FLAGADM -- Access to physical memory region (> 4GB) - Some basic support is provided for operations on memory not - normally accessible to U-Boot - e.g. some architectures - support access to more than 4GB of memory on 32-bit - machines using physical address extension or similar. - Define CONFIG_PHYSMEM to access this basic support, which - currently only supports clearing the memory. - - Error Recovery: CONFIG_NET_RETRY_COUNTarch/Kconfig +2
-0@@ -194,6 +194,7 @@ config SANDBOX imply PHY_FIXED imply DM_DSA imply CMD_EXTENSION + imply PHYSMEM config SH bool "SuperH architecture"@@ -245,6 +246,7 @@ config X86 imply USB_ETHER_SMSC95XX imply USB_HOST_ETHER imply PCH + imply PHYSMEM imply RTC_MC146818 imply ACPIGEN if !QEMU imply SYSINFO if GENERATE_SMBIOS_TABLEinclude/configs/edison.h +0
-3@@ -14,9 +14,6 @@#define CONFIG_SYS_MAXARGS 128#define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE -/* Memory */ -#define CONFIG_PHYSMEM -#define CONFIG_SYS_STACK_SIZE (32 * 1024)#define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASEinclude/configs/sandbox.h +0
-2@@ -18,8 +18,6 @@#define CONFIG_SYS_CBSIZE 1024/* Console I/O Buffer Size */ -#define CONFIG_PHYSMEM -/* Size of our emulated memory */ #define SB_CONCAT (x, y) x ## y#define SB_TO_UL (s) SB_CONCAT(s, UL)include/configs/x86-common.h +0
-2@@ -14,8 +14,6 @@* High Level Configuration Options * (easy to change) */ -#define CONFIG_PHYSMEM -#define CONFIG_SYS_BOOTM_LEN (16 << 20)/* SATA AHCI storage */ lib/Kconfig +0
-0
lib/Kconfig config SYS_NUM_ADDR_MAP · line 19
Quoted 5 lines
lib/Kconfig +2
-0@@ -15,6 +15,16 @@ config SYS_NUM_ADDR_MAP help Sets the number of entries in the virtual-physical mapping table. +config PHYSMEM + bool "Access to physical memory region (> 4GB)"
%s/4GB/4 GiB/
lib/Kconfig config SYS_NUM_ADDR_MAP · line 24
Quoted 5 lines
lib/Kconfig +5
-0+ help + Some basic support is provided for operations on memory not + normally accessible to 32-bit U-Boot - e.g. some architectures + support access to more than 4GB of memory on 32-bit + machines using physical address extension or similar.
You could simply drop all those lines and simply say say:
"Clear memory above 4GiB on 32bit systems."
But do we need this option at all? Why should this memory be cleared?
Let's drop arch/x86/lib/physmem.c instead. It is only used by the Edison board which is out of production since 2017. And that board only had 1 GiB of memory (sic!).
Best regards
Heinrich
Quoted 19 lines
lib/Kconfig +3
-0+ Enable this to access this basic support, which only supports clearing + the memory. + config BCH bool "Enable Software based BCH ECC" helpscripts/config_whitelist.txt +0
-1@@ -916,7 +916,6 @@ CONFIG_PCI_SYS_BUS CONFIG_PCI_SYS_PHYS CONFIG_PCI_SYS_SIZE CONFIG_PEN_ADDR_BIG_ENDIAN -CONFIG_PHYSMEM CONFIG_PHY_BASE_ADR CONFIG_PHY_ET1011C_TX_CLK_FIX CONFIG_PHY_ID
Re: [PATCH 04/10] Convert CONFIG_PHYSMEM to Kconfig
Hi Heinrich,
Quoted 104 lines · Heinrich Schuchardt
Quoted 102 lines · Simon Glass
This converts the following to
Kconfig:
CONFIG_PHYSMEMSigned-off-by Simon Glass <[email protected]>---
README | 8 -------- arch/Kconfig | 2 ++ include/configs/edison.h | 3 --- include/configs/sandbox.h | 2 -- include/configs/x86-common.h | 2 -- lib/Kconfig | 10 ++++++++++ scripts/config_whitelist.txt | 1 - 7 files changed, 12 insertions(+), 16 deletions(-)README +0
-8@@ -1716,14 +1716,6 @@ The following options need to be configured: HERMES, IP860, RPXlite, LWMON, FLAGADM -- Access to physical memory region (> 4GB) - Some basic support is provided for operations on memory not - normally accessible to U-Boot - e.g. some architectures - support access to more than 4GB of memory on 32-bit - machines using physical address extension or similar. - Define CONFIG_PHYSMEM to access this basic support, which - currently only supports clearing the memory. - - Error Recovery: CONFIG_NET_RETRY_COUNTarch/Kconfig +2
-0@@ -194,6 +194,7 @@ config SANDBOX imply PHY_FIXED imply DM_DSA imply CMD_EXTENSION + imply PHYSMEM config SH bool "SuperH architecture"@@ -245,6 +246,7 @@ config X86 imply USB_ETHER_SMSC95XX imply USB_HOST_ETHER imply PCH + imply PHYSMEM imply RTC_MC146818 imply ACPIGEN if !QEMU imply SYSINFO if GENERATE_SMBIOS_TABLEinclude/configs/edison.h +0
-3@@ -14,9 +14,6 @@#define CONFIG_SYS_MAXARGS 128#define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE -/* Memory */ -#define CONFIG_PHYSMEM -#define CONFIG_SYS_STACK_SIZE (32 * 1024)#define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASEinclude/configs/sandbox.h +0
-2@@ -18,8 +18,6 @@#define CONFIG_SYS_CBSIZE 1024/* Console I/O Buffer Size */ -#define CONFIG_PHYSMEM -/* Size of our emulated memory */ #define SB_CONCAT (x, y) x ## y#define SB_TO_UL (s) SB_CONCAT(s, UL)include/configs/x86-common.h +0
-2@@ -14,8 +14,6 @@* High Level Configuration Options * (easy to change) */ -#define CONFIG_PHYSMEM -#define CONFIG_SYS_BOOTM_LEN (16 << 20)/* SATA AHCI storage */ lib/Kconfig +0
-0@@ -15,6 +15,16 @@ config SYS_NUM_ADDR_MAP help Sets the number of entries in the virtual-physical mapping table.
Quoted 4 lines
lib/Kconfig config SYS_NUM_ADDR_MAP · line 19
Quoted 2 lines
lib/Kconfig +2
-0+config PHYSMEM + bool "Access to physical memory region (> 4GB)"%s/4GB/4 GiB/
Please let's not add that junk to U-Boot.
Quoted 9 lines
lib/Kconfig config SYS_NUM_ADDR_MAP · line 24
Quoted 6 lines
lib/Kconfig +5
-0+ help + Some basic support is provided for operations on memory not + normally accessible to 32-bit U-Boot - e.g. some architectures + support access to more than 4GB of memory on 32-bit + machines using physical address extension or similar.You could simply drop all those lines and simply say say:
Quoted 7 lines
"Clear memory above 4GiB on 32bit systems."
But do we need this option at all? Why should this memory be cleared?
Let's drop
arch/x86/lib/physmem.cinstead. It is only used by the Edison board which is out of production since 2017. And that board only had 1 GiB of memory (sic!).
This option is used by Chrome OS vboot so I don't want to drop it.
Regards,
Simon
Re: [PATCH 04/10] Convert CONFIG_PHYSMEM to Kconfig
Quoted 107 lines · Simon Glass
Hi Heinrich,
Quoted 104 lines · Heinrich Schuchardt
Quoted 102 lines · Simon Glass
This converts the following to
Kconfig:
CONFIG_PHYSMEMSigned-off-by Simon Glass <[email protected]>---
README | 8 -------- arch/Kconfig | 2 ++ include/configs/edison.h | 3 --- include/configs/sandbox.h | 2 -- include/configs/x86-common.h | 2 -- lib/Kconfig | 10 ++++++++++ scripts/config_whitelist.txt | 1 - 7 files changed, 12 insertions(+), 16 deletions(-)README +0
-8@@ -1716,14 +1716,6 @@ The following options need to be configured: HERMES, IP860, RPXlite, LWMON, FLAGADM -- Access to physical memory region (> 4GB) - Some basic support is provided for operations on memory not - normally accessible to U-Boot - e.g. some architectures - support access to more than 4GB of memory on 32-bit - machines using physical address extension or similar. - Define CONFIG_PHYSMEM to access this basic support, which - currently only supports clearing the memory. - - Error Recovery: CONFIG_NET_RETRY_COUNTarch/Kconfig +2
-0@@ -194,6 +194,7 @@ config SANDBOX imply PHY_FIXED imply DM_DSA imply CMD_EXTENSION + imply PHYSMEM config SH bool "SuperH architecture"@@ -245,6 +246,7 @@ config X86 imply USB_ETHER_SMSC95XX imply USB_HOST_ETHER imply PCH + imply PHYSMEM imply RTC_MC146818 imply ACPIGEN if !QEMU imply SYSINFO if GENERATE_SMBIOS_TABLEinclude/configs/edison.h +0
-3@@ -14,9 +14,6 @@#define CONFIG_SYS_MAXARGS 128#define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE -/* Memory */ -#define CONFIG_PHYSMEM -#define CONFIG_SYS_STACK_SIZE (32 * 1024)#define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASEinclude/configs/sandbox.h +0
-2@@ -18,8 +18,6 @@#define CONFIG_SYS_CBSIZE 1024/* Console I/O Buffer Size */ -#define CONFIG_PHYSMEM -/* Size of our emulated memory */ #define SB_CONCAT (x, y) x ## y#define SB_TO_UL (s) SB_CONCAT(s, UL)include/configs/x86-common.h +0
-2@@ -14,8 +14,6 @@* High Level Configuration Options * (easy to change) */ -#define CONFIG_PHYSMEM -#define CONFIG_SYS_BOOTM_LEN (16 << 20)/* SATA AHCI storage */ lib/Kconfig +0
-0@@ -15,6 +15,16 @@ config SYS_NUM_ADDR_MAP help Sets the number of entries in the virtual-physical mapping table.
Quoted 6 lines
Quoted 4 lines
lib/Kconfig config SYS_NUM_ADDR_MAP · line 19
Quoted 2 lines
lib/Kconfig +2
-0+config PHYSMEM + bool "Access to physical memory region (> 4GB)"%s/4GB/4 GiB/
Please let's not add that junk to U-Boot.
4GB = 4,000,000,000 bytes period.
We use GiB all over U-Boot. So eliminate this GB "junk" here.
Best regards
Heinrich
Quoted 23 lines
Quoted 10 lines
lib/Kconfig config SYS_NUM_ADDR_MAP · line 24
Quoted 7 lines
lib/Kconfig +5
-0+ help + Some basic support is provided for operations on memory not + normally accessible to 32-bit U-Boot - e.g. some architectures + support access to more than 4GB of memory on 32-bit + machines using physical address extension or similar.You could simply drop all those lines and simply say say:
Quoted 7 lines
"Clear memory above 4GiB on 32bit systems."
But do we need this option at all? Why should this memory be cleared?
Let's drop
arch/x86/lib/physmem.cinstead. It is only used by the Edison board which is out of production since 2017. And that board only had 1 GiB of memory (sic!).This option is used by Chrome OS vboot so I don't want to drop it.
Regards,
Simon
Re: [PATCH 04/10] Convert CONFIG_PHYSMEM to Kconfig
Quoted 108 lines · Heinrich Schuchardt
Quoted 107 lines · Simon Glass
Hi Heinrich,
Quoted 104 lines · Heinrich Schuchardt
Quoted 102 lines · Simon Glass
This converts the following to
Kconfig:
CONFIG_PHYSMEMSigned-off-by Simon Glass <[email protected]>---
README | 8 --------
arch/Kconfig | 2 ++
include/configs/edison.h | 3 ---
include/configs/sandbox.h | 2 --
include/configs/x86-common.h| 2 --
lib/Kconfig | 10 ++++++++++
scripts/config_whitelist.txt| 1 -7 files changed, 12 insertions(+), 16 deletions(-)README +0
-0@@ -1716,14 +1716,6 @@ The following options need to be configured: HERMES, IP860, RPXlite, LWMON,FLAGADM
-- Access to physical memory region (> 4GB)
- Some basic support is provided for operations on memory not - normally accessible to U-Boot - e.g. some architectures - support access to more than 4GB of memory on 32-bit - machines using physical address extension or similar. - DefineCONFIG_PHYSMEMto access this basic support, which - currently only supports clearing the memory.
-
- Error Recovery:
CONFIG_NET_RETRY_COUNTarch/Kconfig +0
-0@@ -194,6 +194,7 @@ config SANDBOXimply
PHY_FIXED
implyDM_DSA
implyCMD_EXTENSION
+ imply PHYSMEMconfig SH
bool "SuperH architecture"arch/Kconfig +0
-0@@ -245,6 +246,7 @@ config X86imply
USB_ETHER_SMSC95XX
implyUSB_HOST_ETHER
imply PCH
+ imply PHYSMEM
implyRTC_MC146818
imply ACPIGEN if !QEMU
imply SYSINFO ifGENERATE_SMBIOS_TABLEinclude/configs/edison.h +0
-3@@ -14,9 +14,6 @@ #define CONFIG_SYS_MAXARGS 128 #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE -/* Memory */ -#define CONFIG_PHYSMEM - #define CONFIG_SYS_STACK_SIZE (32 * 1024) #define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASEinclude/configs/sandbox.h +0
-2@@ -18,8 +18,6 @@ #define CONFIG_SYS_CBSIZE 1024 /* Console I/O Buffer Size */ -#define CONFIG_PHYSMEM - /* Size of our emulated memory */ #define SB_CONCAT(x, y) x ## y #define SB_TO_UL(s) SB_CONCAT(s, UL)include/configs/x86-common.h +0
-2@@ -14,8 +14,6 @@* High Level Configuration Options * (easy to change) */ -#define CONFIG_PHYSMEM - #define CONFIG_SYS_BOOTM_LEN (16 << 20) /* SATA AHCI storage */lib/Kconfig +0
-0@@ -15,6 +15,16 @@ config SYS_NUM_ADDR_MAPhelp
Sets the number of entries in the virtual-physical mapping table.
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines
+config PHYSMEM
+ bool "Access to physical memory region (> 4GB)"%s/4GB/4 GiB/
Please let's not add that junk to U-Boot.
4GB = 4,000,000,000 bytes period.
Only if you're a hard drive manufacturer ;)
--Sean
Re: [PATCH 04/10] Convert CONFIG_PHYSMEM to Kconfig
Quoted 2 lines · Sean Anderson
Quoted 1 line · Heinrich Schuchardt
On 11/17/21 03:48, Simon Glass wrote:
<snip />
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines
%s/4GB/4 GiB/
Please let's not add that junk to U-Boot.
4GB = 4,000,000,000 bytes period.
Only if you're a hard drive manufacturer ;)
I suggest reading ISO/IEC 80000-13:2008.
Best regards
Heinrich
Re: [PATCH 04/10] Convert CONFIG_PHYSMEM to Kconfig
Quoted 7 lines · Heinrich Schuchardt
Quoted 2 lines · Sean Anderson
Quoted 1 line · Heinrich Schuchardt
On 11/17/21 03:48, Simon Glass wrote:
<snip />
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 2 lines
%s/4GB/4 GiB/
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
Please let's not add that junk to U-Boot.
4GB = 4,000,000,000 bytes period.
Only if you're a hard drive manufacturer ;)
I suggest reading ISO/IEC 80000-13:2008.
FWIW I like how truncate(1) does it:
Quoted 2 lines
Units are K,M,G,T,P,E,Z,Y (powers of 1024) or KB,MB,... (powers of 1000). Binary prefixes can be used, too: KiB=K, MiB=M, and so on.
Which leaves the awkward units alone, and reserves the most convenient suffixes for natural units.
--Sean
Re: [PATCH 04/10] Convert CONFIG_PHYSMEM to Kconfig
Quoted 16 lines · Sean Anderson
Quoted 7 lines · Heinrich Schuchardt
Quoted 2 lines · Sean Anderson
Quoted 1 line · Heinrich Schuchardt
On 11/17/21 03:48, Simon Glass wrote:
<snip />
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 2 lines
%s/4GB/4 GiB/
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
Please let's not add that junk to U-Boot.
4GB = 4,000,000,000 bytes period.
Only if you're a hard drive manufacturer ;)
I suggest reading ISO/IEC 80000-13:2008.
Quoted 7 lines
FWIW I like how truncate(1) does it:
Quoted 2 lines
Units are K,M,G,T,P,E,Z,Y (powers of 1024) or KB,MB,... (powers of 1000). Binary prefixes can be used, too: KiB=K, MiB=M, and so on.
Which leaves the awkward units alone, and reserves the most convenient suffixes for natural units.
We're currently not at all consistent in Kconfig text, and I didn't check doc/ (where I suspect Heinrich has been enforcing consistency).
I do feel like the truncate(1) method is a good compromise.
Signature · 1 line
Tom
Re: [PATCH 04/10] Convert CONFIG_PHYSMEM to Kconfig
Hi Tom,
Quoted 23 lines · Tom Rini
Quoted 21 lines · Sean Anderson
Quoted 7 lines · Heinrich Schuchardt
Quoted 2 lines · Sean Anderson
Quoted 1 line · Heinrich Schuchardt
On 11/17/21 03:48, Simon Glass wrote:
<snip />
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 2 lines
%s/4GB/4 GiB/
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
Please let's not add that junk to U-Boot.
4GB = 4,000,000,000 bytes period.
Only if you're a hard drive manufacturer ;)
I suggest reading ISO/IEC 80000-13:2008.
FWIW I like how truncate(1) does it:
Quoted 2 lines
Units are K,M,G,T,P,E,Z,Y (powers of 1024) or KB,MB,... (powers of 1000). Binary prefixes can be used, too: KiB=K, MiB=M, and so on.
Quoted 7 lines
Quoted 2 lines
Which leaves the awkward units alone, and reserves the most convenient suffixes for natural units.
We're currently not at all consistent in
Kconfigtext, and I didn't check doc/ (where I suspect Heinrich has been enforcing consistency).I do feel like the truncate(1) method is a good compromise.
Yes I agree.
Regards,
Simon
Re: [PATCH 04/10] Convert CONFIG_PHYSMEM to Kconfig
In reply to Heinrich SchuchardtHi Heinrich,
Quoted 8 lines · Heinrich Schuchardt
Quoted 2 lines · Sean Anderson
Quoted 1 line · Heinrich Schuchardt
On 11/17/21 03:48, Simon Glass wrote:
<snip />
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 2 lines
%s/4GB/4 GiB/
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
Please let's not add that junk to U-Boot.
4GB = 4,000,000,000 bytes period.
Only if you're a hard drive manufacturer ;)
I suggest reading ISO/IEC 80000-13:2008.
I'm not sure I have that many Swiss Francs on me.
Those hard-drive people have a lot to answer for. My hard drive says TB, not TiB, even now.
Anyway I don't really mind going that way. It seems to be a losing battle at this point.
Regards,
Simon
PATCH 5/10 sandbox: video: Drop CONFIG_LCD_BMP_RLE8
In reply to Simon GlassThis is not defined by any board except sandbox. Even sandbox doesn't actually use it since it has migrated to DM_VIDEO.
Drop this option. Remove the dead code also, for completeness, even though the whole lcd.c file will be dropped soon.
---
README | 4 - common/lcd.c | 142 ----------------------------------- include/configs/sandbox.h | 3 - scripts/config_whitelist.txt | 1 - 4 files changed, 150 deletions(-)
README +0 -4
@@ -1181,10 +1181,6 @@ The following options need to be configured: If CONFIG_LCD_ROTATION is not defined, the console will be initialized with 0degree rotation. - CONFIG_LCD_BMP_RLE8 - - Support drawing of RLE8-compressed bitmaps on the LCD. - - MII/PHY support: CONFIG_PHY_CLOCK_FREQ (ppc4xx)
common/lcd.c +0 -142
154 lines not on this page · raw message
include/configs/sandbox.h +0 -3
@@ -50,9 +50,6 @@/* LCD and keyboard require SDL support */ #ifdef CONFIG_SANDBOX_SDL -#define LCD_BPP LCD_COLOR16 -#define CONFIG_LCD_BMP_RLE8 -#define CONFIG_KEYBOARD #define SANDBOX_SERIAL_SETTINGS "stdin=serial,cros-ec-keyb,usbkbd\0" \
scripts/config_whitelist.txt +0 -1
@@ -697,7 +697,6 @@ CONFIG_LAYERSCAPE_NS_ACCESS CONFIG_LBA48 CONFIG_LBDAF CONFIG_LCD_ALIGNMENT -CONFIG_LCD_BMP_RLE8 CONFIG_LCD_DT_SIMPLEFB CONFIG_LCD_INFO CONFIG_LCD_INFO_BELOW_LOGO
Signature · 1 line
2.34.0.rc1.387.gb447b232ab-goog
PATCH 6/10 Convert CONFIG_KEYBOARD to Kconfig
In reply to Simon GlassThis converts the following to Kconfig:
CONFIG_KEYBOARD
---
README | 8 -------- arch/Kconfig | 1 + arch/arm/mach-exynos/Kconfig | 1 + configs/chromebit_mickey_defconfig | 1 + configs/chromebook_jerry_defconfig | 1 + configs/chromebook_minnie_defconfig | 1 + configs/chromebook_speedy_defconfig | 1 + configs/novena_defconfig | 1 + configs/smdk5250_defconfig | 1 + configs/smdk5420_defconfig | 1 + drivers/input/Kconfig | 9 +++++++++ include/configs/exynos5-dt-common.h | 3 --- include/configs/novena.h | 1 - include/configs/sandbox.h | 2 -- include/configs/smdk5250.h | 1 - include/configs/smdk5420.h | 2 -- include/configs/veyron.h | 2 -- scripts/config_whitelist.txt | 1 - 18 files changed, 18 insertions(+), 20 deletions(-)
README +0 -8
@@ -1076,14 +1076,6 @@ The following options need to be configured: - Keyboard Support: See Kconfig help for available keyboard drivers. - CONFIG_KEYBOARD - - Define this to enable a custom keyboard support. - This simply calls drv_keyboard_init() which must be - defined in your board-specific files. This option is deprecated - and is only used by novena. For new boards, use driver model - instead. - - Video support: CONFIG_FSL_DIU_FB Enable the Freescale DIU video driver. Reference boards for
arch/Kconfig +1 -0
@@ -195,6 +195,7 @@ config SANDBOX imply DM_DSA imply CMD_EXTENSION imply PHYSMEM + imply KEYBOARD config SH bool "SuperH architecture"
arch/arm/mach-exynos/Kconfig +1 -0
@@ -23,6 +23,7 @@ config ARCH_EXYNOS5 imply CMD_HASH imply CRC32_VERIFY imply HASH_VERIFY + imply KEYBOARD imply USB_ETHER_ASIX imply USB_ETHER_RTL8152 imply USB_ETHER_SMSC95XX
configs/chromebit_mickey_defconfig +1 -0
@@ -61,6 +61,7 @@ CONFIG_I2C_CROS_EC_TUNNEL=y CONFIG_SYS_I2C_ROCKCHIP=y CONFIG_I2C_MUX=y CONFIG_DM_KEYBOARD=y +CONFIG_KEYBOARD=y CONFIG_CROS_EC_KEYB=y CONFIG_CROS_EC=y CONFIG_CROS_EC_SPI=y
configs/chromebook_jerry_defconfig +1 -0
@@ -63,6 +63,7 @@ CONFIG_I2C_CROS_EC_TUNNEL=y CONFIG_SYS_I2C_ROCKCHIP=y CONFIG_I2C_MUX=y CONFIG_DM_KEYBOARD=y +CONFIG_KEYBOARD=y CONFIG_CROS_EC_KEYB=y CONFIG_CROS_EC=y CONFIG_CROS_EC_SPI=y
configs/chromebook_minnie_defconfig +1 -0
@@ -63,6 +63,7 @@ CONFIG_I2C_CROS_EC_TUNNEL=y CONFIG_SYS_I2C_ROCKCHIP=y CONFIG_I2C_MUX=y CONFIG_DM_KEYBOARD=y +CONFIG_KEYBOARD=y CONFIG_CROS_EC_KEYB=y CONFIG_CROS_EC=y CONFIG_CROS_EC_SPI=y
configs/chromebook_speedy_defconfig +1 -0
@@ -62,6 +62,7 @@ CONFIG_I2C_CROS_EC_TUNNEL=y CONFIG_SYS_I2C_ROCKCHIP=y CONFIG_I2C_MUX=y CONFIG_DM_KEYBOARD=y +CONFIG_KEYBOARD=y CONFIG_CROS_EC_KEYB=y CONFIG_CROS_EC=y CONFIG_CROS_EC_SPI=y
configs/novena_defconfig +1 -0
@@ -60,6 +60,7 @@ CONFIG_DWC_AHSATA=y CONFIG_SYS_I2C_LEGACY=y CONFIG_SPL_SYS_I2C_LEGACY=y CONFIG_SYS_I2C_MXC=y +CONFIG_KEYBOARD=y CONFIG_FSL_USDHC=y CONFIG_PHYLIB=y CONFIG_PHY_MICREL=y
configs/smdk5250_defconfig +1 -0
@@ -43,6 +43,7 @@ CONFIG_USE_ENV_SPI_BUS=y CONFIG_ENV_SPI_BUS=1 CONFIG_SYS_RELOC_GD_ENV_ADDR=y CONFIG_SYS_I2C_S3C24X0=y +# CONFIG_KEYBOARD is not set CONFIG_SUPPORT_EMMC_BOOT=y CONFIG_MMC_DW=y CONFIG_MMC_SDHCI=y
configs/smdk5420_defconfig +1 -0
@@ -38,6 +38,7 @@ CONFIG_USE_ENV_SPI_BUS=y CONFIG_ENV_SPI_BUS=1 CONFIG_SYS_RELOC_GD_ENV_ADDR=y CONFIG_SYS_I2C_S3C24X0=y +# CONFIG_KEYBOARD is not set CONFIG_SUPPORT_EMMC_BOOT=y CONFIG_MMC_DW=y CONFIG_MMC_SDHCI=y
drivers/input/Kconfig +9 -0
@@ -38,6 +38,15 @@ config TPL_DM_KEYBOARD includes methods to start/stop the device, check for available input and update LEDs if the keyboard has them. +config KEYBOARD + bool "Enable legacy keyboard support (deprecated)" + help + Enable this to enable a custom keyboard support. + This simply calls drv_keyboard_init() which must be + defined in your board-specific files. This option is deprecated + and is only used by novena. For new boards, use driver model + instead. + config CROS_EC_KEYB bool "Enable Chrome OS EC keyboard support" depends on INPUT
include/configs/exynos5-dt-common.h +0 -3
@@ -30,7 +30,4 @@#define LCD_BPP LCD_COLOR16#endif -/* Enable keyboard */ -#define CONFIG_KEYBOARD -#endif
include/configs/novena.h +0 -1
@@ -9,7 +9,6 @@#define __CONFIG_H/* System configurations */ -#define CONFIG_KEYBOARD #include "mx6_common.h"
include/configs/sandbox.h +0 -2
@@ -50,8 +50,6 @@/* LCD and keyboard require SDL support */ #ifdef CONFIG_SANDBOX_SDL -#define CONFIG_KEYBOARD -#define SANDBOX_SERIAL_SETTINGS "stdin=serial,cros-ec-keyb,usbkbd\0" \ "stdout=serial,vidconsole\0" \ "stderr=serial,vidconsole\0"
include/configs/smdk5250.h +0 -1
@@ -14,7 +14,6 @@#undef CONFIG_EXYNOS_FB#undef CONFIG_EXYNOS_DP -#undef CONFIG_KEYBOARD#define CONFIG_BOARD_COMMON
include/configs/smdk5420.h +0 -2
@@ -15,8 +15,6 @@#undef CONFIG_EXYNOS_FB#undef CONFIG_EXYNOS_DP -#undef CONFIG_KEYBOARD -#define CONFIG_BOARD_COMMON #define CONFIG_SMDK5420 /* which is in a SMDK5420 */
include/configs/veyron.h +0 -2
@@ -13,6 +13,4 @@#include <configs/rk3288_common.h> -#define CONFIG_KEYBOARD -#endif
scripts/config_whitelist.txt +0 -1
@@ -642,7 +642,6 @@ CONFIG_JFFS2_SUMMARY CONFIG_JRSTARTR_JR0 CONFIG_JTAG_CONSOLE CONFIG_KEEP_SERVERADDR -CONFIG_KEYBOARD CONFIG_KEY_REVOCATION CONFIG_KIRKWOOD_EGIGA_INIT CONFIG_KIRKWOOD_GPIO
Signature · 1 line
2.34.0.rc1.387.gb447b232ab-goog
PATCH 7/10 keyboard: Add a migration message
In reply to Simon GlassA few boards still use the old keyboard mechanism. Set a deadline for them to update to driver model.
---
Makefile | 1 + doc/develop/driver-model/migration.rst | 8 ++++++++ 2 files changed, 9 insertions(+)
Makefile +1 -0
@@ -1122,6 +1122,7 @@ endif $(CONFIG_WATCHDOG)$(CONFIG_HW_WATCHDOG)) $(call deprecated,CONFIG_DM_ETH,Ethernet drivers,v2020.07,$(CONFIG_NET)) $(call deprecated,CONFIG_DM_I2C,I2C drivers,v2022.04,$(CONFIG_SYS_I2C_LEGACY)) + $(call deprecated,CONFIG_DM_KEYBOARD,Keyboard drivers,v2022.10,$(CONFIG_KEYBOARD)) @# Check that this build does not use CONFIG options that we do not @# know about unless they are in Kconfig. All the existing CONFIG @# options are whitelisted, so new ones should not be added.
doc/develop/driver-model/migration.rst +8 -0
@@ -98,3 +98,11 @@ Deadline: 2021.10 The I2C subsystem has supported the driver model since early 2015. Maintainers should submit patches switching over to using CONFIG_DM_I2C and other base driver model options in time for inclusion in the 2021.10 release. + +CONFIG_KEYBOARD +--------------- +Deadline: 2022.10 + +This is a legacy option which has been replaced by driver model. +Maintainers should submit patches switching over to using CONFIG_DM_KEYBOARD and +other base driver model options in time for inclusion in the 2022.10 release.
Signature · 1 line
2.34.0.rc1.387.gb447b232ab-goog
PATCH 8/10 sandbox: Drop CONFIG_SYS_TIMER_RATE
In reply to Simon GlassThis is not used by sandbox since it uses driver model for the timer.
Drop it.
Also update the tools_only build to avoid build errors, since it does actually build U-Boot too. Enable DM so we can use CONFIG_TIMER, disable EFI_LOADER to avoid an error about board_quiesce_devices() and disable NET to avoid having to define CONFIG_AVB_BUF_ADDR
---
configs/tools-only_defconfig | 7 +++---- include/configs/sandbox.h | 4 ---- 2 files changed, 3 insertions(+), 8 deletions(-)
configs/tools-only_defconfig +3 -4
@@ -11,23 +11,22 @@ CONFIG_MISC_INIT_F=y # CONFIG_CMD_BOOTM is not set # CONFIG_CMD_ELF is not set # CONFIG_CMD_EXTENSION is not set -CONFIG_BOOTP_DNS2=y # CONFIG_CMD_DATE is not set CONFIG_OF_CONTROL=y CONFIG_SYS_RELOC_GD_ENV_ADDR=y -CONFIG_BOOTP_SEND_HOSTNAME=y -CONFIG_IP_DEFRAG=y +# CONFIG_NET is not set # CONFIG_ACPIGEN is not set CONFIG_AXI=y CONFIG_AXI_SANDBOX=y -# CONFIG_UDP_FUNCTION_FASTBOOT is not set CONFIG_SANDBOX_GPIO=y CONFIG_PCI=y CONFIG_PCI_SANDBOX=y CONFIG_DM_RTC=y CONFIG_SOUND=y CONFIG_SYSRESET=y +CONFIG_TIMER=y CONFIG_I2C_EDID=y # CONFIG_VIRTIO_MMIO is not set # CONFIG_VIRTIO_PCI is not set # CONFIG_VIRTIO_SANDBOX is not set +# CONFIG_EFI_LOADER is not set
include/configs/sandbox.h +0 -4
@@ -10,10 +10,6 @@#define CONFIG_IO_TRACE #endif -#ifndef CONFIG_TIMER -#define CONFIG_SYS_TIMER_RATE 1000000 -#endif -#define CONFIG_MALLOC_F_ADDR 0x0010000#define CONFIG_SYS_CBSIZE 1024/* Console I/O Buffer Size */
Signature · 1 line
2.34.0.rc1.387.gb447b232ab-goog
PATCH 9/10 ide: Drop unused CONFIG options
In reply to Simon GlassCONFIG_SYS_ATA_PORT_ADDR is not used in the code anymore. Drop it and use ATA_PORT_ADDR() locally instead.
Drop CONFIG_IDE_RESET_ROUTINE and CONFIG_IDE_SWAP_IO which are also unused.
---
README | 3 --- arch/arm/mach-kirkwood/include/mach/config.h | 2 -- arch/powerpc/include/asm/config.h | 3 --- drivers/block/ide.c | 12 +++++------- include/configs/edminiv2.h | 2 -- include/configs/r2dplus.h | 1 - scripts/config_whitelist.txt | 2 -- 7 files changed, 5 insertions(+), 20 deletions(-)
README +0 -3
@@ -785,9 +785,6 @@ The following options need to be configured: least one non-MTD partition type as well. - IDE Reset method: - CONFIG_IDE_RESET_ROUTINE - this is defined in several - board configurations files but used nowhere! - CONFIG_IDE_RESET - is this is defined, IDE Reset will be performed by calling the function ide_set_reset(int reset)
arch/arm/mach-kirkwood/include/mach/config.h +0 -2
@@ -67,8 +67,6 @@*/ #ifdef CONFIG_IDE #define __io -/* Needs byte-swapping for ATA data register */ -#define CONFIG_IDE_SWAP_IO /* Data, registers and alternate blocks are at the same offset */ #define CONFIG_SYS_ATA_DATA_OFFSET (0x0100)#define CONFIG_SYS_ATA_REG_OFFSET (0x0100)
arch/powerpc/include/asm/config.h +0 -3
@@ -51,9 +51,6 @@/* The FMAN driver uses the PHYLIB infrastructure */ -/* All PPC boards must swap IDE bytes */ -#define CONFIG_IDE_SWAP_IO -#if defined(CONFIG_DM_SERIAL ) && !defined(CONFIG_CLK_MPC83XX )/* * TODO: Convert this to a clock driver exists that can give us the UART
drivers/block/ide.c +5 -7
@@ -45,9 +45,7 @@ struct blk_desc ide_dev_desc[CONFIG_SYS_IDE_MAXDEVICE];#define IDE_SPIN_UP_TIME_OUT 5000/* 5 sec spin-up timeout */ -#ifndef CONFIG_SYS_ATA_PORT_ADDR -#define CONFIG_SYS_ATA_PORT_ADDR (port) (port) -#endif +#define ATA_PORT_ADDR (port) (port)#ifdef CONFIG_IDE_RESET extern void ide_set_reset (int idereset);
@@ -679,7 +677,7 @@ __weak void ide_outb(int dev, int port, unsigned char val) {debug ("ide_outb (dev= %d, port= 0x%x, val= 0x%02x) : @ 0x%08lx\n" , dev, port, val, - (ATA_CURR_BASE (dev) +CONFIG_SYS_ATA_PORT_ADDR (port))); + (ATA_CURR_BASE (dev) +ATA_PORT_ADDR (port)));#if defined(CONFIG_IDE_AHB )if (port) {
@@ -690,7 +688,7 @@ __weak void ide_outb(int dev, int port, unsigned char val) outb(val, (ATA_CURR_BASE(dev))); }#else -outb (val, (ATA_CURR_BASE (dev) +CONFIG_SYS_ATA_PORT_ADDR (port))); +outb (val, (ATA_CURR_BASE (dev) +ATA_PORT_ADDR (port)));#endif }
@@ -701,12 +699,12 @@ __weak unsigned char ide_inb(int dev, int port)#if defined(CONFIG_IDE_AHB ) val =ide_read_register (dev, port);#else - val =inb ((ATA_CURR_BASE (dev) +CONFIG_SYS_ATA_PORT_ADDR (port))); + val =inb ((ATA_CURR_BASE (dev) +ATA_PORT_ADDR (port)));#endif debug ("ide_inb (dev= %d, port= 0x%x) : @ 0x%08lx -> 0x%02x\n" , dev, port, - (ATA_CURR_BASE (dev) +CONFIG_SYS_ATA_PORT_ADDR (port)), val); + (ATA_CURR_BASE (dev) +ATA_PORT_ADDR (port)), val);return val; }
include/configs/edminiv2.h +0 -2
@@ -113,8 +113,6 @@*/ #ifdef CONFIG_IDE #define __io -/* Needs byte-swapping for ATA data register */ -#define CONFIG_IDE_SWAP_IO /* Data, registers and alternate blocks are at the same offset */ #define CONFIG_SYS_ATA_DATA_OFFSET (0x0100)#define CONFIG_SYS_ATA_REG_OFFSET (0x0100)
include/configs/r2dplus.h +0 -1
@@ -44,7 +44,6 @@#define CONFIG_SYS_ATA_DATA_OFFSET 0x1000/* data reg offset */ #define CONFIG_SYS_ATA_REG_OFFSET 0x1000/* reg offset */ #define CONFIG_SYS_ATA_ALT_OFFSET 0x800/* alternate register offset */ -#define CONFIG_IDE_SWAP_IO /* * SuperH PCI Bridge Configration
scripts/config_whitelist.txt +0 -2
@@ -605,7 +605,6 @@ CONFIG_ICACHE CONFIG_ICS307_REFCLK_HZ CONFIG_IDE_PREINIT CONFIG_IDE_RESET -CONFIG_IDE_SWAP_IO CONFIG_IMA CONFIG_IMX CONFIG_IMX6_PWM_PER_CLK
@@ -1231,7 +1230,6 @@ CONFIG_SYS_ATA_BASE_ADDR CONFIG_SYS_ATA_DATA_OFFSET CONFIG_SYS_ATA_IDE0_OFFSET CONFIG_SYS_ATA_IDE1_OFFSET -CONFIG_SYS_ATA_PORT_ADDR CONFIG_SYS_ATA_REG_OFFSET CONFIG_SYS_ATA_STRIDE CONFIG_SYS_ATMEL_CPU_NAME
Signature · 1 line
2.34.0.rc1.387.gb447b232ab-goog
Re: [PATCH 09/10] ide: Drop unused CONFIG options
Quoted 64 lines · Simon Glass
CONFIG_SYS_ATA_PORT_ADDRis not used in the code anymore. Drop it and useATA_PORT_ADDR()locally instead.Drop
CONFIG_IDE_RESET_ROUTINEandCONFIG_IDE_SWAP_IOwhich are also unused.Signed-off-by Simon Glass <[email protected]>---
README | 3 --- arch/arm/mach-kirkwood/include/mach/config.h | 2 -- arch/powerpc/include/asm/config.h | 3 --- drivers/block/ide.c | 12 +++++------- include/configs/edminiv2.h | 2 -- include/configs/r2dplus.h | 1 - scripts/config_whitelist.txt | 2 -- 7 files changed, 5 insertions(+), 20 deletions(-)README +0
-3@@ -785,9 +785,6 @@ The following options need to be configured: least one non-MTD partition type as well. - IDE Reset method: - CONFIG_IDE_RESET_ROUTINE - this is defined in several - board configurations files but used nowhere! - CONFIG_IDE_RESET - is this is defined, IDE Reset will be performed by calling the function ide_set_reset(int reset)arch/arm/mach-kirkwood/include/mach/config.h +0
-2@@ -67,8 +67,6 @@*/ #ifdef CONFIG_IDE #define __io -/* Needs byte-swapping for ATA data register */ -#define CONFIG_IDE_SWAP_IO /* Data, registers and alternate blocks are at the same offset */ #define CONFIG_SYS_ATA_DATA_OFFSET (0x0100)#define CONFIG_SYS_ATA_REG_OFFSET (0x0100)arch/powerpc/include/asm/config.h +0
-3@@ -51,9 +51,6 @@/* The FMAN driver uses the PHYLIB infrastructure */ -/* All PPC boards must swap IDE bytes */ -#define CONFIG_IDE_SWAP_IO -#if defined(CONFIG_DM_SERIAL ) && !defined(CONFIG_CLK_MPC83XX )/* * TODO: Convert this to a clock driver exists that can give us the UART drivers/block/ide.c +0
-0
drivers/block/ide.c struct blk_desc ide_dev_desc[CONFIG_SYS_IDE_MAXDEVICE]; · line 48
Quoted 7 lines
drivers/block/ide.c +1
-3@@ -45,9 +45,7 @@ struct blk_desc ide_dev_desc[CONFIG_SYS_IDE_MAXDEVICE];#define IDE_SPIN_UP_TIME_OUT 5000/* 5 sec spin-up timeout */ -#ifndef CONFIG_SYS_ATA_PORT_ADDR -#define CONFIG_SYS_ATA_PORT_ADDR (port) (port) -#endif +#define ATA_PORT_ADDR (port) (port)
Please, drop this superfluous #define. You can use the argument directly.
Best regards
Heinrich
Quoted 82 lines
drivers/block/ide.c +4
-4#ifdef CONFIG_IDE_RESET extern void ide_set_reset (int idereset);@@ -679,7 +677,7 @@ __weak void ide_outb(int dev, int port, unsigned char val) {debug ("ide_outb (dev= %d, port= 0x%x, val= 0x%02x) : @ 0x%08lx\n" , dev, port, val, - (ATA_CURR_BASE (dev) +CONFIG_SYS_ATA_PORT_ADDR (port))); + (ATA_CURR_BASE (dev) +ATA_PORT_ADDR (port)));#if defined(CONFIG_IDE_AHB )if (port) {@@ -690,7 +688,7 @@ __weak void ide_outb(int dev, int port, unsigned char val) outb(val, (ATA_CURR_BASE(dev))); }#else -outb (val, (ATA_CURR_BASE (dev) +CONFIG_SYS_ATA_PORT_ADDR (port))); +outb (val, (ATA_CURR_BASE (dev) +ATA_PORT_ADDR (port)));#endif }@@ -701,12 +699,12 @@ __weak unsigned char ide_inb(int dev, int port)#if defined(CONFIG_IDE_AHB ) val =ide_read_register (dev, port);#else - val =inb ((ATA_CURR_BASE (dev) +CONFIG_SYS_ATA_PORT_ADDR (port))); + val =inb ((ATA_CURR_BASE (dev) +ATA_PORT_ADDR (port)));#endif debug ("ide_inb (dev= %d, port= 0x%x) : @ 0x%08lx -> 0x%02x\n" , dev, port, - (ATA_CURR_BASE (dev) +CONFIG_SYS_ATA_PORT_ADDR (port)), val); + (ATA_CURR_BASE (dev) +ATA_PORT_ADDR (port)), val);return val; }include/configs/edminiv2.h +0
-2@@ -113,8 +113,6 @@*/ #ifdef CONFIG_IDE #define __io -/* Needs byte-swapping for ATA data register */ -#define CONFIG_IDE_SWAP_IO /* Data, registers and alternate blocks are at the same offset */ #define CONFIG_SYS_ATA_DATA_OFFSET (0x0100)#define CONFIG_SYS_ATA_REG_OFFSET (0x0100)include/configs/r2dplus.h +0
-1@@ -44,7 +44,6 @@#define CONFIG_SYS_ATA_DATA_OFFSET 0x1000/* data reg offset */ #define CONFIG_SYS_ATA_REG_OFFSET 0x1000/* reg offset */ #define CONFIG_SYS_ATA_ALT_OFFSET 0x800/* alternate register offset */ -#define CONFIG_IDE_SWAP_IO /* * SuperH PCI Bridge Configration scripts/config_whitelist.txt +0
-2@@ -605,7 +605,6 @@ CONFIG_ICACHE CONFIG_ICS307_REFCLK_HZ CONFIG_IDE_PREINIT CONFIG_IDE_RESET -CONFIG_IDE_SWAP_IO CONFIG_IMA CONFIG_IMX CONFIG_IMX6_PWM_PER_CLK@@ -1231,7 +1230,6 @@ CONFIG_SYS_ATA_BASE_ADDR CONFIG_SYS_ATA_DATA_OFFSET CONFIG_SYS_ATA_IDE0_OFFSET CONFIG_SYS_ATA_IDE1_OFFSET -CONFIG_SYS_ATA_PORT_ADDR CONFIG_SYS_ATA_REG_OFFSET CONFIG_SYS_ATA_STRIDE CONFIG_SYS_ATMEL_CPU_NAME
PATCH 10/10 timer: Add a migration message
In reply to Simon GlassSome boards still use the old timer mechanism. Set a deadline for them to update to driver model.
This needs a bit of a strange rule to avoid an error on some boards.
---
Makefile | 4 ++++ doc/develop/driver-model/migration.rst | 8 ++++++++ 2 files changed, 12 insertions(+)
Makefile +4 -0
@@ -1123,6 +1123,10 @@ endif $(call deprecated,CONFIG_DM_ETH,Ethernet drivers,v2020.07,$(CONFIG_NET)) $(call deprecated,CONFIG_DM_I2C,I2C drivers,v2022.04,$(CONFIG_SYS_I2C_LEGACY)) $(call deprecated,CONFIG_DM_KEYBOARD,Keyboard drivers,v2022.10,$(CONFIG_KEYBOARD)) + @# CONFIG_SYS_TIMER_RATE has brackets in it for some boards which + @# confuses this rule. Use if() to send just a single character which + @# is enable to tell 'deprecated' that one of these symbols exists + $(call deprecated,CONFIG_TIMER,Timer drivers,v2022.10,$(if $(strip $(CONFIG_SYS_TIMER_RATE)$(CONFIG_SYS_TIMER_COUNTER)),x)) @# Check that this build does not use CONFIG options that we do not @# know about unless they are in Kconfig. All the existing CONFIG @# options are whitelisted, so new ones should not be added.
doc/develop/driver-model/migration.rst +8 -0
@@ -106,3 +106,11 @@ Deadline: 2022.10 This is a legacy option which has been replaced by driver model. Maintainers should submit patches switching over to using CONFIG_DM_KEYBOARD and other base driver model options in time for inclusion in the 2022.10 release. + +CONFIG_SYS_TIMER_RATE and CONFIG_SYS_TIMER_COUNTER +-------------------------------------------------- +Deadline: 2022.10 + +These are legacy options which have been replaced by driver model. +Maintainers should submit patches switching over to using CONFIG_TIMER and +other base driver model options in time for inclusion in the 2022.10 release.
Signature · 1 line
2.34.0.rc1.387.gb447b232ab-goog