File: Config.in

package info (click to toggle)
kernel-image-2.4.18-hppa 62.3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 156,012 kB
  • ctags: 448,723
  • sloc: ansic: 2,586,445; asm: 145,047; makefile: 8,574; sh: 3,097; perl: 2,578; yacc: 1,177; tcl: 577; lex: 352; awk: 251; lisp: 218; sed: 72
file content (201 lines) | stat: -rw-r--r-- 7,853 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
mainmenu_option next_comment
comment 'Drivers for ETRAX 100LX built-in interfaces'

bool 'Ethernet support' CONFIG_ETRAX_ETHERNET
if [ "$CONFIG_ETRAX_ETHERNET" = "y" ]; then
# this is just so that the user does not have to go into the
# normal ethernet driver section just to enable ethernetworking
  define_bool CONFIG_NET_ETHERNET y
  
  choice 'Network LED behavior' \
  "LED_on_when_link      CONFIG_ETRAX_NETWORK_LED_ON_WHEN_LINK    \
   LED_on_when_activity  CONFIG_ETRAX_NETWORK_LED_ON_WHEN_ACTIVITY" \
     LED_on_when_activity

else
  define_bool CONFIG_NET_ETHERNET n
fi

bool 'Etrax Ethernet slave support (over lp0/1)' CONFIG_ETRAX_ETHERNET_LPSLAVE
if [ "$CONFIG_ETRAX_ETHERNET_LPSLAVE" = "y" ]; then
  bool '  Slave has its own LEDs' CONFIG_ETRAX_ETHERNET_LPSLAVE_HAS_LEDS
fi 

bool 'Serial-port support' CONFIG_ETRAX_SERIAL
if [ "$CONFIG_ETRAX_SERIAL" = "y" ]; then
#  bool '  Use fast timers for DMA flush and RS-485 timing' CONFIG_ETRAX_SERIAL_FAST_TIMER n
  define_bool CONFIG_ETRAX_SERIAL_FAST_TIMER n
  if [ "$CONFIG_ETRAX_SERIAL_FAST_TIMER" = "n" ]; then
    bool '  Fast serial port DMA flush' CONFIG_ETRAX_SERIAL_FLUSH_DMA_FAST
    if [ "$CONFIG_ETRAX100_SERIAL_FLUSH_DMA_FAST" = "n" ]; then
      int '  Receive flush timeout (ticks) ' CONFIG_ETRAX_SERIAL_RX_TIMEOUT_TICKS 5
    fi
  fi
  bool '  Serial port 0 enabled' CONFIG_ETRAX_SERIAL_PORT0
  if [ "$CONFIG_ETRAX_SERIAL_PORT0" = "y" ]; then
    bool '  Ser0 DTR, RI, DSR, CD on PB' CONFIG_ETRAX_SER0_DTR_RI_DSR_CD_ON_PB
    if [ "$CONFIG_ETRAX_SER0_DTR_RI_DSR_CD_ON_PB" = "y" ]; then
      int '    Ser0 DTR on PB bit' CONFIG_ETRAX_SER0_DTR_ON_PB_BIT 4
      int '    Ser0 RI  on PB bit' CONFIG_ETRAX_SER0_RI_ON_PB_BIT 5
      int '    Ser0 DSR on PB bit' CONFIG_ETRAX_SER0_DSR_ON_PB_BIT 6
      int '    Ser0 CD  on PB bit' CONFIG_ETRAX_SER0_CD_ON_PB_BIT 7
    fi
  fi

  bool '  Serial port 1 enabled' CONFIG_ETRAX_SERIAL_PORT1
  if [ "$CONFIG_ETRAX_SERIAL_PORT1" = "y" ]; then
    bool '  Ser1 DTR, RI, DSR, CD on PB' CONFIG_ETRAX_SER1_DTR_RI_DSR_CD_ON_PB
    if [ "$CONFIG_ETRAX_SER1_DTR_RI_DSR_CD_ON_PB" = "y" ]; then
      int '    Ser1 DTR on PB bit' CONFIG_ETRAX_SER1_DTR_ON_PB_BIT 4
      int '    Ser1 RI  on PB bit' CONFIG_ETRAX_SER1_RI_ON_PB_BIT 5
      int '    Ser1 DSR on PB bit' CONFIG_ETRAX_SER1_DSR_ON_PB_BIT 6
      int '    Ser1 CD  on PB bit' CONFIG_ETRAX_SER1_CD_ON_PB_BIT 7
    fi
  fi
  if [ "$CONFIG_ETRAX_SER0_DTR_RI_DSR_CD_ON_PB" = "y" -a \
       "$CONFIG_ETRAX_SER1_DTR_RI_DSR_CD_ON_PB" = "y" ]; then
    comment 'Make sure you dont have the same PB bits more than once!'
  fi
  bool '  Serial port 2 enabled' CONFIG_ETRAX_SERIAL_PORT2
  if [ "$CONFIG_ETRAX_SERIAL_PORT2" = "y" ]; then
    bool '    Ser2 DTR, RI, DSR, CD on PA' CONFIG_ETRAX_SER2_DTR_RI_DSR_CD_ON_PA
    if [ "$CONFIG_ETRAX_SER2_DTR_RI_DSR_CD_ON_PA" = "y" ]; then
      int '      Ser2 DTR on PA bit' CONFIG_ETRAX_SER2_DTR_ON_PA_BIT 4
      int '      Ser2 RI  on PA bit' CONFIG_ETRAX_SER2_RI_ON_PA_BIT 5
      int '      Ser2 DSR on PA bit' CONFIG_ETRAX_SER2_DSR_ON_PA_BIT 6
      int '      Ser2 CD  on PA bit' CONFIG_ETRAX_SER2_CD_ON_PA_BIT 7
    fi 
  fi
  bool '  Serial port 3 enabled' CONFIG_ETRAX_SERIAL_PORT3
  bool '  RS-485 support' CONFIG_ETRAX_RS485
  if [ "$CONFIG_ETRAX_RS485" = "y" ]; then
    bool '    RS-485 mode on PA' CONFIG_ETRAX_RS485_ON_PA
    if [ "$CONFIG_ETRAX_RS485_ON_PA" = "y" ]; then
      int '      RS-485 mode on PA bit' CONFIG_ETRAX_RS485_ON_PA_BIT 3
    fi
    bool '    Disable serial receiver' CONFIG_ETRAX_RS485_DISABLE_RECEIVER
  fi
