Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2B5F8C4338F for ; Tue, 17 Aug 2021 22:01:33 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8E17F6054E for ; Tue, 17 Aug 2021 22:01:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 8E17F6054E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 91FEE829F8; Wed, 18 Aug 2021 00:01:11 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 9954882C03; Wed, 18 Aug 2021 00:00:50 +0200 (CEST) Received: from mail-qt1-f176.google.com (mail-qt1-f176.google.com [209.85.160.176]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 001A182C30 for ; Wed, 18 Aug 2021 00:00:37 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=tom.rini@gmail.com Received: by mail-qt1-f176.google.com with SMTP id e15so18555349qtx.1 for ; Tue, 17 Aug 2021 15:00:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=s8HhYDZ6/vFXL7Lz1khpJ3QY53d2qNKdm9ZrBeo57I0=; b=JhDDLsIaebwjNiGB8qw9R+SvsHPAMXAPX4a8yYDOvVoPP45up6W452VsQxhlLrkI+1 0WbQCJFg1qKzTvaXqtnGmmtxHFsoNDGr31DSHWAL3yZ0mb+JJczYOzjgy43REB/8q3PU NnSoatPzpoAW4aODbMwsiuLy00e29Pit6pEmholJGuMGrRJhEViKpo6o64PZC+2VpB2K qA/31nqEEtXatvl1vRAUdwzNebHNb9+CyqPcbh1UIInqLDRyo1Zt7SRWCea1/rCf/p4f LQr4fM/0kzeAdbZglCIr6Kr0ab3mzJ2H2j7jra4O9RrqpnEsBLVl9+Sz5QWvZITNzlNO F7FA== X-Gm-Message-State: AOAM532hEV2Q4tbyoZXABSjPQowVAaKDe/MkQWaz3gL0dSChWOcNYa9C 433YXpzmN+k7AOGS3hzl1jCPiSYSim74 X-Google-Smtp-Source: ABdhPJzi6LnIUPm+rh8HFRFBTPxxNyfrPzReEiEX4bT6INulJSSVHiLcTl6i7WTLPdIUQsxmZ6AQhA== X-Received: by 2002:ac8:7194:: with SMTP id w20mr5087835qto.217.1629237636507; Tue, 17 Aug 2021 15:00:36 -0700 (PDT) Received: from bill-the-cat.lan (2603-6081-7b01-cbda-f93a-0b29-d1e6-92fc.res6.spectrum.com. [2603:6081:7b01:cbda:f93a:b29:d1e6:92fc]) by smtp.gmail.com with ESMTPSA id 75sm2270996qko.100.2021.08.17.15.00.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Aug 2021 15:00:36 -0700 (PDT) From: Tom Rini To: u-boot@lists.denx.de Cc: Aleksandar Gerasimovski Subject: [PATCH 04/13] keymile: Use CONFIG_SYS_IVM_EEPROM_ADR Date: Tue, 17 Aug 2021 17:59:39 -0400 Message-Id: <20210817220009.22721-5-trini@konsulko.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210817220009.22721-1-trini@konsulko.com> References: <20210817220009.22721-1-trini@konsulko.com> X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean As the code reads now, making this code path use CONFIG_SYS_IVM_EEPROM_ADR rather than CONFIG_SYS_I2C_EEPROM_ADDR seems to make sense as the rest of the EEPROM infrastructure isn't used on these platforms. Cc: Aleksandar Gerasimovski Signed-off-by: Tom Rini --- board/keymile/common/ivm.c | 6 +++--- include/configs/kmcent2.h | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/board/keymile/common/ivm.c b/board/keymile/common/ivm.c index 14c70b9ad06e..ff550f7fe766 100644 --- a/board/keymile/common/ivm.c +++ b/board/keymile/common/ivm.c @@ -346,17 +346,17 @@ int ivm_read_eeprom(unsigned char *buf, int len, int mac_address_offset) struct udevice *eedev = NULL; ret = i2c_get_chip_for_busnum(CONFIG_KM_IVM_BUS, - CONFIG_SYS_I2C_EEPROM_ADDR, 1, &eedev); + CONFIG_SYS_IVM_EEPROM_ADR, 1, &eedev); if (ret) { printf("failed to get device for EEPROM at address 0x%02x\n", - CONFIG_SYS_I2C_EEPROM_ADDR); + CONFIG_SYS_IVM_EEPROM_ADR); return 1; } ret = dm_i2c_read(eedev, 0, buf, len); if (ret != 0) { printf("Error: Unable to read from I2C EEPROM at address %02X:%02X\n", - CONFIG_SYS_I2C_EEPROM_ADDR, 0); + CONFIG_SYS_IVM_EEPROM_ADR, 0); return 1; } #else diff --git a/include/configs/kmcent2.h b/include/configs/kmcent2.h index 51a01d860f0e..fe90aeb6e857 100644 --- a/include/configs/kmcent2.h +++ b/include/configs/kmcent2.h @@ -189,7 +189,6 @@ #define CONFIG_SYS_SDRAM_SIZE 4096 /* for fixed parameter use */ #define CONFIG_SYS_LOAD_ADDR 0x2000000 /* default load address */ -#define CONFIG_SYS_I2C_EEPROM_ADDR CONFIG_SYS_IVM_EEPROM_ADR #define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 2 /****************************************************************************** -- 2.17.1