Blame view

doc/README.generic_usb_ohci 1.62 KB
58b485776   Markus Klotzbuecher   Add a small READM...
1
2
  Notes on the the generic USB-OHCI driver
  ========================================
7817cb208   Marcel Ziswiler   fix comments with...
3
  This driver (drivers/usb/usb_ohci.[ch]) is the result of the merge of
58b485776   Markus Klotzbuecher   Add a small READM...
4
5
6
7
8
9
  various existing OHCI drivers that were basically identical beside
  cpu/board dependant initalization. This initalization has been moved
  into cpu/board directories and are called via the hooks below.
  
  Configuration options
  ----------------------
fc43be478   Markus Klotzbuecher   USB/OHCI: endiann...
10
  	CONFIG_USB_OHCI_NEW: enable the new OHCI driver
58b485776   Markus Klotzbuecher   Add a small READM...
11

6d0f6bcf3   Jean-Christophe PLAGNIOL-VILLARD   rename CFG_ macro...
12
  	CONFIG_SYS_USB_OHCI_BOARD_INIT: call the board dependant hooks:
58b485776   Markus Klotzbuecher   Add a small READM...
13

2a766db11   Krzysztof Kozlowski   doc: Fix outdated...
14
  		  - extern int board_usb_init(void);
fc43be478   Markus Klotzbuecher   USB/OHCI: endiann...
15
16
  		  - extern int usb_board_stop(void);
  		  - extern int usb_cpu_init_fail(void);
58b485776   Markus Klotzbuecher   Add a small READM...
17

6d0f6bcf3   Jean-Christophe PLAGNIOL-VILLARD   rename CFG_ macro...
18
  	CONFIG_SYS_USB_OHCI_CPU_INIT: call the cpu dependant hooks:
58b485776   Markus Klotzbuecher   Add a small READM...
19

fc43be478   Markus Klotzbuecher   USB/OHCI: endiann...
20
21
22
  		  - extern int usb_cpu_init(void);
  		  - extern int usb_cpu_stop(void);
  		  - extern int usb_cpu_init_fail(void);
58b485776   Markus Klotzbuecher   Add a small READM...
23

6d0f6bcf3   Jean-Christophe PLAGNIOL-VILLARD   rename CFG_ macro...
24
  	CONFIG_SYS_USB_OHCI_REGS_BASE: defines the base address of the OHCI
fc43be478   Markus Klotzbuecher   USB/OHCI: endiann...
25
  				registers
58b485776   Markus Klotzbuecher   Add a small READM...
26

6d0f6bcf3   Jean-Christophe PLAGNIOL-VILLARD   rename CFG_ macro...
27
  	CONFIG_SYS_USB_OHCI_SLOT_NAME: slot name
58b485776   Markus Klotzbuecher   Add a small READM...
28

6d0f6bcf3   Jean-Christophe PLAGNIOL-VILLARD   rename CFG_ macro...
29
  	CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS: maximal number of ports of the
fc43be478   Markus Klotzbuecher   USB/OHCI: endiann...
30
  				     root hub.
58b485776   Markus Klotzbuecher   Add a small READM...
31
32
33
34
  
  
  Endianness issues
  ------------------
fc43be478   Markus Klotzbuecher   USB/OHCI: endiann...
35
  The USB bus operates in little endian, but unfortunately there are
064b55cfc   Heiko Schocher   powerpc, 5xxx, 51...
36
37
  OHCI controllers that operate in big endian such as ppc4xx. For these the
  config option
58b485776   Markus Klotzbuecher   Add a small READM...
38

6d0f6bcf3   Jean-Christophe PLAGNIOL-VILLARD   rename CFG_ macro...
39
  	CONFIG_SYS_OHCI_BE_CONTROLLER
fc43be478   Markus Klotzbuecher   USB/OHCI: endiann...
40

be5d72d10   Wolfgang Denk   Minor coding styl...
41
  needs to be defined.
fc43be478   Markus Klotzbuecher   USB/OHCI: endiann...
42
43
44
45
46
47
48
49
  
  
  PCI Controllers
  ----------------
  
  You'll need to define
  
  	CONFIG_PCI_OHCI
5a904e563   Sergei Poselenov   USB: add new conf...
50
51
52
53
54
  If you have several USB PCI controllers, define
  
  	CONFIG_PCI_OHCI_DEVNO: number of the OHCI device in PCI list
  
  If undefined, the first instance found in PCI space will be used.
fc43be478   Markus Klotzbuecher   USB/OHCI: endiann...
55
56
  PCI Controllers need to do byte swapping on register accesses, so they
  should to define:
6d0f6bcf3   Jean-Christophe PLAGNIOL-VILLARD   rename CFG_ macro...
57
  	CONFIG_SYS_OHCI_SWAP_REG_ACCESS