1 /* Cypress West Bridge API header file (cyashal.h)
2 ## ===========================
3 ## Copyright (C) 2010 Cypress Semiconductor
5 ## This program is free software; you can redistribute it and/or
6 ## modify it under the terms of the GNU General Public License
7 ## as published by the Free Software Foundation; either version 2
8 ## of the License, or (at your option) any later version.
10 ## This program is distributed in the hope that it will be useful,
11 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
12 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 ## GNU General Public License for more details.
15 ## You should have received a copy of the GNU General Public License
16 ## along with this program; if not, write to the Free Software
17 ## Foundation, Inc., 51 Franklin Street
18 ## Fifth Floor, Boston, MA 02110-1301, USA.
19 ## ===========================
22 #ifndef _INCLUDED_CYASHAL_H_
23 #define _INCLUDED_CYASHAL_H_
25 #if !defined(__doxygen__)
27 /* The possible HAL layers defined and implemented by Cypress */
29 #ifdef __CY_ASTORIA_FPGA_HAL__
31 #error only one HAL layer can be defined
34 #define CY_HAL_DEFINED
36 #include "cyashalfpga.h"
39 /***** SCM User space HAL ****/
40 #ifdef __CY_ASTORIA_SCM_HAL__
42 #error only one HAL layer can be defined
45 #define CY_HAL_DEFINEDŚŚ
47 #include "cyanhalscm.h"
49 /***** SCM User space HAL ****/
51 /***** SCM Kernel HAL ****/
52 #ifdef __CY_ASTORIA_SCM_KERNEL_HAL__
54 #error only one HAL layer can be defined
57 #define CY_HAL_DEFINEDŚ
59 #include "cyanhalscm_kernel.h"
61 /***** SCM Kernel HAL ****/
63 /***** OMAP5912 Kernel HAL ****/
64 #ifdef __CY_ASTORIA_OMAP_5912_KERNEL_HAL__
66 #error only one HAL layer can be defined
69 #define CY_HAL_DEFINED
71 #include "cyanhalomap_kernel.h"
73 /***** eof OMAP5912 Kernel HAL ****/
77 /***** OMAP3430 Kernel HAL ****/
78 #ifdef CONFIG_MACH_OMAP3_WESTBRIDGE_AST_PNAND_HAL
81 #error only one HAL layer can be defined
84 #define CY_HAL_DEFINED
85 /* moved to staging location, eventual implementation
87 * #include mach/westbridge/westbridge-omap3-pnand-hal/cyashalomap_kernel.h>
89 #include "../../../arch/arm/plat-omap/include/mach/westbridge/westbridge-omap3-pnand-hal/cyashalomap_kernel.h"
92 /*****************************/
96 #ifdef __CY_ASTORIA_CUSTOMER_HAL__
98 #error only one HAL layer can be defined
101 #define CY_HAL_DEFINED
102 #include "cyashal_customer.h"
106 #endif /* __doxygen__ */
108 #endif /* _INCLUDED_CYASHAL_H_ */