wmt_detect_pwr.h 1.0 KB

1234567891011121314151617181920212223242526272829
  1. /*
  2. * Copyright (C) 2011-2014 MediaTek Inc.
  3. *
  4. * This program is free software: you can redistribute it and/or modify it under the terms of the
  5. * GNU General Public License version 2 as published by the Free Software Foundation.
  6. *
  7. * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
  8. * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  9. * See the GNU General Public License for more details.
  10. *
  11. * You should have received a copy of the GNU General Public License along with this program.
  12. * If not, see <http://www.gnu.org/licenses/>.
  13. */
  14. #ifndef __WMT_DETECT_PWR_H_
  15. #define __WMT_DETECT_PWR_H_
  16. #define MAX_RTC_STABLE_TIME 100
  17. #define MAX_LDO_STABLE_TIME 100
  18. #define MAX_RST_STABLE_TIME 30
  19. #define MAX_OFF_STABLE_TIME 10
  20. #define MAX_ON_STABLE_TIME 30
  21. extern int board_sdio_ctrl(unsigned int sdio_port_num, unsigned int on);
  22. extern int wmt_detect_chip_pwr_ctrl(int on);
  23. extern int wmt_detect_sdio_pwr_ctrl(int on);
  24. extern int wmt_detect_read_ext_cmb_status(void);
  25. #endif