[PATCH 2/5] arc: Cleanup and audit usage of <config.h>

Simon Glass sjg at chromium.org
Sat Nov 18 18:09:58 CET 2023


On Fri, 17 Nov 2023 at 15:53, Tom Rini <trini at konsulko.com> wrote:
>
> We need to include <config.h> directly when a file needs to have
> something such as CFG_SYS_SDRAM_SIZE referenced as this file is not
> automatically globally included and is most commonly indirectly included
> via common.h.  Remove most cases of arc including config.h directly, but
> add it where needed. Further clean up the tb100 board config.h file so
> that we don't rely on config.h being included there for a value used in
> a single place.
>
> Signed-off-by: Tom Rini <trini at konsulko.com>
> ---
> Cc: Alexey Brodkin <abrodkin at synopsys.com>
> Cc: Eugeniy Paltsev <Eugeniy.Paltsev at synopsys.com>
> Cc: uboot-snps-arc at synopsys.com
> ---
>  arch/arc/include/asm/arc-bcr.h |  2 --
>  arch/arc/include/asm/arcregs.h |  1 -
>  arch/arc/include/asm/cache.h   |  2 --
>  arch/arc/lib/cpu.c             |  1 +
>  board/abilis/tb100/tb100.c     |  4 ++++
>  include/configs/tb100.h        | 21 ---------------------
>  6 files changed, 5 insertions(+), 26 deletions(-)
>

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list