1*64a93860SMarek Vasut /* 2*64a93860SMarek Vasut * Olimex MX23 Olinuxino board 3*64a93860SMarek Vasut * 4*64a93860SMarek Vasut * Copyright (C) 2013 Marek Vasut <marex@denx.de> 5*64a93860SMarek Vasut * 6*64a93860SMarek Vasut * See file CREDITS for list of people who contributed to this 7*64a93860SMarek Vasut * project. 8*64a93860SMarek Vasut * 9*64a93860SMarek Vasut * This program is free software; you can redistribute it and/or 10*64a93860SMarek Vasut * modify it under the terms of the GNU General Public License as 11*64a93860SMarek Vasut * published by the Free Software Foundation; either version 2 of 12*64a93860SMarek Vasut * the License, or (at your option) any later version. 13*64a93860SMarek Vasut * 14*64a93860SMarek Vasut * This program is distributed in the hope that it will be useful, 15*64a93860SMarek Vasut * but WITHOUT ANY WARRANTY; without even the implied warranty of 16*64a93860SMarek Vasut * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17*64a93860SMarek Vasut * GNU General Public License for more details. 18*64a93860SMarek Vasut * 19*64a93860SMarek Vasut * You should have received a copy of the GNU General Public License 20*64a93860SMarek Vasut * along with this program; if not, write to the Free Software 21*64a93860SMarek Vasut * Foundation, Inc., 59 Temple Place, Suite 330, Boston, 22*64a93860SMarek Vasut * MA 02111-1307 USA 23*64a93860SMarek Vasut */ 24*64a93860SMarek Vasut 25*64a93860SMarek Vasut #include <common.h> 26*64a93860SMarek Vasut #include <asm/arch/imx-regs.h> 27*64a93860SMarek Vasut #include <asm/arch/sys_proto.h> 28*64a93860SMarek Vasut 29*64a93860SMarek Vasut DECLARE_GLOBAL_DATA_PTR; 30*64a93860SMarek Vasut 31*64a93860SMarek Vasut /* 32*64a93860SMarek Vasut * Functions 33*64a93860SMarek Vasut */ 34*64a93860SMarek Vasut int board_early_init_f(void) 35*64a93860SMarek Vasut { 36*64a93860SMarek Vasut /* SSP clock init will come here soon. */ 37*64a93860SMarek Vasut return 0; 38*64a93860SMarek Vasut } 39*64a93860SMarek Vasut 40*64a93860SMarek Vasut int dram_init(void) 41*64a93860SMarek Vasut { 42*64a93860SMarek Vasut return mxs_dram_init(); 43*64a93860SMarek Vasut } 44*64a93860SMarek Vasut 45*64a93860SMarek Vasut int board_init(void) 46*64a93860SMarek Vasut { 47*64a93860SMarek Vasut /* Adress of boot parameters */ 48*64a93860SMarek Vasut gd->bd->bi_boot_params = PHYS_SDRAM_1 + 0x100; 49*64a93860SMarek Vasut 50*64a93860SMarek Vasut return 0; 51*64a93860SMarek Vasut } 52