1 |
2 |
dimamali |
bool 'Gaisler Research USB 2.0 Host Controller ' CONFIG_GRUSBHC_ENABLE
|
2 |
|
|
if [ "$CONFIG_GRUSBHC_ENABLE" = "y" ]; then
|
3 |
|
|
bool 'Enable Enhanced Host Controller ' CONFIG_GRUSBHC_EHC
|
4 |
|
|
bool 'Enable Universal Host Controller ' CONFIG_GRUSBHC_UHC
|
5 |
|
|
if [ "$CONFIG_GRUSBHC_UHC" = "y" ]; then
|
6 |
|
|
int 'Number of Universal Host Controllers (1-15)' CONFIG_GRUSBHC_NCC 1
|
7 |
|
|
fi
|
8 |
|
|
int 'Total number of ports (1-15)' CONFIG_GRUSBHC_NPORTS 1
|
9 |
|
|
choice 'Transceiver interface' \
|
10 |
|
|
"ULPI CONFIG_GRUSBHC_ULPI \
|
11 |
|
|
UTMI+16-bit CONFIG_GRUSBHC_UTMI16 \
|
12 |
|
|
UTMI+8-bit CONFIG_GRUSBHC_UTMI8" ULPI
|
13 |
|
|
if [ "$CONFIG_GRUSBHC_ULPI" = "y" ]; then
|
14 |
|
|
choice 'Bus power generation' \
|
15 |
|
|
"External CONFIG_GRUSBHC_VBUSEXT \
|
16 |
|
|
Internal CONFIG_GRUSBHC_VBUSINT"
|
17 |
|
|
if [ "$CONFIG_GRUSBHC_VBUSEXT" = "y" ]; then
|
18 |
|
|
choice 'External bus fault indicator' \
|
19 |
|
|
"ActiveLow CONFIG_GRUSBHC_FAULTL \
|
20 |
|
|
ActiveHigh CONFIG_GRUSBHC_FAULTH \
|
21 |
|
|
None CONFIG_GRUSBHC_FAULTN" ActiveLow
|
22 |
|
|
fi
|
23 |
|
|
else
|
24 |
|
|
choice 'Bus power enable signal' \
|
25 |
|
|
"ActiveHigh CONFIG_GRUSBHC_ENABLEH \
|
26 |
|
|
ActiveLow CONFIG_GRUSBHC_ENABLEL" ActiveHigh
|
27 |
|
|
choice 'Bus power fault indicator' \
|
28 |
|
|
"ActiveHigh CONFIG_GRUSBHC_FAULT2H \
|
29 |
|
|
ActiveLow CONFIG_GRUSBHC_FAULT2L" ActiveHigh
|
30 |
|
|
fi
|
31 |
|
|
comment 'Memory interface'
|
32 |
|
|
# Endian conversion must be enabled if the core is going to work in GRLIB.
|
33 |
|
|
# Thereby we do not give the user a choice, for now.
|
34 |
|
|
# bool 'Endian conversion enable ' CONFIG_GRUSBHC_ENDIAN
|
35 |
|
|
bool 'Enable big endian register interface' CONFIG_GRUSBHC_BEREGS
|
36 |
|
|
bool 'Enable big endian descriptors' CONFIG_GRUSBHC_BEDESC
|
37 |
|
|
int 'Maximum burst length in words (1-256)' CONFIG_GRUSBHC_BWRD 16
|
38 |
|
|
comment 'Port routing'
|
39 |
|
|
bool 'Port routing rules' CONFIG_GRUSBHC_PRR
|
40 |
|
|
if [ "$CONFIG_GRUSBHC_PRR" = "n" ]; then
|
41 |
|
|
int 'Number of ports per companion controller (1-15)' CONFIG_GRUSBHC_NPCC 1
|
42 |
|
|
else
|
43 |
|
|
int 'Route port 1 to companion controller ' CONFIG_GRUSBHC_PR1 0
|
44 |
|
|
int 'Route port 2 to companion controller ' CONFIG_GRUSBHC_PR2 0
|
45 |
|
|
int 'Route port 3 to companion controller ' CONFIG_GRUSBHC_PR3 0
|
46 |
|
|
int 'Route port 4 to companion controller ' CONFIG_GRUSBHC_PR4 0
|
47 |
|
|
int 'Route port 5 to companion controller ' CONFIG_GRUSBHC_PR5 0
|
48 |
|
|
int 'Route port 6 to companion controller ' CONFIG_GRUSBHC_PR6 0
|
49 |
|
|
int 'Route port 7 to companion controller ' CONFIG_GRUSBHC_PR7 0
|
50 |
|
|
int 'Route port 8 to companion controller ' CONFIG_GRUSBHC_PR8 0
|
51 |
|
|
int 'Route port 9 to companion controller ' CONFIG_GRUSBHC_PR9 0
|
52 |
|
|
int 'Route port 10 to companion controller ' CONFIG_GRUSBHC_PR10 0
|
53 |
|
|
int 'Route port 11 to companion controller ' CONFIG_GRUSBHC_PR11 0
|
54 |
|
|
int 'Route port 12 to companion controller ' CONFIG_GRUSBHC_PR12 0
|
55 |
|
|
int 'Route port 13 to companion controller ' CONFIG_GRUSBHC_PR13 0
|
56 |
|
|
int 'Route port 14 to companion controller ' CONFIG_GRUSBHC_PR14 0
|
57 |
|
|
int 'Route port 15 to companion controller ' CONFIG_GRUSBHC_PR15 0
|
58 |
|
|
fi
|
59 |
|
|
fi
|