]>
git.ipfire.org Git - people/ms/u-boot.git/blob - board/faraday/a320evb/a320evb.c
dfd186ba8a9481ede518b5c84fc52c83f090206d
2 * (C) Copyright 2009 Faraday Technology
3 * Po-Yu Chuang <ratbert@faraday-tech.com>
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
24 #include <faraday/ftsmc020.h>
26 DECLARE_GLOBAL_DATA_PTR
;
29 * Miscellaneous platform dependent initialisations
34 gd
->bd
->bi_boot_params
= PHYS_SDRAM_1
+ 0x100;
36 ftsmc020_init(); /* initialize Flash */
42 unsigned long sdram_base
= PHYS_SDRAM_1
;
43 unsigned long expected_size
= PHYS_SDRAM_1_SIZE
;
44 unsigned long actual_size
;
46 actual_size
= get_ram_size((void *)sdram_base
, expected_size
);
48 gd
->ram_size
= actual_size
;
50 if (expected_size
!= actual_size
)
51 printf("Warning: Only %lu of %lu MiB SDRAM is working\n",
52 actual_size
>> 20, expected_size
>> 20);
57 int board_eth_init(bd_t
*bd
)
59 return ftmac100_initialize(bd
);
62 ulong
board_flash_get_legacy(ulong base
, int banknum
, flash_info_t
*info
)
64 if (banknum
== 0) { /* non-CFI boot flash */
65 info
->portwidth
= FLASH_CFI_8BIT
;
66 info
->chipwidth
= FLASH_CFI_BY8
;
67 info
->interface
= FLASH_CFI_X8
;