dbx500-prcmu.h 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680
  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. /* PRCMU Wakeup defines */
  14. enum prcmu_wakeup_index {
  15. PRCMU_WAKEUP_INDEX_RTC,
  16. PRCMU_WAKEUP_INDEX_RTT0,
  17. PRCMU_WAKEUP_INDEX_RTT1,
  18. PRCMU_WAKEUP_INDEX_HSI0,
  19. PRCMU_WAKEUP_INDEX_HSI1,
  20. PRCMU_WAKEUP_INDEX_USB,
  21. PRCMU_WAKEUP_INDEX_ABB,
  22. PRCMU_WAKEUP_INDEX_ABB_FIFO,
  23. PRCMU_WAKEUP_INDEX_ARM,
  24. PRCMU_WAKEUP_INDEX_CD_IRQ,
  25. NUM_PRCMU_WAKEUP_INDICES
  26. };
  27. #define PRCMU_WAKEUP(_name) (BIT(PRCMU_WAKEUP_INDEX_##_name))
  28. /* EPOD (power domain) IDs */
  29. /*
  30. * DB8500 EPODs
  31. * - EPOD_ID_SVAMMDSP: power domain for SVA MMDSP
  32. * - EPOD_ID_SVAPIPE: power domain for SVA pipe
  33. * - EPOD_ID_SIAMMDSP: power domain for SIA MMDSP
  34. * - EPOD_ID_SIAPIPE: power domain for SIA pipe
  35. * - EPOD_ID_SGA: power domain for SGA
  36. * - EPOD_ID_B2R2_MCDE: power domain for B2R2 and MCDE
  37. * - EPOD_ID_ESRAM12: power domain for ESRAM 1 and 2
  38. * - EPOD_ID_ESRAM34: power domain for ESRAM 3 and 4
  39. * - NUM_EPOD_ID: number of power domains
  40. *
  41. * TODO: These should be prefixed.
  42. */
  43. #define EPOD_ID_SVAMMDSP 0
  44. #define EPOD_ID_SVAPIPE 1
  45. #define EPOD_ID_SIAMMDSP 2
  46. #define EPOD_ID_SIAPIPE 3
  47. #define EPOD_ID_SGA 4
  48. #define EPOD_ID_B2R2_MCDE 5
  49. #define EPOD_ID_ESRAM12 6
  50. #define EPOD_ID_ESRAM34 7
  51. #define NUM_EPOD_ID 8
  52. /*
  53. * DB5500 EPODs
  54. */
  55. #define DB5500_EPOD_ID_BASE 0x0100
  56. #define DB5500_EPOD_ID_SGA (DB5500_EPOD_ID_BASE + 0)
  57. #define DB5500_EPOD_ID_HVA (DB5500_EPOD_ID_BASE + 1)
  58. #define DB5500_EPOD_ID_SIA (DB5500_EPOD_ID_BASE + 2)
  59. #define DB5500_EPOD_ID_DISP (DB5500_EPOD_ID_BASE + 3)
  60. #define DB5500_EPOD_ID_ESRAM12 (DB5500_EPOD_ID_BASE + 6)
  61. #define DB5500_NUM_EPOD_ID 7
  62. /*
  63. * state definition for EPOD (power domain)
  64. * - EPOD_STATE_NO_CHANGE: The EPOD should remain unchanged
  65. * - EPOD_STATE_OFF: The EPOD is switched off
  66. * - EPOD_STATE_RAMRET: The EPOD is switched off with its internal RAM in
  67. * retention
  68. * - EPOD_STATE_ON_CLK_OFF: The EPOD is switched on, clock is still off
  69. * - EPOD_STATE_ON: Same as above, but with clock enabled
  70. */
  71. #define EPOD_STATE_NO_CHANGE 0x00
  72. #define EPOD_STATE_OFF 0x01
  73. #define EPOD_STATE_RAMRET 0x02
  74. #define EPOD_STATE_ON_CLK_OFF 0x03
  75. #define EPOD_STATE_ON 0x04
  76. /*
  77. * CLKOUT sources
  78. */
  79. #define PRCMU_CLKSRC_CLK38M 0x00
  80. #define PRCMU_CLKSRC_ACLK 0x01
  81. #define PRCMU_CLKSRC_SYSCLK 0x02
  82. #define PRCMU_CLKSRC_LCDCLK 0x03
  83. #define PRCMU_CLKSRC_SDMMCCLK 0x04
  84. #define PRCMU_CLKSRC_TVCLK 0x05
  85. #define PRCMU_CLKSRC_TIMCLK 0x06
  86. #define PRCMU_CLKSRC_CLK009 0x07
  87. /* These are only valid for CLKOUT1: */
  88. #define PRCMU_CLKSRC_SIAMMDSPCLK 0x40
  89. #define PRCMU_CLKSRC_I2CCLK 0x41
  90. #define PRCMU_CLKSRC_MSP02CLK 0x42
  91. #define PRCMU_CLKSRC_ARMPLL_OBSCLK 0x43
  92. #define PRCMU_CLKSRC_HSIRXCLK 0x44
  93. #define PRCMU_CLKSRC_HSITXCLK 0x45
  94. #define PRCMU_CLKSRC_ARMCLKFIX 0x46
  95. #define PRCMU_CLKSRC_HDMICLK 0x47
  96. /*
  97. * Clock identifiers.
  98. */
  99. enum prcmu_clock {
  100. PRCMU_SGACLK,
  101. PRCMU_UARTCLK,
  102. PRCMU_MSP02CLK,
  103. PRCMU_MSP1CLK,
  104. PRCMU_I2CCLK,
  105. PRCMU_SDMMCCLK,
  106. PRCMU_SLIMCLK,
  107. PRCMU_PER1CLK,
  108. PRCMU_PER2CLK,
  109. PRCMU_PER3CLK,
  110. PRCMU_PER5CLK,
  111. PRCMU_PER6CLK,
  112. PRCMU_PER7CLK,
  113. PRCMU_LCDCLK,
  114. PRCMU_BMLCLK,
  115. PRCMU_HSITXCLK,
  116. PRCMU_HSIRXCLK,
  117. PRCMU_HDMICLK,
  118. PRCMU_APEATCLK,
  119. PRCMU_APETRACECLK,
  120. PRCMU_MCDECLK,
  121. PRCMU_IPI2CCLK,
  122. PRCMU_DSIALTCLK,
  123. PRCMU_DMACLK,
  124. PRCMU_B2R2CLK,
  125. PRCMU_TVCLK,
  126. PRCMU_SSPCLK,
  127. PRCMU_RNGCLK,
  128. PRCMU_UICCCLK,
  129. PRCMU_PWMCLK,
  130. PRCMU_IRDACLK,
  131. PRCMU_IRRCCLK,
  132. PRCMU_SIACLK,
  133. PRCMU_SVACLK,
  134. PRCMU_NUM_REG_CLOCKS,
  135. PRCMU_SYSCLK = PRCMU_NUM_REG_CLOCKS,
  136. PRCMU_TIMCLK,
  137. PRCMU_PLLSOC0,
  138. PRCMU_PLLSOC1,
  139. PRCMU_PLLDDR,
  140. };
  141. /**
  142. * enum ape_opp - APE OPP states definition
  143. * @APE_OPP_INIT:
  144. * @APE_NO_CHANGE: The APE operating point is unchanged
  145. * @APE_100_OPP: The new APE operating point is ape100opp
  146. * @APE_50_OPP: 50%
  147. */
  148. enum ape_opp {
  149. APE_OPP_INIT = 0x00,
  150. APE_NO_CHANGE = 0x01,
  151. APE_100_OPP = 0x02,
  152. APE_50_OPP = 0x03
  153. };
  154. /**
  155. * enum arm_opp - ARM OPP states definition
  156. * @ARM_OPP_INIT:
  157. * @ARM_NO_CHANGE: The ARM operating point is unchanged
  158. * @ARM_100_OPP: The new ARM operating point is arm100opp
  159. * @ARM_50_OPP: The new ARM operating point is arm50opp
  160. * @ARM_MAX_OPP: Operating point is "max" (more than 100)
  161. * @ARM_MAX_FREQ100OPP: Set max opp if available, else 100
  162. * @ARM_EXTCLK: The new ARM operating point is armExtClk
  163. */
  164. enum arm_opp {
  165. ARM_OPP_INIT = 0x00,
  166. ARM_NO_CHANGE = 0x01,
  167. ARM_100_OPP = 0x02,
  168. ARM_50_OPP = 0x03,
  169. ARM_MAX_OPP = 0x04,
  170. ARM_MAX_FREQ100OPP = 0x05,
  171. ARM_EXTCLK = 0x07
  172. };
  173. /**
  174. * enum ddr_opp - DDR OPP states definition
  175. * @DDR_100_OPP: The new DDR operating point is ddr100opp
  176. * @DDR_50_OPP: The new DDR operating point is ddr50opp
  177. * @DDR_25_OPP: The new DDR operating point is ddr25opp
  178. */
  179. enum ddr_opp {
  180. DDR_100_OPP = 0x00,
  181. DDR_50_OPP = 0x01,
  182. DDR_25_OPP = 0x02,
  183. };
  184. /*
  185. * Definitions for controlling ESRAM0 in deep sleep.
  186. */
  187. #define ESRAM0_DEEP_SLEEP_STATE_OFF 1
  188. #define ESRAM0_DEEP_SLEEP_STATE_RET 2
  189. /**
  190. * enum ddr_pwrst - DDR power states definition
  191. * @DDR_PWR_STATE_UNCHANGED: SDRAM and DDR controller state is unchanged
  192. * @DDR_PWR_STATE_ON:
  193. * @DDR_PWR_STATE_OFFLOWLAT:
  194. * @DDR_PWR_STATE_OFFHIGHLAT:
  195. */
  196. enum ddr_pwrst {
  197. DDR_PWR_STATE_UNCHANGED = 0x00,
  198. DDR_PWR_STATE_ON = 0x01,
  199. DDR_PWR_STATE_OFFLOWLAT = 0x02,
  200. DDR_PWR_STATE_OFFHIGHLAT = 0x03
  201. };
  202. #include <linux/mfd/db8500-prcmu.h>
  203. #include <linux/mfd/db5500-prcmu.h>
  204. #if defined(CONFIG_UX500_SOC_DB8500) || defined(CONFIG_UX500_SOC_DB5500)
  205. #include <mach/id.h>
  206. static inline void __init prcmu_early_init(void)
  207. {
  208. if (cpu_is_u5500())
  209. return db5500_prcmu_early_init();
  210. else
  211. return db8500_prcmu_early_init();
  212. }
  213. static inline int prcmu_set_power_state(u8 state, bool keep_ulp_clk,
  214. bool keep_ap_pll)
  215. {
  216. if (cpu_is_u5500())
  217. return db5500_prcmu_set_power_state(state, keep_ulp_clk,
  218. keep_ap_pll);
  219. else
  220. return db8500_prcmu_set_power_state(state, keep_ulp_clk,
  221. keep_ap_pll);
  222. }
  223. static inline int prcmu_set_epod(u16 epod_id, u8 epod_state)
  224. {
  225. if (cpu_is_u5500())
  226. return -EINVAL;
  227. else
  228. return db8500_prcmu_set_epod(epod_id, epod_state);
  229. }
  230. static inline void prcmu_enable_wakeups(u32 wakeups)
  231. {
  232. if (cpu_is_u5500())
  233. db5500_prcmu_enable_wakeups(wakeups);
  234. else
  235. db8500_prcmu_enable_wakeups(wakeups);
  236. }
  237. static inline void prcmu_disable_wakeups(void)
  238. {
  239. prcmu_enable_wakeups(0);
  240. }
  241. static inline void prcmu_config_abb_event_readout(u32 abb_events)
  242. {
  243. if (cpu_is_u5500())
  244. db5500_prcmu_config_abb_event_readout(abb_events);
  245. else
  246. db8500_prcmu_config_abb_event_readout(abb_events);
  247. }
  248. static inline void prcmu_get_abb_event_buffer(void __iomem **buf)
  249. {
  250. if (cpu_is_u5500())
  251. db5500_prcmu_get_abb_event_buffer(buf);
  252. else
  253. db8500_prcmu_get_abb_event_buffer(buf);
  254. }
  255. int prcmu_abb_read(u8 slave, u8 reg, u8 *value, u8 size);
  256. int prcmu_abb_write(u8 slave, u8 reg, u8 *value, u8 size);
  257. int prcmu_config_clkout(u8 clkout, u8 source, u8 div);
  258. static inline int prcmu_request_clock(u8 clock, bool enable)
  259. {
  260. if (cpu_is_u5500())
  261. return db5500_prcmu_request_clock(clock, enable);
  262. else
  263. return db8500_prcmu_request_clock(clock, enable);
  264. }
  265. unsigned long prcmu_clock_rate(u8 clock);
  266. long prcmu_round_clock_rate(u8 clock, unsigned long rate);
  267. int prcmu_set_clock_rate(u8 clock, unsigned long rate);
  268. static inline int prcmu_set_ddr_opp(u8 opp)
  269. {
  270. if (cpu_is_u5500())
  271. return -EINVAL;
  272. else
  273. return db8500_prcmu_set_ddr_opp(opp);
  274. }
  275. static inline int prcmu_get_ddr_opp(void)
  276. {
  277. if (cpu_is_u5500())
  278. return -EINVAL;
  279. else
  280. return db8500_prcmu_get_ddr_opp();
  281. }
  282. static inline int prcmu_set_arm_opp(u8 opp)
  283. {
  284. if (cpu_is_u5500())
  285. return -EINVAL;
  286. else
  287. return db8500_prcmu_set_arm_opp(opp);
  288. }
  289. static inline int prcmu_get_arm_opp(void)
  290. {
  291. if (cpu_is_u5500())
  292. return -EINVAL;
  293. else
  294. return db8500_prcmu_get_arm_opp();
  295. }
  296. static inline int prcmu_set_ape_opp(u8 opp)
  297. {
  298. if (cpu_is_u5500())
  299. return -EINVAL;
  300. else
  301. return db8500_prcmu_set_ape_opp(opp);
  302. }
  303. static inline int prcmu_get_ape_opp(void)
  304. {
  305. if (cpu_is_u5500())
  306. return -EINVAL;
  307. else
  308. return db8500_prcmu_get_ape_opp();
  309. }
  310. static inline void prcmu_system_reset(u16 reset_code)
  311. {
  312. if (cpu_is_u5500())
  313. return db5500_prcmu_system_reset(reset_code);
  314. else
  315. return db8500_prcmu_system_reset(reset_code);
  316. }
  317. static inline u16 prcmu_get_reset_code(void)
  318. {
  319. if (cpu_is_u5500())
  320. return db5500_prcmu_get_reset_code();
  321. else
  322. return db8500_prcmu_get_reset_code();
  323. }
  324. void prcmu_ac_wake_req(void);
  325. void prcmu_ac_sleep_req(void);
  326. static inline void prcmu_modem_reset(void)
  327. {
  328. if (cpu_is_u5500())
  329. return;
  330. else
  331. return db8500_prcmu_modem_reset();
  332. }
  333. static inline bool prcmu_is_ac_wake_requested(void)
  334. {
  335. if (cpu_is_u5500())
  336. return db5500_prcmu_is_ac_wake_requested();
  337. else
  338. return db8500_prcmu_is_ac_wake_requested();
  339. }
  340. static inline int prcmu_set_display_clocks(void)
  341. {
  342. if (cpu_is_u5500())
  343. return db5500_prcmu_set_display_clocks();
  344. else
  345. return db8500_prcmu_set_display_clocks();
  346. }
  347. static inline int prcmu_disable_dsipll(void)
  348. {
  349. if (cpu_is_u5500())
  350. return db5500_prcmu_disable_dsipll();
  351. else
  352. return db8500_prcmu_disable_dsipll();
  353. }
  354. static inline int prcmu_enable_dsipll(void)
  355. {
  356. if (cpu_is_u5500())
  357. return db5500_prcmu_enable_dsipll();
  358. else
  359. return db8500_prcmu_enable_dsipll();
  360. }
  361. static inline int prcmu_config_esram0_deep_sleep(u8 state)
  362. {
  363. if (cpu_is_u5500())
  364. return -EINVAL;
  365. else
  366. return db8500_prcmu_config_esram0_deep_sleep(state);
  367. }
  368. static inline int prcmu_config_hotdog(u8 threshold)
  369. {
  370. if (cpu_is_u5500())
  371. return -EINVAL;
  372. else
  373. return db8500_prcmu_config_hotdog(threshold);
  374. }
  375. static inline int prcmu_config_hotmon(u8 low, u8 high)
  376. {
  377. if (cpu_is_u5500())
  378. return -EINVAL;
  379. else
  380. return db8500_prcmu_config_hotmon(low, high);
  381. }
  382. static inline int prcmu_start_temp_sense(u16 cycles32k)
  383. {
  384. if (cpu_is_u5500())
  385. return -EINVAL;
  386. else
  387. return db8500_prcmu_start_temp_sense(cycles32k);
  388. }
  389. static inline int prcmu_stop_temp_sense(void)
  390. {
  391. if (cpu_is_u5500())
  392. return -EINVAL;
  393. else
  394. return db8500_prcmu_stop_temp_sense();
  395. }
  396. static inline int prcmu_enable_a9wdog(u8 id)
  397. {
  398. if (cpu_is_u5500())
  399. return -EINVAL;
  400. else
  401. return db8500_prcmu_enable_a9wdog(id);
  402. }
  403. static inline int prcmu_disable_a9wdog(u8 id)
  404. {
  405. if (cpu_is_u5500())
  406. return -EINVAL;
  407. else
  408. return db8500_prcmu_disable_a9wdog(id);
  409. }
  410. static inline int prcmu_kick_a9wdog(u8 id)
  411. {
  412. if (cpu_is_u5500())
  413. return -EINVAL;
  414. else
  415. return db8500_prcmu_kick_a9wdog(id);
  416. }
  417. static inline int prcmu_load_a9wdog(u8 id, u32 timeout)
  418. {
  419. if (cpu_is_u5500())
  420. return -EINVAL;
  421. else
  422. return db8500_prcmu_load_a9wdog(id, timeout);
  423. }
  424. static inline int prcmu_config_a9wdog(u8 num, bool sleep_auto_off)
  425. {
  426. if (cpu_is_u5500())
  427. return -EINVAL;
  428. else
  429. return db8500_prcmu_config_a9wdog(num, sleep_auto_off);
  430. }
  431. #else
  432. static inline void __init prcmu_early_init(void) {}
  433. static inline int prcmu_set_power_state(u8 state, bool keep_ulp_clk,
  434. bool keep_ap_pll)
  435. {
  436. return 0;
  437. }
  438. static inline int prcmu_set_epod(u16 epod_id, u8 epod_state)
  439. {
  440. return 0;
  441. }
  442. static inline void prcmu_enable_wakeups(u32 wakeups) {}
  443. static inline void prcmu_disable_wakeups(void) {}
  444. static inline int prcmu_abb_read(u8 slave, u8 reg, u8 *value, u8 size)
  445. {
  446. return -ENOSYS;
  447. }
  448. static inline int prcmu_abb_write(u8 slave, u8 reg, u8 *value, u8 size)
  449. {
  450. return -ENOSYS;
  451. }
  452. static inline int prcmu_config_clkout(u8 clkout, u8 source, u8 div)
  453. {
  454. return 0;
  455. }
  456. static inline int prcmu_request_clock(u8 clock, bool enable)
  457. {
  458. return 0;
  459. }
  460. static inline int prcmu_set_ape_opp(u8 opp)
  461. {
  462. return 0;
  463. }
  464. static inline int prcmu_get_ape_opp(void)
  465. {
  466. return APE_100_OPP;
  467. }
  468. static inline int prcmu_set_arm_opp(u8 opp)
  469. {
  470. return 0;
  471. }
  472. static inline int prcmu_get_arm_opp(void)
  473. {
  474. return ARM_100_OPP;
  475. }
  476. static inline int prcmu_set_ddr_opp(u8 opp)
  477. {
  478. return 0;
  479. }
  480. static inline int prcmu_get_ddr_opp(void)
  481. {
  482. return DDR_100_OPP;
  483. }
  484. static inline void prcmu_system_reset(u16 reset_code) {}
  485. static inline u16 prcmu_get_reset_code(void)
  486. {
  487. return 0;
  488. }
  489. static inline void prcmu_ac_wake_req(void) {}
  490. static inline void prcmu_ac_sleep_req(void) {}
  491. static inline void prcmu_modem_reset(void) {}
  492. static inline bool prcmu_is_ac_wake_requested(void)
  493. {
  494. return false;
  495. }
  496. static inline int prcmu_set_display_clocks(void)
  497. {
  498. return 0;
  499. }
  500. static inline int prcmu_disable_dsipll(void)
  501. {
  502. return 0;
  503. }
  504. static inline int prcmu_enable_dsipll(void)
  505. {
  506. return 0;
  507. }
  508. static inline int prcmu_config_esram0_deep_sleep(u8 state)
  509. {
  510. return 0;
  511. }
  512. static inline void prcmu_config_abb_event_readout(u32 abb_events) {}
  513. static inline void prcmu_get_abb_event_buffer(void __iomem **buf)
  514. {
  515. *buf = NULL;
  516. }
  517. static inline int prcmu_config_hotdog(u8 threshold)
  518. {
  519. return 0;
  520. }
  521. static inline int prcmu_config_hotmon(u8 low, u8 high)
  522. {
  523. return 0;
  524. }
  525. static inline int prcmu_start_temp_sense(u16 cycles32k)
  526. {
  527. return 0;
  528. }
  529. static inline int prcmu_stop_temp_sense(void)
  530. {
  531. return 0;
  532. }
  533. #endif
  534. /* PRCMU QoS APE OPP class */
  535. #define PRCMU_QOS_APE_OPP 1
  536. #define PRCMU_QOS_DDR_OPP 2
  537. #define PRCMU_QOS_DEFAULT_VALUE -1
  538. #ifdef CONFIG_UX500_PRCMU_QOS_POWER
  539. unsigned long prcmu_qos_get_cpufreq_opp_delay(void);
  540. void prcmu_qos_set_cpufreq_opp_delay(unsigned long);
  541. void prcmu_qos_force_opp(int, s32);
  542. int prcmu_qos_requirement(int pm_qos_class);
  543. int prcmu_qos_add_requirement(int pm_qos_class, char *name, s32 value);
  544. int prcmu_qos_update_requirement(int pm_qos_class, char *name, s32 new_value);
  545. void prcmu_qos_remove_requirement(int pm_qos_class, char *name);
  546. int prcmu_qos_add_notifier(int prcmu_qos_class,
  547. struct notifier_block *notifier);
  548. int prcmu_qos_remove_notifier(int prcmu_qos_class,
  549. struct notifier_block *notifier);
  550. #else
  551. static inline unsigned long prcmu_qos_get_cpufreq_opp_delay(void)
  552. {
  553. return 0;
  554. }
  555. static inline void prcmu_qos_set_cpufreq_opp_delay(unsigned long n) {}
  556. static inline void prcmu_qos_force_opp(int prcmu_qos_class, s32 i) {}
  557. static inline int prcmu_qos_requirement(int prcmu_qos_class)
  558. {
  559. return 0;
  560. }
  561. static inline int prcmu_qos_add_requirement(int prcmu_qos_class,
  562. char *name, s32 value)
  563. {
  564. return 0;
  565. }
  566. static inline int prcmu_qos_update_requirement(int prcmu_qos_class,
  567. char *name, s32 new_value)
  568. {
  569. return 0;
  570. }
  571. static inline void prcmu_qos_remove_requirement(int prcmu_qos_class, char *name)
  572. {
  573. }
  574. static inline int prcmu_qos_add_notifier(int prcmu_qos_class,
  575. struct notifier_block *notifier)
  576. {
  577. return 0;
  578. }
  579. static inline int prcmu_qos_remove_notifier(int prcmu_qos_class,
  580. struct notifier_block *notifier)
  581. {
  582. return 0;
  583. }
  584. #endif
  585. #endif /* __MACH_PRCMU_H */