levelMemoryDefinition.c 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. /*
  2. * Copyright (C) 2008-2009 ST-Ericsson SA
  3. *
  4. * Author: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License version 2, as
  8. * published by the Free Software Foundation.
  9. *
  10. */
  11. #include <linux/types.h>
  12. #include <linux/init.h>
  13. #include <linux/device.h>
  14. #include <linux/amba/bus.h>
  15. #include <linux/interrupt.h>
  16. #include <linux/irq.h>
  17. #include <linux/platform_device.h>
  18. #include <linux/io.h>
  19. #include <linux/mfd/abx500/ab8500.h>
  20. #include <linux/mfd/dbx500-prcmu.h>
  21. #include <linux/of.h>
  22. #include <linux/of_platform.h>
  23. #include <linux/regulator/machine.h>
  24. #include <linux/platform_data/pinctrl-nomadik.h>
  25. #include <linux/random.h>
  26. #include <asm/pmu.h>
  27. #include <asm/mach/map.h>
  28. #include <asm/mach/arch.h>
  29. #include <asm/hardware/gic.h>
  30. #include <mach/hardware.h>
  31. #include <mach/setup.h>
  32. #include <mach/devices.h>
  33. #include <mach/db8500-regs.h>
  34. #include <mach/irqs.h>
  35. #include "devices-db8500.h"
  36. #include "ste-dma40-db8500.h"
  37. #include "board-mop500.h"
  38. /* minimum static i/o mapping required to boot U8500 platforms */
  39. static struct map_desc u8500_uart_io_desc[] __initdata = {
  40. __IO_DEV_DESC(U8500_UART0_BASE, SZ_4K),
  41. __IO_DEV_DESC(U8500_UART2_BASE, SZ_4K),
  42. };
  43. /* U8500 and U9540 common io_desc */
  44. static struct map_desc u8500_common_io_desc[] __initdata = {
  45. /* SCU base also covers GIC CPU BASE and TWD with its 4K page */
  46. __IO_DEV_DESC(U8500_SCU_BASE, SZ_4K),
  47. __IO_DEV_DESC(U8500_GIC_DIST_BASE, SZ_4K),
  48. __IO_DEV_DESC(U8500_L2CC_BASE, SZ_4K),
  49. __IO_DEV_DESC(U8500_MTU0_BASE, SZ_4K),
  50. __IO_DEV_DESC(U8500_BACKUPRAM0_BASE, SZ_8K),
  51. __IO_DEV_DESC(U8500_CLKRST1_BASE, SZ_4K),
  52. __IO_DEV_DESC(U8500_CLKRST2_BASE, SZ_4K),
  53. __IO_DEV_DESC(U8500_CLKRST3_BASE, SZ_4K),
  54. __IO_DEV_DESC(U8500_CLKRST5_BASE, SZ_4K),
  55. __IO_DEV_DESC(U8500_CLKRST6_BASE, SZ_4K),
  56. __IO_DEV_DESC(U8500_GPIO0_BASE, SZ_4K),
  57. __IO_DEV_DESC(U8500_GPIO1_BASE, SZ_4K),
  58. __IO_DEV_DESC(U8500_GPIO2_BASE, SZ_4K),
  59. __IO_DEV_DESC(U8500_GPIO3_BASE, SZ_4K),
  60. };
  61. /* U8500 IO map specific description */
  62. static struct map_desc u8500_io_desc[] __initdata = {
  63. __IO_DEV_DESC(U8500_PRCMU_BASE, SZ_4K),
  64. __IO_DEV_DESC(U8500_PRCMU_TCDM_BASE, SZ_4K),
  65. };
  66. /* U9540 IO map specific description */
  67. static struct map_desc u9540_io_desc[] __initdata = {
  68. __IO_DEV_DESC(U8500_PRCMU_BASE, SZ_4K + SZ_8K),