From: Thomas Fitzsimmons Date: Wed, 22 Aug 2018 22:37:54 +0000 (-0400) Subject: arm: bcm7445: Change serial console index X-Git-Tag: v2018.11-rc1~197 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=12109573042ce7b10bc67c20abcc07df5238094d;p=oweals%2Fu-boot.git arm: bcm7445: Change serial console index Change the configured serial console index to reflect that it is the first physical UART, reorder some defconfig lines and move some environment configuration from bcmstb.h to bcm7445.h. Signed-off-by: Thomas Fitzsimmons Cc: Florian Fainelli --- diff --git a/configs/bcm7445_defconfig b/configs/bcm7445_defconfig index 59c745f41b..cb1522604d 100644 --- a/configs/bcm7445_defconfig +++ b/configs/bcm7445_defconfig @@ -12,10 +12,10 @@ CONFIG_OF_PRIOR_STAGE=y CONFIG_ENV_IS_IN_SPI_FLASH=y CONFIG_MMC_SDHCI=y CONFIG_MMC_SDHCI_BCMSTB=y -CONFIG_DM_SPI_FLASH=y -CONFIG_SPI_FLASH=y -CONFIG_CONS_INDEX=3 +CONFIG_CONS_INDEX=1 +CONFIG_EFI_LOADER=n CONFIG_SPI=y +CONFIG_SPI_FLASH=y CONFIG_DM_SPI=y +CONFIG_DM_SPI_FLASH=y CONFIG_BCMSTB_SPI=y -# CONFIG_EFI_LOADER is not set diff --git a/include/configs/bcm7445.h b/include/configs/bcm7445.h index f34cf2d03b..8c675f7733 100644 --- a/include/configs/bcm7445.h +++ b/include/configs/bcm7445.h @@ -10,7 +10,7 @@ #ifndef __CONFIG_H #define __CONFIG_H -#define CONFIG_SYS_NS16550_COM3 0xf040ab00 +#define CONFIG_SYS_NS16550_COM1 0xf040ab00 #define CONFIG_SYS_TEXT_BASE 0x80100000 #define CONFIG_SYS_INIT_RAM_ADDR 0x80200000 @@ -28,7 +28,12 @@ #define BCMSTB_HIF_SPI_INTR2 0xf03e1a00 #define BCMSTB_CS_REG 0xf03e0920 -#define CONFIG_ENV_IS_IN_SPI_FLASH 1 +/* + * Environment configuration for SPI flash. + */ +#define CONFIG_ENV_OFFSET 0x1e0000 +#define CONFIG_ENV_SECT_SIZE CONFIG_ENV_SIZE + #define CONFIG_DM_SPI 1 #define CONFIG_SYS_MAX_FLASH_BANKS 1 #define CONFIG_CMD_SF diff --git a/include/configs/bcmstb.h b/include/configs/bcmstb.h index e755383e72..cc289244ff 100644 --- a/include/configs/bcmstb.h +++ b/include/configs/bcmstb.h @@ -114,7 +114,6 @@ extern phys_addr_t prior_stage_fdt_address; /* * Serial console configuration. */ - #define CONFIG_BAUDRATE 115200 #define CONFIG_SYS_BAUDRATE_TABLE {4800, 9600, 19200, 38400, 57600, \ 115200} @@ -151,10 +150,7 @@ extern phys_addr_t prior_stage_fdt_address; * Environment configuration. */ #define CONFIG_SYS_REDUNDAND_ENVIRONMENT - -#define CONFIG_ENV_OFFSET 0x1e0000 #define CONFIG_ENV_SIZE (64 << 10) /* 64 KiB */ -#define CONFIG_ENV_SECT_SIZE CONFIG_ENV_SIZE #define CONFIG_ENV_OFFSET_REDUND (CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE) #define CONFIG_ENV_OVERWRITE