dbx500-prcmu.h 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647
  1. /*
  2. * Copyright (C) ST Ericsson SA 2011
  3. *
  4. * License Terms: GNU General Public License v2
  5. *
  6. * STE Ux500 PRCMU API
  7. */
  8. #ifndef __MACH_PRCMU_H
  9. #define __MACH_PRCMU_H
  10. #include <linux/interrupt.h>
  11. #include <linux/notifier.h>
  12. #include <linux/err.h>
  13. #include <dt-bindings/mfd/dbx500-prcmu.h> /* For clock identifiers */
  14. /* Offset for the firmware version within the TCPM */
  15. #define DB8500_PRCMU_FW_VERSION_OFFSET 0xA4
  16. #define DBX540_PRCMU_FW_VERSION_OFFSET 0xA8
  17. /* PRCMU Wakeup defines */
  18. enum prcmu_wakeup_index {
  19. PRCMU_WAKEUP_INDEX_RTC,
  20. PRCMU_WAKEUP_INDEX_RTT0,
  21. PRCMU_WAKEUP_INDEX_RTT1,
  22. PRCMU_WAKEUP_INDEX_HSI0,
  23. PRCMU_WAKEUP_INDEX_HSI1,
  24. PRCMU_WAKEUP_INDEX_USB,
  25. PRCMU_WAKEUP_INDEX_ABB,
  26. PRCMU_WAKEUP_INDEX_ABB_FIFO,
  27. PRCMU_WAKEUP_INDEX_ARM,
  28. PRCMU_WAKEUP_INDEX_CD_IRQ,
  29. NUM_PRCMU_WAKEUP_INDICES
  30. };
  31. #define PRCMU_WAKEUP(_name) (BIT(PRCMU_WAKEUP_INDEX_##_name))
  32. /* EPOD (power domain) IDs */
  33. /*
  34. * DB8500 EPODs
  35. * - EPOD_ID_SVAMMDSP: power domain for SVA MMDSP
  36. * - EPOD_ID_SVAPIPE: power domain for SVA pipe
  37. * - EPOD_ID_SIAMMDSP: power domain for SIA MMDSP
  38. * - EPOD_ID_SIAPIPE: power domain for SIA pipe
  39. * - EPOD_ID_SGA: power domain for SGA
  40. * - EPOD_ID_B2R2_MCDE: power domain for B2R2 and MCDE
  41. * - EPOD_ID_ESRAM12: power domain for ESRAM 1 and 2
  42. * - EPOD_ID_ESRAM34: power domain for ESRAM 3 and 4
  43. * - NUM_EPOD_ID: number of power domains
  44. *
  45. * TODO: These should be prefixed.
  46. */
  47. #define EPOD_ID_SVAMMDSP 0
  48. #define EPOD_ID_SVAPIPE 1
  49. #define EPOD_ID_SIAMMDSP 2
  50. #define EPOD_ID_SIAPIPE 3
  51. #define EPOD_ID_SGA 4
  52. #define EPOD_ID_B2R2_MCDE 5
  53. #define EPOD_ID_ESRAM12 6
  54. #define EPOD_ID_ESRAM34 7
  55. #define NUM_EPOD_ID 8
  56. /*
  57. * state definition for EPOD (power domain)
  58. * - EPOD_STATE_NO_CHANGE: The EPOD should remain unchanged
  59. * - EPOD_STATE_OFF: The EPOD is switched off
  60. * - EPOD_STATE_RAMRET: The EPOD is switched off with its internal RAM in
  61. * retention
  62. * - EPOD_STATE_ON_CLK_OFF: The EPOD is switched on, clock is still off
  63. * - EPOD_STATE_ON: Same as above, but with clock enabled
  64. */
  65. #define EPOD_STATE_NO_CHANGE 0x00
  66. #define EPOD_STATE_OFF 0x01
  67. #define EPOD_STATE_RAMRET 0x02
  68. #define EPOD_STATE_ON_CLK_OFF 0x03
  69. #define EPOD_STATE_ON 0x04
  70. /*
  71. * CLKOUT sources
  72. */
  73. #define PRCMU_CLKSRC_CLK38M 0x00
  74. #define PRCMU_CLKSRC_ACLK 0x01
  75. #define PRCMU_CLKSRC_SYSCLK 0x02
  76. #define PRCMU_CLKSRC_LCDCLK 0x03
  77. #define PRCMU_CLKSRC_SDMMCCLK 0x04
  78. #define PRCMU_CLKSRC_TVCLK 0x05
  79. #define PRCMU_CLKSRC_TIMCLK 0x06
  80. #define PRCMU_CLKSRC_CLK009 0x07
  81. /* These are only valid for CLKOUT1: */
  82. #define PRCMU_CLKSRC_SIAMMDSPCLK 0x40
  83. #define PRCMU_CLKSRC_I2CCLK 0x41
  84. #define PRCMU_CLKSRC_MSP02CLK 0x42
  85. #define PRCMU_CLKSRC_ARMPLL_OBSCLK 0x43
  86. #define PRCMU_CLKSRC_HSIRXCLK 0x44
  87. #define PRCMU_CLKSRC_HSITXCLK 0x45
  88. #define PRCMU_CLKSRC_ARMCLKFIX 0x46
  89. #define PRCMU_CLKSRC_HDMICLK 0x47
  90. /**
  91. * enum prcmu_wdog_id - PRCMU watchdog IDs
  92. * @PRCMU_WDOG_ALL: use all timers
  93. * @PRCMU_WDOG_CPU1: use first CPU timer only
  94. * @PRCMU_WDOG_CPU2: use second CPU timer conly
  95. */
  96. enum prcmu_wdog_id {
  97. PRCMU_WDOG_ALL = 0x00,
  98. PRCMU_WDOG_CPU1 = 0x01,
  99. PRCMU_WDOG_CPU2 = 0x02,
  100. };
  101. /**
  102. * enum ape_opp - APE OPP states definition
  103. * @APE_OPP_INIT:
  104. * @APE_NO_CHANGE: The APE operating point is unchanged
  105. * @APE_100_OPP: The new APE operating point is ape100opp
  106. * @APE_50_OPP: 50%
  107. * @APE_50_PARTLY_25_OPP: 50%, except some clocks at 25%.
  108. */
  109. enum ape_opp {
  110. APE_OPP_INIT = 0x00,
  111. APE_NO_CHANGE = 0x01,
  112. APE_100_OPP = 0x02,
  113. APE_50_OPP = 0x03,
  114. APE_50_PARTLY_25_OPP = 0xFF,
  115. };
  116. /**
  117. * enum arm_opp - ARM OPP states definition
  118. * @ARM_OPP_INIT:
  119. * @ARM_NO_CHANGE: The ARM operating point is unchanged
  120. * @ARM_100_OPP: The new ARM operating point is arm100opp
  121. * @ARM_50_OPP: The new ARM operating point is arm50opp
  122. * @ARM_MAX_OPP: Operating point is "max" (more than 100)
  123. * @ARM_MAX_FREQ100OPP: Set max opp if available, else 100
  124. * @ARM_EXTCLK: The new ARM operating point is armExtClk
  125. */
  126. enum arm_opp {
  127. ARM_OPP_INIT = 0x00,
  128. ARM_NO_CHANGE = 0x01,
  129. ARM_100_OPP = 0x02,
  130. ARM_50_OPP = 0x03,
  131. ARM_MAX_OPP = 0x04,
  132. ARM_MAX_FREQ100OPP = 0x05,
  133. ARM_EXTCLK = 0x07
  134. };
  135. /**
  136. * enum ddr_opp - DDR OPP states definition
  137. * @DDR_100_OPP: The new DDR operating point is ddr100opp
  138. * @DDR_50_OPP: The new DDR operating point is ddr50opp
  139. * @DDR_25_OPP: The new DDR operating point is ddr25opp
  140. */
  141. enum ddr_opp {
  142. DDR_100_OPP = 0x00,
  143. DDR_50_OPP = 0x01,
  144. DDR_25_OPP = 0x02,
  145. };
  146. /*
  147. * Definitions for controlling ESRAM0 in deep sleep.
  148. */
  149. #define ESRAM0_DEEP_SLEEP_STATE_OFF 1
  150. #define ESRAM0_DEEP_SLEEP_STATE_RET 2
  151. /**
  152. * enum ddr_pwrst - DDR power states definition
  153. * @DDR_PWR_STATE_UNCHANGED: SDRAM and DDR controller state is unchanged
  154. * @DDR_PWR_STATE_ON:
  155. * @DDR_PWR_STATE_OFFLOWLAT:
  156. * @DDR_PWR_STATE_OFFHIGHLAT:
  157. */
  158. enum ddr_pwrst {
  159. DDR_PWR_STATE_UNCHANGED = 0x00,
  160. DDR_PWR_STATE_ON = 0x01,
  161. DDR_PWR_STATE_OFFLOWLAT = 0x02,
  162. DDR_PWR_STATE_OFFHIGHLAT = 0x03
  163. };
  164. #define DB8500_PRCMU_LEGACY_OFFSET 0xDD4
  165. #define PRCMU_FW_PROJECT_U8500 2
  166. #define PRCMU_FW_PROJECT_U8400 3
  167. #define PRCMU_FW_PROJECT_U9500 4 /* Customer specific */
  168. #define PRCMU_FW_PROJECT_U8500_MBB 5
  169. #define PRCMU_FW_PROJECT_U8500_C1 6
  170. #define PRCMU_FW_PROJECT_U8500_C2 7
  171. #define PRCMU_FW_PROJECT_U8500_C3 8
  172. #define PRCMU_FW_PROJECT_U8500_C4 9
  173. #define PRCMU_FW_PROJECT_U9500_MBL 10
  174. #define PRCMU_FW_PROJECT_U8500_MBL 11 /* Customer specific */
  175. #define PRCMU_FW_PROJECT_U8500_MBL2 12 /* Customer specific */
  176. #define PRCMU_FW_PROJECT_U8520 13
  177. #define PRCMU_FW_PROJECT_U8420 14
  178. #define PRCMU_FW_PROJECT_A9420 20
  179. /* [32..63] 9540 and derivatives */
  180. #define PRCMU_FW_PROJECT_U9540 32
  181. /* [64..95] 8540 and derivatives */
  182. #define PRCMU_FW_PROJECT_L8540 64
  183. /* [96..126] 8580 and derivatives */
  184. #define PRCMU_FW_PROJECT_L8580 96
  185. #define PRCMU_FW_PROJECT_NAME_LEN 20
  186. struct prcmu_fw_version {
  187. u32 project; /* Notice, project shifted with 8 on ux540 */
  188. u8 api_version;
  189. u8 func_version;
  190. u8 errata;
  191. char project_name[PRCMU_FW_PROJECT_NAME_LEN];
  192. };
  193. #include <linux/mfd/db8500-prcmu.h>
  194. #if defined(CONFIG_UX500_SOC_DB8500)
  195. static inline void prcmu_early_init(u32 phy_base, u32 size)
  196. {
  197. return db8500_prcmu_early_init(phy_base, size);
  198. }
  199. static inline int prcmu_set_power_state(u8 state, bool keep_ulp_clk,
  200. bool keep_ap_pll)
  201. {
  202. return db8500_prcmu_set_power_state(state, keep_ulp_clk,
  203. keep_ap_pll);
  204. }
  205. static inline u8 prcmu_get_power_state_result(void)
  206. {
  207. return db8500_prcmu_get_power_state_result();
  208. }
  209. static inline int prcmu_set_epod(u16 epod_id, u8 epod_state)
  210. {
  211. return db8500_prcmu_set_epod(epod_id, epod_state);
  212. }
  213. static inline void prcmu_enable_wakeups(u32 wakeups)
  214. {
  215. db8500_prcmu_enable_wakeups(wakeups);
  216. }
  217. static inline void prcmu_disable_wakeups(void)
  218. {
  219. prcmu_enable_wakeups(0);
  220. }
  221. static inline void prcmu_config_abb_event_readout(u32 abb_events)
  222. {
  223. db8500_prcmu_config_abb_event_readout(abb_events);
  224. }
  225. static inline void prcmu_get_abb_event_buffer(void __iomem **buf)
  226. {
  227. db8500_prcmu_get_abb_event_buffer(buf);
  228. }
  229. int prcmu_abb_read(u8 slave, u8 reg, u8 *value, u8 size);
  230. int prcmu_abb_write(u8 slave, u8 reg, u8 *value, u8 size);
  231. int prcmu_abb_write_masked(u8 slave, u8 reg, u8 *value, u8 *mask, u8 size);
  232. int prcmu_config_clkout(u8 clkout, u8 source, u8 div);
  233. static inline int prcmu_request_clock(u8 clock, bool enable)
  234. {
  235. return db8500_prcmu_request_clock(clock, enable);
  236. }
  237. unsigned long prcmu_clock_rate(u8 clock);
  238. long prcmu_round_clock_rate(u8 clock, unsigned long rate);
  239. int prcmu_set_clock_rate(u8 clock, unsigned long rate);
  240. static inline int prcmu_get_ddr_opp(void)
  241. {
  242. return db8500_prcmu_get_ddr_opp();
  243. }
  244. static inline int prcmu_set_arm_opp(u8 opp)
  245. {
  246. return db8500_prcmu_set_arm_opp(opp);
  247. }
  248. static inline int prcmu_get_arm_opp(void)
  249. {
  250. return db8500_prcmu_get_arm_opp();
  251. }
  252. static inline int prcmu_set_ape_opp(u8 opp)
  253. {
  254. return db8500_prcmu_set_ape_opp(opp);
  255. }
  256. static inline int prcmu_get_ape_opp(void)
  257. {
  258. return db8500_prcmu_get_ape_opp();
  259. }
  260. static inline int prcmu_request_ape_opp_100_voltage(bool enable)
  261. {
  262. return db8500_prcmu_request_ape_opp_100_voltage(enable);
  263. }
  264. static inline void prcmu_system_reset(u16 reset_code)
  265. {
  266. return db8500_prcmu_system_reset(reset_code);
  267. }
  268. static inline u16 prcmu_get_reset_code(void)
  269. {
  270. return db8500_prcmu_get_reset_code();
  271. }
  272. int prcmu_ac_wake_req(void);
  273. void prcmu_ac_sleep_req(void);
  274. static inline void prcmu_modem_reset(void)
  275. {
  276. return db8500_prcmu_modem_reset();
  277. }
  278. static inline bool prcmu_is_ac_wake_requested(void)
  279. {
  280. return db8500_prcmu_is_ac_wake_requested();
  281. }
  282. static inline int prcmu_set_display_clocks(void)
  283. {
  284. return db8500_prcmu_set_display_clocks();
  285. }
  286. static inline int prcmu_disable_dsipll(void)
  287. {
  288. return db8500_prcmu_disable_dsipll();
  289. }
  290. static inline int prcmu_enable_dsipll(void)
  291. {
  292. return db8500_prcmu_enable_dsipll();
  293. }
  294. static inline int prcmu_config_esram0_deep_sleep(u8 state)
  295. {
  296. return db8500_prcmu_config_esram0_deep_sleep(state);
  297. }
  298. static inline int prcmu_config_hotdog(u8 threshold)
  299. {
  300. return db8500_prcmu_config_hotdog(threshold);
  301. }
  302. static inline int prcmu_config_hotmon(u8 low, u8 high)
  303. {
  304. return db8500_prcmu_config_hotmon(low, high);
  305. }
  306. static inline int prcmu_start_temp_sense(u16 cycles32k)
  307. {
  308. return db8500_prcmu_start_temp_sense(cycles32k);
  309. }
  310. static inline int prcmu_stop_temp_sense(void)
  311. {
  312. return db8500_prcmu_stop_temp_sense();
  313. }
  314. static inline u32 prcmu_read(unsigned int reg)
  315. {
  316. return db8500_prcmu_read(reg);
  317. }
  318. static inline void prcmu_write(unsigned int reg, u32 value)
  319. {
  320. db8500_prcmu_write(reg, value);
  321. }
  322. static inline void prcmu_write_masked(unsigned int reg, u32 mask, u32 value)
  323. {
  324. db8500_prcmu_write_masked(reg, mask, value);
  325. }
  326. static inline int prcmu_enable_a9wdog(u8 id)
  327. {
  328. return db8500_prcmu_enable_a9wdog(id);
  329. }
  330. static inline int prcmu_disable_a9wdog(u8 id)
  331. {
  332. return db8500_prcmu_disable_a9wdog(id);
  333. }
  334. static inline int prcmu_kick_a9wdog(u8 id)
  335. {
  336. return db8500_prcmu_kick_a9wdog(id);
  337. }
  338. static inline int prcmu_load_a9wdog(u8 id, u32 timeout)
  339. {
  340. return db8500_prcmu_load_a9wdog(id, timeout);
  341. }
  342. static inline int prcmu_config_a9wdog(u8 num, bool sleep_auto_off)
  343. {
  344. return db8500_prcmu_config_a9wdog(num, sleep_auto_off);
  345. }
  346. #else
  347. static inline void prcmu_early_init(u32 phy_base, u32 size) {}
  348. static inline int prcmu_set_power_state(u8 state, bool keep_ulp_clk,
  349. bool keep_ap_pll)
  350. {
  351. return 0;
  352. }
  353. static inline int prcmu_set_epod(u16 epod_id, u8 epod_state)
  354. {
  355. return 0;
  356. }
  357. static inline void prcmu_enable_wakeups(u32 wakeups) {}
  358. static inline void prcmu_disable_wakeups(void) {}
  359. static inline int prcmu_abb_read(u8 slave, u8 reg, u8 *value, u8 size)
  360. {
  361. return -ENOSYS;
  362. }
  363. static inline int prcmu_abb_write(u8 slave, u8 reg, u8 *value, u8 size)
  364. {
  365. return -ENOSYS;
  366. }
  367. static inline int prcmu_abb_write_masked(u8 slave, u8 reg, u8 *value, u8 *mask,
  368. u8 size)
  369. {
  370. return -ENOSYS;
  371. }
  372. static inline int prcmu_config_clkout(u8 clkout, u8 source, u8 div)
  373. {
  374. return 0;
  375. }
  376. static inline int prcmu_request_clock(u8 clock, bool enable)
  377. {
  378. return 0;
  379. }
  380. static inline long prcmu_round_clock_rate(u8 clock, unsigned long rate)
  381. {
  382. return 0;
  383. }
  384. static inline int prcmu_set_clock_rate(u8 clock, unsigned long rate)
  385. {
  386. return 0;
  387. }
  388. static inline unsigned long prcmu_clock_rate(u8 clock)
  389. {
  390. return 0;
  391. }
  392. static inline int prcmu_set_ape_opp(u8 opp)
  393. {
  394. return 0;
  395. }
  396. static inline int prcmu_get_ape_opp(void)
  397. {
  398. return APE_100_OPP;
  399. }
  400. static inline int prcmu_request_ape_opp_100_voltage(bool enable)
  401. {
  402. return 0;
  403. }
  404. static inline int prcmu_set_arm_opp(u8 opp)
  405. {
  406. return 0;
  407. }
  408. static inline int prcmu_get_arm_opp(void)
  409. {
  410. return ARM_100_OPP;
  411. }
  412. static inline int prcmu_get_ddr_opp(void)
  413. {
  414. return DDR_100_OPP;
  415. }
  416. static inline void prcmu_system_reset(u16 reset_code) {}
  417. static inline u16 prcmu_get_reset_code(void)
  418. {
  419. return 0;
  420. }
  421. static inline int prcmu_ac_wake_req(void)
  422. {
  423. return 0;
  424. }
  425. static inline void prcmu_ac_sleep_req(void) {}
  426. static inline void prcmu_modem_reset(void) {}
  427. static inline bool prcmu_is_ac_wake_requested(void)
  428. {
  429. return false;
  430. }
  431. static inline int prcmu_set_display_clocks(void)
  432. {
  433. return 0;
  434. }
  435. static inline int prcmu_disable_dsipll(void)
  436. {
  437. return 0;
  438. }
  439. static inline int prcmu_enable_dsipll(void)
  440. {
  441. return 0;
  442. }
  443. static inline int prcmu_config_esram0_deep_sleep(u8 state)
  444. {
  445. return 0;
  446. }
  447. static inline void prcmu_config_abb_event_readout(u32 abb_events) {}
  448. static inline void prcmu_get_abb_event_buffer(void __iomem **buf)
  449. {
  450. *buf = NULL;
  451. }
  452. static inline int prcmu_config_hotdog(u8 threshold)
  453. {
  454. return 0;
  455. }
  456. static inline int prcmu_config_hotmon(u8 low, u8 high)
  457. {
  458. return 0;
  459. }
  460. static inline int prcmu_start_temp_sense(u16 cycles32k)
  461. {
  462. return 0;
  463. }
  464. static inline int prcmu_stop_temp_sense(void)
  465. {
  466. return 0;
  467. }
  468. static inline u32 prcmu_read(unsigned int reg)
  469. {
  470. return 0;
  471. }
  472. static inline void prcmu_write(unsigned int reg, u32 value) {}
  473. static inline void prcmu_write_masked(unsigned int reg, u32 mask, u32 value) {}
  474. #endif
  475. static inline void prcmu_set(unsigned int reg, u32 bits)
  476. {
  477. prcmu_write_masked(reg, bits, bits);
  478. }
  479. static inline void prcmu_clear(unsigned int reg, u32 bits)
  480. {
  481. prcmu_write_masked(reg, bits, 0);
  482. }
  483. /* PRCMU QoS APE OPP class */
  484. #define PRCMU_QOS_APE_OPP 1
  485. #define PRCMU_QOS_DDR_OPP 2
  486. #define PRCMU_QOS_ARM_OPP 3
  487. #define PRCMU_QOS_DEFAULT_VALUE -1
  488. #ifdef CONFIG_DBX500_PRCMU_QOS_POWER
  489. unsigned long prcmu_qos_get_cpufreq_opp_delay(void);
  490. void prcmu_qos_set_cpufreq_opp_delay(unsigned long);
  491. void prcmu_qos_force_opp(int, s32);
  492. int prcmu_qos_requirement(int pm_qos_class);
  493. int prcmu_qos_add_requirement(int pm_qos_class, char *name, s32 value);
  494. int prcmu_qos_update_requirement(int pm_qos_class, char *name, s32 new_value);
  495. void prcmu_qos_remove_requirement(int pm_qos_class, char *name);
  496. int prcmu_qos_add_notifier(int prcmu_qos_class,
  497. struct notifier_block *notifier);
  498. int prcmu_qos_remove_notifier(int prcmu_qos_class,
  499. struct notifier_block *notifier);
  500. #else
  501. static inline unsigned long prcmu_qos_get_cpufreq_opp_delay(void)
  502. {
  503. return 0;
  504. }
  505. static inline void prcmu_qos_set_cpufreq_opp_delay(unsigned long n) {}
  506. static inline void prcmu_qos_force_opp(int prcmu_qos_class, s32 i) {}
  507. static inline int prcmu_qos_requirement(int prcmu_qos_class)
  508. {
  509. return 0;
  510. }
  511. static inline int prcmu_qos_add_requirement(int prcmu_qos_class,
  512. char *name, s32 value)
  513. {
  514. return 0;
  515. }
  516. static inline int prcmu_qos_update_requirement(int prcmu_qos_class,
  517. char *name, s32 new_value)
  518. {
  519. return 0;
  520. }
  521. static inline void prcmu_qos_remove_requirement(int prcmu_qos_class, char *name)
  522. {
  523. }
  524. static inline int prcmu_qos_add_notifier(int prcmu_qos_class,
  525. struct notifier_block *notifier)
  526. {
  527. return 0;
  528. }
  529. static inline int prcmu_qos_remove_notifier(int prcmu_qos_class,
  530. struct notifier_block *notifier)
  531. {
  532. return 0;
  533. }
  534. #endif
  535. #endif /* __MACH_PRCMU_H */