board.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /*
  2. * Copyright (C) 2000,2001,2002,2003,2004 Broadcom Corporation
  3. *
  4. * This program is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU General Public License
  6. * as published by the Free Software Foundation; either version 2
  7. * of the License, or (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program; if not, write to the Free Software
  16. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  17. */
  18. #ifndef _SIBYTE_BOARD_H
  19. #define _SIBYTE_BOARD_H
  20. #if defined(CONFIG_SIBYTE_SWARM) || defined(CONFIG_SIBYTE_PTSWARM) || \
  21. defined(CONFIG_SIBYTE_PT1120) || defined(CONFIG_SIBYTE_PT1125) || \
  22. defined(CONFIG_SIBYTE_CRHONE) || defined(CONFIG_SIBYTE_CRHINE) || \
  23. defined(CONFIG_SIBYTE_LITTLESUR)
  24. #include <asm/sibyte/swarm.h>
  25. #endif
  26. #if defined(CONFIG_SIBYTE_SENTOSA) || defined(CONFIG_SIBYTE_RHONE)
  27. #include <asm/sibyte/sentosa.h>
  28. #endif
  29. #ifdef CONFIG_SIBYTE_CARMEL
  30. #include <asm/sibyte/carmel.h>
  31. #endif
  32. #ifdef CONFIG_SIBYTE_BIGSUR
  33. #include <asm/sibyte/bigsur.h>
  34. #endif
  35. #ifdef __ASSEMBLY__
  36. #ifdef LEDS_PHYS
  37. #define setleds(t0,t1,c0,c1,c2,c3) \
  38. li t0, (LEDS_PHYS|0xa0000000); \
  39. li t1, c0; \
  40. sb t1, 0x18(t0); \
  41. li t1, c1; \
  42. sb t1, 0x10(t0); \
  43. li t1, c2; \
  44. sb t1, 0x08(t0); \
  45. li t1, c3; \
  46. sb t1, 0x00(t0)
  47. #else
  48. #define setleds(t0,t1,c0,c1,c2,c3)
  49. #endif /* LEDS_PHYS */
  50. #else
  51. void swarm_setup(void);
  52. #ifdef LEDS_PHYS
  53. extern void setleds(char *str);
  54. #else
  55. #define setleds(s) do { } while (0)
  56. #endif /* LEDS_PHYS */
  57. #endif /* __ASSEMBLY__ */
  58. #endif /* _SIBYTE_BOARD_H */