4 * http://www.dave-tech.it
5 * http://www.wawnet.biz
6 * mailto:info@wawnet.biz
8 * See file CREDITS for list of people who contributed to this
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.
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.
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,
29 #include <asm/hardware.h>
31 DECLARE_GLOBAL_DATA_PTR;
34 * Miscelaneous platform dependent initialization
41 /* Configuration Port Control Register*/
69 PDATF = 0xff; /* B2-eth_reset tied high level */
76 PCONG = 0x3; /*PG0= EINT0= ETH_INT prepared for linux kernel*/
82 Configure chip ethernet interrupt as High level
83 Port G EINT 0-7 EINT0 -> CHIP ETHERNET
87 temp |= 0x1; /*LEVEL_HIGH*/
91 Reset SMSC LAN91C96 chip
103 for (temp=0;temp<10;temp++)
113 /* arch number MACH_TYPE_MBA44B0 */
114 gd->bd->bi_arch_number = MACH_TYPE_S3C44B0;
116 /* location of boot parameters */
117 gd->bd->bi_boot_params = 0x0c000100;
124 gd->bd->bi_dram[0].start = PHYS_SDRAM_1;
125 gd->bd->bi_dram[0].size = PHYS_SDRAM_1_SIZE;
130 #ifdef CONFIG_CMD_NET
131 int board_eth_init(bd_t *bis)
134 #ifdef CONFIG_LAN91C96
135 rc = lan91c96_initialize(0, CONFIG_LAN91C96_BASE);