fi

bool 'Synchronous serial port support' CONFIG_ETRAX_SYNCHRONOUS_SERIAL
if [ "$CONFIG_ETRAX_SYNCHRONOUS_SERIAL" = "y" ]; then 
  bool '  Synchronous serial port 0 enabled' CONFIG_ETRAX_SYNCHRONOUS_SERIAL_PORT0
  if [ "$CONFIG_ETRAX_SYNCHRONOUS_SERIAL_PORT0" = "y" ]; then
    bool '    Synchronous serial port 0 uses DMA' CONFIG_ETRAX_SYNCHRONOUS_SERIAL0_DMA
  fi
  bool '  Synchronous serial port 1 enabled' CONFIG_ETRAX_SYNCHRONOUS_SERIAL_PORT1
  if [ "$CONFIG_ETRAX_SYNCHRONOUS_SERIAL_PORT1" = "y" ]; then
    bool '    Synchronous serial port 1 uses DMA' CONFIG_ETRAX_SYNCHRONOUS_SERIAL1_DMA
  fi 
fi

bool 'Parallel port support' CONFIG_ETRAX_PARPORT
if [ "$CONFIG_ETRAX_PARPORT" = "y" ]; then
	bool '  Parallel port 0 enabled' CONFIG_ETRAX_PARALLEL_PORT0
	bool '  Parallel port 1 enabled' CONFIG_ETRAX_PARALLEL_PORT1
# here we define the CONFIG_'s necessary to enable parallel port support
	define_tristate CONFIG_PARPORT y
        define_bool CONFIG_PARPORT_1284 y
        define_tristate CONFIG_PRINTER y
else
	define_tristate CONFIG_PARPORT n
        define_bool CONFIG_PARPORT_1284 n
        define_tristate CONFIG_PRINTER n
fi


bool 'ATA/IDE support' CONFIG_ETRAX_IDE

