dm6467evm.c 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * Copyright (C) 2009 Texas Instruments Incorporated
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation; either version 2 of the License, or
  7. * (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program; if not, write to the Free Software
  16. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  17. */
  18. #include <common.h>
  19. #include <asm/io.h>
  20. #include <nand.h>
  21. #include <asm/arch/nand_defs.h>
  22. DECLARE_GLOBAL_DATA_PTR;
  23. int board_init(void)
  24. {
  25. gd->bd->bi_arch_number = MACH_TYPE_DAVINCI_DM6467_EVM;
  26. gd->bd->bi_boot_params = PHYS_SDRAM_1 + 0x100;
  27. return 0;
  28. }
  29. #ifdef CONFIG_NAND_DAVINCI
  30. int board_nand_init(struct nand_chip *nand)
  31. {
  32. davinci_nand_init(nand);
  33. return 0;
  34. }
  35. #endif