mx25pdk.c 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /*
  2. * Copyright 2009 Sascha Hauer, <kernel@pengutronix.de>
  3. *
  4. * This program is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU General Public License
  6. * as published by the Free Software Foundation; either version 2
  7. * of the License, or (at your option) any later version.
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. *
  13. * You should have received a copy of the GNU General Public License
  14. * along with this program; if not, write to the Free Software
  15. * Foundation, Inc., 51 Franklin Street, Fifth Floor,
  16. * Boston, MA 02110-1301, USA.
  17. */
  18. #include <linux/types.h>
  19. #include <linux/init.h>
  20. #include <linux/clk.h>
  21. #include <linux/irq.h>
  22. #include <linux/gpio.h>
  23. #include <linux/smsc911x.h>
  24. #include <linux/platform_device.h>
  25. #include <mach/hardware.h>
  26. #include <asm/mach-types.h>
  27. #include <asm/mach/arch.h>
  28. #include <asm/mach/time.h>
  29. #include <asm/memory.h>
  30. #include <asm/mach/map.h>
  31. #include <mach/common.h>
  32. #include <mach/imx-uart.h>
  33. #include <mach/mx25.h>
  34. #include <mach/mxc_nand.h>
  35. #include "devices.h"
  36. #include <mach/iomux-v3.h>
  37. static struct imxuart_platform_data uart_pdata = {
  38. .flags = IMXUART_HAVE_RTSCTS,
  39. };
  40. static void __init mx25pdk_init(void)
  41. {
  42. mxc_register_device(&mxc_uart_device0, &uart_pdata);
  43. mxc_register_device(&mxc_usbh2, NULL);
  44. }
  45. static void __init mx25pdk_timer_init(void)
  46. {
  47. mx25_clocks_init(26000000);
  48. }
  49. static struct sys_timer mx25pdk_timer = {
  50. .init = mx25pdk_timer_init,
  51. };
  52. MACHINE_START(MX25_3DS, "Freescale MX25PDK (3DS)")
  53. /* Maintainer: Freescale Semiconductor, Inc. */
  54. .phys_io = MX25_AIPS1_BASE_ADDR,
  55. .io_pg_offst = ((MX25_AIPS1_BASE_ADDR_VIRT) >> 18) & 0xfffc,
  56. .boot_params = PHYS_OFFSET + 0x100,
  57. .map_io = mx25_map_io,
  58. .init_irq = mx25_init_irq,
  59. .init_machine = mx25pdk_init,
  60. .timer = &mx25pdk_timer,
  61. MACHINE_END