gplugd.c 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /*
  2. * (C) Copyright 2011
  3. * eInfochips Ltd. <www.einfochips.com>
  4. * Written-by: Ajay Bhargav <ajay.bhargav@einfochips.com>
  5. *
  6. * Based on Aspenite:
  7. * (C) Copyright 2010
  8. * Marvell Semiconductor <www.marvell.com>
  9. * Written-by: Prafulla Wadaskar <prafulla@marvell.com>
  10. * Contributor: Mahavir Jain <mjain@marvell.com>
  11. *
  12. * See file CREDITS for list of people who contributed to this
  13. * project.
  14. *
  15. * This program is free software; you can redistribute it and/or
  16. * modify it under the terms of the GNU General Public License as
  17. * published by the Free Software Foundation; either version 2 of
  18. * the License, or (at your option) any later version.
  19. *
  20. * This program is distributed in the hope that it will be useful,
  21. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  22. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  23. * GNU General Public License for more details.
  24. *
  25. * You should have received a copy of the GNU General Public License
  26. * along with this program; if not, write to the Free Software
  27. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
  28. * MA 02110-1301 USA
  29. */
  30. #include <common.h>
  31. #include <mvmfp.h>
  32. #include <asm/arch/mfp.h>
  33. #include <asm/arch/armada100.h>
  34. DECLARE_GLOBAL_DATA_PTR;
  35. int board_early_init_f(void)
  36. {
  37. u32 mfp_cfg[] = {
  38. /* I2C */
  39. MFP105_CI2C_SDA,
  40. MFP106_CI2C_SCL,
  41. /* Enable Console on UART3 */
  42. MFPO8_UART3_TXD,
  43. MFPO9_UART3_RXD,
  44. MFP_EOC /*End of configuration*/
  45. };
  46. /* configure MFP's */
  47. mfp_config(mfp_cfg);
  48. return 0;
  49. }
  50. int board_init(void)
  51. {
  52. /* arch number of Board */
  53. gd->bd->bi_arch_number = MACH_TYPE_SHEEVAD;
  54. /* adress of boot parameters */
  55. gd->bd->bi_boot_params = armd1_sdram_base(0) + 0x100;
  56. return 0;
  57. }