2 * Copyright (C) 2009 Texas Instruments Incorporated
4 * SPDX-License-Identifier: GPL-2.0+
11 #include <asm/arch/hardware.h>
12 #include <asm/ti-common/davinci_nand.h>
14 DECLARE_GLOBAL_DATA_PTR;
16 #define REV_DM6467EVM 0
17 #define REV_DM6467TEVM 1
19 * get_board_rev() - setup to pass kernel board revision information
21 * bit[0-3] System clock frequency
25 u32 get_board_rev(void)
28 #ifdef CONFIG_DAVINCI_DM6467TEVM
29 return REV_DM6467TEVM;
38 gd->bd->bi_arch_number = MACH_TYPE_DAVINCI_DM6467_EVM;
39 gd->bd->bi_boot_params = PHYS_SDRAM_1 + 0x100;
41 lpsc_on(DAVINCI_DM646X_LPSC_TIMER0);
42 lpsc_on(DAVINCI_DM646X_LPSC_UART0);
43 lpsc_on(DAVINCI_DM646X_LPSC_I2C);
44 lpsc_on(DAVINCI_DM646X_LPSC_EMAC);
46 /* Enable GIO3.3V cells used for EMAC */
47 REG(VDD3P3V_PWDN) = 0x80000c0;
49 /* Select UART function on UART0 */
50 REG(PINMUX0) &= ~(0x0000003f << 18);
51 REG(PINMUX1) &= ~(0x00000003);
56 #if defined(CONFIG_DRIVER_TI_EMAC)
58 int board_eth_init(bd_t *bis)
60 if (!davinci_emac_initialize()) {
61 printf("Error: Ethernet init failed!\n");
67 #endif /* CONFIG_DRIVER_TI_EMAC */
69 #ifdef CONFIG_NAND_DAVINCI
70 int board_nand_init(struct nand_chip *nand)
72 davinci_nand_init(nand);