blob: e1032609c537ad6b4b3ab19247ef2e5ab7cdfdaf [file] [log] [blame]
Wolfgang Denk8e6f1a82005-09-25 18:59:36 +02001/********************************************************************
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-VILLARD6d0f6bc2008-10-16 15:01:15 +020041#ifndef CONFIG_SYS_FLASH_ERASE_SECTOR_LENGTH
42#define CONFIG_SYS_FLASH_ERASE_SECTOR_LENGTH (0x10000)
Wolfgang Denk8e6f1a82005-09-25 18:59:36 +020043#endif
44
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +020045#ifndef CONFIG_SYS_DEFAULT_KERNEL_ADDRESS
46#define CONFIG_SYS_DEFAULT_KERNEL_ADDRESS (CONFIG_SYS_FLASH_BASE + 0x30000)
Wolfgang Denk8e6f1a82005-09-25 18:59:36 +020047#endif
48
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +020049#ifndef CONFIG_SYS_WORKING_KERNEL_ADDRESS
50#define CONFIG_SYS_WORKING_KERNEL_ADDRESS (0xFFE00000)
Wolfgang Denk8e6f1a82005-09-25 18:59:36 +020051#endif
52
53
54typedef struct SBootInfo {
55 unsigned int address;
56 unsigned int size;
57 unsigned char state;
58}TSBootInfo;
59
60/* barcohydra.c */
61int checkboard(void);
Becky Bruce9973e3c2008-06-09 16:03:40 -050062phys_size_t initdram(int board_type);
Wolfgang Denk8e6f1a82005-09-25 18:59:36 +020063void pci_init_board(void);
64void check_flash(void);
65int write_flash(char *addr, char value);
66TSBootInfo* find_boot_info(void);
67void final_boot(void);
68#endif