From mboxrd@z Thu Jan 1 00:00:00 1970 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 D7895EB64DA for ; Mon, 10 Jul 2023 14:50:40 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C7CE0862B8; Mon, 10 Jul 2023 16:50:38 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org 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=kernel.org header.i=@kernel.org header.b="IpgomHwI"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 4C560866FC; Mon, 10 Jul 2023 16:50:38 +0200 (CEST) Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id ED5A38556F for ; Mon, 10 Jul 2023 16:50:35 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=rogerq@kernel.org Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (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 dfw.source.kernel.org (Postfix) with ESMTPS id 0477561028; Mon, 10 Jul 2023 14:50:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8F974C433C7; Mon, 10 Jul 2023 14:50:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689000633; bh=eyV0rBSEdwwbjI9tUw5jOSNJbMEwh+3nl9zpEebs1yU=; h=From:To:Cc:Subject:Date:From; b=IpgomHwIEssaZyn1hZPeWM6Z/B9SGwhaASNeP9MxQ1Hp2dQqf2AVCliRgy3ySoEK0 dvhI4QovPLlwN2eLNhqIXC3nzXmpGmqHBm7dRPnhAuYKox6557imOdZuXpBoxaMBz+ qdFZysQPbo8inbs1pBEHSJ6aCopfOPgIUje8CIu5mMrtlyvehHvfuQgsBmnrZ3Vrb4 CRpDp/NJnNRWJnfE5LHd+ThTdaY3pzygzYpUMokRyYbNUr+5sp94askiL0yQBmNSiT lRSMzHICy10UqXRJYV8ST96Q/qp9zaMRz5lkUXez20Wdo/GIx57GwgJKOHCyxt1b0U JdGozFQuAU7Cg== From: Roger Quadros To: nm@ti.com, vigneshr@ti.com, trini@konsulko.com Cc: srk@ti.com, robertcnelson@gmail.com, u-boot@lists.denx.de, Roger Quadros Subject: [RFC PATCH 0/2] board: ti: Use Extension framework Date: Mon, 10 Jul 2023 17:50:24 +0300 Message-Id: <20230710145026.128481-1-rogerq@kernel.org> X-Mailer: git-send-email 2.34.1 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.8 at phobos.denx.de X-Virus-Status: Clean Hi, RFC as only build tested. Need to get early feedback before I spend more time on this. Newer TI boards (AM6/J7) are using a custom logic to detect expansion cards and set a 'name_overlays' environment variable. Then DT overlays are applied by again custom environment scripts during boot. Instead of that migrate to using the Extension framework. This allows the user to call 'extension scan' and 'extension apply' commands to detect extension cards and apply the DT overlays respectively. For Booting, I expect distro boot scripts to already support the extension framework via following environment 'extension_overlay_cmd' and 'extension_overlay_addr'. i.e. include/config_distro_bootcmd.h cheers, -roger Roger Quadros (2): board: ti: common: Add CONFIG_TI_CAPE_DETECT for cape detection board: ti: am65x: Move to using Extension framework board/ti/am335x/board.c | 8 + board/ti/am65x/evm.c | 264 ++++++++--------------------- board/ti/common/Kconfig | 16 ++ board/ti/common/Makefile | 3 +- board/ti/common/cape_detect.c | 2 +- board/ti/common/cape_detect.h | 2 +- board/ti/common/ti_card_detect.c | 155 +++++++++++++++++ board/ti/common/ti_card_detect.h | 43 +++++ configs/am65x_evm_a53_defconfig | 2 + configs/am65x_hs_evm_a53_defconfig | 2 + 10 files changed, 299 insertions(+), 198 deletions(-) create mode 100644 board/ti/common/ti_card_detect.c create mode 100644 board/ti/common/ti_card_detect.h -- 2.34.1