GT64120.README
上传用户:lgb322
上传日期:2013-02-24
资源大小:30529k
文件大小:2k
源码类别:

嵌入式Linux

开发平台:

Unix_Linux

  1. README for arch/mips/gt64120 directory and subdirectories
  2. Jun Sun, jsun@mvista.com or jsun@junsun.net
  3. 01/27, 2001
  4. MOTIVATION
  5. ----------
  6. Many MIPS boards share the same system controller (or CPU companian chip),
  7. such as GT-64120.  It is highly desirable to let these boards share
  8. the same controller code instead of duplicating them.
  9. This directory is meant to hold all MIPS boards that use GT-64120 or GT-64120A.
  10. HOW TO ADD A BOARD
  11. ------------------
  12.  
  13. . Create a subdirectory include/asm/gt64120/<board>.  
  14. . Create a file called gt64120_dep.h under that directory.
  15. . Modify include/asm/gt64120/gt64120.h file to include the new gt64120_dep.h
  16.   based on config options.  The board-dep section is at the end of 
  17.   include/asm/gt64120/gt64120.h file. There you can find all required
  18.   definitions include/asm/gt64120/<board>/gt64120_dep.h file must supply.
  19. . Create a subdirectory arch/mips/gt64120/<board> directory to hold
  20.   board specific routines.
  21. . The GT-64120 common code is supplied under arch/mips/gt64120/common directory.
  22.   It includes:
  23. 1) arch/mips/gt64120/pci.c -
  24. common PCI routine, include the top-level pcibios_init()
  25. 2) arch/mips/gt64120/irq.c -
  26. common IRQ routine, include the top-level do_IRQ() 
  27.    [This part really belongs to arch/mips/kernel. jsun]
  28.   3) arch/mips/gt64120/gt_irq.c -
  29. common IRQ routines for GT-64120 chip.  Currently it only handles
  30.   the timer interrupt.
  31. . Board-specific routines are supplied under arch/mips/gt64120/<board> dir.
  32. 1) arch/mips/gt64120/<board>/pci.c - it provides bus fixup routine
  33. 2) arch/mips/gt64120/<board>/irq.c - it provides enable/disable irqs
  34. and board irq setup routine (irq_setup)
  35. 3) arch/mips/gt64120/<board>/int-handler.S -
  36. The first-level interrupt dispatching routine.
  37. 4) a bunch of other "normal" stuff (setup, prom, dbg_io, reset, etc)
  38. . Follow other "normal" procedure to modify configuration files, etc.
  39. TO-DO LIST
  40. ----------
  41. . Expand arch/mips/gt64120/gt_irq.c to handle all GT-64120 interrupts.
  42.   We probably need to introduce GT_IRQ_BASE  in board-dep header file,
  43.   which is used the starting irq_nr for all GT irqs.
  44.   A function, gt64120_handle_irq(), will be added so that the first-level
  45.   irq dispatcher will call this function if it detects an interrupt
  46.   from GT-64120.
  47. . More support for GT-64120 PCI features (2nd PCI bus, perhaps)