2 * Copyright (C) 2007 Sergey Kubushyn <ksi@koi8.net>
4 * Parts are shamelessly stolen from various TI sources, original copyright
6 * -----------------------------------------------------------------
8 * Copyright (C) 2004 Texas Instruments.
10 * ----------------------------------------------------------------------------
11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 2 of the License, or
14 * (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., 675 Mass Ave, Cambridge, MA 02139, USA.
24 * ----------------------------------------------------------------------------
28 #include <asm/arch/hardware.h>
29 #include "../common/psc.h"
30 #include "../common/misc.h"
32 DECLARE_GLOBAL_DATA_PTR;
36 /* arch number of the board */
37 gd->bd->bi_arch_number = MACH_TYPE_SONATA;
39 /* address of boot parameters */
40 gd->bd->bi_boot_params = LINUX_BOOT_PARAM_ADDR;
42 /* Configure AEMIF pins (although this should be configured at boot time
43 * with pull-up/pull-down resistors) */
44 REG(PINMUX0) = 0x00000c1f;
46 davinci_errata_workarounds();
48 /* Power on required peripherals */
49 lpsc_on(DAVINCI_LPSC_GPIO);
51 #if !defined(CONFIG_SYS_USE_DSPLINK)
54 #endif /* CONFIG_SYS_USE_DSPLINK */
56 davinci_enable_uart0();
57 davinci_enable_emac();
60 lpsc_on(DAVINCI_LPSC_TIMER1);
68 uint8_t eeprom_enetaddr[6];
70 dv_display_clk_infos();
72 /* Read Ethernet MAC address from EEPROM if available. */
73 if (dvevm_read_mac_address(eeprom_enetaddr))
74 dv_configure_mac_address(eeprom_enetaddr);
77 printf("ethernet init failed!\n");