From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1V9903-0008BQ-6G for barebox@lists.infradead.org; Tue, 13 Aug 2013 07:26:40 +0000 From: Sascha Hauer Date: Tue, 13 Aug 2013 09:26:10 +0200 Message-Id: <1376378772-25649-5-git-send-email-s.hauer@pengutronix.de> In-Reply-To: <1376378772-25649-1-git-send-email-s.hauer@pengutronix.de> References: <1376378772-25649-1-git-send-email-s.hauer@pengutronix.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 4/6] ARM: mvebu: dove: use uart from devicetree To: barebox@lists.infradead.org Cc: Thomas Petazzoni Signed-off-by: Sascha Hauer --- arch/arm/mach-mvebu/dove.c | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/arch/arm/mach-mvebu/dove.c b/arch/arm/mach-mvebu/dove.c index 16ee116..397e7a3 100644 --- a/arch/arm/mach-mvebu/dove.c +++ b/arch/arm/mach-mvebu/dove.c @@ -74,20 +74,6 @@ static inline void dove_memory_find(unsigned long *phys_base, } } -static struct NS16550_plat uart_plat = { - .shift = 2, -}; - -static int dove_add_uart(void) -{ - uart_plat.clock = clk_get_rate(tclk); - if (!add_ns16550_device(DEVICE_ID_DYNAMIC, - (unsigned int)CONSOLE_UART_BASE, 32, - IORESOURCE_MEM_32BIT, &uart_plat)) - return -ENODEV; - return 0; -} - /* * Dove TCLK sample-at-reset configuation * @@ -126,12 +112,12 @@ static int dove_init_soc(void) clkdev_add_physbase(tclk, (unsigned int)DOVE_TIMER_BASE, NULL); clkdev_add_physbase(tclk, (unsigned int)DOVE_SPI0_BASE, NULL); clkdev_add_physbase(tclk, (unsigned int)DOVE_SPI1_BASE, NULL); + clkdev_add_physbase(tclk, (unsigned int)CONSOLE_UART_BASE, NULL); add_generic_device("orion-timer", DEVICE_ID_SINGLE, NULL, (unsigned int)DOVE_TIMER_BASE, 0x30, IORESOURCE_MEM, NULL); dove_memory_find(&phys_base, &phys_size); arm_add_mem_device("ram0", phys_base, phys_size); - dove_add_uart(); return 0; } -- 1.8.4.rc2 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox