1 | /* atlys.S -- Support for the Atlys board. |
---|
2 | * |
---|
3 | * Copyright (c) 2012 Authors |
---|
4 | * |
---|
5 | * Contributor Stefan Kristiansson <stefan.kristiansson@saunalahti.fi> |
---|
6 | * |
---|
7 | * The authors hereby grant permission to use, copy, modify, distribute, |
---|
8 | * and license this software and its documentation for any purpose, provided |
---|
9 | * that existing copyright notices are retained in all copies and that this |
---|
10 | * notice is included verbatim in any distributions. No written agreement, |
---|
11 | * license, or royalty fee is required for any of the authorized uses. |
---|
12 | * Modifications to this software may be copyrighted by their authors |
---|
13 | * and need not follow the licensing terms described here, provided that |
---|
14 | * the new terms are clearly indicated on the first page of each file where |
---|
15 | * they apply. |
---|
16 | */ |
---|
17 | |
---|
18 | #include "../include/or1k-asm.h" |
---|
19 | #include "../include/or1k-nop.h" |
---|
20 | |
---|
21 | /* |
---|
22 | * Define symbols to be used during startup - file is linked at compile time |
---|
23 | * |
---|
24 | */ |
---|
25 | .weak _or1k_board_mem_base |
---|
26 | .weak _or1k_board_mem_size |
---|
27 | .weak _or1k_board_clk_freq |
---|
28 | |
---|
29 | _or1k_board_mem_base: .long 0x0 |
---|
30 | _or1k_board_mem_size: .long 0x2000000 |
---|
31 | |
---|
32 | _or1k_board_clk_freq: .long 50000000 |
---|
33 | |
---|
34 | /* Peripheral information - Set base to 0 if not present*/ |
---|
35 | .weak _or1k_board_uart_base |
---|
36 | .weak _or1k_board_uart_baud |
---|
37 | .weak _or1k_board_uart_IRQ |
---|
38 | |
---|
39 | _or1k_board_uart_base: .long 0x90000000 |
---|
40 | _or1k_board_uart_baud: .long 115200 |
---|
41 | _or1k_board_uart_IRQ: .long 2 |
---|
42 | |
---|
43 | .weak _or1k_board_exit |
---|
44 | _or1k_board_exit: |
---|
45 | l.nop OR1K_NOP_K_EXIT_QUIET |
---|
46 | .Lexitloop: |
---|
47 | OR1K_DELAYED_NOP(l.j .Lexitloop) |
---|
48 | |
---|
49 | .global _or1k_board_init_early |
---|
50 | _or1k_board_init_early: |
---|
51 | OR1K_DELAYED_NOP(l.jr r9) |
---|
52 | |
---|
53 | .weak _or1k_board_init |
---|
54 | _or1k_board_init: |
---|
55 | OR1K_DELAYED_NOP(l.jr r9) |
---|