From patchwork Mon Jul 15 10:08:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 812615 Delivered-To: patch@linaro.org Received: by 2002:adf:fac3:0:b0:367:895a:4699 with SMTP id a3csp1724762wrs; Mon, 15 Jul 2024 03:10:55 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXTtUFFwOaSeHmk0uStkNssPmP90dSy5c3MmBcqobR1RT/bUu+N8w2ouvmmR0XemjmMx34Z2noNfsEJ+QmC6xQd X-Google-Smtp-Source: AGHT+IHlSW3J4SgU0ZUjz3WPnp9EKUxcr+uZZz37b3HNIp2Gd0Af4xgzKWkaWEubgQuPHhibLT1j X-Received: by 2002:a17:907:7e82:b0:a77:bf32:b91e with SMTP id a640c23a62f3a-a780b8848e7mr1376542366b.49.1721038254784; Mon, 15 Jul 2024 03:10:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1721038254; cv=none; d=google.com; s=arc-20160816; b=fEDjLrOS5QWOwTtG9ZKvqXU31RuXgW+PQIXkNib2ytU5bf4GthmIXBOAo9u0lrLStq 7FHXaFE3E70VylirOeURXVzHtlyHgcpi+klqkJDik4k/be+QQP6Cov9ctRYjywPAAhMT QLqS9vHF6hip7beG+HhLmSoErITOnWqmGT8tpJGIgUVHOf9u7XnLjUsKGK7w6B9xianR e2/iPzGaok8RF0uZc1aseptE4D3c9RpftQfoh/1P2UBVSVfGeO81sIxQ7kSP4QUbRsj8 ms8ETyq06yjTcUWeZqkSrZF/tnGT5p3gN+ZtsFy1u2tmkfaRgdsE3JMuTduJexGpVL3q AsRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; 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=EI1m/5KlruCoT6RpfHcQgeJV034qnLNtuNds708jBqM=; fh=zcTfjI3NycJyTuuOJ9uzXxS7wfOr4sYKS7eKveHEFzw=; b=VJI2aa8vmMYyogxjBeT08Ml0lsLgVYi2y4EnZiCha52euVQKZM1W+SQBTHk5f9X17u TE6KiQDU0k4l18VutMH+PTrpkRuRd0LIBGjKYndqxx0+EVp+rAXKQOn+kMygSVexpixw eV1x1gy6NCYWdWVGCZu8K6GXACdi5HMOKlTdQIdC8UJPXaMbwbN1LAGIqIJGTHrrf/Cc OSZhB+wBwhSAweR6Qji9X96jXyjRwXjmcGn+f7KhKL16oPInaiF5Vn3RWanE1As+wa5T 2j/DsgjASD2tH16P1zumC+MFi6B1qEJfLuUZJOkZG0La4joOjKL9/mx73ExunwIKT3np 4gMA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LcXsUO0a; 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 Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id a640c23a62f3a-a79bc5aac74si238499966b.243.2024.07.15.03.10.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jul 2024 03:10:54 -0700 (PDT) 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=LcXsUO0a; 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 Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id CBAC688860; Mon, 15 Jul 2024 12:08:52 +0200 (CEST) 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="LcXsUO0a"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C582388875; Mon, 15 Jul 2024 12:08:49 +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,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) (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 9088888856 for ; Mon, 15 Jul 2024 12:08:47 +0200 (CEST) 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-ed1-x534.google.com with SMTP id 4fb4d7f45d1cf-59a47d5c22aso3923151a12.1 for ; Mon, 15 Jul 2024 03:08:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1721038127; x=1721642927; 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=EI1m/5KlruCoT6RpfHcQgeJV034qnLNtuNds708jBqM=; b=LcXsUO0aLKZzd+kgBiPpHcxKQpPVqgZnWzpL9OMo0xNFTFRPLxel0oRR/pLCU62IGF CfJYgr0ARYFAtOKdlK2Mzz8EvNO0A43cjRG1dvGlfA8rKXTYXNYpx73IRy1IDwnFnyx9 jjrV3mktRFgfgioKcFnUeosB+gMtremgZAJCfB6Iq3Ys8EREIzwAA3V+QQkg9174ggmv NDlLaFxClcalfVKL+Gx36fPbpyK2skD/JaYCuMduI7xxLMnx+8ndTe7RcuxvwgdwkXkE SxbQztBVht3XrfMrYBJiHBmJCC2fkNOAtwJhubD84sCZYrA8GwR34GdEfMRRxMyO8hvs SCdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721038127; x=1721642927; 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=EI1m/5KlruCoT6RpfHcQgeJV034qnLNtuNds708jBqM=; b=QZKrKUAp5t+CkjB94oXNzgwhXI44vDDcyU6GuzoZcPxzpETGBGfs8KokPdz2pwfJM+ l9GXE9A/oTpIOhS5FtoTTymWH4d754buJKxcjHVUyAuzhPXC1Rl5xQeVhAfgRt3mnYEC Cq32PpDZSRl55kz2R3y1HNGB1vLJtwkeJFloHR6aBh/E1Y1TR95NzP39H23f77+judcW xCM93gH3x+o1tD5/93QZzPbBkN4utk58w6xi2VQR7pI2rytDsj5av8zaJswqhDPESaks WvakO4YmyoGTUCsT4OFGtSJ1GuNYUrI7CHDS6Qeh45mJ0LdbwxoggzBZhCIpoTXb23MQ K9vg== X-Gm-Message-State: AOJu0YwxnDzmVPa+aSy30thRsQV/Z5PA1KnHjKUm7lXoypRvxhikj/2L ueqPyaFtcg13YZaoZKgjQTCmrbnUUxapVJl23qd3frs3PGFDmjqbKmQfBfhzEAE= X-Received: by 2002:a17:906:37d6:b0:a77:db36:1ccc with SMTP id a640c23a62f3a-a780b6b2f58mr1139255666b.24.1721038127069; Mon, 15 Jul 2024 03:08:47 -0700 (PDT) Received: from [192.168.0.113] ([2a02:8109:aa0d:be00::7424]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a79bc5b7eb4sm198102266b.60.2024.07.15.03.08.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jul 2024 03:08:46 -0700 (PDT) From: Caleb Connolly Date: Mon, 15 Jul 2024 12:08:14 +0200 Subject: [PATCH v6 15/24] soc: qcom: add build infrastructure MIME-Version: 1.0 Message-Id: <20240715-b4-qcom-rpmh-v6-15-0c948a25d018@linaro.org> References: <20240715-b4-qcom-rpmh-v6-0-0c948a25d018@linaro.org> In-Reply-To: <20240715-b4-qcom-rpmh-v6-0-0c948a25d018@linaro.org> To: Tom Rini , Caleb Connolly , Neil Armstrong , Sumit Garg , Jaehoon Chung , Simon Glass 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=2682; i=caleb.connolly@linaro.org; h=from:subject:message-id; bh=XGgpCAr8XHdPFMKI5HuxXuToi062u+tLuE4azL5XNXs=; b=owEBbQKS/ZANAwAIAQWDMSsZX2S2AcsmYgBmlPUG26XiR04MWK1RiWSUEYen/dhXKFe+PgQ+3 iZnnoWwaMGJAjMEAAEIAB0WIQS2UaFGPGq+0GkMVc0FgzErGV9ktgUCZpT1BgAKCRAFgzErGV9k thK1EACHpV9p29oJTuQ/NjSWozR5aV2oSdl3ODZTcN1LNOOawBKMnrwGjT36d6DF4GLIjxUBcdM efTV3epqr7ExQk1ASnqSUHkxFJfe0utEivRqWfsdS4xNwSA9xHrPKx5sfweJL27GkiQ+ZuwvC66 cBSD96KfJMvjytqCrH8tfn+HeXfxora/VZV/2HSdLPqq3jKcSLFM3cbDuNmAi2lWpF8+sUyY5wi aHBHuBOV4PaTHcN8ByeGohmAzLRq1yghHRRsQSEn4o05SFlAGnCByptEDZCYW4vzf3iggyN7S1s EgSoEg6a3p3L2nL1E4ch07ZL/flHmchMFw19Ao0KF86IlYKWTtrCu+mgpNYzqndJZ7/zaJUkaRJ 0JoJNUkZigSIP0Jnx9/lJi8vKys9faV9uUsNk/OW/nsiicm6ogvceZSsGKUc+8OWgRcFVaXPAO9 /wse2RxXcRv4o4a4hJxJ9932lXj87LP9EcMEnn6ONk8dfaFRfSE0BToJ4T4vBDm46gwrpVpr/07 fi9MC6RH8enfX+7QhnsxXkpkhQ3kJTny/f6AhXk6Uxuwtn/ymaCOb6jOmBKwia4xFKNKYs3OJbh oH7lxjuXgspDg9CI9ZHECbhqWa0Qgstdl5UWNCn4EVEFsqPntjRnP9DmpfoM420ZKnYkg6H1Sq8 bPDkDfggPGO0SKA== 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 Add Kconfig / Makefiles to build rpmh and cmd-db drivers. Signed-off-by: Caleb Connolly Reviewed-by: Neil Armstrong --- drivers/soc/Kconfig | 1 + drivers/soc/Makefile | 1 + drivers/soc/qcom/Kconfig | 27 +++++++++++++++++++++++++++ drivers/soc/qcom/Makefile | 4 ++++ 4 files changed, 33 insertions(+) diff --git a/drivers/soc/Kconfig b/drivers/soc/Kconfig index cee506fe4747..8ef408d9ba1b 100644 --- a/drivers/soc/Kconfig +++ b/drivers/soc/Kconfig @@ -47,8 +47,9 @@ config SOC_XILINX_VERSAL_NET Enable this option to select SoC device id driver for Xilinx Versal NET. This allows other drivers to verify the SoC familiy & revision using matching SoC attributes. +source "drivers/soc/qcom/Kconfig" source "drivers/soc/samsung/Kconfig" source "drivers/soc/ti/Kconfig" endmenu diff --git a/drivers/soc/Makefile b/drivers/soc/Makefile index 5ec89a053165..00e6a5ac8e2b 100644 --- a/drivers/soc/Makefile +++ b/drivers/soc/Makefile @@ -2,8 +2,9 @@ # # Makefile for the U-Boot SOC specific device drivers. obj-$(CONFIG_SOC_AMD_VERSAL2) += soc_amd_versal2.o +obj-$(CONFIG_SOC_QCOM) += qcom/ obj-$(CONFIG_SOC_SAMSUNG) += samsung/ obj-$(CONFIG_SOC_TI) += ti/ obj-$(CONFIG_SOC_DEVICE) += soc-uclass.o obj-$(CONFIG_SOC_DEVICE_TI_K3) += soc_ti_k3.o diff --git a/drivers/soc/qcom/Kconfig b/drivers/soc/qcom/Kconfig new file mode 100644 index 000000000000..4aa7833930c7 --- /dev/null +++ b/drivers/soc/qcom/Kconfig @@ -0,0 +1,27 @@ +# SPDX-License-Identifier: GPL-2.0-only +# +# QCOM Soc drivers +# +menuconfig SOC_QCOM + bool "Qualcomm SOC drivers support" + help + Say Y here if you want to enable Qualcomm SOC drivers support. + +if SOC_QCOM + +config QCOM_COMMAND_DB + bool "Qualcomm Command DB" + help + Command DB queries shared memory by key string for shared system + resources. Platform drivers that require to set state of a shared + resource on a RPM-hardened platform must use this database to get + SoC specific identifier and information for the shared resources. + +config QCOM_RPMH + bool "Qualcomm RPMh support" + depends on QCOM_COMMAND_DB + help + Say y here to support the Qualcomm RPMh (resource peripheral manager) + if you need to control regulators on Qualcomm platforms, say y here. + +endif # SOC_QCOM diff --git a/drivers/soc/qcom/Makefile b/drivers/soc/qcom/Makefile new file mode 100644 index 000000000000..78fae8bbfa16 --- /dev/null +++ b/drivers/soc/qcom/Makefile @@ -0,0 +1,4 @@ +# SPDX-License-Identifier: GPL-2.0+ + +obj-$(CONFIG_QCOM_COMMAND_DB) += cmd-db.o +obj-$(CONFIG_QCOM_RPMH) += rpmh-rsc.o rpmh.o