intel_bxtwc.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /*
  2. * intel_bxtwc.h - Header file for Intel Broxton Whiskey Cove PMIC
  3. *
  4. * Copyright (C) 2015 Intel Corporation. All rights reserved.
  5. *
  6. * This program is free software; you can redistribute it and/or modify it
  7. * under the terms and conditions of the GNU General Public License,
  8. * version 2, as published by the Free Software Foundation.
  9. *
  10. * This program is distributed in the hope it will be useful, but WITHOUT
  11. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  12. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  13. * more details.
  14. */
  15. #include <linux/mfd/intel_soc_pmic.h>
  16. #ifndef __INTEL_BXTWC_H__
  17. #define __INTEL_BXTWC_H__
  18. /* BXT WC devices */
  19. #define BXTWC_DEVICE1_ADDR 0x4E
  20. #define BXTWC_DEVICE2_ADDR 0x4F
  21. #define BXTWC_DEVICE3_ADDR 0x5E
  22. /* device1 Registers */
  23. #define BXTWC_CHIPID 0x4E00
  24. #define BXTWC_CHIPVER 0x4E01
  25. #define BXTWC_SCHGRIRQ0_ADDR 0x5E1A
  26. #define BXTWC_CHGRCTRL0_ADDR 0x5E16
  27. #define BXTWC_CHGRCTRL1_ADDR 0x5E17
  28. #define BXTWC_CHGRCTRL2_ADDR 0x5E18
  29. #define BXTWC_CHGRSTATUS_ADDR 0x5E19
  30. #define BXTWC_THRMBATZONE_ADDR 0x4F22
  31. #define BXTWC_USBPATH_ADDR 0x5E19
  32. #define BXTWC_USBPHYCTRL_ADDR 0x5E07
  33. #define BXTWC_USBIDCTRL_ADDR 0x5E05
  34. #define BXTWC_USBIDEN_MASK 0x01
  35. #define BXTWC_USBIDSTAT_ADDR 0x00FF
  36. #define BXTWC_USBSRCDETSTATUS_ADDR 0x5E29
  37. #define BXTWC_DBGUSBBC1_ADDR 0x5FE0
  38. #define BXTWC_DBGUSBBC2_ADDR 0x5FE1
  39. #define BXTWC_DBGUSBBCSTAT_ADDR 0x5FE2
  40. #define BXTWC_WAKESRC_ADDR 0x4E22
  41. #define BXTWC_WAKESRC2_ADDR 0x4EE5
  42. #define BXTWC_CHRTTADDR_ADDR 0x5E22
  43. #define BXTWC_CHRTTDATA_ADDR 0x5E23
  44. #define BXTWC_STHRMIRQ0_ADDR 0x4F19
  45. #define WC_MTHRMIRQ1_ADDR 0x4E12
  46. #define WC_STHRMIRQ1_ADDR 0x4F1A
  47. #define WC_STHRMIRQ2_ADDR 0x4F1B
  48. #define BXTWC_THRMZN0H_ADDR 0x4F44
  49. #define BXTWC_THRMZN0L_ADDR 0x4F45
  50. #define BXTWC_THRMZN1H_ADDR 0x4F46
  51. #define BXTWC_THRMZN1L_ADDR 0x4F47
  52. #define BXTWC_THRMZN2H_ADDR 0x4F48
  53. #define BXTWC_THRMZN2L_ADDR 0x4F49
  54. #define BXTWC_THRMZN3H_ADDR 0x4F4A
  55. #define BXTWC_THRMZN3L_ADDR 0x4F4B
  56. #define BXTWC_THRMZN4H_ADDR 0x4F4C
  57. #define BXTWC_THRMZN4L_ADDR 0x4F4D
  58. #endif