lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2004 |
| 3 | * Texas Instruments |
| 4 | * |
| 5 | * (C) Copyright 2000-2004 |
| 6 | * Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 7 | * |
| 8 | * See file CREDITS for list of people who contributed to this |
| 9 | * project. |
| 10 | * |
| 11 | * This program is free software; you can redistribute it and/or |
| 12 | * modify it under the terms of the GNU General Public License as |
| 13 | * published by the Free Software Foundation; either version 2 of |
| 14 | * the License, or (at your option) any later version. |
| 15 | * |
| 16 | * This program is distributed in the hope that it will be useful, |
| 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 19 | * GNU General Public License for more details. |
| 20 | * |
| 21 | * You should have received a copy of the GNU General Public License |
| 22 | * along with this program; if not, write to the Free Software |
| 23 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, |
| 24 | * MA 02111-1307 USA |
| 25 | */ |
| 26 | |
| 27 | #ifndef __COMMON_H_ |
| 28 | #define __COMMON_H_ 1 |
| 29 | |
| 30 | #undef _LINUX_CONFIG_H |
| 31 | #define _LINUX_CONFIG_H 1 /* avoid reading Linux autoconf.h file */ |
| 32 | |
| 33 | #include <config.h> |
| 34 | #include <linux/types.h> |
| 35 | #include <stdarg.h> |
| 36 | #include <asm/arch/uart.h> |
| 37 | |
| 38 | |
| 39 | #ifdef CONFIG_ARM |
| 40 | #define asmlinkage /* nothing */ |
| 41 | #endif |
| 42 | |
| 43 | |
| 44 | #ifdef CONFIG_ARM |
| 45 | # include <asm/setup.h> |
| 46 | # include <asm/z-load-arm.h> /* ARM version to be fixed! */ |
| 47 | #endif /* CONFIG_ARM */ |
| 48 | |
| 49 | |
| 50 | #if CFG_PRINTF |
| 51 | #define printf(x) uart_puts(x) |
| 52 | #else |
| 53 | #define printf(x) |
| 54 | #endif /* CFG_PRINTF */ |
| 55 | |
| 56 | |
| 57 | void clk_init (void); |
| 58 | int tsp_usb_init(void); |
| 59 | |
| 60 | void usb_boot(u32 USB_ADDR); |
| 61 | |
| 62 | /* cpu/$(CPU)/cpu.c */ |
| 63 | void usdelay (u32 usec); |
| 64 | |
| 65 | |
| 66 | /* lib/board.c */ |
| 67 | void hang (void) __attribute__ ((noreturn)); |
| 68 | |
| 69 | #define Para_Section __attribute__((__section__ (".para"))) |
| 70 | |
| 71 | |
| 72 | #endif /* __COMMON_H_ */ |