From: David Virag <virag.david003@gmail.com>
To: Heiko Schocher <hs@denx.de>, Tom Rini <trini@konsulko.com>,
Paul Barker <paul.barker.ct@bp.renesas.com>,
Marek Vasut <marek.vasut+renesas@mailbox.org>,
Simon Glass <sjg@chromium.org>,
Caleb Connolly <caleb.connolly@linaro.org>,
Neil Armstrong <neil.armstrong@linaro.org>,
David Virag <virag.david003@gmail.com>
Cc: Sam Protsenko <semen.protsenko@linaro.org>,
Henrik Grimler <henrik@grimler.se>,
u-boot@lists.denx.de
Subject: [PATCH v2 1/2] i2c: samsung: Drop s3c24x0 specific code.
Date: Fri, 2 Aug 2024 21:19:15 +0200 [thread overview]
Message-ID: <20240802191920.132133-2-virag.david003@gmail.com> (raw)
In-Reply-To: <20240802191920.132133-1-virag.david003@gmail.com>
This has been dead code for many years now. Remove it.
Signed-off-by: David Virag <virag.david003@gmail.com>
---
drivers/i2c/exynos_hs_i2c.c | 4 ----
drivers/i2c/s3c24x0_i2c.c | 8 --------
2 files changed, 12 deletions(-)
diff --git a/drivers/i2c/exynos_hs_i2c.c b/drivers/i2c/exynos_hs_i2c.c
index 2ab0bae449..189ce6d509 100644
--- a/drivers/i2c/exynos_hs_i2c.c
+++ b/drivers/i2c/exynos_hs_i2c.c
@@ -145,11 +145,7 @@ static int hsi2c_get_clk_details(struct s3c24x0_i2c_bus *i2c_bus)
unsigned int i = 0, utemp0 = 0, utemp1 = 0;
unsigned int t_ftl_cycle;
-#if defined(CONFIG_ARCH_EXYNOS4) || defined(CONFIG_ARCH_EXYNOS5)
clkin = get_i2c_clk();
-#else
- clkin = get_PCLK();
-#endif
/* FPCLK / FI2C =
* (CLK_DIV + 1) * (TSCLK_L + TSCLK_H + 2) + 8 + 2 * FLT_CYCLE
* uTemp0 = (CLK_DIV + 1) * (TSCLK_L + TSCLK_H + 2)
diff --git a/drivers/i2c/s3c24x0_i2c.c b/drivers/i2c/s3c24x0_i2c.c
index 72d2ab0f73..ae3a801cad 100644
--- a/drivers/i2c/s3c24x0_i2c.c
+++ b/drivers/i2c/s3c24x0_i2c.c
@@ -8,14 +8,10 @@
#include <dm.h>
#include <fdtdec.h>
#include <time.h>
-#if defined(CONFIG_ARCH_EXYNOS4) || defined(CONFIG_ARCH_EXYNOS5)
#include <log.h>
#include <asm/arch/clk.h>
#include <asm/arch/cpu.h>
#include <asm/arch/pinmux.h>
-#else
-#include <asm/arch/s3c24x0_cpu.h>
-#endif
#include <asm/global_data.h>
#include <asm/io.h>
#include <i2c.h>
@@ -53,11 +49,7 @@ static void read_write_byte(struct s3c24x0_i2c *i2c)
static void i2c_ch_init(struct s3c24x0_i2c *i2c, int speed, int slaveadd)
{
ulong freq, pres = 16, div;
-#if defined(CONFIG_ARCH_EXYNOS4) || defined(CONFIG_ARCH_EXYNOS5)
freq = get_i2c_clk();
-#else
- freq = get_PCLK();
-#endif
/* calculate prescaler and divisor values */
if ((freq / pres / (16 + 1)) > speed)
/* set prescaler to 512 */
--
2.46.0
next prev parent reply other threads:[~2024-08-02 19:19 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-02 19:19 [PATCH v2 0/2] Enable Samsung I2C drivers on newer platforms David Virag
2024-08-02 19:19 ` David Virag [this message]
2024-08-05 4:52 ` [PATCH v2 1/2] i2c: samsung: Drop s3c24x0 specific code Heiko Schocher
2024-08-02 19:19 ` [PATCH v2 2/2] i2c: samsung: Support platforms other than EXYNOS4 and EXYNOS5 David Virag
2024-08-03 22:38 ` Henrik Grimler
2024-08-05 4:53 ` Heiko Schocher
2024-08-09 21:08 ` Henrik Grimler
2024-08-09 23:05 ` David Virag
2024-08-10 21:14 ` Henrik Grimler
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=20240802191920.132133-2-virag.david003@gmail.com \
--to=virag.david003@gmail.com \
--cc=caleb.connolly@linaro.org \
--cc=henrik@grimler.se \
--cc=hs@denx.de \
--cc=marek.vasut+renesas@mailbox.org \
--cc=neil.armstrong@linaro.org \
--cc=paul.barker.ct@bp.renesas.com \
--cc=semen.protsenko@linaro.org \
--cc=sjg@chromium.org \
--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