1*ff9f475dSJason Liu /* 2*ff9f475dSJason Liu * (C) Copyright 2009 3*ff9f475dSJason Liu * Stefano Babic, DENX Software Engineering, sbabic@denx.de. 4*ff9f475dSJason Liu * 5*ff9f475dSJason Liu * See file CREDITS for list of people who contributed to this 6*ff9f475dSJason Liu * project. 7*ff9f475dSJason Liu * 8*ff9f475dSJason Liu * This program is free software; you can redistribute it and/or 9*ff9f475dSJason Liu * modify it under the terms of the GNU General Public License as 10*ff9f475dSJason Liu * published by the Free Software Foundation; either version 2 of 11*ff9f475dSJason Liu * the License, or (at your option) any later version. 12*ff9f475dSJason Liu * 13*ff9f475dSJason Liu * This program is distributed in the hope that it will be useful, 14*ff9f475dSJason Liu * but WITHOUT ANY WARRANTY; without even the implied warranty of 15*ff9f475dSJason Liu * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16*ff9f475dSJason Liu * GNU General Public License for more details. 17*ff9f475dSJason Liu * 18*ff9f475dSJason Liu * You should have received a copy of the GNU General Public License 19*ff9f475dSJason Liu * along with this program; if not, write to the Free Software 20*ff9f475dSJason Liu * Foundation, Inc., 59 Temple Place, Suite 330, Boston, 21*ff9f475dSJason Liu * MA 02111-1307 USA 22*ff9f475dSJason Liu */ 23*ff9f475dSJason Liu 24*ff9f475dSJason Liu #ifndef _SYS_PROTO_H_ 25*ff9f475dSJason Liu #define _SYS_PROTO_H_ 26*ff9f475dSJason Liu 27*ff9f475dSJason Liu u32 get_cpu_rev(void); 28*ff9f475dSJason Liu #define is_soc_rev(rev) ((get_cpu_rev() & 0xFF) - rev) 29*ff9f475dSJason Liu void sdelay(unsigned long); 30*ff9f475dSJason Liu 31*ff9f475dSJason Liu #endif 32