public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Lothar Rubusch <l.rubusch@gmail.com>
To: u-boot@lists.denx.de, trini@konsulko.com, marex@denx.de,
	simon.k.r.goldschmidt@gmail.com, tien.fong.chee@intel.com
Cc: l.rubusch@gmail.com
Subject: [PATCH 9/9] ARM: socfpga: make AA1 use si5338 clock gen
Date: Thu, 12 Sep 2024 06:06:49 +0000	[thread overview]
Message-ID: <20240912060649.190-10-l.rubusch@gmail.com> (raw)
In-Reply-To: <20240912060649.190-1-l.rubusch@gmail.com>

Apply usage of the si5338 clock generator in Enclustra's AA1 SoM as it
has such a chip.

Signed-off-by: Lothar Rubusch <l.rubusch@gmail.com>
---
 board/enclustra/mercury_aa1/mercury_aa1.c       | 7 +++++++
 configs/socfpga_enclustra_mercury_aa1_defconfig | 2 ++
 2 files changed, 9 insertions(+)

diff --git a/board/enclustra/mercury_aa1/mercury_aa1.c b/board/enclustra/mercury_aa1/mercury_aa1.c
index c53ae128f0..30a2bf6ea7 100644
--- a/board/enclustra/mercury_aa1/mercury_aa1.c
+++ b/board/enclustra/mercury_aa1/mercury_aa1.c
@@ -10,6 +10,7 @@
 #include <dm/uclass.h>
 #include <asm-generic/gpio.h>
 #include <asm/io.h>
+#include <dm.h>
 
 #include "../common/enclustra_mac.h"
 
@@ -31,6 +32,12 @@ static int altera_current_storage = ALTERA_NONE;
 
 int board_late_init(void)
 {
+	struct udevice *si5338;
+
+	if (IS_ENABLED(CONFIG_CLK_SKYWORKS_SI5338))
+		uclass_get_device_by_driver(UCLASS_CLK, DM_DRIVER_GET(si5338_clkgen),
+					    &si5338);
+
 	return enclustra_setup_mac_address();
 }
 
diff --git a/configs/socfpga_enclustra_mercury_aa1_defconfig b/configs/socfpga_enclustra_mercury_aa1_defconfig
index 58c718864b..a4b48da207 100644
--- a/configs/socfpga_enclustra_mercury_aa1_defconfig
+++ b/configs/socfpga_enclustra_mercury_aa1_defconfig
@@ -38,6 +38,7 @@ CONFIG_SPL_SYS_MALLOC_SIZE=0x15000
 CONFIG_SPL_ENV_SUPPORT=y
 CONFIG_SPL_FS_LOAD_PAYLOAD_NAME="u-boot.img"
 CONFIG_SPL_FPGA=y
+CONFIG_SPL_I2C=y
 CONFIG_SPL_SPI_LOAD=y
 CONFIG_SYS_SPI_U_BOOT_OFFS=0x100000
 CONFIG_CMD_ASKENV=y
@@ -58,6 +59,7 @@ CONFIG_ENV_FAT_DEVICE_AND_PART="0:1"
 CONFIG_SYS_RELOC_GD_ENV_ADDR=y
 CONFIG_VERSION_VARIABLE=y
 CONFIG_SPL_DM_SEQ_ALIAS=y
+CONFIG_CLK_SKYWORKS_SI5338=y
 CONFIG_DWAPB_GPIO=y
 CONFIG_SYS_I2C_DW=y
 CONFIG_MISC=y
-- 
2.25.1


      parent reply	other threads:[~2024-09-12  6:14 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-12  6:06 [PATCH 0/9] add support for Enclustra Mercury AA1 SoMs Lothar Rubusch
2024-09-12  6:06 ` [PATCH 1/9] doc: board: enclustra: add Enclustra Intel AA1 SoM Lothar Rubusch
2024-09-12 23:01   ` Marek Vasut
2024-09-14 20:08     ` Lothar Rubusch
2024-09-12  6:06 ` [PATCH 2/9] ARM: dts: socfpga: add Enclustra Intel AA1 Lothar Rubusch
2024-09-12 23:02   ` Marek Vasut
2024-09-14 20:14     ` Lothar Rubusch
2024-09-25 22:49     ` Lothar Rubusch
2024-09-26  1:33       ` Marek Vasut
2024-09-26 22:53         ` Lothar Rubusch
2024-09-26 23:13           ` Marek Vasut
2024-09-27 22:47             ` Lothar Rubusch
2024-09-29 15:20               ` Marek Vasut
2024-09-29 19:19                 ` Lothar Rubusch
2024-10-05  1:23                   ` Marek Vasut
2024-10-07 10:20                     ` Sumit Garg
2024-10-07 13:59                       ` Lothar Rubusch
2024-09-12  6:06 ` [PATCH 3/9] ARM: socfpga: add Enclustra AA1 SoM support Lothar Rubusch
2024-09-12 17:45   ` Tom Rini
2024-09-14 20:17     ` Lothar Rubusch
2024-09-16 20:42       ` Tom Rini
2024-09-12  6:06 ` [PATCH 4/9] ARM: socfpga: add Enclustra AA1 extra env settings Lothar Rubusch
2024-09-12  6:06 ` [PATCH 5/9] ARM: socfpga: add Enclustra AA1 demo env files Lothar Rubusch
2024-09-12  6:06 ` [PATCH 6/9] ARM: socfpga: add Enclustra AA1 boot scripts Lothar Rubusch
2024-09-12  6:06 ` [PATCH 7/9] ARM: socfpga: AA1: support MAC from secure eeprom Lothar Rubusch
2024-09-12  6:06 ` [PATCH 8/9] ARM: socfpga: add si5338 clock generator support Lothar Rubusch
2024-09-12 23:04   ` Marek Vasut
2024-09-14 20:05     ` Lothar Rubusch
2024-09-12  6:06 ` Lothar Rubusch [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240912060649.190-10-l.rubusch@gmail.com \
    --to=l.rubusch@gmail.com \
    --cc=marex@denx.de \
    --cc=simon.k.r.goldschmidt@gmail.com \
    --cc=tien.fong.chee@intel.com \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox