Skip to contentSkip to conversation

MIPS: bcm47xx: trivial fixes

PATCH Applied Antony Pavlov 2 participants 4 messages May 12, 2015 – May 13, 2015 MIPS

lore
Share & tools
lore
#1 lore raw

PATCH 1/2 MIPS: bcm47xx: use PUTC_LL() from common debug_ll_ns16550.h header

In reply to Antony Pavlov
---
 arch/mips/mach-bcm47xx/include/mach/debug_ll.h | 14 +++++---------
 1 file changed, 5 insertions(+), 9 deletions(-)
arch/mips/mach-bcm47xx/include/mach/debug_ll.h +5 -9
index 9927b4d..3e74e0f 100644
@@ -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__ */
Signature · 7 lines
2.1.4


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#0 lore raw

cover MIPS: bcm47xx: trivial fixes

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(-)
Signature · 7 lines
2.1.4


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#2 lore raw

PATCH 2/2 update dlink-dir-320_defconfig

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

---
 arch/mips/configs/dlink-dir-320_defconfig | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
arch/mips/configs/dlink-dir-320_defconfig +1 -2
index 4c9a06f..61798bf 100644
@@ -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
Signature · 7 lines
2.1.4


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Applied
#3 lore raw
In reply to Antony Pavlov
Quoted 7 lines · Antony Pavlov

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

Signature · 9 lines
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
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox