samsung: Tidy up sound, DM_MMC drop dead code
Subsystems (5)
v3 cover samsung: Tidy up sound, DM_MMC drop dead code
This series was previously sent as a v1 without a cover letter. Since then I have added a few more patches:
- Support for spring's audio codec
- Dropping unused MMC and audio code
- Removing unused fdt_compat_id values
Changes in v3:
- Fix s3p_goni typo
- Fix remaining 'return -1' statements to use a real error
- Drop patch 1, previously applied
Changes in v2:
- Remove stranded comments in the header files
- Update to convert s5p_goni also
- Add new patches as per the cover letter
Simon Glass (10):
Convert CONFIG_BOARD_TYPES to Kconfig
exynos: Drop duplicate 'model' line
exynos: Convert to use CONFIG_BLK
sound: Add a driver for max98088
spring: Update sound to use max98088 codec
spring: Update flashmap details
samsung: Drop board_enable_audio_codec()
samsung: mmc: Drop old MMC init code
fdt: samsung: Drop unused fdt_compat_id values
fdt: tegra: Drop COMPAT_AMS_AS3722
arch/arm/dts/exynos5250-spring.dts | 77 +++-- arch/arm/mach-exynos/Kconfig | 7 + arch/arm/mach-exynos/include/mach/mmc.h | 2 - arch/arm/mach-s5pc1xx/Kconfig | 2 + arch/arm/mach-s5pc1xx/Makefile | 1 + arch/arm/mach-s5pc1xx/pinmux.c | 20 ++ board/samsung/common/board.c | 52 +-- board/samsung/common/exynos5-dt.c | 29 -- common/Kconfig | 8 + configs/axs101_defconfig | 1 + configs/axs103_defconfig | 1 + configs/odroid-xu3_defconfig | 1 + configs/odroid_defconfig | 1 + configs/spring_defconfig | 1 + drivers/mmc/s5p_sdhci.c | 50 --- drivers/sound/Kconfig | 8 + drivers/sound/Makefile | 1 + drivers/sound/max98088.c | 431 ++++++++++++++++++++++++ drivers/sound/max98088.h | 192 +++++++++++ drivers/sound/samsung_sound.c | 2 +- include/configs/axs10x.h | 5 - include/configs/hsdk.h | 5 - include/configs/odroid.h | 1 - include/configs/odroid_xu3.h | 1 - include/fdtdec.h | 7 - include/samsung/misc.h | 2 - lib/fdtdec.c | 7 - scripts/config_whitelist.txt | 1 - 28 files changed, 739 insertions(+), 177 deletions(-) create mode 100644 arch/arm/mach-s5pc1xx/pinmux.c create mode 100644 drivers/sound/max98088.c create mode 100644 drivers/sound/max98088.h
Signature · 1 line
2.20.1.97.g81188d93c3-goog
PATCH v3 1/10 Convert CONFIG_BOARD_TYPES to Kconfig
This converts the following to Kconfig:
CONFIG_BOARD_TYPES
---
Changes in v3: None
Changes in v2:
- Remove stranded comments in the header files
common/Kconfig | 8 ++++++++ configs/axs101_defconfig | 1 + configs/axs103_defconfig | 1 + configs/odroid-xu3_defconfig | 1 + configs/odroid_defconfig | 1 + include/configs/axs10x.h | 5 ----- include/configs/hsdk.h | 5 ----- include/configs/odroid.h | 1 - include/configs/odroid_xu3.h | 1 - scripts/config_whitelist.txt | 1 - 10 files changed, 12 insertions(+), 13 deletions(-)
common/Kconfig +8 -0
@@ -645,6 +645,14 @@ config DISPLAY_BOARDINFO_LATE the relocation phase. The board function checkboard() is called to do this. +config BOARD_TYPES + bool "Call get_board_type() to get and display the board type" + help + If this option is enabled, checkboard() will call get_board_type() + to get a string containing the board type and this will be + displayed immediately after the model is shown on the console + early in boot. + menu "Start-up hooks" config ARCH_EARLY_INIT_R
configs/axs101_defconfig +1 -0
@@ -8,6 +8,7 @@ CONFIG_DEBUG_UART=y CONFIG_BOOTDELAY=3 CONFIG_USE_BOOTARGS=y CONFIG_BOOTARGS="console=ttyS3,115200n8" +CONFIG_BOARD_TYPES=y CONFIG_BOARD_EARLY_INIT_F=y CONFIG_HUSH_PARSER=y CONFIG_SYS_PROMPT="AXS# "
configs/axs103_defconfig +1 -0
@@ -8,6 +8,7 @@ CONFIG_DEBUG_UART=y CONFIG_BOOTDELAY=3 CONFIG_USE_BOOTARGS=y CONFIG_BOOTARGS="console=ttyS3,115200n8" +CONFIG_BOARD_TYPES=y CONFIG_BOARD_EARLY_INIT_F=y CONFIG_HUSH_PARSER=y CONFIG_SYS_PROMPT="AXS# "
configs/odroid-xu3_defconfig +1 -0
@@ -2,6 +2,7 @@ CONFIG_ARM=y CONFIG_ARCH_EXYNOS=y CONFIG_SYS_TEXT_BASE=0x43E00000 CONFIG_ARCH_EXYNOS5=y +CONFIG_BOARD_TYPES=y CONFIG_IDENT_STRING=" for ODROID-XU3/XU4/HC1/HC2" CONFIG_DISTRO_DEFAULTS=y CONFIG_NR_DRAM_BANKS=8
configs/odroid_defconfig +1 -0
@@ -3,6 +3,7 @@ CONFIG_ARCH_EXYNOS=y CONFIG_SYS_TEXT_BASE=0x43e00000 CONFIG_ARCH_EXYNOS4=y CONFIG_TARGET_ODROID=y +CONFIG_BOARD_TYPES=y CONFIG_DISTRO_DEFAULTS=y CONFIG_NR_DRAM_BANKS=8 # CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set
include/configs/axs10x.h +0 -5
@@ -31,11 +31,6 @@#define CONFIG_SYS_BOOTM_LEN SZ_128M#define CONFIG_SYS_LOAD_ADDR 0x82000000 -/* -* This board might be of different versions so handle it -*/ -#define CONFIG_BOARD_TYPES -/* * NAND Flash configuration */
include/configs/hsdk.h +0 -5
@@ -32,11 +32,6 @@#define CONFIG_SYS_BOOTM_LEN SZ_128M#define CONFIG_SYS_LOAD_ADDR 0x82000000 -/* -* This board might be of different versions so handle it -*/ -#define CONFIG_BOARD_TYPES -/* * UART configuration */
include/configs/odroid.h +0 -1
@@ -186,7 +186,6 @@* TODO: Add Odroid X support */ #define CONFIG_MISC_COMMON -#define CONFIG_BOARD_TYPES #undef CONFIG_REVISION_TAG
include/configs/odroid_xu3.h +0 -1
@@ -87,7 +87,6 @@/* Set soc_rev, soc_id, board_rev, boardname, fdtfile */ #define CONFIG_ODROID_REV_AIN 9#define CONFIG_REVISION_TAG -#define CONFIG_BOARD_TYPES #undef CONFIG_SYS_BOARD#define CONFIG_SYS_BOARD "odroid"
scripts/config_whitelist.txt +0 -1
@@ -131,7 +131,6 @@ CONFIG_BOARD_POSTCLK_INIT CONFIG_BOARD_REVISION_TAG CONFIG_BOARD_SIZE_LIMIT CONFIG_BOARD_TAURUS -CONFIG_BOARD_TYPES CONFIG_BOOGER CONFIG_BOOTBLOCK CONFIG_BOOTFILE
Signature · 1 line
2.20.1.97.g81188d93c3-goog
PATCH v3 1/10 Convert CONFIG_BOARD_TYPES to Kconfig
Hi Simon,
Quoted 27 lines
-----Original Message-----
From: Simon Glass <[email protected]>
Sent: Saturday, January 12, 2019 4:37 AM
To: U-Boot Mailing List <[email protected]>
Cc: Simon Glass <[email protected]>; Lukasz Majewski <[email protected]>; Mario Six <[email protected]>; Michal Simek <[email protected]>; Alexey Brodkin <[email protected]>; Eugeniy Paltsev <[email protected]>; Jaehoon Chung <[email protected]>; Marek Vasut <[email protected]>; Alex Kiernan <[email protected]>; Joe Hershberger <[email protected]>; Jörg Krause <[email protected]>; Adam Ford <[email protected]>; Stephen Warren <[email protected]>; Angelo Dureghello <[email protected]>; Tuomas Tynkkynen <[email protected]>; Eugeniu Rosca <[email protected]>
Subject: [PATCH v3 01/10] ConvertCONFIG_BOARD_TYPEStoKconfigThis converts the following to
Kconfig:
CONFIG_BOARD_TYPESSigned-off-by Simon Glass <[email protected]>Reviewed-by Lukasz Majewski <[email protected]>---
Changes in v3: None
Changes in v2:
- Remove stranded comments in the header filescommon/Kconfig | 8 ++++++++ configs/axs101_defconfig | 1 + configs/axs103_defconfig | 1 +
[snip]
Quoted 2 lines
include/configs/axs10x.h | 5 ----- include/configs/hsdk.h | 5 -----
PATCH v3 1/10 Convert CONFIG_BOARD_TYPES to Kconfig
In reply to Simon GlassQuoted 11 lines · Simon Glass
This converts the following to
Kconfig:
CONFIG_BOARD_TYPESSigned-off-by Simon Glass <[email protected]>Reviewed-by Lukasz Majewski <[email protected]>---
Changes in v3: None
Changes in v2:
- Remove stranded comments in the header files
Quoted 12 lines
common/Kconfig | 8 ++++++++ configs/axs101_defconfig | 1 + configs/axs103_defconfig | 1 + configs/odroid-xu3_defconfig | 1 + configs/odroid_defconfig | 1 + include/configs/axs10x.h | 5 ----- include/configs/hsdk.h | 5 ----- include/configs/odroid.h | 1 - include/configs/odroid_xu3.h | 1 - scripts/config_whitelist.txt | 1 - 10 files changed, 12 insertions(+), 13 deletions(-)
Thanks,
Minkyu Kang.
PATCH v3 1/10 Convert CONFIG_BOARD_TYPES to Kconfig
Quoted 11 lines · Simon Glass
This converts the following to
Kconfig:
CONFIG_BOARD_TYPESSigned-off-by Simon Glass <[email protected]>Reviewed-by Lukasz Majewski <[email protected]>---
Changes in v3: None
Changes in v2:
- Remove stranded comments in the header files
Quoted 12 lines
common/Kconfig | 8 ++++++++ configs/axs101_defconfig | 1 + configs/axs103_defconfig | 1 + configs/odroid-xu3_defconfig | 1 + configs/odroid_defconfig | 1 + include/configs/axs10x.h | 5 ----- include/configs/hsdk.h | 5 ----- include/configs/odroid.h | 1 - include/configs/odroid_xu3.h | 1 - scripts/config_whitelist.txt | 1 - 10 files changed, 12 insertions(+), 13 deletions(-)
Thanks,
Minkyu Kang.
Applied to u-boot-dm, thanks!
PATCH v3 2/10 exynos: Drop duplicate 'model' line
In reply to Simon GlassAt present the model is shown twice, once in the generic code and once in the exynos code. Drop the latter.
---
Changes in v3: None
Changes in v2: None
board/samsung/common/board.c | 14 ++++++-------- include/samsung/misc.h | 2 -- 2 files changed, 6 insertions(+), 10 deletions(-)
board/samsung/common/board.c +6 -8
@@ -290,15 +290,13 @@ int board_mmc_init(bd_t *bis)#ifdef CONFIG_DISPLAY_BOARDINFO int checkboard (void ) { -const char *board_info; +if (IS_ENABLED (CONFIG_BOARD_TYPES )) { +const char *board_info =get_board_type (); + +if (board_info) +printf ("Type: %s\n" , board_info); + } - board_info =fdt_getprop (gd->fdt_blob,0 ,"model" ,NULL ); -printf ("Board: %s\n" , board_info ? board_info :"unknown" ); -#ifdef CONFIG_BOARD_TYPES - board_info =get_board_type (); -if (board_info) -printf ("Type: %s\n" , board_info); -#endif return 0 ; }#endif
include/samsung/misc.h +0 -2
@@ -32,9 +32,7 @@ void draw_logo(void);char *get_dfu_alt_system (char *interface,char *devstr);char *get_dfu_alt_boot (char *interface,char *devstr);#endif -#ifdef CONFIG_BOARD_TYPES void set_board_type (void );const char *get_board_type (void ); -#endif #endif /* __SAMSUNG_MISC_COMMON_H__ */
Signature · 1 line
2.20.1.97.g81188d93c3-goog
PATCH v3 2/10 exynos: Drop duplicate 'model' line
Quoted 46 lines · Simon Glass
At present the model is shown twice, once in the generic code and once in the exynos code. Drop the latter.
Signed-off-by Simon Glass <[email protected]>Reviewed-by Lukasz Majewski <[email protected]>---
Changes in v3: None
Changes in v2: Noneboard/samsung/common/board.c | 14 ++++++-------- include/samsung/misc.h | 2 -- 2 files changed, 6 insertions(+), 10 deletions(-)board/samsung/common/board.c +6
-8@@ -290,15 +290,13 @@ int board_mmc_init(bd_t *bis)#ifdef CONFIG_DISPLAY_BOARDINFO int checkboard (void ) { -const char *board_info; +if (IS_ENABLED (CONFIG_BOARD_TYPES )) { +const char *board_info =get_board_type (); + +if (board_info) +printf ("Type: %s\n" , board_info); + } - board_info =fdt_getprop (gd->fdt_blob,0 ,"model" ,NULL ); -printf ("Board: %s\n" , board_info ? board_info :"unknown" ); -#ifdef CONFIG_BOARD_TYPES - board_info =get_board_type (); -if (board_info) -printf ("Type: %s\n" , board_info); -#endif return 0 ; }#endif include/samsung/misc.h +0
-0
include/samsung/misc.h void draw_logo(void); · line 38
Quoted 9 lines
include/samsung/misc.h +0
-2@@ -32,9 +32,7 @@ void draw_logo(void);char *get_dfu_alt_system (char *interface,char *devstr);char *get_dfu_alt_boot (char *interface,char *devstr);#endif -#ifdef CONFIG_BOARD_TYPES void set_board_type (void );const char *get_board_type (void ); -#endif #endif /* __SAMSUNG_MISC_COMMON_H__ */
Thanks,
Minkyu Kang.
PATCH v3 2/10 exynos: Drop duplicate 'model' line
Quoted 5 lines · Simon Glass
At present the model is shown twice, once in the generic code and once in the exynos code. Drop the latter.
Signed-off-by Simon Glass <[email protected]>Reviewed-by Lukasz Majewski <[email protected]>
Quoted 9 lines
---
Changes in v3: None
Changes in v2: Noneboard/samsung/common/board.c | 14 ++++++-------- include/samsung/misc.h | 2 -- 2 files changed, 6 insertions(+), 10 deletions(-)
Applied to u-boot-dm, thanks!
PATCH v3 3/10 exynos: Convert to use CONFIG_BLK
In reply to Simon GlassMove all exynos boards over to use CONFIG_BLK.
This converts s5p_goni also, but adding dummy functions for pinmux and peripheral ID. This will not function correctly, but gives the maintainer more time to convert the board if desired.
---
Changes in v3:
- Fix s3p_goni typo
Changes in v2:
- Update to convert s5p_goni also
arch/arm/mach-exynos/Kconfig | 7 +++++++ arch/arm/mach-s5pc1xx/Kconfig | 2 ++ arch/arm/mach-s5pc1xx/Makefile | 1 + arch/arm/mach-s5pc1xx/pinmux.c | 20 ++++++++++++++++++++ 4 files changed, 30 insertions(+) create mode 100644 arch/arm/mach-s5pc1xx/pinmux.c
arch/arm/mach-exynos/Kconfig +7 -0
@@ -8,6 +8,8 @@ config ARCH_EXYNOS4 bool "Exynos4 SoC family" select BOARD_EARLY_INIT_F select CPU_V7A + select BLK + select DM_MMC help Samsung Exynos4 SoC family are based on ARM Cortex-A9 CPU. There are multiple SoCs in this family including Exynos4210, Exynos4412,
@@ -24,6 +26,9 @@ config ARCH_EXYNOS5 imply USB_ETHER_ASIX imply USB_ETHER_RTL8152 imply USB_ETHER_SMSC95XX + select BLK + select DM_MMC + help Samsung Exynos5 SoC family are based on ARM Cortex-A15 CPU (and Cortex-A7 CPU in big.LITTLE configuration). There are multiple SoCs
@@ -33,6 +38,8 @@ config ARCH_EXYNOS7 bool "Exynos7 SoC family" select ARM64 select BOARD_EARLY_INIT_F + select BLK + select DM_MMC help Samsung Exynos7 SoC family are based on ARM Cortex-A57 CPU or Cortex-A53 CPU (and some in a big.LITTLE configuration). There are
arch/arm/mach-s5pc1xx/Kconfig +2 -0
@@ -7,6 +7,8 @@ choice config TARGET_S5P_GONI bool "S5P Goni board" select OF_CONTROL + select BLK + select DM_MMC config TARGET_SMDKC100 bool "Support smdkc100 board"
arch/arm/mach-s5pc1xx/Makefile +1 -0
@@ -10,3 +10,4 @@ obj-y = cache.o obj-y += reset.o obj-y += clock.o +obj-y += pinmux.o
arch/arm/mach-s5pc1xx/pinmux.c new file +20 -0
@@ -0,0 +1,20 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* +* Dummy functions to keep s5p_goni building (although it won't work) +* +* Copyright 2018 Google LLC +* Written by Simon Glass <[email protected]> +*/ + +#include <common.h> +#include <asm/arch/pinmux.h> + +int exynos_pinmux_config (int peripheral,int flags) +{ +return 0 ; +} + +int pinmux_decode_periph_id (const void *blob,int node) +{ +return 0 ; +}
Signature · 1 line
2.20.1.97.g81188d93c3-goog
PATCH v3 3/10 exynos: Convert to use CONFIG_BLK
Quoted 16 lines · Simon Glass
Move all exynos boards over to use
CONFIG_BLK.This converts
s5p_gonialso, but adding dummy functions for pinmux and peripheral ID. This will not function correctly, but gives the maintainer more time to convert the board if desired.Signed-off-by Simon Glass <[email protected]>Reviewed-by Lukasz Majewski <[email protected]>---
Changes in v3:
- Fixs3p_gonitypoChanges in v2:
- Update to converts5p_gonialso
Quoted 7 lines
arch/arm/mach-exynos/Kconfig | 7 +++++++ arch/arm/mach-s5pc1xx/Kconfig | 2 ++ arch/arm/mach-s5pc1xx/Makefile | 1 + arch/arm/mach-s5pc1xx/pinmux.c | 20 ++++++++++++++++++++ 4 files changed, 30 insertions(+) create mode 100644 arch/arm/mach-s5pc1xx/pinmux.c
Thanks,
Minkyu Kang.
PATCH v3 3/10 exynos: Convert to use CONFIG_BLK
Quoted 16 lines · Simon Glass
Move all exynos boards over to use
CONFIG_BLK.This converts
s5p_gonialso, but adding dummy functions for pinmux and peripheral ID. This will not function correctly, but gives the maintainer more time to convert the board if desired.Signed-off-by Simon Glass <[email protected]>Reviewed-by Lukasz Majewski <[email protected]>---
Changes in v3:
- Fixs3p_gonitypoChanges in v2:
- Update to converts5p_gonialso
Quoted 7 lines
arch/arm/mach-exynos/Kconfig | 7 +++++++ arch/arm/mach-s5pc1xx/Kconfig | 2 ++ arch/arm/mach-s5pc1xx/Makefile | 1 + arch/arm/mach-s5pc1xx/pinmux.c | 20 ++++++++++++++++++++ 4 files changed, 30 insertions(+) create mode 100644 arch/arm/mach-s5pc1xx/pinmux.c
Thanks,
Minkyu Kang.
Applied to u-boot-dm, thanks!
PATCH v3 4/10 sound: Add a driver for max98088
In reply to Simon GlassThis chip is used by spring. Add a driver for it and update the samsung_sound driver to pick it up.
---
Changes in v3:
- Fix remaining 'return -1' statements to use a real error
Changes in v2: None
drivers/sound/Kconfig | 8 + drivers/sound/Makefile | 1 + drivers/sound/max98088.c | 431 ++++++++++++++++++++++++++++++++++ drivers/sound/max98088.h | 192 +++++++++++++++ drivers/sound/samsung_sound.c | 2 +- 5 files changed, 633 insertions(+), 1 deletion(-) create mode 100644 drivers/sound/max98088.c create mode 100644 drivers/sound/max98088.h
drivers/sound/Kconfig +8 -0
@@ -31,6 +31,14 @@ config I2S_SAMSUNG option provides an implementation for sound_init() and sound_play(). +config SOUND_MAX98088 + bool "Support Maxim max98088 audio codec" + depends on I2S_SAMSUNG + help + Enable the max98088 audio codec. This is connected via I2S for + audio data and I2C for codec control. At present it only works + with the Samsung I2S driver. + config SOUND_MAX98090 bool "Support Maxim max98090 audio codec" depends on I2S_SAMSUNG
drivers/sound/Makefile +1 -0
@@ -11,5 +11,6 @@ obj-$(CONFIG_I2S_SAMSUNG) += samsung-i2s.o obj-$(CONFIG_SOUND_SANDBOX) += sandbox.o obj-$(CONFIG_I2S_SAMSUNG) += samsung_sound.o obj-$(CONFIG_SOUND_WM8994) += wm8994.o +obj-$(CONFIG_SOUND_MAX98088) += max98088.o maxim_codec.o obj-$(CONFIG_SOUND_MAX98090) += max98090.o maxim_codec.o obj-$(CONFIG_SOUND_MAX98095) += max98095.o maxim_codec.o
drivers/sound/max98088.c new file +431 -0
431 lines not on this page · raw message
drivers/sound/max98088.h new file +192 -0
192 lines not on this page · raw message
drivers/sound/samsung_sound.c +1 -1
@@ -89,7 +89,7 @@ static const struct sound_ops samsung_sound_ops = {static const struct udevice_id samsung_sound_ids[] = { { .compatible ="google,snow-audio-max98095" }, - { .compatible ="google,spring-audio-max98095" }, + { .compatible ="google,spring-audio-max98088" }, { .compatible ="samsung,smdk5420-audio-wm8994" }, { .compatible ="google,peach-audio-max98090" }, { }
Signature · 1 line
2.20.1.97.g81188d93c3-goog
PATCH v3 4/10 sound: Add a driver for max98088
This chip is used by spring. Add a driver for it and update the samsung_sound driver to pick it up.
---
Changes in v3:
- Fix remaining 'return -1' statements to use a real error
Changes in v2: None
drivers/sound/Kconfig | 8 + drivers/sound/Makefile | 1 + drivers/sound/max98088.c | 431 ++++++++++++++++++++++++++++++++++ drivers/sound/max98088.h | 192 +++++++++++++++ drivers/sound/samsung_sound.c | 2 +- 5 files changed, 633 insertions(+), 1 deletion(-) create mode 100644 drivers/sound/max98088.c create mode 100644 drivers/sound/max98088.h
Applied to u-boot-dm, thanks!
PATCH v3 5/10 spring: Update sound to use max98088 codec
In reply to Simon GlassUpdate the spring settings to use this codec, which is what it actually shipped with.
---
Changes in v3: None
Changes in v2: None
arch/arm/dts/exynos5250-spring.dts | 36 +++++++++++++++--------------- configs/spring_defconfig | 1 + 2 files changed, 19 insertions(+), 18 deletions(-)
arch/arm/dts/exynos5250-spring.dts +18 -18
@@ -93,6 +93,22 @@ samsung,vbus-gpio = <&gpx2 7 GPIO_ACTIVE_HIGH>; }; + sound { + compatible = "google,spring-audio-max98088"; + + samsung,model = "Spring-I2S-MAX98088"; + samsung,audio-codec = <&max98088>; + codec-enable-gpio = <&gpx1 7 0>; + + cpu { + sound-dai = <&i2s1 0>; + }; + + codec { + sound-dai = <&max98088 0>; + }; + }; + spi at 12d30000 { spi-max-frequency = <50000000>; firmware_storage_spi: flash at 0 {
@@ -638,27 +654,11 @@ }; }; - max98095: soundcodec at 10 { + max98088: soundcodec at 10 { reg = <0x10>; - compatible = "maxim,max98095"; + compatible = "maxim,max98088"; #sound-dai-cells = <1>; }; - - sound { - compatible = "google,spring-audio-max98095"; - - samsung,model = "Spring-I2S-MAX98095"; - samsung,audio-codec = <&max98095>; - - cpu { - sound-dai = <&i2s0 0>; - }; - - codec { - sound-dai = <&max98095 0>; - }; - }; - }; #include "cros-ec-keyboard.dtsi"
configs/spring_defconfig +1 -0
@@ -62,6 +62,7 @@ CONFIG_DEBUG_UART_S5P=y CONFIG_SOUND=y CONFIG_I2S=y CONFIG_I2S_SAMSUNG=y +CONFIG_SOUND_MAX98088=y CONFIG_SOUND_MAX98095=y CONFIG_SOUND_WM8994=y CONFIG_EXYNOS_SPI=y
Signature · 1 line
2.20.1.97.g81188d93c3-goog
PATCH v3 5/10 spring: Update sound to use max98088 codec
Update the spring settings to use this codec, which is what it actually shipped with.
---
Changes in v3: None
Changes in v2: None
arch/arm/dts/exynos5250-spring.dts | 36 +++++++++++++++--------------- configs/spring_defconfig | 1 + 2 files changed, 19 insertions(+), 18 deletions(-)
Applied to u-boot-dm, thanks!
PATCH v3 6/10 spring: Update flashmap details
In reply to Simon GlassUpdate the flashmap so that this board can be started over USB A-A. It is slightly different from snow.
---
Changes in v3: None
Changes in v2: None
arch/arm/dts/exynos5250-spring.dts | 41 ++++++++++++++++++++++++++++-- 1 file changed, 39 insertions(+), 2 deletions(-)
arch/arm/dts/exynos5250-spring.dts +39 -2
@@ -40,9 +40,46 @@ reg = <0x40000000 0x80000000>; }; + iram { + reg = <0x02020000 0x60000>; + }; + + config { + samsung,bl1-offset = <0x1400>; + samsung,bl2-offset = <0x3400>; + u-boot-memory = "/memory"; + u-boot-offset = <0x3e00000 0x100000>; + }; + flash at 0 { - spl { /* spl size override */ - size = <0x8000>; + reg = <0 0x100000>; + #address-cells = <1>; + #size-cells = <1>; + pre-boot { + label = "bl1 pre-boot"; + reg = <0 0x2000>; + read-only; + filename = "e5250.nbl1.bin"; + type = "blob exynos-bl1"; + required; + }; + + spl { + label = "bl2 spl"; + reg = <0x2000 0x8000>; + read-only; + filename = "bl2.bin"; + type = "blob exynos-bl2 boot,dtb"; + payload = "/flash/ro-boot"; + required; + }; + + ro-boot { + label = "u-boot"; + reg = <0xa000 0xb0000>; + read-only; + type = "blob boot,dtb"; + required; }; };
Signature · 1 line
2.20.1.97.g81188d93c3-goog
PATCH v3 6/10 spring: Update flashmap details
Update the flashmap so that this board can be started over USB A-A. It is slightly different from snow.
---
Changes in v3: None
Changes in v2: None
arch/arm/dts/exynos5250-spring.dts | 41 ++++++++++++++++++++++++++++-- 1 file changed, 39 insertions(+), 2 deletions(-)
Applied to u-boot-dm, thanks!
PATCH v3 7/10 samsung: Drop board_enable_audio_codec()
In reply to Simon GlassThis function is not needed now since the audio codecs have been converted to proper drivers. The codec-enable GPIO is handled there.
---
Changes in v3: None
Changes in v2: None
board/samsung/common/exynos5-dt.c | 29 ----------------------------- 1 file changed, 29 deletions(-)
board/samsung/common/exynos5-dt.c +0 -29
@@ -34,37 +34,8 @@DECLARE_GLOBAL_DATA_PTR ; -static void board_enable_audio_codec (void ) -{ -int node, ret; -struct gpio_desc en_gpio; - - node =fdtdec_next_compatible (gd->fdt_blob,0 , -COMPAT_SAMSUNG_EXYNOS5_SOUND ); -if (node <=0 ) -return ; - - ret =gpio_request_by_name_nodev (offset_to_ofnode (node), -"codec-enable-gpio" ,0 , &en_gpio, -GPIOD_IS_OUT |GPIOD_IS_OUT_ACTIVE ); -if (ret == -FDT_ERR_NOTFOUND ) -return ; - -/* Turn on the GPIO which connects to the codec's "enable" line. */ -gpio_set_pull (gpio_get_number (&en_gpio),S5P_GPIO_PULL_NONE ); - -#ifdef CONFIG_SOUND_MAX98095 -/* Enable MAX98095 Codec */ -gpio_request (EXYNOS5_GPIO_X17 ,"max98095_enable" ); -gpio_direction_output (EXYNOS5_GPIO_X17 ,1 ); -gpio_set_pull (EXYNOS5_GPIO_X17 ,S5P_GPIO_PULL_NONE ); -#endif -} -int exynos_init (void ) { -board_enable_audio_codec (); -return 0 ; }
Signature · 1 line
2.20.1.97.g81188d93c3-goog
PATCH v3 7/10 samsung: Drop board_enable_audio_codec()
Quoted 46 lines · Simon Glass
This function is not needed now since the audio codecs have been converted to proper drivers. The codec-enable GPIO is handled there.
Signed-off-by Simon Glass <[email protected]>Reviewed-by Lukasz Majewski <[email protected]>---
Changes in v3: None
Changes in v2: Noneboard/samsung/common/exynos5-dt.c | 29 ----------------------------- 1 file changed, 29 deletions(-)board/samsung/common/exynos5-dt.c +0
-24@@ -34,37 +34,8 @@DECLARE_GLOBAL_DATA_PTR ; -static void board_enable_audio_codec (void ) -{ -int node, ret; -struct gpio_desc en_gpio; - - node =fdtdec_next_compatible (gd->fdt_blob,0 , -COMPAT_SAMSUNG_EXYNOS5_SOUND ); -if (node <=0 ) -return ; - - ret =gpio_request_by_name_nodev (offset_to_ofnode (node), -"codec-enable-gpio" ,0 , &en_gpio, -GPIOD_IS_OUT |GPIOD_IS_OUT_ACTIVE ); -if (ret == -FDT_ERR_NOTFOUND ) -return ; - -/* Turn on the GPIO which connects to the codec's "enable" line. */ -gpio_set_pull (gpio_get_number (&en_gpio),S5P_GPIO_PULL_NONE ); - -#ifdef CONFIG_SOUND_MAX98095 -/* Enable MAX98095 Codec */ -gpio_request (EXYNOS5_GPIO_X17 ,"max98095_enable" ); -gpio_direction_output (EXYNOS5_GPIO_X17 ,1 ); -gpio_set_pull (EXYNOS5_GPIO_X17 ,S5P_GPIO_PULL_NONE );
board/samsung/common/exynos5-dt.c line 41
Quoted 10 lines
board/samsung/common/exynos5-dt.c +0
-5-#endif -} -int exynos_init (void ) { -board_enable_audio_codec (); -return 0 ; }
Thanks,
Minkyu Kang.
PATCH v3 7/10 samsung: Drop board_enable_audio_codec()
Quoted 5 lines · Simon Glass
This function is not needed now since the audio codecs have been converted to proper drivers. The codec-enable GPIO is handled there.
Signed-off-by Simon Glass <[email protected]>Reviewed-by Lukasz Majewski <[email protected]>
Quoted 8 lines
---
Changes in v3: None
Changes in v2: Noneboard/samsung/common/exynos5-dt.c | 29 ----------------------------- 1 file changed, 29 deletions(-)
Applied to u-boot-dm, thanks!
PATCH v3 8/10 samsung: mmc: Drop old MMC init code
In reply to Simon GlassNow that these boards use driver model we can drop the old code. At present s5p_mmc_init() is still used by goni and smdkv310 so cannot be removed unless we remove those boards.
---
Changes in v3: None
Changes in v2: None
arch/arm/mach-exynos/include/mach/mmc.h | 2 - board/samsung/common/board.c | 38 ------------------- drivers/mmc/s5p_sdhci.c | 50 ------------------------- 3 files changed, 90 deletions(-)
arch/arm/mach-exynos/include/mach/mmc.h +0 -2
@@ -64,6 +64,4 @@ static inline int s5p_mmc_init(int index, int bus_width) return s5p_sdhci_init(base, index, bus_width); } -int exynos_mmc_init (const void *blob); -#endif
board/samsung/common/board.c +0 -38
@@ -249,44 +249,6 @@ int board_eth_init(bd_t *bis)return 0 ; } -#ifdef CONFIG_MMC -static int init_mmc (void ) -{ -#ifdef CONFIG_MMC_SDHCI -return exynos_mmc_init (gd->fdt_blob); -#else -return 0 ; -#endif -} - -static int init_dwmmc (void ) -{ -#ifdef CONFIG_MMC_DW -return exynos_dwmmc_init (gd->fdt_blob); -#else -return 0 ; -#endif -} - -int board_mmc_init (bd_t *bis) -{ -int ret; - -if (get_boot_mode () ==BOOT_MODE_SD ) { - ret =init_mmc (); - ret |=init_dwmmc (); - }else { - ret =init_dwmmc (); - ret |=init_mmc (); - } - -if (ret) -debug ("mmc init failed\n" ); - -return ret; -} -#endif -#ifdef CONFIG_DISPLAY_BOARDINFO int checkboard (void ) {
drivers/mmc/s5p_sdhci.c +0 -50
62 lines not on this page · raw message
Signature · 1 line
2.20.1.97.g81188d93c3-goog
PATCH v3 8/10 samsung: mmc: Drop old MMC init code
Quoted 8 lines · Simon Glass
Now that these boards use driver model we can drop the old code. At present
s5p_mmc_init()is still used by goni and smdkv310 so cannot be removed unless we remove those boards.Signed-off-by Simon Glass <[email protected]>Reviewed-by Lukasz Majewski <[email protected]>---
Quoted 8 lines
Changes in v3: None
Changes in v2: Nonearch/arm/mach-exynos/include/mach/mmc.h | 2 - board/samsung/common/board.c | 38 ------------------- drivers/mmc/s5p_sdhci.c | 50 ------------------------- 3 files changed, 90 deletions(-)
Thanks,
Minkyu Kang.
PATCH v3 8/10 samsung: mmc: Drop old MMC init code
Quoted 8 lines · Simon Glass
Now that these boards use driver model we can drop the old code. At present
s5p_mmc_init()is still used by goni and smdkv310 so cannot be removed unless we remove those boards.Signed-off-by Simon Glass <[email protected]>Reviewed-by Lukasz Majewski <[email protected]>---
Quoted 8 lines
Changes in v3: None
Changes in v2: Nonearch/arm/mach-exynos/include/mach/mmc.h | 2 - board/samsung/common/board.c | 38 ------------------- drivers/mmc/s5p_sdhci.c | 50 ------------------------- 3 files changed, 90 deletions(-)
Thanks,
Minkyu Kang.
Applied to u-boot-dm, thanks!
PATCH v3 9/10 fdt: samsung: Drop unused fdt_compat_id values
In reply to Simon GlassThis enum still exists but we can shrink it a little based on recent driver-model conversions with samsung. Update it to remove unused items.
---
Changes in v3: None
Changes in v2: None
include/fdtdec.h | 6 ------ lib/fdtdec.c | 6 ------ 2 files changed, 12 deletions(-)
include/fdtdec.h +0 -6
@@ -133,18 +133,12 @@ enum fdt_compat_id {/* Tegra210 XUSB pad controller */ COMPAT_SMSC_LAN9215 ,/* SMSC 10/100 Ethernet LAN9215 */ COMPAT_SAMSUNG_EXYNOS5_SROMC ,/* Exynos5 SROMC */ -COMPAT_SAMSUNG_S3C2440_I2C ,/* Exynos I2C Controller */ -COMPAT_SAMSUNG_EXYNOS5_SOUND ,/* Exynos Sound */ -COMPAT_WOLFSON_WM8994_CODEC ,/* Wolfson WM8994 Sound Codec */ COMPAT_SAMSUNG_EXYNOS_USB_PHY ,/* Exynos phy controller for usb2.0 */ COMPAT_SAMSUNG_EXYNOS5_USB3_PHY ,/* Exynos phy controller for usb3.0 */ COMPAT_SAMSUNG_EXYNOS_TMU ,/* Exynos TMU */ COMPAT_SAMSUNG_EXYNOS_MIPI_DSI ,/* Exynos mipi dsi */ COMPAT_SAMSUNG_EXYNOS_DWMMC ,/* Exynos DWMMC controller */ -COMPAT_SAMSUNG_EXYNOS_MMC ,/* Exynos MMC controller */ COMPAT_GENERIC_SPI_FLASH ,/* Generic SPI Flash chip */ -COMPAT_MAXIM_98095_CODEC ,/* MAX98095 Codec */ -COMPAT_SAMSUNG_EXYNOS5_I2C ,/* Exynos5 High Speed I2C Controller */ COMPAT_SAMSUNG_EXYNOS_SYSMMU ,/* Exynos sysmmu */ COMPAT_INTEL_MICROCODE ,/* Intel microcode update */ COMPAT_AMS_AS3722, /* AMS AS3722 PMIC */
lib/fdtdec.c +0 -6
@@ -40,18 +40,12 @@ static const char * const compat_names[COMPAT_COUNT] = {COMPAT (NVIDIA_TEGRA210_XUSB_PADCTL ,"nvidia,tegra210-xusb-padctl" ),COMPAT (SMSC_LAN9215 ,"smsc,lan9215" ),COMPAT (SAMSUNG_EXYNOS5_SROMC ,"samsung,exynos-sromc" ), -COMPAT (SAMSUNG_S3C2440_I2C ,"samsung,s3c2440-i2c" ), -COMPAT (SAMSUNG_EXYNOS5_SOUND ,"samsung,exynos-sound" ), -COMPAT (WOLFSON_WM8994_CODEC ,"wolfson,wm8994-codec" ),COMPAT (SAMSUNG_EXYNOS_USB_PHY ,"samsung,exynos-usb-phy" ),COMPAT (SAMSUNG_EXYNOS5_USB3_PHY ,"samsung,exynos5250-usb3-phy" ),COMPAT (SAMSUNG_EXYNOS_TMU ,"samsung,exynos-tmu" ),COMPAT (SAMSUNG_EXYNOS_MIPI_DSI ,"samsung,exynos-mipi-dsi" ),COMPAT (SAMSUNG_EXYNOS_DWMMC ,"samsung,exynos-dwmmc" ), -COMPAT (SAMSUNG_EXYNOS_MMC ,"samsung,exynos-mmc" ),COMPAT (GENERIC_SPI_FLASH ,"spi-flash" ), -COMPAT (MAXIM_98095_CODEC ,"maxim,max98095-codec" ), -COMPAT (SAMSUNG_EXYNOS5_I2C ,"samsung,exynos5-hsi2c" ),COMPAT (SAMSUNG_EXYNOS_SYSMMU ,"samsung,sysmmu-v3.3" ),COMPAT (INTEL_MICROCODE ,"intel,microcode" ), COMPAT(AMS_AS3722, "ams,as3722"),
Signature · 1 line
2.20.1.97.g81188d93c3-goog
PATCH v3 9/10 fdt: samsung: Drop unused fdt_compat_id values
This enum still exists but we can shrink it a little based on recent driver-model conversions with samsung. Update it to remove unused items.
---
Changes in v3: None
Changes in v2: None
include/fdtdec.h | 6 ------ lib/fdtdec.c | 6 ------ 2 files changed, 12 deletions(-)
Applied to u-boot-dm, thanks!
PATCH v3 10/10 fdt: tegra: Drop COMPAT_AMS_AS3722
In reply to Simon GlassThis is no-longer used. Drop it.
---
Changes in v3:
- Drop patch 1, previously applied
Changes in v2:
- Add new patches as per the cover letter
include/fdtdec.h | 1 - lib/fdtdec.c | 1 - 2 files changed, 2 deletions(-)
include/fdtdec.h +0 -1
@@ -141,7 +141,6 @@ enum fdt_compat_id {COMPAT_GENERIC_SPI_FLASH ,/* Generic SPI Flash chip */ COMPAT_SAMSUNG_EXYNOS_SYSMMU ,/* Exynos sysmmu */ COMPAT_INTEL_MICROCODE ,/* Intel microcode update */ -COMPAT_AMS_AS3722 ,/* AMS AS3722 PMIC */ COMPAT_INTEL_QRK_MRC ,/* Intel Quark MRC */ COMPAT_ALTERA_SOCFPGA_DWMAC ,/* SoCFPGA Ethernet controller */ COMPAT_ALTERA_SOCFPGA_DWMMC, /* SoCFPGA DWMMC controller */
lib/fdtdec.c +0 -1
@@ -48,7 +48,6 @@ static const char * const compat_names[COMPAT_COUNT] = {COMPAT (GENERIC_SPI_FLASH ,"spi-flash" ),COMPAT (SAMSUNG_EXYNOS_SYSMMU ,"samsung,sysmmu-v3.3" ),COMPAT (INTEL_MICROCODE ,"intel,microcode" ), -COMPAT (AMS_AS3722 ,"ams,as3722" ),COMPAT (INTEL_QRK_MRC ,"intel,quark-mrc" ),COMPAT (ALTERA_SOCFPGA_DWMAC ,"altr,socfpga-stmmac" ), COMPAT(ALTERA_SOCFPGA_DWMMC, "altr,socfpga-dw-mshc"),
Signature · 1 line
2.20.1.97.g81188d93c3-goog
PATCH v3 10/10 fdt: tegra: Drop COMPAT_AMS_AS3722
This is no-longer used. Drop it.
---
Changes in v3:
- Drop patch 1, previously applied
Changes in v2:
- Add new patches as per the cover letter
include/fdtdec.h | 1 - lib/fdtdec.c | 1 - 2 files changed, 2 deletions(-)
Applied to u-boot-dm, thanks!