diff options
Diffstat (limited to 'arch/arm/boards/freescale-vf610-twr/lowlevel.c')
-rw-r--r-- | arch/arm/boards/freescale-vf610-twr/lowlevel.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/arch/arm/boards/freescale-vf610-twr/lowlevel.c b/arch/arm/boards/freescale-vf610-twr/lowlevel.c index deabe4e371..8fec9f4b91 100644 --- a/arch/arm/boards/freescale-vf610-twr/lowlevel.c +++ b/arch/arm/boards/freescale-vf610-twr/lowlevel.c @@ -3,6 +3,7 @@ #include <mach/generic.h> #include <asm/barebox-arm-head.h> #include <asm/barebox-arm.h> +#include <mach/esdctl.h> #include <mach/vf610-regs.h> #include <mach/clock-vf610.h> #include <mach/iomux-vf610.h> @@ -13,27 +14,21 @@ static inline void setup_uart(void) void __iomem *iomuxbase = IOMEM(VF610_IOMUXC_BASE_ADDR); vf610_ungate_all_peripherals(); - - /* - * VF610_PAD_PTB4__UART1_TX - */ - writel(VF610_UART_PAD_CTRL | (2 << 20), iomuxbase + 0x0068); - writel(0, iomuxbase + 0x0380); - + vf610_setup_pad(iomuxbase, VF610_PAD_PTB4__UART1_TX); vf610_uart_setup_ll(); + + putc_ll('>'); } extern char __dtb_vf610_twr_start[]; ENTRY_FUNCTION(start_vf610_twr, r0, r1, r2) { - void *fdt; vf610_cpu_lowlevel_init(); if (IS_ENABLED(CONFIG_DEBUG_LL)) setup_uart(); - fdt = __dtb_vf610_twr_start + get_runtime_offset(); - barebox_arm_entry(0x80000000, SZ_128M, fdt); + vf610_barebox_entry(__dtb_vf610_twr_start + get_runtime_offset()); } |