soft_switch.h 393 B

123456789101112131415161718
  1. /*
  2. * U-Boot - main board file
  3. *
  4. * Copyright (c) 2008-2012 Analog Devices Inc.
  5. *
  6. * Licensed under the GPL-2 or later.
  7. */
  8. #ifndef __SOFT_SWITCH_H__
  9. #define __SOFT_SWITCH_H__
  10. #define IO_PORT_A 0
  11. #define IO_PORT_B 1
  12. #define IO_PORT_INPUT 0
  13. #define IO_PORT_OUTPUT 1
  14. int config_switch_bit(int num, int port, int bit, int dir, uchar value);
  15. #endif