| OLD | NEW | 
|---|
| 1 #!/usr/bin/python | 1 #!/usr/bin/python | 
| 2 # | 2 # | 
| 3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 
| 4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be | 
| 5 # found in the LICENSE file. | 5 # found in the LICENSE file. | 
| 6 | 6 | 
| 7 # DESCRIPTION : | 7 # DESCRIPTION : | 
| 8 # | 8 # | 
| 9 # Intended for use during manufacturing to validate that developer | 9 # Intended for use during manufacturing to validate that developer | 
| 10 # switch and recovery button function properly.  Run normally, test | 10 # switch and recovery button function properly.  Run normally, test | 
| (...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 331 | 331 | 
| 332     def bogus_gpio_read(self, name): | 332     def bogus_gpio_read(self, name): | 
| 333         return self._gpio | 333         return self._gpio | 
| 334 | 334 | 
| 335     def pinetrail_gpio_read(self, name): | 335     def pinetrail_gpio_read(self, name): | 
| 336         if not self.table.__contains__(name): | 336         if not self.table.__contains__(name): | 
| 337             raise | 337             raise | 
| 338 | 338 | 
| 339         # TODO(tbroch) hardcode for now ... iotools usages going away | 339         # TODO(tbroch) hardcode for now ... iotools usages going away | 
| 340         # longer term anyways | 340         # longer term anyways | 
| 341         path = '/home/autotest/deps/iotools/' | 341         path = '/usr/local/autotest/deps/iotools/' | 
| 342         # Generate symlinks for iotools. | 342         # Generate symlinks for iotools. | 
| 343         if not os.path.exists(path + 'pci_read32'): | 343         if not os.path.exists(path + 'pci_read32'): | 
| 344             os.system(path + 'iotools --make-links') | 344             os.system(path + 'iotools --make-links') | 
| 345 | 345 | 
| 346         # Tigerpoint LPC Interface. | 346         # Tigerpoint LPC Interface. | 
| 347         tp_device = (0, 31, 0) | 347         tp_device = (0, 31, 0) | 
| 348         # TP io port location of GPIO registers. | 348         # TP io port location of GPIO registers. | 
| 349         tp_GPIOBASE = 0x48 | 349         tp_GPIOBASE = 0x48 | 
| 350         # IO offset to check GPIO levels. | 350         # IO offset to check GPIO levels. | 
| 351         tp_GP_LVL_off = 0xc | 351         tp_GP_LVL_off = 0xc | 
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 420 | 420 | 
| 421     window.add(align) | 421     window.add(align) | 
| 422     window.show() | 422     window.show() | 
| 423 | 423 | 
| 424     gtk.main() | 424     gtk.main() | 
| 425 | 425 | 
| 426     return not drt._success | 426     return not drt._success | 
| 427 | 427 | 
| 428 if __name__ == '__main__': | 428 if __name__ == '__main__': | 
| 429     main() | 429     main() | 
| OLD | NEW | 
|---|