summaryrefslogtreecommitdiffstats
path: root/drivers/serial
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2022-06-09 07:59:10 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2022-06-17 08:28:55 +0200
commit36838b7efcd0b622266e96fb826396d5ceb2458b (patch)
tree0cbc9143a134fdbedb35bc4d65510f96f7a8bbb5 /drivers/serial
parent62d79dfb0e28908070882b86b665cf6e6a7fa1df (diff)
downloadbarebox-36838b7efcd0b622266e96fb826396d5ceb2458b.tar.gz
barebox-36838b7efcd0b622266e96fb826396d5ceb2458b.tar.xz
serial: ns16550: rpi: remove ungating now done by proper clk driver
We have bcm2835-aux-clk driver that will take care to ungate the clock, so we can remove this Raspberry Pi 3 specific detail from the driver. Tested on Raspberry Pi 3b. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20220609055922.667016-10-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/serial')
-rw-r--r--drivers/serial/serial_ns16550.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/serial/serial_ns16550.c b/drivers/serial/serial_ns16550.c
index f93a89ab95..e936711bf8 100644
--- a/drivers/serial/serial_ns16550.c
+++ b/drivers/serial/serial_ns16550.c
@@ -240,14 +240,10 @@ static void ns16550_jz_init_port(struct console_device *cdev)
ns16550_serial_init_port(cdev);
}
-#define BCM2836_AUX_CLOCK_ENB 0x3f215004 /* BCM2835 AUX Clock enable register */
-#define BCM2836_AUX_CLOCK_EN_UART BIT(0) /* Bit 0 enables the Miniuart */
-
static void rpi_init_port(struct console_device *cdev)
{
struct ns16550_priv *priv = to_ns16550_priv(cdev);
- writeb(BCM2836_AUX_CLOCK_EN_UART, BCM2836_AUX_CLOCK_ENB);
priv->plat.shift = 2;
/*
* We double the clock rate since the 16550 will divide by 16