| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright (C) ST Ericsson SA 2011 |
|---|
| 3 | | - * |
|---|
| 4 | | - * License Terms: GNU General Public License v2 |
|---|
| 5 | 4 | * |
|---|
| 6 | 5 | * STE Ux500 PRCMU API |
|---|
| 7 | 6 | */ |
|---|
| .. | .. |
|---|
| 191 | 190 | #define PRCMU_FW_PROJECT_U8500_MBL2 12 /* Customer specific */ |
|---|
| 192 | 191 | #define PRCMU_FW_PROJECT_U8520 13 |
|---|
| 193 | 192 | #define PRCMU_FW_PROJECT_U8420 14 |
|---|
| 193 | +#define PRCMU_FW_PROJECT_U8420_SYSCLK 17 |
|---|
| 194 | 194 | #define PRCMU_FW_PROJECT_A9420 20 |
|---|
| 195 | 195 | /* [32..63] 9540 and derivatives */ |
|---|
| 196 | 196 | #define PRCMU_FW_PROJECT_U9540 32 |
|---|
| .. | .. |
|---|
| 212 | 212 | |
|---|
| 213 | 213 | #if defined(CONFIG_UX500_SOC_DB8500) |
|---|
| 214 | 214 | |
|---|
| 215 | | -static inline void prcmu_early_init(u32 phy_base, u32 size) |
|---|
| 215 | +static inline void prcmu_early_init(void) |
|---|
| 216 | 216 | { |
|---|
| 217 | | - return db8500_prcmu_early_init(phy_base, size); |
|---|
| 217 | + return db8500_prcmu_early_init(); |
|---|
| 218 | 218 | } |
|---|
| 219 | 219 | |
|---|
| 220 | 220 | static inline int prcmu_set_power_state(u8 state, bool keep_ulp_clk, |
|---|
| .. | .. |
|---|
| 321 | 321 | return db8500_prcmu_is_ac_wake_requested(); |
|---|
| 322 | 322 | } |
|---|
| 323 | 323 | |
|---|
| 324 | | -static inline int prcmu_set_display_clocks(void) |
|---|
| 325 | | -{ |
|---|
| 326 | | - return db8500_prcmu_set_display_clocks(); |
|---|
| 327 | | -} |
|---|
| 328 | | - |
|---|
| 329 | | -static inline int prcmu_disable_dsipll(void) |
|---|
| 330 | | -{ |
|---|
| 331 | | - return db8500_prcmu_disable_dsipll(); |
|---|
| 332 | | -} |
|---|
| 333 | | - |
|---|
| 334 | | -static inline int prcmu_enable_dsipll(void) |
|---|
| 335 | | -{ |
|---|
| 336 | | - return db8500_prcmu_enable_dsipll(); |
|---|
| 337 | | -} |
|---|
| 338 | | - |
|---|
| 339 | 324 | static inline int prcmu_config_esram0_deep_sleep(u8 state) |
|---|
| 340 | 325 | { |
|---|
| 341 | 326 | return db8500_prcmu_config_esram0_deep_sleep(state); |
|---|
| .. | .. |
|---|
| 402 | 387 | } |
|---|
| 403 | 388 | #else |
|---|
| 404 | 389 | |
|---|
| 405 | | -static inline void prcmu_early_init(u32 phy_base, u32 size) {} |
|---|
| 390 | +static inline void prcmu_early_init(void) {} |
|---|
| 406 | 391 | |
|---|
| 407 | 392 | static inline int prcmu_set_power_state(u8 state, bool keep_ulp_clk, |
|---|
| 408 | 393 | bool keep_ap_pll) |
|---|
| .. | .. |
|---|
| 509 | 494 | static inline bool prcmu_is_ac_wake_requested(void) |
|---|
| 510 | 495 | { |
|---|
| 511 | 496 | return false; |
|---|
| 512 | | -} |
|---|
| 513 | | - |
|---|
| 514 | | -static inline int prcmu_set_display_clocks(void) |
|---|
| 515 | | -{ |
|---|
| 516 | | - return 0; |
|---|
| 517 | | -} |
|---|
| 518 | | - |
|---|
| 519 | | -static inline int prcmu_disable_dsipll(void) |
|---|
| 520 | | -{ |
|---|
| 521 | | - return 0; |
|---|
| 522 | | -} |
|---|
| 523 | | - |
|---|
| 524 | | -static inline int prcmu_enable_dsipll(void) |
|---|
| 525 | | -{ |
|---|
| 526 | | - return 0; |
|---|
| 527 | 497 | } |
|---|
| 528 | 498 | |
|---|
| 529 | 499 | static inline int prcmu_config_esram0_deep_sleep(u8 state) |
|---|