From patchwork Thu May 6 11:15:04 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lokesh Vutla X-Patchwork-Id: 1474933 X-Patchwork-Delegate: lokeshvutla@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org 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=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=ti.com header.i=@ti.com header.a=rsa-sha256 header.s=ti-com-17Q1 header.b=vBF0nSle; dkim-atps=neutral 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 (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4FbWL94nHhz9sV5 for ; Thu, 6 May 2021 21:18:57 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3337082D5A; Thu, 6 May 2021 13:16:39 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=ti.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=ti.com header.i=@ti.com header.b="vBF0nSle"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7A87182CD6; Thu, 6 May 2021 13:16:09 +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.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 2A7B782D1A for ; Thu, 6 May 2021 13:15:45 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=lokeshvutla@ti.com Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 146BFij3039456 for ; Thu, 6 May 2021 06:15:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1620299744; bh=ureN7i5JTB8GKR1xxeIunplp3MqLE8eIFUM3VpSNdwA=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=vBF0nSlebJmFJDn8h7zjhLSc9QU7+U7snQ+4Rze6/FfeMTuzPrtRupX/Jk9ouR8D+ tRYzt8TMSya+JEY8jqkuLuNglNh0kJG1bov1z9CV1p9xZguertRNjXd8Z+6khMsAMT JlvJV0BlXWs3rp38J8smwrRwz/QNFcV6IpXxA6X4= Received: from DLEE113.ent.ti.com (dlee113.ent.ti.com [157.170.170.24]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 146BFiS6112170 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Thu, 6 May 2021 06:15:44 -0500 Received: from DLEE115.ent.ti.com (157.170.170.26) by DLEE113.ent.ti.com (157.170.170.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Thu, 6 May 2021 06:15:43 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE115.ent.ti.com (157.170.170.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2 via Frontend Transport; Thu, 6 May 2021 06:15:43 -0500 Received: from lokesh-ssd.dhcp.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 146BF6kV059349; Thu, 6 May 2021 06:15:42 -0500 From: Lokesh Vutla To: CC: Lokesh Vutla , Dave Gerlach , Praneeth Bajjuri Subject: [PATCH 17/18] configs: am64x_evm_a53: Enable support for reading eeprom Date: Thu, 6 May 2021 16:45:04 +0530 Message-ID: <20210506111505.6741-18-lokeshvutla@ti.com> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210506111505.6741-1-lokeshvutla@ti.com> References: <20210506111505.6741-1-lokeshvutla@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 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.102.4 at phobos.denx.de X-Virus-Status: Clean Enable relevant configs for reading eeprom data and updating env variables. Signed-off-by: Lokesh Vutla --- board/ti/am64x/Kconfig | 3 +++ configs/am64x_evm_a53_defconfig | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/board/ti/am64x/Kconfig b/board/ti/am64x/Kconfig index 7150dbb3b0..d4ec759d7f 100644 --- a/board/ti/am64x/Kconfig +++ b/board/ti/am64x/Kconfig @@ -12,6 +12,7 @@ config TARGET_AM642_A53_EVM select SOC_K3_AM642 imply BOARD imply SPL_BOARD + imply TI_I2C_BOARD_DETECT config TARGET_AM642_R5_EVM bool "TI K3 based AM642 EVM running on R5" @@ -38,6 +39,8 @@ config SYS_VENDOR config SYS_CONFIG_NAME default "am64x_evm" +source "board/ti/common/Kconfig" + endif if TARGET_AM642_R5_EVM diff --git a/configs/am64x_evm_a53_defconfig b/configs/am64x_evm_a53_defconfig index 43885827a5..ab87e98fff 100644 --- a/configs/am64x_evm_a53_defconfig +++ b/configs/am64x_evm_a53_defconfig @@ -23,6 +23,7 @@ CONFIG_DISTRO_DEFAULTS=y # CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set CONFIG_SPL_LOAD_FIT=y CONFIG_BOOTCOMMAND="run findfdt; run envboot; run init_${boot}; run get_kern_${boot}; run get_fdt_${boot}; run run_kern" +CONFIG_BOARD_LATE_INIT=y CONFIG_SPL_SYS_MALLOC_SIMPLE=y CONFIG_SPL_STACK_R=y CONFIG_SPL_SEPARATE_BSS=y @@ -35,6 +36,7 @@ CONFIG_SPL_RAM_DEVICE=y CONFIG_SPL_SPI_LOAD=y CONFIG_SPL_YMODEM_SUPPORT=y CONFIG_CMD_ASKENV=y +CONFIG_CMD_I2C=y CONFIG_CMD_MMC=y CONFIG_CMD_TIME=y CONFIG_OF_CONTROL=y @@ -57,6 +59,8 @@ CONFIG_CLK_TI_SCI=y CONFIG_DMA_CHANNELS=y CONFIG_TI_K3_NAVSS_UDMA=y CONFIG_TI_SCI_PROTOCOL=y +CONFIG_DM_I2C=y +CONFIG_SYS_I2C_OMAP24XX=y CONFIG_DM_MAILBOX=y CONFIG_K3_SEC_PROXY=y CONFIG_DM_MMC=y