eseries.c 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. /*
  2. * Hardware definitions for the Toshiba eseries PDAs
  3. *
  4. * Copyright (c) 2003 Ian Molton <spyro@f2s.com>
  5. *
  6. * This file is licensed under
  7. * the terms of the GNU General Public License version 2. This program
  8. * is licensed "as is" without any warranty of any kind, whether express
  9. * or implied.
  10. *
  11. */
  12. #include <linux/init.h>
  13. #include <asm/setup.h>
  14. #include <asm/mach/arch.h>
  15. #include <asm/arch/hardware.h>
  16. #include <asm/mach-types.h>
  17. #include <generic.h>
  18. /* Only e800 has 128MB RAM */
  19. static void __init eseries_fixup(struct machine_desc *desc,
  20. struct tag *tags, char **cmdline, struct meminfo *mi)
  21. {
  22. mi->nr_banks=1;
  23. mi->bank[0].start = 0xa0000000;
  24. mi->bank[0].node = 0;
  25. if (machine_is_e800())
  26. mi->bank[0].size = (128*1024*1024);
  27. else
  28. mi->bank[0].size = (64*1024*1024);
  29. }
  30. /* e-series machine definitions */
  31. #ifdef CONFIG_MACH_E330
  32. MACHINE_START(E330, "Toshiba e330")
  33. /* Maintainer: Ian Molton (spyro@f2s.com) */
  34. .phys_io = 0x40000000,
  35. .io_pg_offst = (io_p2v(0x40000000) >> 18) & 0xfffc,
  36. .boot_params = 0xa0000100,
  37. .map_io = pxa_map_io,
  38. .init_irq = pxa25x_init_irq,
  39. .fixup = eseries_fixup,
  40. .timer = &pxa_timer,
  41. MACHINE_END
  42. #endif
  43. #ifdef CONFIG_MACH_E740
  44. MACHINE_START(E740, "Toshiba e740")
  45. /* Maintainer: Ian Molton (spyro@f2s.com) */
  46. .phys_io = 0x40000000,
  47. .io_pg_offst = (io_p2v(0x40000000) >> 18) & 0xfffc,
  48. .boot_params = 0xa0000100,
  49. .map_io = pxa_map_io,
  50. .init_irq = pxa25x_init_irq,
  51. .fixup = eseries_fixup,
  52. .timer = &pxa_timer,
  53. MACHINE_END
  54. #endif
  55. #ifdef CONFIG_MACH_E750
  56. MACHINE_START(E750, "Toshiba e750")
  57. /* Maintainer: Ian Molton (spyro@f2s.com) */
  58. .phys_io = 0x40000000,
  59. .io_pg_offst = (io_p2v(0x40000000) >> 18) & 0xfffc,
  60. .boot_params = 0xa0000100,
  61. .map_io = pxa_map_io,
  62. .init_irq = pxa25x_init_irq,
  63. .fixup = eseries_fixup,
  64. .timer = &pxa_timer,
  65. MACHINE_END
  66. #endif
  67. #ifdef CONFIG_MACH_E400
  68. MACHINE_START(E400, "Toshiba e400")
  69. /* Maintainer: Ian Molton (spyro@f2s.com) */
  70. .phys_io = 0x40000000,
  71. .io_pg_offst = (io_p2v(0x40000000) >> 18) & 0xfffc,
  72. .boot_params = 0xa0000100,
  73. .map_io = pxa_map_io,
  74. .init_irq = pxa25x_init_irq,
  75. .fixup = eseries_fixup,
  76. .timer = &pxa_timer,
  77. MACHINE_END
  78. #endif
  79. #ifdef CONFIG_MACH_E800
  80. MACHINE_START(E800, "Toshiba e800")
  81. /* Maintainer: Ian Molton (spyro@f2s.com) */
  82. .phys_io = 0x40000000,
  83. .io_pg_offst = (io_p2v(0x40000000) >> 18) & 0xfffc,
  84. .boot_params = 0xa0000100,
  85. .map_io = pxa_map_io,
  86. .init_irq = pxa25x_init_irq,
  87. .fixup = eseries_fixup,
  88. .timer = &pxa_timer,
  89. MACHINE_END
  90. #endif