1 | /******************************************************************** |
---|
2 | * |
---|
3 | * Unless otherwise specified, Copyright (C) 2004-2005 Barco Control Rooms |
---|
4 | * |
---|
5 | * $Source: /home/services/cvs/firmware/ppc/u-boot-1.1.2/board/barco/barco_svc.h,v $ |
---|
6 | * $Revision: 1.2 $ |
---|
7 | * $Author: mleeman $ |
---|
8 | * $Date: 2005/02/21 12:48:58 $ |
---|
9 | * |
---|
10 | * Last ChangeLog Entry |
---|
11 | * $Log: barco_svc.h,v $ |
---|
12 | * Revision 1.2 2005/02/21 12:48:58 mleeman |
---|
13 | * update of copyright years (feedback wd) |
---|
14 | * |
---|
15 | * Revision 1.1 2005/02/14 09:31:07 mleeman |
---|
16 | * renaming of files |
---|
17 | * |
---|
18 | * Revision 1.1 2005/02/14 09:23:46 mleeman |
---|
19 | * - moved 'barcohydra' directory to a more generic barco; since we will be |
---|
20 | * supporting and adding multiple boards |
---|
21 | * |
---|
22 | * Revision 1.1 2005/02/08 15:40:19 mleeman |
---|
23 | * modified and added platform files |
---|
24 | * |
---|
25 | * Revision 1.2 2005/01/25 08:05:04 mleeman |
---|
26 | * more cleanup of the code |
---|
27 | * |
---|
28 | * Revision 1.1 2004/07/20 08:49:55 mleeman |
---|
29 | * Working version of the default and nfs kernel booting. |
---|
30 | * |
---|
31 | * |
---|
32 | *******************************************************************/ |
---|
33 | |
---|
34 | #ifndef _LOCAL_BARCOHYDRA_H_ |
---|
35 | #define _LOCAL_BARCOHYDRA_H_ |
---|
36 | |
---|
37 | #include <flash.h> |
---|
38 | #include <asm/io.h> |
---|
39 | |
---|
40 | /* Defines for the barcohydra board */ |
---|
41 | #ifndef CFG_FLASH_ERASE_SECTOR_LENGTH |
---|
42 | #define CFG_FLASH_ERASE_SECTOR_LENGTH (0x10000) |
---|
43 | #endif |
---|
44 | |
---|
45 | #ifndef CFG_DEFAULT_KERNEL_ADDRESS |
---|
46 | #define CFG_DEFAULT_KERNEL_ADDRESS (CFG_FLASH_BASE + 0x30000) |
---|
47 | #endif |
---|
48 | |
---|
49 | #ifndef CFG_WORKING_KERNEL_ADDRESS |
---|
50 | #define CFG_WORKING_KERNEL_ADDRESS (0xFFE00000) |
---|
51 | #endif |
---|
52 | |
---|
53 | |
---|
54 | typedef struct SBootInfo { |
---|
55 | unsigned int address; |
---|
56 | unsigned int size; |
---|
57 | unsigned char state; |
---|
58 | }TSBootInfo; |
---|
59 | |
---|
60 | /* barcohydra.c */ |
---|
61 | int checkboard(void); |
---|
62 | phys_size_t initdram(int board_type); |
---|
63 | void pci_init_board(void); |
---|
64 | void check_flash(void); |
---|
65 | int write_flash(char *addr, char value); |
---|
66 | TSBootInfo* find_boot_info(void); |
---|
67 | void final_boot(void); |
---|
68 | #endif |
---|