MIPS: bcm47xx: trivial fixes
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
PATCH 1/2 MIPS: bcm47xx: use PUTC_LL() from common debug_ll_ns16550.h header
Signed-off-by Antony Pavlov <[email protected]>
--- 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
@@ -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
PATCH 2/2 update dlink-dir-320_defconfig
In reply to Antony PavlovJust 'make defconfig && mv defconfig arch/mips/configs/dlink-dir-320_defconfig'.
Signed-off-by Antony Pavlov <[email protected]>
--- arch/mips/configs/dlink-dir-320_defconfig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
arch/mips/configs/dlink-dir-320_defconfig +1 -2
@@ -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
Sascha Hauer
AppliedQuoted 7 lines · Antony Pavlov
Antony Pavlov (2):
MIPS: bcm47xx: usePUTC_LL()from commondebug_ll_ns16550.hheader update dlink-dir-320_defconfigarch/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