2 * Copyright (C) 2009 Texas Instruments Incorporated
4 * SPDX-License-Identifier: GPL-2.0+
11 #include <asm/arch/nand_defs.h>
13 DECLARE_GLOBAL_DATA_PTR;
15 #define REV_DM6467EVM 0
16 #define REV_DM6467TEVM 1
18 * get_board_rev() - setup to pass kernel board revision information
20 * bit[0-3] System clock frequency
24 u32 get_board_rev(void)
27 #ifdef CONFIG_DAVINCI_DM6467TEVM
28 return REV_DM6467TEVM;
37 gd->bd->bi_arch_number = MACH_TYPE_DAVINCI_DM6467_EVM;
38 gd->bd->bi_boot_params = PHYS_SDRAM_1 + 0x100;
40 lpsc_on(DAVINCI_DM646X_LPSC_TIMER0);
41 lpsc_on(DAVINCI_DM646X_LPSC_UART0);
42 lpsc_on(DAVINCI_DM646X_LPSC_I2C);
43 lpsc_on(DAVINCI_DM646X_LPSC_EMAC);
45 /* Enable GIO3.3V cells used for EMAC */
46 REG(VDD3P3V_PWDN) = 0x80000c0;
48 /* Select UART function on UART0 */
49 REG(PINMUX0) &= ~(0x0000003f << 18);
50 REG(PINMUX1) &= ~(0x00000003);
55 #if defined(CONFIG_DRIVER_TI_EMAC)
57 int board_eth_init(bd_t *bis)
59 if (!davinci_emac_initialize()) {
60 printf("Error: Ethernet init failed!\n");
66 #endif /* CONFIG_DRIVER_TI_EMAC */
68 #ifdef CONFIG_NAND_DAVINCI
69 int board_nand_init(struct nand_chip *nand)
71 davinci_nand_init(nand);