PageRenderTime 22ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/arch/arm/mach-omap2/board-generic.c

https://bitbucket.org/sammyz/iscream_thunderc-2.6.35-rebase
C | 65 lines | 39 code | 8 blank | 18 comment | 0 complexity | 25f1e0c8f5c917b95da0b99b9e01a419 MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.0, AGPL-1.0
  1. /*
  2. * linux/arch/arm/mach-omap2/board-generic.c
  3. *
  4. * Copyright (C) 2005 Nokia Corporation
  5. * Author: Paul Mundt <paul.mundt@nokia.com>
  6. *
  7. * Modified from mach-omap/omap1/board-generic.c
  8. *
  9. * Code for generic OMAP2 board. Should work on many OMAP2 systems where
  10. * the bootloader passes the board-specific data to the kernel.
  11. * Do not put any board specific code to this file; create a new machine
  12. * type if you need custom low-level initializations.
  13. *
  14. * This program is free software; you can redistribute it and/or modify
  15. * it under the terms of the GNU General Public License version 2 as
  16. * published by the Free Software Foundation.
  17. */
  18. #include <linux/kernel.h>
  19. #include <linux/init.h>
  20. #include <linux/device.h>
  21. #include <mach/hardware.h>
  22. #include <asm/mach-types.h>
  23. #include <asm/mach/arch.h>
  24. #include <asm/mach/map.h>
  25. #include <mach/gpio.h>
  26. #include <plat/mux.h>
  27. #include <plat/usb.h>
  28. #include <plat/board.h>
  29. #include <plat/common.h>
  30. static struct omap_board_config_kernel generic_config[] = {
  31. };
  32. static void __init omap_generic_init_irq(void)
  33. {
  34. omap_board_config = generic_config;
  35. omap_board_config_size = ARRAY_SIZE(generic_config);
  36. omap2_init_common_hw(NULL, NULL);
  37. omap_init_irq();
  38. }
  39. static void __init omap_generic_init(void)
  40. {
  41. omap_serial_init();
  42. }
  43. static void __init omap_generic_map_io(void)
  44. {
  45. omap2_set_globals_242x(); /* should be 242x, 243x, or 343x */
  46. omap242x_map_common_io();
  47. }
  48. MACHINE_START(OMAP_GENERIC, "Generic OMAP24xx")
  49. /* Maintainer: Paul Mundt <paul.mundt@nokia.com> */
  50. .phys_io = 0x48000000,
  51. .io_pg_offst = ((0xfa000000) >> 18) & 0xfffc,
  52. .boot_params = 0x80000100,
  53. .map_io = omap_generic_map_io,
  54. .init_irq = omap_generic_init_irq,
  55. .init_machine = omap_generic_init,
  56. .timer = &omap_timer,
  57. MACHINE_END