Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 7DF6CC43334 for ; Sat, 25 Jun 2022 15:06:04 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9E0E4844C0; Sat, 25 Jun 2022 17:03:38 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="FyKIizeh"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3A4E283FF6; Sat, 25 Jun 2022 17:03:17 +0200 (CEST) Received: from mail-qv1-xf2d.google.com (mail-qv1-xf2d.google.com [IPv6:2607:f8b0:4864:20::f2d]) (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 0A141843A9 for ; Sat, 25 Jun 2022 17:03:10 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qv1-xf2d.google.com with SMTP id u14so6137139qvv.2 for ; Sat, 25 Jun 2022 08:03:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=b6EHTGaouS3qxhWOsQzAu+1OWLA23YxKzXbGsQvHZwg=; b=FyKIizehnImZyF+WbGF40gOIJtfDQGji/O88nUg4Ux0X3g31OUy6MH25OMHv1/Wkbt yeMGJnIar75We99pvrdCZVrxlPw9MIZGMXjhJ88pAA0oE5/cChLYNQG8xoJt5yvf0Fd1 MG2UqxQiq2aD8fAIZbnassCZ1YakN2+heRoeo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=b6EHTGaouS3qxhWOsQzAu+1OWLA23YxKzXbGsQvHZwg=; b=Gti07VynZeApKlZODb8s3DkWKQmi0WNoEDaovckpaJrarIPfd0A3ZIWU4056J0xLyB e4YTMQp5Fu974jhBx7KE2XpRYjcs1q6A6/+dg5O0Bi6AUxQxq8tN15CyXnsKuBhID3Sb qDX/nZPXkYCNCqoJ+lxFW+up3gUMfcELo8NoT9o365x2H1qvkAGYhaTKNSQ5tnScIM5x 85mkZGO5SdB59K8lKCoFRz6mfWQHCB3NedcjU565QQ2Rol4YKnKWcaLtbhDLYmEtCFo5 itmlAx83gd6aoUSP8NHOuiyCybECQ+IBDx7iN+4keBUHoJ+w+vdu/tmu0f+b93U1hZhg 4WwQ== X-Gm-Message-State: AJIora+aBKNXxBiMpp5HzFq986pZiFcFduZ2v23fqaUvStAIXfAFyyoH ILP+IUFEBBzGVYWnFIoMWUviZguVxylHmA== X-Google-Smtp-Source: AGRyM1uOT094iciOLZ3sc5U7EchFvesbqaMUnT/vv3WZyiWE5LN1X9TABuVGTpE7cQ/hOWptUIxzkw== X-Received: by 2002:a05:6214:224a:b0:46e:6728:3303 with SMTP id c10-20020a056214224a00b0046e67283303mr3308563qvc.73.1656169389381; Sat, 25 Jun 2022 08:03:09 -0700 (PDT) Received: from bill-the-cat.lan (cpe-65-184-195-139.ec.res.rr.com. [65.184.195.139]) by smtp.gmail.com with ESMTPSA id o6-20020a05620a2a0600b006a6d3fa430csm4375766qkp.58.2022.06.25.08.03.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Jun 2022 08:03:08 -0700 (PDT) From: Tom Rini To: u-boot@lists.denx.de Cc: Holger Brunck , Heiko Schocher Subject: [PATCH 18/20] kmcoge5ne: Move BFTIC3 CONFIG references to their usage Date: Sat, 25 Jun 2022 11:02:48 -0400 Message-Id: <20220625150250.1398291-18-trini@konsulko.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220625150250.1398291-1-trini@konsulko.com> References: <20220625150250.1398291-1-trini@konsulko.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.6 at phobos.denx.de X-Virus-Status: Clean We only reference CONFIG_SYS_BFTIC3_BASE in one location. Move the comment to where we reference it, and use the value directly. Cc: Holger Brunck Cc: Heiko Schocher Signed-off-by: Tom Rini --- board/keymile/km83xx/km83xx.c | 6 ++++-- include/configs/kmcoge5ne.h | 6 ------ 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/board/keymile/km83xx/km83xx.c b/board/keymile/km83xx/km83xx.c index ecc8c786b6b8..8a0b17585663 100644 --- a/board/keymile/km83xx/km83xx.c +++ b/board/keymile/km83xx/km83xx.c @@ -102,8 +102,10 @@ int misc_init_r(void) int last_stage_init(void) { #if defined(CONFIG_TARGET_KMCOGE5NE) - struct bfticu_iomap *base = - (struct bfticu_iomap *)CONFIG_SYS_BFTIC3_BASE; + /* + * BFTIC3 on the local bus CS4 + */ + struct bfticu_iomap *base = (struct bfticu_iomap *)0xB0000000; u8 dip_switch = in_8((u8 *)&(base->mswitch)) & BFTICU_DIPSWITCH_MASK; if (dip_switch != 0) { diff --git a/include/configs/kmcoge5ne.h b/include/configs/kmcoge5ne.h index 8f4685c271c6..b9d20c9c8eb9 100644 --- a/include/configs/kmcoge5ne.h +++ b/include/configs/kmcoge5ne.h @@ -35,12 +35,6 @@ CSCONFIG_ROW_BIT_13 | \ CSCONFIG_COL_BIT_10) -/* - * BFTIC3 on the local bus CS4 - */ -#define CONFIG_SYS_BFTIC3_BASE 0xB0000000 -#define CONFIG_SYS_BFTIC3_SIZE 256 - /* enable POST tests */ #define CONFIG_POST (CONFIG_SYS_POST_MEMORY|CONFIG_SYS_POST_MEM_REGIONS) #define CONFIG_POST_EXTERNAL_WORD_FUNCS /* use own functions, not generic */ -- 2.25.1