sys_proto.h 979 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * sys_proto.h
  3. *
  4. * System information header
  5. *
  6. * Copyright (C) 2011, Texas Instruments, Incorporated - http://www.ti.com/
  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. #ifndef _SYS_PROTO_H_
  19. #define _SYS_PROTO_H_
  20. #define BOARD_REV_ID 0x0
  21. struct {
  22. u32 board_type_v1;
  23. u32 board_type_v2;
  24. u32 mtype;
  25. char *board_string;
  26. char *nand_string;
  27. } board_sysinfo;
  28. u32 get_cpu_rev(void);
  29. u32 get_sysboot_value(void);
  30. #ifdef CONFIG_DISPLAY_CPUINFO
  31. int print_cpuinfo(void);
  32. #endif
  33. u32 get_device_type(void);
  34. #endif