1 /* ml501.S -- Support for the Xilinx ML501 board.
3 * Copyright (c) 2011 Authors
5 * Contributor Julius Baxter <juliusbaxter@gmail.com>
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
18 #include "../include/or1k-asm.h"
19 #include "../include/or1k-nop.h"
22 * Define symbols to be used during startup - file is linked at compile time
25 .weak _or1k_board_mem_base
26 .weak _or1k_board_mem_size
27 .weak _or1k_board_clk_freq
29 _or1k_board_mem_base: .long 0x0
30 _or1k_board_mem_size: .long 0x800000
32 _or1k_board_clk_freq: .long 66666666
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
39 _or1k_board_uart_base: .long 0x90000000
40 _or1k_board_uart_baud: .long 115200
41 _or1k_board_uart_IRQ: .long 2
43 .weak _or1k_board_exit
45 l.nop OR1K_NOP_K_EXIT_QUIET
47 OR1K_DELAYED_NOP(l.j .Lexitloop)
49 .global _or1k_board_init_early
50 _or1k_board_init_early:
51 OR1K_DELAYED_NOP(l.jr r9)
53 .weak _or1k_board_init
55 OR1K_DELAYED_NOP(l.jr r9)