if [ "$CONFIG_ETRAX_IDE" = "y" ]; then
# here we should add the CONFIG_'s necessary to enable the basic
# general ide drivers so the common case does not need to go
# into that config submenu. enable disk and CD support. others
# need to go fiddle in the submenu..
	define_bool CONFIG_IDE y

	define_bool CONFIG_BLK_DEV_IDE y
	define_bool CONFIG_BLK_DEV_IDEDISK y
	define_bool CONFIG_BLK_DEV_IDECD y

	define_bool CONFIG_BLK_DEV_IDEDMA y
	define_bool CONFIG_DMA_NONPCI y
	
	int 'Delay for drives to regain consciousness' CONFIG_ETRAX_IDE_DELAY 15
	
	choice 'IDE reset pin' \
  	"Port_PB_Bit_7  CONFIG_ETRAX_IDE_PB7_RESET\
   	 Port_G_Bit_27  CONFIG_ETRAX_IDE_G27_RESET\
	 Port_CSE1_Bit_16  CONFIG_ETRAX_IDE_CSE1_16_RESET\
	 Port_CSP0_Bit_08   CONFIG_ETRAX_IDE_CSP0_8_RESET"  Port_PB_Bit_7
else
	define_bool CONFIG_IDE n
fi

bool 'Axis flash-map support' CONFIG_ETRAX_AXISFLASHMAP

if [ "$CONFIG_ETRAX_AXISFLASHMAP" = "y" ]; then
        int  '  Byte-offset of partition table sector' CONFIG_ETRAX_PTABLE_SECTOR 65536
# here we define the CONFIG_'s necessary to enable MTD support
# for the flash
	define_bool CONFIG_MTD y

	define_bool CONFIG_MTD_CFI y
	define_bool CONFIG_MTD_CFI_INTELEXT n
	define_bool CONFIG_MTD_CFI_AMDSTD y

	define_bool CONFIG_MTD_AMDSTD y

	define_bool CONFIG_MTD_CHAR y
	define_bool CONFIG_MTD_BLOCK y
	define_bool CONFIG_MTD_PARTITIONS y
fi

bool 'I2C support' CONFIG_ETRAX_I2C
if [ "$CONFIG_ETRAX_I2C" = "y" ]; then
# this is true for most products since PB-I2C seems to be somewhat
# flawed.. 
	bool 'I2C uses PB not PB-I2C' CONFIG_ETRAX_I2C_USES_PB_NOT_PB_I2C
fi

bool 'I2C EEPROM (non-volatile RAM) support' CONFIG_ETRAX_I2C_EEPROM
if [ "$CONFIG_ETRAX_I2C_EEPROM" = "y" ]; then
  choice '  EEPROM size' \
    "Probed CONFIG_ETRAX_I2C_EEPROM_PROBE \
     2kB    CONFIG_ETRAX_I2C_EEPROM_2KB   \
     8kB    CONFIG_ETRAX_I2C_EEPROM_8KB   \
     16kB   CONFIG_ETRAX_I2C_EEPROM_16KB" Probed
fi

bool 'GPIO support' CONFIG_ETRAX_GPIO
if [ "$CONFIG_ETRAX_GPIO" = "y" ]; then
  hex  '  PA-buttons bitmask' CONFIG_ETRAX_PA_BUTTON_BITMASK 02
  hex  '  PA user changeable dir mask' CONFIG_ETRAX_PA_CHANGEABLE_DIR 00
  hex  '  PA user changeable bits mask' CONFIG_ETRAX_PA_CHANGEABLE_BITS FF
  hex  '  PB user changeable dir mask' CONFIG_ETRAX_PB_CHANGEABLE_DIR 00
  hex  '  PB user changeable bits mask' CONFIG_ETRAX_PB_CHANGEABLE_BITS FF
fi

bool 'ARTPEC-1 support' CONFIG_JULIETTE

if [ "$CONFIG_JULIETTE" = "y" ]; then
   source arch/cris/drivers/juliette/Config.in
fi

bool 'USB host' CONFIG_ETRAX_USB_HOST
if [ "$CONFIG_ETRAX_USB_HOST" = "y" ]; then
	define_bool CONFIG_USB y
	bool '  USB port 1 enabled' CONFIG_ETRAX_USB_HOST_PORT1
	bool '  USB port 2 enabled' CONFIG_ETRAX_USB_HOST_PORT2
else
	define_bool CONFIG_USB n
fi

bool 'DS1302 Real Time Clock support' CONFIG_ETRAX_DS1302
if [ "$CONFIG_ETRAX_DS1302" = "y" ]; then
  bool '  DS1302 RST on Generic Port' CONFIG_ETRAX_DS1302_RST_ON_GENERIC_PORT
  int '  DS1302 RST bit number' CONFIG_ETRAX_DS1302_RSTBIT 2
  int '  DS1302 SCL bit number' CONFIG_ETRAX_DS1302_SCLBIT 1
  int '  DS1302 SDA bit number' CONFIG_ETRAX_DS1302_SDABIT 0
fi

endmenu