Coding Style cleanup: remove trailing white space
[platform/kernel/u-boot.git] / arch / arm / cpu / arm720t / tegra-common / spl.c
1 /*
2  * (C) Copyright 2012
3  * NVIDIA Inc, <www.nvidia.com>
4  *
5  * Allen Martin <amartin@nvidia.com>
6  *
7  * SPDX-License-Identifier:     GPL-2.0+
8  */
9 #include <common.h>
10 #include <spl.h>
11
12 #include <asm/io.h>
13 #include <asm/arch/clock.h>
14 #include <asm/arch/pinmux.h>
15 #include <asm/arch/tegra.h>
16 #include <asm/arch-tegra/board.h>
17 #include <asm/arch/spl.h>
18 #include "cpu.h"
19
20 void spl_board_init(void)
21 {
22         struct pmux_tri_ctlr *pmt = (struct pmux_tri_ctlr *)NV_PA_APB_MISC_BASE;
23
24         /* enable JTAG */
25         writel(0xC0, &pmt->pmt_cfg_ctl);
26
27         board_init_uart_f();
28
29         /* Initialize periph GPIOs */
30         gpio_early_init_uart();
31
32         clock_early_init();
33         preloader_console_init();
34 }
35
36 u32 spl_boot_device(void)
37 {
38         return BOOT_DEVICE_RAM;
39 }
40
41 void __noreturn jump_to_image_no_args(struct spl_image_info *spl_image)
42 {
43         debug("image entry point: 0x%X\n", spl_image->entry_point);
44
45         start_cpu((u32)spl_image->entry_point);
46         halt_avp();
47 }