On Mon, Feb 6, 2012 at 3:46 PM, Olof Kindgren <[email protected]> wrote:
> Adds a libgloss definition file for the new ORSoC OpenRISC development board
>
>
> Index: Makefile.in
> ===================================================================
> --- Makefile.in (revision 673)
> +++ Makefile.in (working copy)
> @@ -73,7 +73,7 @@
> CFLAGS = -g
>
> # List new boards here - should be accompanied by own <board>.[cS]
> -BOARDS = or1ksim or1ksim-uart orpsocrefdesign ordb1a3pe1500 ml501
> +BOARDS = or1ksim or1ksim-uart orpsocrefdesign ordb1a3pe1500 ml501 ordb2a
>
> BOARD_OBJS = $(addsuffix .o,$(BOARDS))
> BOARD_LIBS = $(addsuffix .a,$(BOARDS))
> Index: ordb2a.S
> ===================================================================
> --- ordb2a.S (revision 0)
> +++ ordb2a.S (revision 0)
> @@ -0,0 +1,21 @@
> +/*
> + * Define symbols to be used during startup - file is linked at compile time
> + * Olof Kindgren [email protected]
> + */
> +.global _board_mem_base
> +.global _board_mem_size
> +.global _board_clk_freq
> +
> +_board_mem_base: .long 0x0
> +_board_mem_size: .long 0x02000000
> +
> +_board_clk_freq: .long 50000000
> +
> +/* Peripheral information - Set base to 0 if not present*/
> +.global _board_uart_base
> +.global _board_uart_baud
> +.global _board_uart_IRQ
> +
> +_board_uart_base: .long 0x90000000
> +_board_uart_baud: .long 115200
> +_board_uart_IRQ: .long 2
>
Yep, that's how it's done.
Do you want to apply it or should I?
Julius
_______________________________________________
OpenRISC mailing list
[email protected]
http://lists.openrisc.net/listinfo/openrisc