RE: [PATCH 03/23] clk: samsung: fsd: Add initial clock support
From: "Alim Akhtar" <alim.akhtar@samsung.com>
Date: 2022-01-14 06:16:18
Also in:
linux-clk, linux-devicetree, linux-samsung-soc, lkml
-----Original Message----- From: Krzysztof Kozlowski [mailto:krzysztof.kozlowski@canonical.com] Sent: Thursday, January 13, 2022 6:20 PM To: Alim Akhtar <alim.akhtar@samsung.com>; linux-arm- kernel@lists.infradead.org; linux-kernel@vger.kernel.org Cc: soc@kernel.org; linux-clk@vger.kernel.org; devicetree@vger.kernel.org; olof@lixom.net; linus.walleij@linaro.org; catalin.marinas@arm.com; robh+dt@kernel.org; s.nawrocki@samsung.com; linux-samsung- soc@vger.kernel.org; pankaj.dubey@samsung.com; linux-fsd@tesla.com; Jayati Sahu [off-list ref]; Ajay Kumar [off-list ref] Subject: Re: [PATCH 03/23] clk: samsung: fsd: Add initial clock support On 13/01/2022 13:11, Alim Akhtar wrote:quoted
Add initial clock support for FSD (Full Self-Driving) SoC which is required to bring-up platforms based on this SoC. Cc: linux-fsd@tesla.com Signed-off-by: Jayati Sahu <redacted> Signed-off-by: Ajay Kumar <redacted> Signed-off-by: Pankaj Dubey <redacted> Signed-off-by: Alim Akhtar <alim.akhtar@samsung.com> --- drivers/clk/samsung/Makefile | 1 + drivers/clk/samsung/clk-fsd.c | 308++++++++++++++++++++++++++++++++++quoted
drivers/clk/samsung/clk-pll.c | 1 + drivers/clk/samsung/clk-pll.h | 1 + 4 files changed, 311 insertions(+) create mode 100644 drivers/clk/samsung/clk-fsd.cdiff --git a/drivers/clk/samsung/Makefileb/drivers/clk/samsung/Makefile index c46cf11e4d0b..d66b2ede004c 100644--- a/drivers/clk/samsung/Makefile +++ b/drivers/clk/samsung/Makefile@@ -18,6 +18,7 @@ obj-$(CONFIG_EXYNOS_AUDSS_CLK_CON) += clk-exynos-audss.oquoted
obj-$(CONFIG_EXYNOS_CLKOUT) += clk-exynos-clkout.o obj-$(CONFIG_EXYNOS_ARM64_COMMON_CLK) += clk-exynos7.o obj-$(CONFIG_EXYNOS_ARM64_COMMON_CLK) += clk-exynos850.o +obj-$(CONFIG_ARCH_TESLA_FSD) += clk-fsd.oIt should be rather it's own CONFIG_TESLA_FSD_CLK option, just like other Exynos designs. This keeps unified approach with existing Samsung clock Kconfig.
Ok, will add a separate config for this
quoted
obj-$(CONFIG_S3C2410_COMMON_CLK)+= clk-s3c2410.o obj-$(CONFIG_S3C2410_COMMON_DCLK)+= clk-s3c2410-dclk.o obj-$(CONFIG_S3C2412_COMMON_CLK)+= clk-s3c2412.o diff --git a/drivers/clk/samsung/clk-fsd.c b/drivers/clk/samsung/clk-fsd.c new file mode 100644 index 000000000000..e47523106d9e--- /dev/null +++ b/drivers/clk/samsung/clk-fsd.c@@ -0,0 +1,308 @@ +// SPDX-License-Identifier: GPL-2.0-only +/* + * Common Clock Framework support for FSD SoC. + * + * Copyright (c) 2017-2022 Samsung Electronics Co., Ltd. + * https://www.samsung.com + * Copyright (c) 2017-2022 Tesla, Inc. + * https://www.tesla.com + *Drop the line break with empty * comment.
Will fix in next version
quoted
+ */ + +#include <linux/clk-provider.h> +#include <linux/of.h> + +#include "clk.h" +#include <dt-bindings/clock/fsd-clk.h>dt-bindings headers before local clk.h.
Noted, thanks
quoted
+ +/* Register Offset definitions for CMU_CMU (0x11c10000) */Best regards, Krzysztof
_______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel