sherman.c
上传用户:jlfgdled
上传日期:2013-04-10
资源大小:33168k
文件大小:1k
源码类别:

Linux/Unix编程

开发平台:

Unix_Linux

  1. /*
  2.  * linux/arch/arm/mach-sa1100/sherman.c
  3.  */
  4. #include <linux/init.h>
  5. #include <linux/kernel.h>
  6. #include <linux/tty.h>
  7. #include <asm/hardware.h>
  8. #include <asm/setup.h>
  9. #include <asm/mach/arch.h>
  10. #include <asm/mach/map.h>
  11. #include <asm/mach/serial_sa1100.h>
  12. #include "generic.h"
  13. static void __init
  14. fixup_sherman(struct machine_desc *desc, struct param_struct *params,
  15.       char **cmdline, struct meminfo *mi)
  16. {
  17. SET_BANK( 0, 0xc0000000, 64*1024*1024 );
  18. SET_BANK( 1, 0xc8000000, 64*1024*1024 );
  19. mi->nr_banks = 2;
  20. ROOT_DEV = MKDEV( 60, 2 );
  21. setup_ramdisk( 1, 0, 0, 8192 );
  22. // setup_initrd( 0xc0400000, 8*1024*1024 );
  23. }
  24. static struct map_desc sherman_io_desc[] __initdata = {
  25.  /* virtual     physical    length      domain     r  w  c  b */
  26.   { 0xe8000000, 0x00000000, 0x02000000, DOMAIN_IO, 0, 1, 0, 0 }, /* Flash*/
  27.   LAST_DESC
  28. };
  29. static void __init sherman_map_io(void)
  30. {
  31. sa1100_map_io();
  32. iotable_init(sherman_io_desc);
  33. sa1100_register_uart(0, 3);
  34. sa1100_register_uart(1, 1);
  35. }
  36. MACHINE_START(SHERMAN, "Blazie Engineering Sherman")
  37.         BOOT_MEM(0xc0000000, 0x80000000, 0xf8000000)
  38.         FIXUP(fixup_sherman)
  39.         MAPIO(sherman_map_io)
  40. INITIRQ(sa1100_init_irq)
  41. MACHINE_END