Wolfgang Denk | 8e6f1a8 | 2005-09-25 18:59:36 +0200 | [diff] [blame] | 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 */ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame^] | 41 | #ifndef CONFIG_SYS_FLASH_ERASE_SECTOR_LENGTH |
| 42 | #define CONFIG_SYS_FLASH_ERASE_SECTOR_LENGTH (0x10000) |
Wolfgang Denk | 8e6f1a8 | 2005-09-25 18:59:36 +0200 | [diff] [blame] | 43 | #endif |
| 44 | |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame^] | 45 | #ifndef CONFIG_SYS_DEFAULT_KERNEL_ADDRESS |
| 46 | #define CONFIG_SYS_DEFAULT_KERNEL_ADDRESS (CONFIG_SYS_FLASH_BASE + 0x30000) |
Wolfgang Denk | 8e6f1a8 | 2005-09-25 18:59:36 +0200 | [diff] [blame] | 47 | #endif |
| 48 | |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame^] | 49 | #ifndef CONFIG_SYS_WORKING_KERNEL_ADDRESS |
| 50 | #define CONFIG_SYS_WORKING_KERNEL_ADDRESS (0xFFE00000) |
Wolfgang Denk | 8e6f1a8 | 2005-09-25 18:59:36 +0200 | [diff] [blame] | 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); |
Becky Bruce | 9973e3c | 2008-06-09 16:03:40 -0500 | [diff] [blame] | 62 | phys_size_t initdram(int board_type); |
Wolfgang Denk | 8e6f1a8 | 2005-09-25 18:59:36 +0200 | [diff] [blame] | 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 |