co285.c 850 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * linux/arch/arm/mach-footbridge/co285.c
  3. *
  4. * CO285 machine fixup
  5. */
  6. #include <linux/init.h>
  7. #include <asm/hardware/dec21285.h>
  8. #include <asm/mach-types.h>
  9. #include <asm/mach/arch.h>
  10. #include "common.h"
  11. static void __init
  12. fixup_coebsa285(struct machine_desc *desc, struct tag *tags,
  13. char **cmdline, struct meminfo *mi)
  14. {
  15. extern unsigned long boot_memory_end;
  16. extern char boot_command_line[];
  17. mi->nr_banks = 1;
  18. mi->bank[0].start = PHYS_OFFSET;
  19. mi->bank[0].size = boot_memory_end;
  20. mi->bank[0].node = 0;
  21. *cmdline = boot_command_line;
  22. }
  23. MACHINE_START(CO285, "co-EBSA285")
  24. /* Maintainer: Mark van Doesburg */
  25. .phys_io = DC21285_ARMCSR_BASE,
  26. .io_pg_offst = ((0x7cf00000) >> 18) & 0xfffc,
  27. .fixup = fixup_coebsa285,
  28. .map_io = footbridge_map_io,
  29. .init_irq = footbridge_init_irq,
  30. .timer = &footbridge_timer,
  31. MACHINE_END