mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 0/2] MIPS: bcm47xx: trivial fixes
@ 2015-05-12  8:45 Antony Pavlov
  2015-05-12  8:45 ` [PATCH 1/2] MIPS: bcm47xx: use PUTC_LL() from common debug_ll_ns16550.h header Antony Pavlov
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Antony Pavlov @ 2015-05-12  8:45 UTC (permalink / raw)
  To: barebox

Antony Pavlov (2):
  MIPS: bcm47xx: use PUTC_LL() from common debug_ll_ns16550.h header
  update dlink-dir-320_defconfig

 arch/mips/configs/dlink-dir-320_defconfig      |  3 +--
 arch/mips/mach-bcm47xx/include/mach/debug_ll.h | 14 +++++---------
 2 files changed, 6 insertions(+), 11 deletions(-)

-- 
2.1.4


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 1/2] MIPS: bcm47xx: use PUTC_LL() from common debug_ll_ns16550.h header
  2015-05-12  8:45 [PATCH 0/2] MIPS: bcm47xx: trivial fixes Antony Pavlov
@ 2015-05-12  8:45 ` Antony Pavlov
  2015-05-12  8:45 ` [PATCH 2/2] update dlink-dir-320_defconfig Antony Pavlov
  2015-05-13  6:24 ` [PATCH 0/2] MIPS: bcm47xx: trivial fixes Sascha Hauer
  2 siblings, 0 replies; 4+ messages in thread
From: Antony Pavlov @ 2015-05-12  8:45 UTC (permalink / raw)
  To: barebox

Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
---
 arch/mips/mach-bcm47xx/include/mach/debug_ll.h | 14 +++++---------
 1 file changed, 5 insertions(+), 9 deletions(-)

diff --git a/arch/mips/mach-bcm47xx/include/mach/debug_ll.h b/arch/mips/mach-bcm47xx/include/mach/debug_ll.h
index 9927b4d..3e74e0f 100644
--- a/arch/mips/mach-bcm47xx/include/mach/debug_ll.h
+++ b/arch/mips/mach-bcm47xx/include/mach/debug_ll.h
@@ -24,16 +24,12 @@
 #include <io.h>
 #include <mach/hardware.h>
 
-#define rbr		0
-#define lsr		5
-#define LSR_THRE	0x20	/* Xmit holding register empty */
+#define DEBUG_LL_UART_SHIFT	0
 
-static __inline__ void PUTC_LL(char ch)
-{
-	void *base = (void *)DEBUG_LL_UART_ADDR;
+#define DEBUG_LL_UART_CLK   (25804800 / 16)
+#define DEBUG_LL_UART_BPS   CONFIG_BAUDRATE
+#define DEBUG_LL_UART_DIVISOR   (DEBUG_LL_UART_CLK / DEBUG_LL_UART_BPS)
 
-	while (!(__raw_readb(base + lsr) & LSR_THRE));
-	__raw_writeb(ch, base + rbr);
-}
+#include <asm/debug_ll_ns16550.h>
 
 #endif  /* __INCLUDE_ARCH_DEBUG_LL_H__ */
-- 
2.1.4


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 2/2] update dlink-dir-320_defconfig
  2015-05-12  8:45 [PATCH 0/2] MIPS: bcm47xx: trivial fixes Antony Pavlov
  2015-05-12  8:45 ` [PATCH 1/2] MIPS: bcm47xx: use PUTC_LL() from common debug_ll_ns16550.h header Antony Pavlov
@ 2015-05-12  8:45 ` Antony Pavlov
  2015-05-13  6:24 ` [PATCH 0/2] MIPS: bcm47xx: trivial fixes Sascha Hauer
  2 siblings, 0 replies; 4+ messages in thread
From: Antony Pavlov @ 2015-05-12  8:45 UTC (permalink / raw)
  To: barebox

Just 'make defconfig && mv defconfig arch/mips/configs/dlink-dir-320_defconfig'.

Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
---
 arch/mips/configs/dlink-dir-320_defconfig | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/arch/mips/configs/dlink-dir-320_defconfig b/arch/mips/configs/dlink-dir-320_defconfig
index 4c9a06f..61798bf 100644
--- a/arch/mips/configs/dlink-dir-320_defconfig
+++ b/arch/mips/configs/dlink-dir-320_defconfig
@@ -2,7 +2,6 @@ CONFIG_BUILTIN_DTB=y
 CONFIG_BUILTIN_DTB_NAME="dlink-dir-320"
 CONFIG_MACH_MIPS_BCM47XX=y
 CONFIG_STACK_SIZE=0x7000
-CONFIG_BROKEN=y
 CONFIG_EXPERIMENTAL=y
 CONFIG_HUSH_FANCY_PROMPT=y
 CONFIG_CMDLINE_EDITING=y
@@ -35,9 +34,9 @@ CONFIG_CMD_PING=y
 CONFIG_CMD_TFTP=y
 CONFIG_CMD_ECHO_E=y
 CONFIG_CMD_EDIT=y
+CONFIG_CMD_LOGIN=y
 CONFIG_CMD_MENU=y
 CONFIG_CMD_MENU_MANAGEMENT=y
-CONFIG_CMD_LOGIN=y
 CONFIG_CMD_PASSWD=y
 CONFIG_CMD_READLINE=y
 CONFIG_CMD_TIMEOUT=y
-- 
2.1.4


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 0/2] MIPS: bcm47xx: trivial fixes
  2015-05-12  8:45 [PATCH 0/2] MIPS: bcm47xx: trivial fixes Antony Pavlov
  2015-05-12  8:45 ` [PATCH 1/2] MIPS: bcm47xx: use PUTC_LL() from common debug_ll_ns16550.h header Antony Pavlov
  2015-05-12  8:45 ` [PATCH 2/2] update dlink-dir-320_defconfig Antony Pavlov
@ 2015-05-13  6:24 ` Sascha Hauer
  2 siblings, 0 replies; 4+ messages in thread
From: Sascha Hauer @ 2015-05-13  6:24 UTC (permalink / raw)
  To: Antony Pavlov; +Cc: barebox

On Tue, May 12, 2015 at 11:45:04AM +0300, Antony Pavlov wrote:
> Antony Pavlov (2):
>   MIPS: bcm47xx: use PUTC_LL() from common debug_ll_ns16550.h header
>   update dlink-dir-320_defconfig
> 
>  arch/mips/configs/dlink-dir-320_defconfig      |  3 +--
>  arch/mips/mach-bcm47xx/include/mach/debug_ll.h | 14 +++++---------
>  2 files changed, 6 insertions(+), 11 deletions(-)

Applied, thanks

Sascha


-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-05-13  6:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-12  8:45 [PATCH 0/2] MIPS: bcm47xx: trivial fixes Antony Pavlov
2015-05-12  8:45 ` [PATCH 1/2] MIPS: bcm47xx: use PUTC_LL() from common debug_ll_ns16550.h header Antony Pavlov
2015-05-12  8:45 ` [PATCH 2/2] update dlink-dir-320_defconfig Antony Pavlov
2015-05-13  6:24 ` [PATCH 0/2] MIPS: bcm47xx: trivial fixes Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox