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