From patchwork Mon May 16 03:25:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Derald D. Woods" X-Patchwork-Id: 1631275 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=acu3oLas; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4L1l5l4W4Mz9s2R for ; Mon, 16 May 2022 13:26:19 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C13538424D; Mon, 16 May 2022 05:26:09 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="acu3oLas"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id F3AE8841F3; Mon, 16 May 2022 05:26:04 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-il1-x136.google.com (mail-il1-x136.google.com [IPv6:2607:f8b0:4864:20::136]) (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 E96C38419A for ; Mon, 16 May 2022 05:25:59 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=woods.technical@gmail.com Received: by mail-il1-x136.google.com with SMTP id e4so378625ils.12 for ; Sun, 15 May 2022 20:25:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=VoAieyGF9dxgPuNSuzn8rGjdg3K10RX1fPQr+goCCD4=; b=acu3oLasb/QIy1N8pF64l/qwwclJ2yXAO5RiZc8matjEi/xAgc/HiTn+Rn5FX9UYg7 k9CmrjQ9eNal8LdT78eK6nLE/eKHA5hN4YtFTcxJcyO3+2+ck6za/qmLfQaPIo85ofDZ czlEUlqlf73tuuVb/GOBziixwp4E3i+361AGbXS+dUmfKvwTTeaP3CqzMMTogP6lP4Tt mqKiEJIaVruu12pEhNt/3WsQnB+t5ds0Aa0vfQDMLzbWEnDtgtfCWUuOF3jmc9LN27iv uc9PzqXNmgDdz2lkvyOFibL0N8+jK9nvTNwnVELDaNG/89d3Ca/mD1XUt8dxejLDSy3/ aODQ== 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=VoAieyGF9dxgPuNSuzn8rGjdg3K10RX1fPQr+goCCD4=; b=HWGB1HxN5ML79SUwnXbn2DTZbQmPFF/Zb6/ny019if/AbsTwEcrcPyQJ2ZdGjE6R7y dIV2wBJPxlxLuL1eyMgi7419s17HIb1JRUXAxgiNPO6/4EqVVSZ5p+1GZsVMjJdBslkg BVyepkBcTddBOJQy1pykpddbM894tBhBWw98kXFIzwgV3ZO3VHaRxx3jftqF5aBgp2KF pGk0VmIdJLqza/PGl0iIpVG2WtFnHuZh6udcot8iR/wgY2+FKdNQaiZYZ8flHjsSTY6k UgANSA5yVeK1dVIhx29sNnYSW+0IyOh7lJv1ToEgptBjWAuNJVaRRqk1W4OpDSJBcMKX Lzhg== X-Gm-Message-State: AOAM5305mjW5uFJXZMy8FrIxzoNPeoNKiXN1EvHuEY0eYRotFDkDhe73 u7sLBsvEieCe55bC/HjQOpN7rXcrI7Q= X-Google-Smtp-Source: ABdhPJx/z+QQpMyspXFYeldEBmllvkboRQTUPZNCxSLK0NXk2R8bAgIK3jX+2OnjUhRC9W7jEPhbDw== X-Received: by 2002:a92:d38c:0:b0:2d1:6c5:8b2a with SMTP id o12-20020a92d38c000000b002d106c58b2amr5043918ilo.7.1652671558403; Sun, 15 May 2022 20:25:58 -0700 (PDT) Received: from exodus.woodsts.org (c-98-212-63-248.hsd1.il.comcast.net. [98.212.63.248]) by smtp.gmail.com with ESMTPSA id g13-20020a02770d000000b0032b3a781740sm2538644jac.4.2022.05.15.20.25.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 May 2022 20:25:58 -0700 (PDT) From: "Derald D. Woods" To: u-boot@lists.denx.de Cc: trini@konsulko.com, "Derald D. Woods" Subject: [PATCH 1/3] ARM: omap3: evm: Power on MMC when setting up PMIC Date: Sun, 15 May 2022 22:25:03 -0500 Message-Id: <20220516032505.183211-2-woods.technical@gmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220516032505.183211-1-woods.technical@gmail.com> References: <20220516032505.183211-1-woods.technical@gmail.com> MIME-Version: 1.0 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 commit copies the related code changes from the BeagleBoard. Reference: - https://source.denx.de/u-boot/u-boot/-/commit/848cfe098f59c47a2542385513fb554430b874d6 Signed-off-by: Derald D. Woods --- board/ti/evm/evm.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/board/ti/evm/evm.c b/board/ti/evm/evm.c index 96434b3ba0..39b5c706a9 100644 --- a/board/ti/evm/evm.c +++ b/board/ti/evm/evm.c @@ -159,6 +159,7 @@ void get_board_mem_timings(struct board_sdrc_timings *timings) int misc_init_r(void) { twl4030_power_init(); + twl4030_power_mmc_init(0); #if defined(CONFIG_SMC911X) setup_net_chip(); @@ -247,10 +248,3 @@ static void reset_net_chip(void) gpio_set_value(rst_gpio, 1); } #endif /* CONFIG_SMC911X */ - -#if defined(CONFIG_MMC) -void board_mmc_power_init(void) -{ - twl4030_power_mmc_init(0); -} -#endif /* CONFIG_MMC */ From patchwork Mon May 16 03:25:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Derald D. Woods" X-Patchwork-Id: 1631276 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=nQgjQUH1; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4L1l5w4P8yz9s2R for ; Mon, 16 May 2022 13:26:28 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E1BC284252; Mon, 16 May 2022 05:26:19 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="nQgjQUH1"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7253B8424E; Mon, 16 May 2022 05:26:10 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-io1-xd33.google.com (mail-io1-xd33.google.com [IPv6:2607:f8b0:4864:20::d33]) (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 38FF78419A for ; Mon, 16 May 2022 05:26:05 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=woods.technical@gmail.com Received: by mail-io1-xd33.google.com with SMTP id z18so14634165iob.5 for ; Sun, 15 May 2022 20:26:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=MKgmbbOWOFTHrCyVNG352wVE5i846VcP5wAeN0yNNMk=; b=nQgjQUH1fHpWfdRW8cK5mVPU2Uy3T1/Ib5KsVe/XxzfRVipAC2wIOdwn2M/nNorfri 9BVyVgR+IkbcRCVhfc4UHEdNPY8a0Kmx7VOSrtckajMsECgaq1Ql09bMBupuLmDI0nMs MWm06VFzSQrAk2gxxQ3N+ZvIKwPkb3YBskUYOOsfrNrZURxMKLMTrA21eb8Y8e5fk7+j 0q37M4oG/VO3CHR9LkslC36UR/3X2JFRHNOXr2AZBiWcHeLMtr/AEmdan0e2pzRlX2kb SSCdfAYB9hvxYrMt1YZpo0dYnKilVtyjs9BUReycrOyXaMhGSFN+YlXoQwj6tSu+D3rt PYtQ== 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=MKgmbbOWOFTHrCyVNG352wVE5i846VcP5wAeN0yNNMk=; b=k99qeNfStW5+53sWzfZi6vOQ1SYWJSevV33/UT7/M2YcffNeBZqTZTm4hL99XdTxYH QGyQPC0EYfF2Twmmyj8V1xuQ+BVX2bt0Wtk0mj5stvHz0xQhW954n/gDAWqU+vxRTAjz upkL0J8jkyHjpRpWT358Y6OzdeWynoCX16MfoXl6Ds3y/vEjPgcj8PNNaIKYeieEtRXZ 0VAyBxfdyvPGepQ2FHsgsAkl8zVqDx2CKHWuVK0x3OVHEyLv0lMHiClRiTItp2jErvXN fYEh1ZnrWSJuAYysveGEeQUEkQQ+N689r9V9OqO81qVQiRm9KUv3e2uDF05XDIjcL+DZ 4NRA== X-Gm-Message-State: AOAM532WZdakIsF5RdkaEMMovxqLPrLWMknRW5dqgZ3863bfYADB2Iso zrH8E+BA9SHmSwHAvwarJl7Yvc7AGw8= X-Google-Smtp-Source: ABdhPJwuJ4ZBplZKf7nhhAukC9oSo5CIh/QNOqFRmTvsdHVcgja1VeU/ja/yqL/vKFL79fHsTzki3w== X-Received: by 2002:a02:a70b:0:b0:32e:2457:6a44 with SMTP id k11-20020a02a70b000000b0032e24576a44mr2560235jam.232.1652671563232; Sun, 15 May 2022 20:26:03 -0700 (PDT) Received: from exodus.woodsts.org (c-98-212-63-248.hsd1.il.comcast.net. [98.212.63.248]) by smtp.gmail.com with ESMTPSA id g13-20020a02770d000000b0032b3a781740sm2538644jac.4.2022.05.15.20.26.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 May 2022 20:26:02 -0700 (PDT) From: "Derald D. Woods" To: u-boot@lists.denx.de Cc: trini@konsulko.com, "Derald D. Woods" Subject: [PATCH 2/3] ARM: omap3: evm: Complete DM_I2C migration Date: Sun, 15 May 2022 22:25:04 -0500 Message-Id: <20220516032505.183211-3-woods.technical@gmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220516032505.183211-1-woods.technical@gmail.com> References: <20220516032505.183211-1-woods.technical@gmail.com> MIME-Version: 1.0 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 commits enables DM_I2C and sets the default bus to 0. Signed-off-by: Derald D. Woods --- configs/omap3_evm_defconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configs/omap3_evm_defconfig b/configs/omap3_evm_defconfig index d451e201c7..2d8e627171 100644 --- a/configs/omap3_evm_defconfig +++ b/configs/omap3_evm_defconfig @@ -56,8 +56,8 @@ CONFIG_SPL_OF_TRANSLATE=y CONFIG_USB_FUNCTION_FASTBOOT=y CONFIG_FASTBOOT_BUF_ADDR=0x82000000 CONFIG_GPIO_HOG=y -CONFIG_SYS_I2C_LEGACY=y -CONFIG_SPL_SYS_I2C_LEGACY=y +CONFIG_DM_I2C=y +CONFIG_I2C_SET_DEFAULT_BUS_NUM=y CONFIG_MMC_OMAP_HS=y CONFIG_MTD=y CONFIG_MTD_RAW_NAND=y From patchwork Mon May 16 03:25:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Derald D. Woods" X-Patchwork-Id: 1631277 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=Wu3LyGu5; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4L1l664bSdz9s2R for ; Mon, 16 May 2022 13:26:38 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id B4C528424A; Mon, 16 May 2022 05:26:24 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Wu3LyGu5"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 41E4A84203; Mon, 16 May 2022 05:26:18 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-io1-xd32.google.com (mail-io1-xd32.google.com [IPv6:2607:f8b0:4864:20::d32]) (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 A358184245 for ; Mon, 16 May 2022 05:26:09 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=woods.technical@gmail.com Received: by mail-io1-xd32.google.com with SMTP id s23so14576196iog.13 for ; Sun, 15 May 2022 20:26:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=wUTNQjZrGXHNRK9P6OZrwXlfD9t9e1Q7p46pu0GjT+k=; b=Wu3LyGu5zYzMQ7U8XNxfpUzylXchRf0F9EN3fNFMw71QjWRdHsqzo/I38ByzMuro6E ErlKhSN2Xr1nnsQgqLiAnv6h9IP0s8nB5LA9XNGOXYctOHfM5uMS0r9Pgl9SBT4LHSiR 5SDWGW1J+R3mbP7srTKHRndMUg5csvEXkkV5jvDLIjM4zc8AdmAy1pQqnyeCrzoxBEHZ gdkWT+y7ZuCMAjXS+YQOPBvTVjOpAIQcRcVR02doD/aHkgY4byF9Kzmegk/oWWZsa6sT XrMpq+ovh+CbYw2VROcYVifrOA7+PqplMmoCKjqtXBO59Id+JfN6YWbW0z6RNmB3f0TB a/vg== 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=wUTNQjZrGXHNRK9P6OZrwXlfD9t9e1Q7p46pu0GjT+k=; b=TcvTFivKqElTt6AM7BVKJuDD3laVlyBnagr9Qtc30YF7R73bg0bIj+oE6msRUISdLe IAcHvHnk2pTm18IRT1jmrWkFehMZ7XG9GLmSmhQ3C4e2UuDVaUuTZ7FnBEfI9MOg4b5W wTzdibx+mEFgAhd7xXzL/2uW/OC7qsWaQuZpHFKJEuwwSrbbatYgRC60TPojnO2OFHy9 boA592Pb2mbpuyFj41vCQFUCRbBB5+aFzo6P/yRyv5hOL3irrzzh9xzCa/3SMBVKVKHt DJ91eR0vS+NbvXVazpJPQ3rMsc77JaC0Ix/CNKfVnnYwqVHLqllLIOGC217fP8LJb4jG IPQg== X-Gm-Message-State: AOAM531+BU9lGRYU/9kat7jH+1CqMQGH9keN8yhOh0uDil6aroXo75TR 9ILOxy4NVBIB6r7C7lLXFybmN+ELX0Q= X-Google-Smtp-Source: ABdhPJxMCrmsPl7NWC3vusakh+lFaKIvGEUG6fLKBobuldcRdvvRpM0jz+bBBO05Zy75f2ARdD80tA== X-Received: by 2002:a05:6638:3f12:b0:32e:29e9:f065 with SMTP id ck18-20020a0566383f1200b0032e29e9f065mr2285903jab.67.1652671567959; Sun, 15 May 2022 20:26:07 -0700 (PDT) Received: from exodus.woodsts.org (c-98-212-63-248.hsd1.il.comcast.net. [98.212.63.248]) by smtp.gmail.com with ESMTPSA id g13-20020a02770d000000b0032b3a781740sm2538644jac.4.2022.05.15.20.26.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 May 2022 20:26:07 -0700 (PDT) From: "Derald D. Woods" To: u-boot@lists.denx.de Cc: trini@konsulko.com, "Derald D. Woods" Subject: [PATCH 3/3] ARM: omap3: evm: Fix 'fitImage' booting Date: Sun, 15 May 2022 22:25:05 -0500 Message-Id: <20220516032505.183211-4-woods.technical@gmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220516032505.183211-1-woods.technical@gmail.com> References: <20220516032505.183211-1-woods.technical@gmail.com> MIME-Version: 1.0 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 commit sets two additional variables in the default BOOTCOMMAND. Adding 'boot=mmc' and 'addr_fit=0x8b000000' removes the need for a special 'uEnv.txt' to be created. The 'addr_fit' variable is the key piece here. It is normally defined as 0x90000000, in the macro DEFAULT_FIT_TI_ARGS. For this OMAP34XX board, 0x8b000000 works without touching other varibles. This was tested with a 'fitImage' created using the following FIT source: ---------------------------------------------------------------------- /dts-v1/; / { description = "Simple image with single Linux kernel and FDT blob"; #address-cells = <1>; images { kernel { description = "Linux kernel: omap2plus"; data = /incbin/("./zImage"); type = "kernel"; arch = "arm"; os = "linux"; compression = "none"; load = <0x80008000>; entry = <0x80008000>; hash-1 { algo = "sha256"; }; }; fdt-omap3-evm.dtb { description = "FDT: omap3-evm.dtb"; data = /incbin/("./omap3-evm.dtb"); type = "flat_dt"; arch = "arm"; compression = "none"; load = <0x8ff00000>; hash-1 { algo = "sha256"; }; }; }; configurations { default = "conf-omap3-evm.dtb"; conf-omap3-evm.dtb { description = "Boot Linux kernel with FDT blob"; kernel = "kernel"; fdt = "fdt-omap3-evm.dtb"; }; }; }; ---------------------------------------------------------------------- Additionally, the default environment is now stored in "uboot.env" on the FAT partition of MMC '0'. Fixes: 11e2ab3f0b ("ARM: omap3: evm: Enable booting 'fitImage' with DEFAULT_FIT_TI_ARGS") Signed-off-by: Derald D. Woods --- configs/omap3_evm_defconfig | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/configs/omap3_evm_defconfig b/configs/omap3_evm_defconfig index 2d8e627171..e2e29e2eb6 100644 --- a/configs/omap3_evm_defconfig +++ b/configs/omap3_evm_defconfig @@ -10,7 +10,7 @@ CONFIG_TARGET_OMAP3_EVM=y CONFIG_SPL_SYS_MALLOC_F_LEN=0x400 CONFIG_SPL=y CONFIG_DISTRO_DEFAULTS=y -CONFIG_BOOTCOMMAND="if test ${boot_fit} -eq 1; then run update_to_fit; fi; run envboot; run distro_bootcmd" +CONFIG_BOOTCOMMAND="if test ${boot_fit} -eq 1; then setenv boot mmc; setenv addr_fit 0x8b000000; run update_to_fit; run mmcboot; fi; run envboot; run distro_bootcmd" CONFIG_USE_PREBOOT=y CONFIG_DEFAULT_FDT_FILE="omap3-evm.dtb" CONFIG_SYS_CONSOLE_INFO_QUIET=y @@ -48,7 +48,10 @@ CONFIG_OF_CONTROL=y CONFIG_SPL_OF_CONTROL=y CONFIG_OF_SPL_REMOVE_PROPS="clocks clock-names interrupt-parent" CONFIG_ENV_OVERWRITE=y -CONFIG_ENV_IS_IN_NAND=y +CONFIG_ENV_IS_IN_FAT=y +CONFIG_ENV_FAT_DEVICE_AND_PART="0:1" +CONFIG_SYS_RELOC_GD_ENV_ADDR=y +CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y CONFIG_VERSION_VARIABLE=y CONFIG_SPL_DM=y CONFIG_SPL_DM_SEQ_ALIAS=y