diff options
Diffstat (limited to 'configs/platform-v7a/patches/barebox-2019.01.0/0009-ARM-rpi-use-defines-for-uart-bases.patch')
-rw-r--r-- | configs/platform-v7a/patches/barebox-2019.01.0/0009-ARM-rpi-use-defines-for-uart-bases.patch | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/configs/platform-v7a/patches/barebox-2019.01.0/0009-ARM-rpi-use-defines-for-uart-bases.patch b/configs/platform-v7a/patches/barebox-2019.01.0/0009-ARM-rpi-use-defines-for-uart-bases.patch deleted file mode 100644 index e2b3607..0000000 --- a/configs/platform-v7a/patches/barebox-2019.01.0/0009-ARM-rpi-use-defines-for-uart-bases.patch +++ /dev/null @@ -1,46 +0,0 @@ -From: Rouven Czerwinski <r.czerwinski@pengutronix.de> -Date: Tue, 18 Dec 2018 11:41:38 +0100 -Subject: [PATCH] ARM: rpi: use defines for uart bases - -Previously the clkdev_add_phybase was called on magic register values, -add defines which clarify the device for which the phybase clkdev is created. - -Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de> ---- - arch/arm/boards/raspberry-pi/rpi-common.c | 10 +++++++--- - 1 file changed, 7 insertions(+), 3 deletions(-) - -diff --git a/arch/arm/boards/raspberry-pi/rpi-common.c b/arch/arm/boards/raspberry-pi/rpi-common.c -index f22239c7ccb6..219c9c7d2b9e 100644 ---- a/arch/arm/boards/raspberry-pi/rpi-common.c -+++ b/arch/arm/boards/raspberry-pi/rpi-common.c -@@ -298,6 +298,10 @@ static int rpi_clock_init(void) - } - postconsole_initcall(rpi_clock_init); - -+#define BCM2835_PL011_BASE 0x20201000 -+#define BCM2836_PL011_BASE 0x3f201000 -+#define BCM2836_MINIUART_BASE 0x3f215040 -+ - static int rpi_console_clock_init(void) - { - struct clk *clk; -@@ -307,15 +311,15 @@ static int rpi_console_clock_init(void) - - clk = clk_fixed("uart0-pl0110", 3 * 1000 * 1000); - clk_register_clkdev(clk, NULL, "uart0-pl0110"); -- clkdev_add_physbase(clk, 0x20201000, NULL); -- clkdev_add_physbase(clk, 0x3f201000, NULL); -+ clkdev_add_physbase(clk, BCM2835_PL011_BASE, NULL); -+ clkdev_add_physbase(clk, BCM2836_PL011_BASE, NULL); - - clk = rpi_register_firmware_clock(BCM2835_MBOX_CLOCK_ID_CORE, - "uart1-8250"); - if (IS_ERR(clk)) - return PTR_ERR(clk); - -- clkdev_add_physbase(clk, 0x3f215040, NULL); -+ clkdev_add_physbase(clk, BCM2836_MINIUART_BASE, NULL); - - clk = clk_fixed("bcm2835-cs", 1 * 1000 * 1000); - clk_register_clkdev(clk, NULL, "bcm2835-cs"); |