1ff9f475dSJason Liu /* 2ff9f475dSJason Liu * (C) Copyright 2009 3ff9f475dSJason Liu * Stefano Babic, DENX Software Engineering, sbabic@denx.de. 4ff9f475dSJason Liu * 5*1a459660SWolfgang Denk * SPDX-License-Identifier: GPL-2.0+ 6ff9f475dSJason Liu */ 7ff9f475dSJason Liu 8ff9f475dSJason Liu #ifndef _SYS_PROTO_H_ 9ff9f475dSJason Liu #define _SYS_PROTO_H_ 10ff9f475dSJason Liu 1120332a06STroy Kisky #define MXC_CPU_MX51 0x51 1220332a06STroy Kisky #define MXC_CPU_MX53 0x53 1320332a06STroy Kisky #define MXC_CPU_MX6SL 0x60 1420332a06STroy Kisky #define MXC_CPU_MX6DL 0x61 1520332a06STroy Kisky #define MXC_CPU_MX6SOLO 0x62 1620332a06STroy Kisky #define MXC_CPU_MX6Q 0x63 1720332a06STroy Kisky 18ff9f475dSJason Liu #define is_soc_rev(rev) ((get_cpu_rev() & 0xFF) - rev) 1920332a06STroy Kisky u32 get_cpu_rev(void); 20eb0344d9STroy Kisky unsigned imx_ddr_size(void); 21ff9f475dSJason Liu void sdelay(unsigned long); 22a6e961c2SFabio Estevam void set_chipselect_size(int const); 2377f11a99SFabio Estevam 2477f11a99SFabio Estevam /* 2577f11a99SFabio Estevam * Initializes on-chip ethernet controllers. 2677f11a99SFabio Estevam * to override, implement board_eth_init() 2777f11a99SFabio Estevam */ 2877f11a99SFabio Estevam 2977f11a99SFabio Estevam int fecmxc_initialize(bd_t *bis); 306a376046SFabio Estevam u32 get_ahb_clk(void); 316a376046SFabio Estevam u32 get_periph_clk(void); 321fc56f1cSFabio Estevam char *get_reset_cause(void); 3377f11a99SFabio Estevam 34ff9f475dSJason Liu #endif 35