eseries.c 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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/kernel.h>
  13. #include <linux/init.h>
  14. #include <asm/setup.h>
  15. #include <asm/mach/arch.h>
  16. #include <asm/mach-types.h>
  17. #include <mach/mfp-pxa25x.h>
  18. #include <mach/hardware.h>
  19. #include <mach/eseries-gpio.h>
  20. #include <mach/udc.h>
  21. #include "generic.h"
  22. /* Only e800 has 128MB RAM */
  23. void __init eseries_fixup(struct machine_desc *desc,
  24. struct tag *tags, char **cmdline, struct meminfo *mi)
  25. {
  26. mi->nr_banks=1;
  27. mi->bank[0].start = 0xa0000000;
  28. mi->bank[0].node = 0;
  29. if (machine_is_e800())
  30. mi->bank[0].size = (128*1024*1024);
  31. else
  32. mi->bank[0].size = (64*1024*1024);
  33. }
  34. struct pxa2xx_udc_mach_info e7xx_udc_mach_info = {
  35. .gpio_vbus = GPIO_E7XX_USB_DISC,
  36. .gpio_pullup = GPIO_E7XX_USB_PULLUP,
  37. .gpio_pullup_inverted = 1
  38. };