Hello Simon,

Am 15.05.2017 um 12:57 schrieb Simon Glass:
This converts the following to Kconfig:
    CONFIG_DS4510

Signed-off-by: Simon Glass <s...@chromium.org>
---

  README                        | 1 -
  configs/xpedite517x_defconfig | 1 +
  configs/xpedite537x_defconfig | 1 +
  drivers/misc/Kconfig          | 8 ++++++++
  include/configs/xpedite517x.h | 1 -
  include/configs/xpedite537x.h | 1 -
  scripts/config_whitelist.txt  | 1 -
  7 files changed, 10 insertions(+), 4 deletions(-)

Reviewed-by: Heiko Schocher <h...@denx.de>

bye,
Heiko

diff --git a/README b/README
index c3f4824f64..ace492edde 100644
--- a/README
+++ b/README
@@ -830,7 +830,6 @@ The following options need to be configured:
                CONFIG_CMD_CRC32        * crc32
                CONFIG_CMD_DHCP         * DHCP support
                CONFIG_CMD_DIAG         * Diagnostics
-               CONFIG_CMD_DS4510       * ds4510 I2C gpio commands
                CONFIG_CMD_DTT          * Digital Therm and Thermostat
                CONFIG_CMD_ECHO           echo arguments
                CONFIG_CMD_EDITENV        edit env variable
diff --git a/configs/xpedite517x_defconfig b/configs/xpedite517x_defconfig
index 909efb1c08..69fd8fa004 100644
--- a/configs/xpedite517x_defconfig
+++ b/configs/xpedite517x_defconfig
@@ -15,6 +15,7 @@ CONFIG_CMD_MII=y
  CONFIG_CMD_PING=y
  CONFIG_CMD_SNTP=y
  CONFIG_CMD_DATE=y
+CONFIG_DS4510=y
  # CONFIG_MMC is not set
  CONFIG_MTD_NOR_FLASH=y
  CONFIG_SYS_NS16550=y
diff --git a/configs/xpedite537x_defconfig b/configs/xpedite537x_defconfig
index 41dee5d839..641ef8ff09 100644
--- a/configs/xpedite537x_defconfig
+++ b/configs/xpedite537x_defconfig
@@ -16,6 +16,7 @@ CONFIG_CMD_PING=y
  CONFIG_CMD_SNTP=y
  CONFIG_CMD_DATE=y
  CONFIG_SYS_FSL_DDR2=y
+CONFIG_DS4510=y
  # CONFIG_MMC is not set
  CONFIG_MTD_NOR_FLASH=y
  CONFIG_SYS_NS16550=y
diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig
index 1aae4bcd07..ecca159d14 100644
--- a/drivers/misc/Kconfig
+++ b/drivers/misc/Kconfig
@@ -75,6 +75,14 @@ config CROS_EC_SPI
          provides a faster and more robust interface than I2C but the bugs
          are less interesting.

+config DS4510
+       bool "Enable support for DS4510 CPU supervisor"
+       help
+         Enable support for the Maxim DS4510 CPU supervisor. It has an
+         integrated 64-byte EEPROM, four programmable non-volatile I/O pins
+         and a configurable timer for the supervisor function. The device is
+         connected over I2C.
+
  config FSL_SEC_MON
        bool "Enable FSL SEC_MON Driver"
        help
diff --git a/include/configs/xpedite517x.h b/include/configs/xpedite517x.h
index 822f70e7ac..bd1d0c75d9 100644
--- a/include/configs/xpedite517x.h
+++ b/include/configs/xpedite517x.h
@@ -249,7 +249,6 @@ extern unsigned long get_board_sys_clk(unsigned long dummy);
  #define CONFIG_SYS_M41T11_BASE_YEAR   2000

  /* GPIO/EEPROM/SRAM */
-#define CONFIG_DS4510
  #define CONFIG_SYS_I2C_DS4510_ADDR    0x51

  /* GPIO */
diff --git a/include/configs/xpedite537x.h b/include/configs/xpedite537x.h
index a12a3f8347..a290cf3463 100644
--- a/include/configs/xpedite537x.h
+++ b/include/configs/xpedite537x.h
@@ -246,7 +246,6 @@ extern unsigned long get_board_ddr_clk(unsigned long dummy);
  #define CONFIG_SYS_M41T11_BASE_YEAR   2000

  /* GPIO/EEPROM/SRAM */
-#define CONFIG_DS4510
  #define CONFIG_SYS_I2C_DS4510_ADDR    0x51

  /* GPIO */
diff --git a/scripts/config_whitelist.txt b/scripts/config_whitelist.txt
index 3332fe3cac..85ab8f8933 100644
--- a/scripts/config_whitelist.txt
+++ b/scripts/config_whitelist.txt
@@ -683,7 +683,6 @@ CONFIG_DRIVE_MMC
  CONFIG_DRIVE_SATA
  CONFIG_DRIVE_TYPES
  CONFIG_DRIVE_USB
-CONFIG_DS4510
  CONFIG_DSP_CLUSTER_START
  CONFIG_DTT
  CONFIG_DTT_AD7414


--
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot

Reply via email to