mx25pdk.c 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /*
  2. * (C) Copyright 2011 Freescale Semiconductor, Inc.
  3. *
  4. * Author: Fabio Estevam <fabio.estevam@freescale.com>
  5. *
  6. * See file CREDITS for list of people who contributed to this
  7. * project.
  8. *
  9. * This program is free software; you can redistribute it and/or
  10. * modify it under the terms of the GNU General Public License as
  11. * published by the Free Software Foundation; either version 2 of
  12. * the License, or (at your option) any later version.
  13. *
  14. * This program is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. * GNU General Public License for more details.
  18. */
  19. #include <common.h>
  20. #include <asm/io.h>
  21. #include <asm/arch/imx-regs.h>
  22. #include <asm/arch/imx25-pinmux.h>
  23. #include <asm/arch/sys_proto.h>
  24. DECLARE_GLOBAL_DATA_PTR;
  25. int dram_init(void)
  26. {
  27. /* dram_init must store complete ramsize in gd->ram_size */
  28. gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE,
  29. PHYS_SDRAM_1_SIZE);
  30. return 0;
  31. }
  32. int board_early_init_f(void)
  33. {
  34. mx25_uart1_init_pins();
  35. return 0;
  36. }
  37. int board_init(void)
  38. {
  39. /* address of boot parameters */
  40. gd->bd->bi_boot_params = PHYS_SDRAM_1 + 0x100;
  41. return 0;
  42. }
  43. int checkboard(void)
  44. {
  45. puts("Board: MX25PDK\n");
  46. return 0;
  47. }