| | 95 | sub gen_Documentation_Configure_help |
|---|
| | 96 | { |
|---|
| | 97 | my ($package_root,$kernel_root) = @_; |
|---|
| | 98 | my $kernel_file = "Documentation/Configure.help"; |
|---|
| | 99 | my $package_file = $temp; |
|---|
| | 100 | |
|---|
| | 101 | open INPUT,"$kernel_root/$kernel_file" |
|---|
| | 102 | or die "Can't open `$kernel_root/$kernel_file'"; |
|---|
| | 103 | open OUTPUT,">$package_root/$package_file" |
|---|
| | 104 | or die "Can't open $package_root/$package_file"; |
|---|
| | 105 | while(<INPUT>) { |
|---|
| | 106 | while (m@I2C support@ or m@I2C bit-banging interfaces@ or |
|---|
| | 107 | m@Philips style parallel port adapter@ or |
|---|
| | 108 | m@ELV adapter@ or m@Velleman K9000 adapter@ or |
|---|
| | 109 | m@I2C PCF 8584 interfaces@ or m@Elektor ISA card@ or |
|---|
| | 110 | m@I2C device interface@ ) { |
|---|
| | 111 | $_ = <INPUT>; |
|---|
| | 112 | $_ = <INPUT>; |
|---|
| | 113 | $_ = <INPUT> while not m@^\S$@ and not eof(INPUT); |
|---|
| | 114 | } |
|---|
| | 115 | if (eof(INPUT)) { |
|---|
| | 116 | print OUTPUT <<'EOF' |
|---|
| | 117 | I2C support |
|---|
| | 118 | CONFIG_I2C |
|---|
| | 119 | I2C (pronounce: I-square-C) is a slow bus protocol developed by |
|---|
| | 120 | Philips. SMBus, or System Management Bus is a sub-protocol of I2C. |
|---|
| | 121 | |
|---|
| | 122 | Both I2C and SMBus are supported here. You will need this for |
|---|
| | 123 | hardware sensors support, and in the future for Video for Linux |
|---|
| | 124 | support. |
|---|
| | 125 | |
|---|
| | 126 | Beside this option, you will also need to select specific drivers |
|---|
| | 127 | for your bus adapter(s). |
|---|
| | 128 | |
|---|
| | 129 | I2C bit-banging interfaces |
|---|
| | 130 | CONFIG_I2C_ALGOBIT |
|---|
| | 131 | This allows you to use a range of I2C adapters called bit-banging |
|---|
| | 132 | adapters. Why they are called so is rather technical and uninteresting; |
|---|
| | 133 | but you need to select this if you own one of the adapters listed |
|---|
| | 134 | under it. |
|---|
| | 135 | |
|---|
| | 136 | Philips style parallel port adapter |
|---|
| | 137 | CONFIG_I2C_PHILIPSPAR |
|---|
| | 138 | This supports parallel-port I2C adapters made by Philips. Unless you |
|---|
| | 139 | own such an adapter, you do not need to select this. |
|---|
| | 140 | |
|---|
| | 141 | ELV adapter |
|---|
| | 142 | CONFIG_I2C_ELV |
|---|
| | 143 | This supports parallel-port I2C adapters called ELV. Unless you |
|---|
| | 144 | own such an adapter, you do not need to select this. |
|---|
| | 145 | |
|---|
| | 146 | Velleman K9000 adapter |
|---|
| | 147 | CONFIG_I2C_VELLEMAN |
|---|
| | 148 | This supports the Velleman K9000 parallel-port I2C adapter. Unless |
|---|
| | 149 | you own such an adapter, you do not need to select this. |
|---|
| | 150 | |
|---|
| | 151 | I2C PCF 8584 interfaces |
|---|
| | 152 | CONFIG_I2C_ALGOPCF |
|---|
| | 153 | This allows you to use a range of I2C adapters called PCF |
|---|
| | 154 | adapters. Why they are called so is rather technical and uninteresting; |
|---|
| | 155 | but you need to select this if you own one of the adapters listed |
|---|
| | 156 | under it. |
|---|
| | 157 | |
|---|
| | 158 | Elektor ISA card |
|---|
| | 159 | CONFIG_I2C_ELEKTOR |
|---|
| | 160 | This supports the PCF8584 ISA bus I2C adapter. Unless you own such |
|---|
| | 161 | an adapter, you do not need to select this. |
|---|
| | 162 | |
|---|
| | 163 | I2C device interface |
|---|
| | 164 | CONFIG_I2C_CHARDEV |
|---|
| | 165 | Here you find the drivers which allow you to use the i2c-* device |
|---|
| | 166 | files, usually found in the /dev directory on your system. They |
|---|
| | 167 | make it possible to have user-space programs use the I2C bus. |
|---|
| | 168 | |
|---|
| | 169 | EOF |
|---|
| | 170 | } |
|---|
| | 171 | print OUTPUT; |
|---|
| | 172 | } |
|---|
| | 173 | close INPUT; |
|---|
| | 174 | close OUTPUT; |
|---|
| | 175 | print_diff $package_root,$kernel_root,$kernel_file,$package_file; |
|---|
| | 176 | } |
|---|
| | 177 | |
|---|
| | 178 | # $_[0]: i2c package root (like /tmp/i2c) |
|---|
| | 179 | # $_[1]: Linux kernel tree (like /usr/src/linux) |
|---|