]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - board/eNET/eNET_start.S
imported Ka-Ro specific additions to U-Boot 2009.08 for TX28
[karo-tx-uboot.git] / board / eNET / eNET_start.S
1 /*
2  * (C) Copyright 2008
3  * Graeme Russ, graeme.russ@gmail.com.
4  *
5  * See file CREDITS for list of people who contributed to this
6  * project.
7  *
8  * This program is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU General Public License as
10  * published by the Free Software Foundation; either version 2 of
11  * the License, or (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, write to the Free Software
20  * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
21  * MA 02111-1307 USA
22  */
23
24 #include "hardware.h"
25
26 /* board early intialization */
27 .globl early_board_init
28 early_board_init:
29         /* No 32-bit board specific initialisation */
30         jmp     *%ebp           /* return to caller */
31
32 .globl show_boot_progress_asm
33 show_boot_progress_asm:
34
35         movb    %al, %dl        /* Create Working Copy */
36         andb    $0x80, %dl      /* Mask in only Error bit */
37         shrb    $0x02, %dl      /* Shift Error bit to Error LED */
38         andb    $0x0f, %al      /* Mask out 'Error' bit */
39         orb     %dl, %al        /* Mask in ERR LED */
40         movw    $LED_LATCH_ADDRESS, %dx
41         outb    %al, %dx
42         jmp     *%ebp           /* return to caller */
43
44 .globl cpu_halt_asm
45 cpu_halt_asm:
46         movb    $0x0f, %al
47         movw    $LED_LATCH_ADDRESS, %dx
48         outb    %al, %dx
49         hlt
50         jmp cpu_halt_asm