From patchwork Sun Nov 24 19:17:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 845205 Delivered-To: patch@linaro.org Received: by 2002:a5d:688e:0:b0:382:43a8:7b94 with SMTP id h14csp841648wru; Sun, 24 Nov 2024 11:19:14 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVyJ1zv7cgQ9tucmmimaVSWfZCJ8kEut3wQUZTx5iev8FgPCUs3LRLF3NGcXkZL5B6XR38axw==@linaro.org X-Google-Smtp-Source: AGHT+IEvbIruiVSba67dj9x3E+TEJOmis8ul6RV68saNTKfRcr/9a10T+91XcPhcYO48zMUUvhBx X-Received: by 2002:a17:906:292a:b0:aa5:1ccb:79b1 with SMTP id a640c23a62f3a-aa51ccb7a26mr804088366b.38.1732475954031; Sun, 24 Nov 2024 11:19:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1732475954; cv=none; d=google.com; s=arc-20240605; b=DUrgzeExEE3xMqVRxqOQMqLjO2DR3FFs5a/9Lgywb/6U2k2g99Ex2mEd9z+5+Jl+2e cA7/RwTNsgRbQutK5FQRNumxEqzjBMvOp3FUG3EksQLi3xmAbtWyDzjsJzdV46OKhOR9 pbBI/OVkSxfvZB+1qsDh7JDBEbs6WNz+R5DjVoNw0zB55TyWxSf7S5JxdbbMrArA0P8/ 71R4vlv4q+pnUEHH5XBJ86MPusEl7agT9YO9yOq21dyLgClsPLsFUw5LLCspsHEpX3JW 6ZyEm5cB53FaYav9KvPorr2K5Dy1nvIzCFCrAgBCHWIg1qk/9Vc41XibrA6PxE84HNVe HjVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:cc:to:in-reply-to:references :message-id:content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=bz0DcyHRx0hkL1S8HbghMdXXb2wIen88j5kPHngewYA=; fh=g6j3SUyAhGUS8ikRCXsn3qFv1vKph7cSMPqtKbzTuc8=; b=Gb/HfMc30CCmkoUvSt30AC3hUvRyb1rT4/alt3aQFfCg81VVWSkuAAgAbYqy8yMNhL 1bDQgGqOPEydM+DnpPFE6iciyxuG/E9k3hGS9X7ATxI1ppez5wiVYEbIe5FDKeDIqB7g tXq1mogyw4NxBcG0RQ4C2o5QR5+FuwpZmg9L2AnjSq0zNVEMis/xgkfYdm4i3B+JL0l9 sG56daYalVcKa/MiGdJKVjdqc/YC1UlXKmeT5MwrSrnx5VyZLPI9wB/wZ7ay6Iu3SxDm SeCKTHtC1/sQQ96okU9W/PBASdZnvx4eh7PQSwGdbMO1mjgZ1+q08eYayHki4kjr1TJ9 18ew==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=h01RwCfP; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id a640c23a62f3a-aa511f62302si382925666b.392.2024.11.24.11.19.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Nov 2024 11:19:14 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=h01RwCfP; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id CDCB6899AC; Sun, 24 Nov 2024 20:18:02 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.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=linaro.org header.i=@linaro.org header.b="h01RwCfP"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8FECA895B2; Sun, 24 Nov 2024 20:18:00 +0100 (CET) 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,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) (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 8DDEC8976D for ; Sun, 24 Nov 2024 20:17:58 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=caleb.connolly@linaro.org Received: by mail-ej1-x633.google.com with SMTP id a640c23a62f3a-a9ed49ec0f1so601870166b.1 for ; Sun, 24 Nov 2024 11:17:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1732475878; x=1733080678; darn=lists.denx.de; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=bz0DcyHRx0hkL1S8HbghMdXXb2wIen88j5kPHngewYA=; b=h01RwCfPFDHTWV22o9UFcWxWSCHimU2TpqMUEZmAe6wRWC7CIwBxQT02JSeiV2MsYC UIsMwP4nL5hbwuJ8aecrJbftVU7x2cT9Swwc6jVsZHeGo/1yq3NgUM3KWNAebPJJM1O2 Q8OYnlvlQuXtRk7eZkb29r9yDiU/bZLpyPxk5Ie26iS6+G1gp0n2ZshA8N83khcEnH00 L8JMO5rMk92FQtQBCciKy35pLEkcDIDCDOmzVa+sDpNGEirTLdYiK6eKsg3e7vtzkuYD OPdyjuQ3MJ+iiKsG+iAlpMDRahCabSMfq7WmiJgPFT1dncTRhtMxEKjTpCdqefcQdPCo XuoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732475878; x=1733080678; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=bz0DcyHRx0hkL1S8HbghMdXXb2wIen88j5kPHngewYA=; b=ezxb8DquBajkoHS8ZAYxjLUsxc7mj0cLENzQevwiAV3lrh9sd0zrAh4UqI/tHzbcsL yIsDY9ZohTj7WMu1/n1sjLr/iESn3vcTvU1FEzshlL2dmEK130f35fxSWnAB5r/tAMam 5rc4DeRxmZWVpou9cmZvWE3lzgvQ84KAPFqtTKVYuu7N9uhjOigdjjbyPIECkdkfgeed h8HmcLcM+iWiVSZO8NGqRTaA6usbLud39Rfqwch5yUXOZsctOVfHrd79Xayv/Xumd1VR NYS9sm+4ppFvK2tWWap+7J2pk//GgOc8FxF0eQ/cHXY8A0vZZx+NJ/ppIPzpSFZ1UPZT aOZQ== X-Gm-Message-State: AOJu0YxTmxzLtfm7jKWSJ1qiuAQQe/BUTko1rigfAaHN1iCCPoEMnEWk Yl5/kwTv6SQM0l3fz4J+GX4Cf+4NqhzNTE4nD9njgyn+ZQZ8Xhedj50NEIGEL58= X-Gm-Gg: ASbGncvalgzdKYGhum+Ks55zeOs01cm8QWMjI1q1g1y06/TuseKeRGH9Qzghp+U/zY4 R2vPloiTNKd6vhZrHle2LwRQ1ZsuN/jsm0Xlw/lv9WoYyBCun+sqhq9uKiPwL1UeZtSKo4Cd+Br r+PgfirhNMHooVgH4kIgBD/AmILsuFHFqGH6UGWF47PupIxM2le1MVWCjl0nFQ/1fSuezCwRm7X ljzDulpGECVorr80IyHyPmmDbLD1QHHmIMnhyfP1LZt6m2GgdYdNUHpJtqGaNjwbwmQ X-Received: by 2002:a17:907:7807:b0:aa5:38c5:c1c8 with SMTP id a640c23a62f3a-aa538c5c29amr372977166b.19.1732475877967; Sun, 24 Nov 2024 11:17:57 -0800 (PST) Received: from lion.localdomain ([2a02:8109:888d:ff00:ca7f:54ff:fe52:4519]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-aa50b28f848sm371874566b.36.2024.11.24.11.17.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Nov 2024 11:17:57 -0800 (PST) From: Caleb Connolly Date: Sun, 24 Nov 2024 20:17:52 +0100 Subject: [PATCH 10/15] soc: qcom: smem: add build infra MIME-Version: 1.0 Message-Id: <20241124-b4-modernise-smem-v1-10-b7852c11b67c@linaro.org> References: <20241124-b4-modernise-smem-v1-0-b7852c11b67c@linaro.org> In-Reply-To: <20241124-b4-modernise-smem-v1-0-b7852c11b67c@linaro.org> To: Rayagonda Kokatanur , Tom Rini , Simon Glass , Caleb Connolly , Neil Armstrong , Sumit Garg , Mario Six Cc: u-boot@lists.denx.de, u-boot-qcom@groups.io X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=1419; i=caleb.connolly@linaro.org; h=from:subject:message-id; bh=rqzJL5uV+UGped6diF7bdsE/hCg6rNpz2vZE9yG+F80=; b=owGbwMvMwCFYaeA6f6eBkTjjabUkhnTn6puSen/ufbj/a/GCB9nhPyyT18Y3L9NKkWduzu7Wa 0r4YHi5o4SFQZCDQVZMkUX8xDLLprWX7TW2L7gAM4eVCWQIAxenAExk33mGH6/utnpKcqYyXVKa c3n5yelzb3G0J07On81il3X035vQDQz/c7L1FG9+kz53/HfzEm2TQ+or9om9eWwwp+H/2ZzO/Ip HEgA= X-Developer-Key: i=caleb.connolly@linaro.org; a=openpgp; fpr=83B24DA7FE145076BC38BB250CD904EB673A7C47 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 Build the new SMEM driver port, and select it when ARCH_SNAPDRAGON is selected, since it will be a hard dependency for Qualcomm platforms. Signed-off-by: Caleb Connolly --- drivers/soc/qcom/Kconfig | 8 ++++++++ drivers/soc/qcom/Makefile | 1 + 2 files changed, 9 insertions(+) diff --git a/drivers/soc/qcom/Kconfig b/drivers/soc/qcom/Kconfig index 4aa7833930c7..ee3d299eebe6 100644 --- a/drivers/soc/qcom/Kconfig +++ b/drivers/soc/qcom/Kconfig @@ -23,5 +23,13 @@ config QCOM_RPMH help Say y here to support the Qualcomm RPMh (resource peripheral manager) if you need to control regulators on Qualcomm platforms, say y here. +config QCOM_SMEM + bool "Qualcomm SMEM support" + help + Say y here to support the Qualcomm SMEM (shared memory) client driver. + SMEM is a shared memory region that is used to pass information about + the hardware (e.g. DRAM layout, PMIC configuration, etc) between bootloader + staged and the OS. If in doubt, say y. + endif # SOC_QCOM diff --git a/drivers/soc/qcom/Makefile b/drivers/soc/qcom/Makefile index 78fae8bbfa16..f4102f9155a8 100644 --- a/drivers/soc/qcom/Makefile +++ b/drivers/soc/qcom/Makefile @@ -1,4 +1,5 @@ # SPDX-License-Identifier: GPL-2.0+ obj-$(CONFIG_QCOM_COMMAND_DB) += cmd-db.o obj-$(CONFIG_QCOM_RPMH) += rpmh-rsc.o rpmh.o +obj-$(CONFIG_QCOM_SMEM) += smem.o