board: ge: bx50v3: move detect_baseboard() out of CONFIG_VIDEO_IPUV3
PATCH v2 1/8 board: ge: bx50v3: move detect_baseboard() out of CONFIG_VIDEO_IPUV3
detect_baseboard() function doesn't depend on CONFIG_VIDEO_IPUV3. Make sure it's available when CONFIG_VIDEO_IPUV3 is off.
--- board/ge/bx50v3/bx50v3.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-)
board/ge/bx50v3/bx50v3.c +9 -9
@@ -321,6 +321,15 @@ int board_phy_config(struct phy_device *phydev)return 0 ; } +static int detect_baseboard (struct display_info_t const *dev) +{ +if (IS_ENABLED (CONFIG_TARGET_GE_B450V3 ) || +IS_ENABLED (CONFIG_TARGET_GE_B650V3 )) +return 1 ; + +return 0 ; +} +#if defined(CONFIG_VIDEO_IPUV3 )static iomux_v3_cfg_t const backlight_pads[] = { /* Power for LVDS Display */
@@ -345,15 +354,6 @@ int board_cfb_skip(void)return 0 ; } -static int detect_baseboard (struct display_info_t const *dev) -{ -if (IS_ENABLED (CONFIG_TARGET_GE_B450V3 ) || -IS_ENABLED (CONFIG_TARGET_GE_B650V3 )) -return 1 ; - -return 0 ; -} -struct display_info_t const displays[] = {{ .bus =-1 , .addr =-1 ,
Signature · 1 line
2.7.4
PATCH v2 2/8 board: ge: bx50v3: don't configure the backlight when there's no display
Don't try to configure the backlight when CONFIG_VIDEO_IPUV3 isn't set.
--- board/ge/bx50v3/bx50v3.c | 3 +++ 1 file changed, 3 insertions(+)
board/ge/bx50v3/bx50v3.c +3 -0
@@ -601,6 +601,8 @@ int board_late_init(void)#ifdef CONFIG_CMD_BMODE add_board_boot_modes (board_boot_modes);#endif + +#ifdef CONFIG_VIDEO_IPUV3 /* We need at least 200ms between power on and backlight on * as per specifications from CHI MEI */ mdelay (250 );
@@ -615,6 +617,7 @@ int board_late_init(void)gpio_direction_output (LVDS_BACKLIGHT_GP ,1 );pwm_enable (0 ); +#endif return 0 ; }
Signature · 1 line
2.7.4
PATCH v2 2/8 board: ge: bx50v3: don't configure the backlight when there's no display
Quoted 3 lines · Andrew Shadura
Don't try to configure the backlight when
CONFIG_VIDEO_IPUV3isn't set.Signed-off-by Andrew Shadura <[email protected]>
Quoted 28 lines
--- board/ge/bx50v3/bx50v3.c | 3 +++ 1 file changed, 3 insertions(+)board/ge/bx50v3/bx50v3.c +3
-0@@ -601,6 +601,8 @@ int board_late_init(void)#ifdef CONFIG_CMD_BMODE add_board_boot_modes (board_boot_modes);#endif + +#ifdef CONFIG_VIDEO_IPUV3 /* We need at least 200ms between power on and backlight on * as per specifications from CHI MEI */ mdelay (250 );@@ -615,6 +617,7 @@ int board_late_init(void)gpio_direction_output (LVDS_BACKLIGHT_GP ,1 );pwm_enable (0 ); +#endif return 0 ; }Signature · 1 line
2.7.4
PATCH v2 3/8 board: ge: bx50v3: make CONFIG_VIDEO optional and disabled by default
In reply to Andrew ShaduraThe kernel already knows how to initialise the display, and initialising the display from U-boot is only useful for debugging and isn't necessary in production, so no need to have it enabled in U-boot by default.
--- include/configs/ge_bx50v3.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)
include/configs/ge_bx50v3.h +5 -3
@@ -293,13 +293,14 @@#define CONFIG_SYS_FSL_USDHC_NUM 3 +#define CONFIG_SYS_CONSOLE_IS_IN_ENV +#define CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE +/* Framebuffer */ -#define CONFIG_VIDEO +#ifdef CONFIG_VIDEO #define CONFIG_VIDEO_IPUV3 #define CONFIG_CFB_CONSOLE #define CONFIG_VGA_AS_SINGLE_DEVICE -#define CONFIG_SYS_CONSOLE_IS_IN_ENV -#define CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE #define CONFIG_VIDEO_BMP_RLE8 #define CONFIG_SPLASH_SCREEN #define CONFIG_SPLASH_SCREEN_ALIGN
@@ -309,6 +310,7 @@#define CONFIG_IPUV3_CLK 260000000#define CONFIG_IMX_HDMI #define CONFIG_IMX_VIDEO_SKIP +#endif #define CONFIG_PWM_IMX #define CONFIG_IMX6_PWM_PER_CLK 66000000
Signature · 1 line
2.7.4
PATCH v2 3/8 board: ge: bx50v3: make CONFIG_VIDEO optional and disabled by default
Quoted 5 lines · Andrew Shadura
The kernel already knows how to initialise the display, and initialising the display from U-boot is only useful for debugging and isn't necessary in production, so no need to have it enabled in U-boot by default.
Signed-off-by Andrew Shadura <[email protected]>
Quoted 37 lines
--- include/configs/ge_bx50v3.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)include/configs/ge_bx50v3.h +5
-3@@ -293,13 +293,14 @@#define CONFIG_SYS_FSL_USDHC_NUM 3 +#define CONFIG_SYS_CONSOLE_IS_IN_ENV +#define CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE +/* Framebuffer */ -#define CONFIG_VIDEO +#ifdef CONFIG_VIDEO #define CONFIG_VIDEO_IPUV3 #define CONFIG_CFB_CONSOLE #define CONFIG_VGA_AS_SINGLE_DEVICE -#define CONFIG_SYS_CONSOLE_IS_IN_ENV -#define CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE #define CONFIG_VIDEO_BMP_RLE8 #define CONFIG_SPLASH_SCREEN #define CONFIG_SPLASH_SCREEN_ALIGN @@ -309,6 +310,7 @@#define CONFIG_IPUV3_CLK 260000000#define CONFIG_IMX_HDMI #define CONFIG_IMX_VIDEO_SKIP +#endif #define CONFIG_PWM_IMX #define CONFIG_IMX6_PWM_PER_CLK 66000000Signature · 1 line
2.7.4
PATCH v2 4/8 board: ge: bx50v3: make USB support optional and disabled by default
In reply to Andrew ShaduraThe USB support is only useful for development and shouldn't be enabled in production, so it has to be disabled in U-boot by default.
--- configs/ge_b450v3_defconfig | 2 -- configs/ge_b650v3_defconfig | 2 -- configs/ge_b850v3_defconfig | 2 -- include/configs/ge_bx50v3.h | 24 +++++++++++++++++------- 4 files changed, 17 insertions(+), 13 deletions(-)
configs/ge_b450v3_defconfig +0 -2
@@ -8,8 +8,6 @@ CONFIG_CMD_BOOTZ=y CONFIG_CMD_MMC=y CONFIG_CMD_SF=y CONFIG_CMD_I2C=y -CONFIG_CMD_USB=y -CONFIG_CMD_USB_MASS_STORAGE=y CONFIG_CMD_GPIO=y CONFIG_CMD_DHCP=y CONFIG_CMD_MII=y
configs/ge_b650v3_defconfig +0 -2
@@ -8,8 +8,6 @@ CONFIG_CMD_BOOTZ=y CONFIG_CMD_MMC=y CONFIG_CMD_SF=y CONFIG_CMD_I2C=y -CONFIG_CMD_USB=y -CONFIG_CMD_USB_MASS_STORAGE=y CONFIG_CMD_GPIO=y CONFIG_CMD_DHCP=y CONFIG_CMD_MII=y
configs/ge_b850v3_defconfig +0 -2
@@ -8,8 +8,6 @@ CONFIG_CMD_BOOTZ=y CONFIG_CMD_MMC=y CONFIG_CMD_SF=y CONFIG_CMD_I2C=y -CONFIG_CMD_USB=y -CONFIG_CMD_USB_MASS_STORAGE=y CONFIG_CMD_GPIO=y CONFIG_CMD_DHCP=y CONFIG_CMD_MII=y
include/configs/ge_bx50v3.h +17 -7
@@ -78,6 +78,7 @@#define CONFIG_DOS_PARTITION /* USB Configs */ +#ifdef CONFIG_USB #define CONFIG_USB_EHCI #define CONFIG_USB_EHCI_MX6 #define CONFIG_USB_STORAGE
@@ -99,6 +100,7 @@#define CONFIG_G_DNL_VENDOR_NUM 0x0525#define CONFIG_G_DNL_PRODUCT_NUM 0xa4a5#define CONFIG_G_DNL_MANUFACTURER "Advantech" +#endif /* Networking Configs */ #define CONFIG_FEC_MXC
@@ -221,13 +223,7 @@"bootm; " \"fi;\0" \ -#define CONFIG_BOOTCOMMAND \ -"usb start; " \ -"setenv dev usb; " \ -"setenv devnum 0; " \ -"setenv rootdev sda1; " \ -"run tryboot; " \ - \ +#define CONFIG_MMCBOOTCOMMAND \"setenv dev mmc; " \"setenv rootdev mmcblk0p1; " \ \
@@ -241,9 +237,23 @@"if mmc dev ${devnum}; then " \"run tryboot; " \ "fi; " \ + +#define CONFIG_USBBOOTCOMMAND \ + "usb start; " \ + "setenv dev usb; " \ + "setenv devnum 0; " \ + "setenv rootdev sda1; " \ + "run tryboot; " \ \ + CONFIG_MMCBOOTCOMMAND \ "bmode usb; " \ +#ifdef CONFIG_CMD_USB +#define CONFIG_BOOTCOMMAND CONFIG_USBBOOTCOMMAND +#else +#define CONFIG_BOOTCOMMAND CONFIG_MMCBOOTCOMMAND +#endif +#define CONFIG_ARP_TIMEOUT 200UL/* Miscellaneous configurable options */
Signature · 1 line
2.7.4
PATCH v2 4/8 board: ge: bx50v3: make USB support optional and disabled by default
Quoted 4 lines · Andrew Shadura
The USB support is only useful for development and shouldn't be enabled in production, so it has to be disabled in U-boot by default.
Signed-off-by Andrew Shadura <[email protected]>
Quoted 108 lines
--- configs/ge_b450v3_defconfig | 2 -- configs/ge_b650v3_defconfig | 2 -- configs/ge_b850v3_defconfig | 2 -- include/configs/ge_bx50v3.h | 24 +++++++++++++++++------- 4 files changed, 17 insertions(+), 13 deletions(-)configs/ge_b450v3_defconfig +0
-2@@ -8,8 +8,6 @@ CONFIG_CMD_BOOTZ=y CONFIG_CMD_MMC=y CONFIG_CMD_SF=y CONFIG_CMD_I2C=y -CONFIG_CMD_USB=y -CONFIG_CMD_USB_MASS_STORAGE=y CONFIG_CMD_GPIO=y CONFIG_CMD_DHCP=y CONFIG_CMD_MII=yconfigs/ge_b650v3_defconfig +0
-2@@ -8,8 +8,6 @@ CONFIG_CMD_BOOTZ=y CONFIG_CMD_MMC=y CONFIG_CMD_SF=y CONFIG_CMD_I2C=y -CONFIG_CMD_USB=y -CONFIG_CMD_USB_MASS_STORAGE=y CONFIG_CMD_GPIO=y CONFIG_CMD_DHCP=y CONFIG_CMD_MII=yconfigs/ge_b850v3_defconfig +0
-2@@ -8,8 +8,6 @@ CONFIG_CMD_BOOTZ=y CONFIG_CMD_MMC=y CONFIG_CMD_SF=y CONFIG_CMD_I2C=y -CONFIG_CMD_USB=y -CONFIG_CMD_USB_MASS_STORAGE=y CONFIG_CMD_GPIO=y CONFIG_CMD_DHCP=y CONFIG_CMD_MII=yinclude/configs/ge_bx50v3.h +17
-7@@ -78,6 +78,7 @@#define CONFIG_DOS_PARTITION /* USB Configs */ +#ifdef CONFIG_USB #define CONFIG_USB_EHCI #define CONFIG_USB_EHCI_MX6 #define CONFIG_USB_STORAGE @@ -99,6 +100,7 @@#define CONFIG_G_DNL_VENDOR_NUM 0x0525#define CONFIG_G_DNL_PRODUCT_NUM 0xa4a5#define CONFIG_G_DNL_MANUFACTURER "Advantech" +#endif /* Networking Configs */ #define CONFIG_FEC_MXC @@ -221,13 +223,7 @@"bootm; " \"fi;\0" \ -#define CONFIG_BOOTCOMMAND \ -"usb start; " \ -"setenv dev usb; " \ -"setenv devnum 0; " \ -"setenv rootdev sda1; " \ -"run tryboot; " \ - \ +#define CONFIG_MMCBOOTCOMMAND \"setenv dev mmc; " \"setenv rootdev mmcblk0p1; " \ \@@ -241,9 +237,23 @@"if mmc dev ${devnum}; then " \"run tryboot; " \ "fi; " \ + +#define CONFIG_USBBOOTCOMMAND \ + "usb start; " \ + "setenv dev usb; " \ + "setenv devnum 0; " \ + "setenv rootdev sda1; " \ + "run tryboot; " \ \ + CONFIG_MMCBOOTCOMMAND \ "bmode usb; " \ +#ifdef CONFIG_CMD_USB +#define CONFIG_BOOTCOMMAND CONFIG_USBBOOTCOMMAND +#else +#define CONFIG_BOOTCOMMAND CONFIG_MMCBOOTCOMMAND +#endif +#define CONFIG_ARP_TIMEOUT 200UL/* Miscellaneous configurable options */ Signature · 1 line
2.7.4
PATCH v2 5/8 board: ge: bx50v3: make network support optional and disabled by default
In reply to Andrew ShaduraThe network support is only useful for development and shouldn't be enabled in production, so it has to be disabled in U-boot by default.
--- configs/ge_b450v3_defconfig | 4 +--- configs/ge_b650v3_defconfig | 4 +--- configs/ge_b850v3_defconfig | 4 +--- include/configs/ge_bx50v3.h | 2 ++ 4 files changed, 5 insertions(+), 9 deletions(-)
configs/ge_b450v3_defconfig +1 -3
@@ -9,9 +9,7 @@ CONFIG_CMD_MMC=y CONFIG_CMD_SF=y CONFIG_CMD_I2C=y CONFIG_CMD_GPIO=y -CONFIG_CMD_DHCP=y -CONFIG_CMD_MII=y -CONFIG_CMD_PING=y +CONFIG_CMD_NET=n CONFIG_CMD_CACHE=y CONFIG_CMD_EXT2=y CONFIG_CMD_EXT4=y
configs/ge_b650v3_defconfig +1 -3
@@ -9,9 +9,7 @@ CONFIG_CMD_MMC=y CONFIG_CMD_SF=y CONFIG_CMD_I2C=y CONFIG_CMD_GPIO=y -CONFIG_CMD_DHCP=y -CONFIG_CMD_MII=y -CONFIG_CMD_PING=y +CONFIG_CMD_NET=n CONFIG_CMD_CACHE=y CONFIG_CMD_EXT2=y CONFIG_CMD_EXT4=y
configs/ge_b850v3_defconfig +1 -3
@@ -9,9 +9,7 @@ CONFIG_CMD_MMC=y CONFIG_CMD_SF=y CONFIG_CMD_I2C=y CONFIG_CMD_GPIO=y -CONFIG_CMD_DHCP=y -CONFIG_CMD_MII=y -CONFIG_CMD_PING=y +CONFIG_CMD_NET=n CONFIG_CMD_CACHE=y CONFIG_CMD_EXT2=y CONFIG_CMD_EXT4=y
include/configs/ge_bx50v3.h +2 -0
@@ -103,6 +103,7 @@#endif /* Networking Configs */ +#ifdef CONFIG_NET #define CONFIG_FEC_MXC #define CONFIG_MII #define IMX_FEC_BASE ENET_BASE_ADDR
@@ -111,6 +112,7 @@#define CONFIG_FEC_MXC_PHYADDR 4#define CONFIG_PHYLIB #define CONFIG_PHY_ATHEROS +#endif /* Serial Flash */ #ifdef CONFIG_CMD_SF
Signature · 1 line
2.7.4
PATCH v2 5/8 board: ge: bx50v3: make network support optional and disabled by default
Quoted 4 lines · Andrew Shadura
The network support is only useful for development and shouldn't be enabled in production, so it has to be disabled in U-boot by default.
Signed-off-by Andrew Shadura <[email protected]>
Quoted 75 lines
--- configs/ge_b450v3_defconfig | 4 +--- configs/ge_b650v3_defconfig | 4 +--- configs/ge_b850v3_defconfig | 4 +--- include/configs/ge_bx50v3.h | 2 ++ 4 files changed, 5 insertions(+), 9 deletions(-)configs/ge_b450v3_defconfig +1
-3@@ -9,9 +9,7 @@ CONFIG_CMD_MMC=y CONFIG_CMD_SF=y CONFIG_CMD_I2C=y CONFIG_CMD_GPIO=y -CONFIG_CMD_DHCP=y -CONFIG_CMD_MII=y -CONFIG_CMD_PING=y +CONFIG_CMD_NET=n CONFIG_CMD_CACHE=y CONFIG_CMD_EXT2=y CONFIG_CMD_EXT4=yconfigs/ge_b650v3_defconfig +1
-3@@ -9,9 +9,7 @@ CONFIG_CMD_MMC=y CONFIG_CMD_SF=y CONFIG_CMD_I2C=y CONFIG_CMD_GPIO=y -CONFIG_CMD_DHCP=y -CONFIG_CMD_MII=y -CONFIG_CMD_PING=y +CONFIG_CMD_NET=n CONFIG_CMD_CACHE=y CONFIG_CMD_EXT2=y CONFIG_CMD_EXT4=yconfigs/ge_b850v3_defconfig +1
-3@@ -9,9 +9,7 @@ CONFIG_CMD_MMC=y CONFIG_CMD_SF=y CONFIG_CMD_I2C=y CONFIG_CMD_GPIO=y -CONFIG_CMD_DHCP=y -CONFIG_CMD_MII=y -CONFIG_CMD_PING=y +CONFIG_CMD_NET=n CONFIG_CMD_CACHE=y CONFIG_CMD_EXT2=y CONFIG_CMD_EXT4=yinclude/configs/ge_bx50v3.h +2
-0@@ -103,6 +103,7 @@#endif /* Networking Configs */ +#ifdef CONFIG_NET #define CONFIG_FEC_MXC #define CONFIG_MII #define IMX_FEC_BASE ENET_BASE_ADDR@@ -111,6 +112,7 @@#define CONFIG_FEC_MXC_PHYADDR 4#define CONFIG_PHYLIB #define CONFIG_PHY_ATHEROS +#endif /* Serial Flash */ #ifdef CONFIG_CMD_SF Signature · 1 line
2.7.4
PATCH v2 6/8 board: ge: bx50v3: make SATA optional and disabled by default
In reply to Andrew ShaduraThe SATA support is only useful for development and shouldn't be enabled in production, so it has to be disabled in U-boot by default.
--- include/configs/ge_bx50v3.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
include/configs/ge_bx50v3.h +2 -1
@@ -60,13 +60,14 @@#define CONFIG_MXC_OCOTP /* SATA Configs */ -#define CONFIG_CMD_SATA +#ifdef CONFIG_CMD_SATA #define CONFIG_DWC_AHSATA #define CONFIG_SYS_SATA_MAX_DEVICE 1#define CONFIG_DWC_AHSATA_PORT_ID 0#define CONFIG_DWC_AHSATA_BASE_ADDR SATA_ARB_BASE_ADDR#define CONFIG_LBA48 #define CONFIG_LIBATA +#endif /* MMC Configs */ #define CONFIG_FSL_ESDHC
Signature · 1 line
2.7.4
PATCH v2 6/8 board: ge: bx50v3: make SATA optional and disabled by default
Quoted 4 lines · Andrew Shadura
The SATA support is only useful for development and shouldn't be enabled in production, so it has to be disabled in U-boot by default.
Signed-off-by Andrew Shadura <[email protected]>
Quoted 27 lines
--- include/configs/ge_bx50v3.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)include/configs/ge_bx50v3.h +2
-1@@ -60,13 +60,14 @@#define CONFIG_MXC_OCOTP /* SATA Configs */ -#define CONFIG_CMD_SATA +#ifdef CONFIG_CMD_SATA #define CONFIG_DWC_AHSATA #define CONFIG_SYS_SATA_MAX_DEVICE 1#define CONFIG_DWC_AHSATA_PORT_ID 0#define CONFIG_DWC_AHSATA_BASE_ADDR SATA_ARB_BASE_ADDR#define CONFIG_LBA48 #define CONFIG_LIBATA +#endif /* MMC Configs */ #define CONFIG_FSL_ESDHC Signature · 1 line
2.7.4
PATCH v2 7/8 board: ge: bx50v3: disable unused features to improve size
In reply to Andrew ShaduraDisable unused FPGA, NFS, FAT and EFI support to reduce the bootloader size.
--- configs/ge_b450v3_defconfig | 5 ++++- configs/ge_b650v3_defconfig | 5 ++++- configs/ge_b850v3_defconfig | 5 ++++- 3 files changed, 12 insertions(+), 3 deletions(-)
configs/ge_b450v3_defconfig +4 -1
@@ -8,14 +8,17 @@ CONFIG_CMD_BOOTZ=y CONFIG_CMD_MMC=y CONFIG_CMD_SF=y CONFIG_CMD_I2C=y +CONFIG_CMD_FPGA=n CONFIG_CMD_GPIO=y CONFIG_CMD_NET=n +CONFIG_CMD_NFS=n CONFIG_CMD_CACHE=y CONFIG_CMD_EXT2=y CONFIG_CMD_EXT4=y CONFIG_CMD_EXT4_WRITE=y -CONFIG_CMD_FAT=y +CONFIG_CMD_FAT=n CONFIG_CMD_FS_GENERIC=y CONFIG_SPI_FLASH=y CONFIG_SPI_FLASH_STMICRO=y CONFIG_OF_LIBFDT=y +CONFIG_EFI_LOADER=n
configs/ge_b650v3_defconfig +4 -1
@@ -8,14 +8,17 @@ CONFIG_CMD_BOOTZ=y CONFIG_CMD_MMC=y CONFIG_CMD_SF=y CONFIG_CMD_I2C=y +CONFIG_CMD_FPGA=n CONFIG_CMD_GPIO=y CONFIG_CMD_NET=n +CONFIG_CMD_NFS=n CONFIG_CMD_CACHE=y CONFIG_CMD_EXT2=y CONFIG_CMD_EXT4=y CONFIG_CMD_EXT4_WRITE=y -CONFIG_CMD_FAT=y +CONFIG_CMD_FAT=n CONFIG_CMD_FS_GENERIC=y CONFIG_SPI_FLASH=y CONFIG_SPI_FLASH_STMICRO=y CONFIG_OF_LIBFDT=y +CONFIG_EFI_LOADER=n
configs/ge_b850v3_defconfig +4 -1
@@ -8,14 +8,17 @@ CONFIG_CMD_BOOTZ=y CONFIG_CMD_MMC=y CONFIG_CMD_SF=y CONFIG_CMD_I2C=y +CONFIG_CMD_FPGA=n CONFIG_CMD_GPIO=y CONFIG_CMD_NET=n +CONFIG_CMD_NFS=n CONFIG_CMD_CACHE=y CONFIG_CMD_EXT2=y CONFIG_CMD_EXT4=y CONFIG_CMD_EXT4_WRITE=y -CONFIG_CMD_FAT=y +CONFIG_CMD_FAT=n CONFIG_CMD_FS_GENERIC=y CONFIG_SPI_FLASH=y CONFIG_SPI_FLASH_STMICRO=y CONFIG_OF_LIBFDT=y +CONFIG_EFI_LOADER=n
Signature · 1 line
2.7.4
PATCH v2 7/8 board: ge: bx50v3: disable unused features to improve size
Quoted 4 lines · Andrew Shadura
Disable unused FPGA, NFS, FAT and EFI support to reduce the bootloader size.
Signed-off-by Andrew Shadura <[email protected]>
Quoted 78 lines
--- configs/ge_b450v3_defconfig | 5 ++++- configs/ge_b650v3_defconfig | 5 ++++- configs/ge_b850v3_defconfig | 5 ++++- 3 files changed, 12 insertions(+), 3 deletions(-)configs/ge_b450v3_defconfig +4
-1@@ -8,14 +8,17 @@ CONFIG_CMD_BOOTZ=y CONFIG_CMD_MMC=y CONFIG_CMD_SF=y CONFIG_CMD_I2C=y +CONFIG_CMD_FPGA=n CONFIG_CMD_GPIO=y CONFIG_CMD_NET=n +CONFIG_CMD_NFS=n CONFIG_CMD_CACHE=y CONFIG_CMD_EXT2=y CONFIG_CMD_EXT4=y CONFIG_CMD_EXT4_WRITE=y -CONFIG_CMD_FAT=y +CONFIG_CMD_FAT=n CONFIG_CMD_FS_GENERIC=y CONFIG_SPI_FLASH=y CONFIG_SPI_FLASH_STMICRO=y CONFIG_OF_LIBFDT=y +CONFIG_EFI_LOADER=nconfigs/ge_b650v3_defconfig +4
-1@@ -8,14 +8,17 @@ CONFIG_CMD_BOOTZ=y CONFIG_CMD_MMC=y CONFIG_CMD_SF=y CONFIG_CMD_I2C=y +CONFIG_CMD_FPGA=n CONFIG_CMD_GPIO=y CONFIG_CMD_NET=n +CONFIG_CMD_NFS=n CONFIG_CMD_CACHE=y CONFIG_CMD_EXT2=y CONFIG_CMD_EXT4=y CONFIG_CMD_EXT4_WRITE=y -CONFIG_CMD_FAT=y +CONFIG_CMD_FAT=n CONFIG_CMD_FS_GENERIC=y CONFIG_SPI_FLASH=y CONFIG_SPI_FLASH_STMICRO=y CONFIG_OF_LIBFDT=y +CONFIG_EFI_LOADER=nconfigs/ge_b850v3_defconfig +4
-1@@ -8,14 +8,17 @@ CONFIG_CMD_BOOTZ=y CONFIG_CMD_MMC=y CONFIG_CMD_SF=y CONFIG_CMD_I2C=y +CONFIG_CMD_FPGA=n CONFIG_CMD_GPIO=y CONFIG_CMD_NET=n +CONFIG_CMD_NFS=n CONFIG_CMD_CACHE=y CONFIG_CMD_EXT2=y CONFIG_CMD_EXT4=y CONFIG_CMD_EXT4_WRITE=y -CONFIG_CMD_FAT=y +CONFIG_CMD_FAT=n CONFIG_CMD_FS_GENERIC=y CONFIG_SPI_FLASH=y CONFIG_SPI_FLASH_STMICRO=y CONFIG_OF_LIBFDT=y +CONFIG_EFI_LOADER=nSignature · 1 line
2.7.4
Signature · 3 lines
-- Martin Donnelly ?? GE Healthcare Finland Oy, Helsinki ??tel: +358 103942081 ??mob: +358 438500982
PATCH v2 8/8 board: ge: bx50v3: add missing partnum variable
In reply to Andrew ShaduraFrom: Kimmo Surakka <[email protected]>
Add missing ${partnum} to set rootdev correctly when booting from USB or MMC.
--- include/configs/ge_bx50v3.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
include/configs/ge_bx50v3.h +3 -3
@@ -228,12 +228,12 @@#define CONFIG_MMCBOOTCOMMAND \ "setenv dev mmc; " \ - "setenv rootdev mmcblk0p1; " \ + "setenv rootdev mmcblk0p${partnum}; " \ \ "setenv devnum ${sddev}; " \ "if mmc dev ${devnum}; then " \ "run tryboot; " \ - "setenv rootdev mmcblk1p1; " \ + "setenv rootdev mmcblk1p${partnum}; " \ "fi; " \ \ "setenv devnum ${emmcdev}; " \
@@ -245,7 +245,7 @@"usb start; " \"setenv dev usb; " \"setenv devnum 0; " \ -"setenv rootdev sda1; " \ +"setenv rootdev sda${partnum}; " \"run tryboot; " \ \CONFIG_MMCBOOTCOMMAND \
Signature · 1 line
2.7.4
PATCH v2 8/8 board: ge: bx50v3: add missing partnum variable
Quoted 10 lines · Andrew Shadura
From: Kimmo Surakka <[email protected]>
Add missing ${partnum} to set rootdev correctly when booting from USB or MMC.
Signed-off-by Kimmo Surakka <[email protected]>[Rebased against v2016.05 and adjusted the variable name]Signed-off-by Andrew Shadura <[email protected]>Signed-off-by Andrew Shadura <[email protected]>
Quoted 35 lines
--- include/configs/ge_bx50v3.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)include/configs/ge_bx50v3.h +3
-3@@ -228,12 +228,12 @@#define CONFIG_MMCBOOTCOMMAND \ "setenv dev mmc; " \ - "setenv rootdev mmcblk0p1; " \ + "setenv rootdev mmcblk0p${partnum}; " \ \ "setenv devnum ${sddev}; " \ "if mmc dev ${devnum}; then " \ "run tryboot; " \ - "setenv rootdev mmcblk1p1; " \ + "setenv rootdev mmcblk1p${partnum}; " \ "fi; " \ \ "setenv devnum ${emmcdev}; " \@@ -245,7 +245,7 @@"usb start; " \"setenv dev usb; " \"setenv devnum 0; " \ -"setenv rootdev sda1; " \ +"setenv rootdev sda${partnum}; " \"run tryboot; " \ \CONFIG_MMCBOOTCOMMAND \Signature · 1 line
2.7.4
PATCH v2 1/8 board: ge: bx50v3: move detect_baseboard() out of CONFIG_VIDEO_IPUV3
In reply to Andrew ShaduraQuoted 4 lines · Andrew Shadura
detect_baseboard()function doesn't depend onCONFIG_VIDEO_IPUV3. Make sure it's available whenCONFIG_VIDEO_IPUV3is off.Signed-off-by Andrew Shadura <[email protected]>
Quoted 43 lines
--- board/ge/bx50v3/bx50v3.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-)board/ge/bx50v3/bx50v3.c +9
-9@@ -321,6 +321,15 @@ int board_phy_config(struct phy_device *phydev)return 0 ; } +static int detect_baseboard (struct display_info_t const *dev) +{ +if (IS_ENABLED (CONFIG_TARGET_GE_B450V3 ) || +IS_ENABLED (CONFIG_TARGET_GE_B650V3 )) +return 1 ; + +return 0 ; +} +#if defined(CONFIG_VIDEO_IPUV3 )static iomux_v3_cfg_t const backlight_pads[] = { /* Power for LVDS Display */@@ -345,15 +354,6 @@ int board_cfb_skip(void)return 0 ; } -static int detect_baseboard (struct display_info_t const *dev) -{ -if (IS_ENABLED (CONFIG_TARGET_GE_B450V3 ) || -IS_ENABLED (CONFIG_TARGET_GE_B650V3 )) -return 1 ; - -return 0 ; -} -struct display_info_t const displays[] = {{ .bus =-1 , .addr =-1 ,Signature · 1 line
2.7.4
PATCH v2 1/8 board: ge: bx50v3: move detect_baseboard() out of CONFIG_VIDEO_IPUV3
In reply to Andrew ShaduraHi Andrew,
Quoted 35 lines · Andrew Shadura
detect_baseboard()function doesn't depend onCONFIG_VIDEO_IPUV3. Make sure it's available whenCONFIG_VIDEO_IPUV3is off.Signed-off-by Andrew Shadura <[email protected]>--- board/ge/bx50v3/bx50v3.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-)board/ge/bx50v3/bx50v3.c +9
-2@@ -321,6 +321,15 @@ int board_phy_config(struct phy_device *phydev)return 0 ; } +static int detect_baseboard (struct display_info_t const *dev) +{ +if (IS_ENABLED (CONFIG_TARGET_GE_B450V3 ) || +IS_ENABLED (CONFIG_TARGET_GE_B650V3 )) +return 1 ; + +return 0 ; +} +#if defined(CONFIG_VIDEO_IPUV3 )static iomux_v3_cfg_t const backlight_pads[] = { /* Power for LVDS Display */@@ -345,15 +354,6 @@ int board_cfb_skip(void)return 0 ; } -static int detect_baseboard (struct display_info_t const *dev) -{
board/ge/bx50v3/bx50v3.c int board_cfb_skip(void) · line 359
Quoted 10 lines
board/ge/bx50v3/bx50v3.c +0
-7-if (IS_ENABLED (CONFIG_TARGET_GE_B450V3 ) || -IS_ENABLED (CONFIG_TARGET_GE_B650V3 )) -return 1 ; - -return 0 ; -} -struct display_info_t const displays[] = {{ .bus =-1 , .addr =-1 ,
But this generates a warning:
w+board/ge/bx50v3/bx50v3.c:324:12: warning: 'detect_baseboard' defined but not used [-Wunused-function]
Why do you export it if you do not need it ? It is used only in the hdmi detection, that means just if IPU is set.
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================
PATCH v2 1/8 board: ge: bx50v3: move detect_baseboard() out of CONFIG_VIDEO_IPUV3
Quoted 7 lines · Stefano Babic
But this generates a warning:
w+board/ge/bx50v3/bx50v3.c:324:12: warning: 'detect_baseboard' defined but not used [-Wunused-function]Why do you export it if you do not need it ? It is used only in the hdmi detection, that means just if IPU is set.
Strange, it wouldn't compile here unless I did this. Apparently it *was* used from somewhere else, but maybe it's no longer. Let me double check.
Signature · 10 lines
Cheers, Andrew -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160531/0f3545c1/attachment.sig>
PATCH v2 1/8 board: ge: bx50v3: move detect_baseboard() out of CONFIG_VIDEO_IPUV3
Quoted 10 lines · Andrew Shadura
Quoted 7 lines · Stefano Babic
Quoted 7 lines
But this generates a warning:
w+board/ge/bx50v3/bx50v3.c:324:12: warning: 'detect_baseboard' defined but not used [-Wunused-function]Why do you export it if you do not need it ? It is used only in the hdmi detection, that means just if IPU is set.
Strange, it wouldn't compile here unless I did this. Apparently it *was* used from somewhere else, but maybe it's no longer. Let me double check.
It seems it was a mistake and this patch may indeed not be needed.
Stefano, are there any comments on other patches?
Signature · 10 lines
Cheers, Andrew -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160607/649f6cfd/attachment.sig>
PATCH v2 1/8 board: ge: bx50v3: move detect_baseboard() out of CONFIG_VIDEO_IPUV3
Quoted 7 lines · Andrew Shadura
Quoted 6 lines · Andrew Shadura
Quoted 5 lines · Stefano Babic
Quoted 5 lines
But this generates a warning:
w+board/ge/bx50v3/bx50v3.c:324:12: warning: 'detect_baseboard' defined but not used [-Wunused-function]
Quoted 9 lines
Quoted 4 lines
Quoted 2 lines
Quoted 2 lines
Why do you export it if you do not need it ? It is used only in the hdmi detection, that means just if IPU is set.
Strange, it wouldn't compile here unless I did this. Apparently it *was* used from somewhere else, but maybe it's no longer. Let me double check.
It seems it was a mistake and this patch may indeed not be needed.
Stefano, are there any comments on other patches?
Other patches are fine. Then we agree to apply patches 2-8, and I drop 1/8.
Regards,
Stefano
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================