Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002 /*
0003  * Copyright (C) 2000,2001,2002,2003,2004 Broadcom Corporation
0004  */
0005 
0006 #ifndef _SIBYTE_BOARD_H
0007 #define _SIBYTE_BOARD_H
0008 
0009 #if defined(CONFIG_SIBYTE_SWARM) || defined(CONFIG_SIBYTE_CRHONE) || \
0010     defined(CONFIG_SIBYTE_CRHINE) || defined(CONFIG_SIBYTE_LITTLESUR)
0011 #include <asm/sibyte/swarm.h>
0012 #endif
0013 
0014 #if defined(CONFIG_SIBYTE_SENTOSA) || defined(CONFIG_SIBYTE_RHONE)
0015 #include <asm/sibyte/sentosa.h>
0016 #endif
0017 
0018 #ifdef CONFIG_SIBYTE_CARMEL
0019 #include <asm/sibyte/carmel.h>
0020 #endif
0021 
0022 #ifdef CONFIG_SIBYTE_BIGSUR
0023 #include <asm/sibyte/bigsur.h>
0024 #endif
0025 
0026 #ifdef __ASSEMBLY__
0027 
0028 #ifdef LEDS_PHYS
0029 #define setleds(t0, t1, c0, c1, c2, c3) \
0030     li  t0, (LEDS_PHYS|0xa0000000); \
0031     li  t1, c0; \
0032     sb  t1, 0x18(t0); \
0033     li  t1, c1; \
0034     sb  t1, 0x10(t0); \
0035     li  t1, c2; \
0036     sb  t1, 0x08(t0); \
0037     li  t1, c3; \
0038     sb  t1, 0x00(t0)
0039 #else
0040 #define setleds(t0, t1, c0, c1, c2, c3)
0041 #endif /* LEDS_PHYS */
0042 
0043 #else
0044 
0045 void swarm_setup(void);
0046 
0047 #ifdef LEDS_PHYS
0048 extern void setleds(char *str);
0049 #else
0050 #define setleds(s) do { } while (0)
0051 #endif /* LEDS_PHYS */
0052 
0053 #endif /* __ASSEMBLY__ */
0054 
0055 #endif /* _SIBYTE_BOARD_H */