aspenite.c 840 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. * (C) Copyright 2010
  3. * Marvell Semiconductor <www.marvell.com>
  4. * Written-by: Prafulla Wadaskar <prafulla@marvell.com>
  5. * Contributor: Mahavir Jain <mjain@marvell.com>
  6. *
  7. * SPDX-License-Identifier: GPL-2.0+
  8. */
  9. #include <common.h>
  10. #include <mvmfp.h>
  11. #include <asm/arch/cpu.h>
  12. #include <asm/arch/mfp.h>
  13. #include <asm/arch/armada100.h>
  14. DECLARE_GLOBAL_DATA_PTR;
  15. int board_early_init_f(void)
  16. {
  17. u32 mfp_cfg[] = {
  18. /* I2C */
  19. MFP105_CI2C_SDA,
  20. MFP106_CI2C_SCL,
  21. /* Enable Console on UART1 */
  22. MFP107_UART1_RXD,
  23. MFP108_UART1_TXD,
  24. MFP_EOC /*End of configureation*/
  25. };
  26. /* configure MFP's */
  27. mfp_config(mfp_cfg);
  28. return 0;
  29. }
  30. int board_init(void)
  31. {
  32. /* arch number of Board */
  33. gd->bd->bi_arch_number = MACH_TYPE_ASPENITE;
  34. /* adress of boot parameters */
  35. gd->bd->bi_boot_params = armd1_sdram_base(0) + 0x100;
  36. return 0;
  37. }