blob: e70f55e873eade0c2f246565f3944bcdc100624d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
/*
* Copyright (C) 2013, 2015 Antony Pavlov <antonynpavlov@gmail.com>
* Copyright (C) 2013 Oleksij Rempel <linux@rempel-privat.de>
*
* This file is part of barebox.
* See file CREDITS for list of people who contributed to this project.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*/
#include <asm/pbl_macros.h>
#include <mach/pbl_macros.h>
#include <asm/pbl_nmon.h>
.macro board_pbl_start
.set push
.set noreorder
mips_barebox_10h
pbl_blt 0xbf000000 skip_pll_ram_config t8
hornet_mips24k_cp0_setup
pbl_ar9331_wmac_enable
hornet_1_1_war
pbl_ar9331_pll
pbl_ar9331_ddr1_config
/* Initialize caches... */
mips_cache_reset
/* ... and enable them */
dcache_enable
skip_pll_ram_config:
pbl_ar9331_uart_enable
debug_ll_ar9331_init
mips_nmon
/*
* It is amazing but we have to enable MDIO on GPIO
* to use GPIO26 for the "WPS" LED and GPIO27 for the "3G" LED.
*/
pbl_ar9331_mdio_gpio_enable
copy_to_link_location pbl_start
.set pop
.endm
|