barco_svc.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. #ifndef _LOCAL_BARCOHYDRA_H_
  34. #define _LOCAL_BARCOHYDRA_H_
  35. #include <flash.h>
  36. #include <asm/io.h>
  37. /* Defines for the barcohydra board */
  38. #ifndef CONFIG_SYS_FLASH_ERASE_SECTOR_LENGTH
  39. #define CONFIG_SYS_FLASH_ERASE_SECTOR_LENGTH (0x10000)
  40. #endif
  41. #ifndef CONFIG_SYS_DEFAULT_KERNEL_ADDRESS
  42. #define CONFIG_SYS_DEFAULT_KERNEL_ADDRESS (CONFIG_SYS_FLASH_BASE + 0x30000)
  43. #endif
  44. #ifndef CONFIG_SYS_WORKING_KERNEL_ADDRESS
  45. #define CONFIG_SYS_WORKING_KERNEL_ADDRESS (0xFFE00000)
  46. #endif
  47. typedef struct SBootInfo {
  48. unsigned int address;
  49. unsigned int size;
  50. unsigned char state;
  51. }TSBootInfo;
  52. /* barcohydra.c */
  53. int checkboard(void);
  54. phys_size_t initdram(int board_type);
  55. void pci_init_board(void);
  56. void check_flash(void);
  57. int write_flash(char *addr, char value);
  58. TSBootInfo* find_boot_info(void);
  59. void final_boot(void);
  60. #endif