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 B810EC433F5 for ; Sat, 12 Mar 2022 04:08:56 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id B37D383B44; Sat, 12 Mar 2022 05:08:40 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (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 48D5E83B16; Sat, 12 Mar 2022 05:07:55 +0100 (CET) Received: from mail-qt1-f174.google.com (mail-qt1-f174.google.com [209.85.160.174]) (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 D863783B16 for ; Sat, 12 Mar 2022 05:07:43 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (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-f174.google.com with SMTP id v14so4665287qta.2 for ; Fri, 11 Mar 2022 20:07:43 -0800 (PST) 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=zGugGh/+DqDRJ9oAQkXboc3s3X5AzX/74g3E2wGsk4I=; b=pAqtQIKICPBkJHd2UvRFta3qkEwHOzd+DqFaW+rJTQN6QBq8BHVaqtNWIoZaHTkkLC xTRKfYdOlSJ//LeTAIeaqVLuDorQfxwShBWuv4537HvdWfn0mzyR8cl9r6xwdZqvkg8F NEzYJt0pKxMj2Go+iPlXbeRAnvXuarqTd1Th/5atLf2WogEZIkPQTR22j++98w7FlsgF PF4eRIHMHZ3tdb4TKc0z3M699HEhZUZqeyPiHDy66dDGzkFqnznMgJHHPl6UOWVuag28 IVMR421PiNt9mV0b3eK32CYk2PP1ve1ejBpyO9U/wts6ZjXhP5x+GeEckazRZeipsoyF vVhw== X-Gm-Message-State: AOAM533HtapLs2vSEJad6r96t6gqYz+dQNoOPia23USkJBxWA0inhNg+ eDHXFgvoMbpTwdffoAy3XPqyJYe7bw== X-Google-Smtp-Source: ABdhPJy7wOamICIEouNhpRyJgjRDvv/2WjjLE7RhxYfkWSsOJsyP14yjwR3msJqWeE+vixnU0xrO9g== X-Received: by 2002:ac8:5e4c:0:b0:2df:ed12:3853 with SMTP id i12-20020ac85e4c000000b002dfed123853mr10924987qtx.654.1647058062480; Fri, 11 Mar 2022 20:07:42 -0800 (PST) Received: from bill-the-cat.lan (2603-6081-7b01-cbda-2ef0-5dff-fedb-a8ba.res6.spectrum.com. [2603:6081:7b01:cbda:2ef0:5dff:fedb:a8ba]) by smtp.gmail.com with ESMTPSA id p7-20020a05622a13c700b002de9f3894c2sm7083062qtk.50.2022.03.11.20.07.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Mar 2022 20:07:42 -0800 (PST) From: Tom Rini To: u-boot@lists.denx.de Cc: Eugen Hristev Subject: [PATCH 6/8] atmel: Remove CONFIG_AT91SAM9G45_LCD_BASE Date: Fri, 11 Mar 2022 23:07:34 -0500 Message-Id: <20220312040736.3537388-6-trini@konsulko.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220312040736.3537388-1-trini@konsulko.com> References: <20220312040736.3537388-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.5 at phobos.denx.de X-Virus-Status: Clean This variable is used once and is noted as board-specific. Use the value directly with a comment. Cc: Eugen Hristev Signed-off-by: Tom Rini --- board/atmel/at91sam9m10g45ek/at91sam9m10g45ek.c | 3 ++- include/configs/at91sam9m10g45ek.h | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/board/atmel/at91sam9m10g45ek/at91sam9m10g45ek.c b/board/atmel/at91sam9m10g45ek/at91sam9m10g45ek.c index b1462b3e3ebd..fcca8923e38f 100644 --- a/board/atmel/at91sam9m10g45ek/at91sam9m10g45ek.c +++ b/board/atmel/at91sam9m10g45ek/at91sam9m10g45ek.c @@ -214,7 +214,8 @@ static void at91sam9m10g45ek_lcd_hw_init(void) at91_periph_clk_enable(ATMEL_ID_LCDC); - gd->fb_base = CONFIG_AT91SAM9G45_LCD_BASE; + /* board specific(not enough SRAM) */ + gd->fb_base = 0x73E00000; } #ifdef CONFIG_LCD_INFO diff --git a/include/configs/at91sam9m10g45ek.h b/include/configs/at91sam9m10g45ek.h index 2616ca68eb5f..31e075350fd4 100644 --- a/include/configs/at91sam9m10g45ek.h +++ b/include/configs/at91sam9m10g45ek.h @@ -27,8 +27,6 @@ #define CONFIG_LCD_INFO_BELOW_LOGO #define CONFIG_ATMEL_LCD #define CONFIG_ATMEL_LCD_RGB565 -/* board specific(not enough SRAM) */ -#define CONFIG_AT91SAM9G45_LCD_BASE 0x73E00000 /* SDRAM */ #define CONFIG_SYS_SDRAM_BASE 0x70000000 -- 2.25.1