blob: 7374c890434633798ca53f24e20aa0311b7c8903 [file] [log] [blame]
Thomas Gleixnerd2912cb2019-06-04 10:11:33 +02001// SPDX-License-Identifier: GPL-2.0-only
Paul Walmsley6e014782010-12-21 20:01:20 -07002/*
3 * OMAP2/3 common powerdomain definitions
4 *
Paul Walmsley81794882011-09-14 11:34:21 -06005 * Copyright (C) 2007-2008, 2011 Texas Instruments, Inc.
Paul Walmsleycad7a342011-03-07 19:28:15 -07006 * Copyright (C) 2007-2011 Nokia Corporation
Paul Walmsley6e014782010-12-21 20:01:20 -07007 *
8 * Paul Walmsley, Jouni Högander
Paul Walmsley6e014782010-12-21 20:01:20 -07009 */
10
11/*
Paul Walmsley6e014782010-12-21 20:01:20 -070012 * The names for the DSP/IVA2 powerdomains are confusing.
13 *
14 * Most OMAP chips have an on-board DSP.
15 *
16 * On the 2420, this is a 'C55 DSP called, simply, the DSP. Its
17 * powerdomain is called the "DSP power domain." On the 2430, the
18 * on-board DSP is a 'C64 DSP, now called (along with its hardware
19 * accelerators) the IVA2 or IVA2.1. Its powerdomain is still called
20 * the "DSP power domain." On the 3430, the DSP is a 'C64 DSP like the
21 * 2430, also known as the IVA2; but its powerdomain is now called the
22 * "IVA2 power domain."
23 *
24 * The 2420 also has something called the IVA, which is a separate ARM
25 * core, and has nothing to do with the DSP/IVA2.
26 *
27 * Ideally the DSP/IVA2 could just be the same powerdomain, but the PRCM
28 * address offset is different between the C55 and C64 DSPs.
29 */
30
Paul Walmsley72e06d02010-12-21 21:05:16 -070031#include "powerdomain.h"
Paul Walmsley6e014782010-12-21 20:01:20 -070032
33#include "prcm-common.h"
34#include "prm.h"
35
Paul Walmsley6e014782010-12-21 20:01:20 -070036/* OMAP2/3-common powerdomains */
37
38/*
39 * The GFX powerdomain is not present on 3430ES2, but currently we do not
40 * have a macro to filter it out at compile-time.
41 */
42struct powerdomain gfx_omap2_pwrdm = {
43 .name = "gfx_pwrdm",
44 .prcm_offs = GFX_MOD,
Paul Walmsley6e014782010-12-21 20:01:20 -070045 .pwrsts = PWRSTS_OFF_RET_ON,
Paul Walmsley4cb49fe2011-03-07 19:28:15 -070046 .pwrsts_logic_ret = PWRSTS_RET,
Paul Walmsley6e014782010-12-21 20:01:20 -070047 .banks = 1,
48 .pwrsts_mem_ret = {
Paul Walmsley4cb49fe2011-03-07 19:28:15 -070049 [0] = PWRSTS_RET, /* MEMRETSTATE */
Paul Walmsley6e014782010-12-21 20:01:20 -070050 },
51 .pwrsts_mem_on = {
Paul Walmsley4cb49fe2011-03-07 19:28:15 -070052 [0] = PWRSTS_ON, /* MEMONSTATE */
Paul Walmsley6e014782010-12-21 20:01:20 -070053 },
Paul Walmsley562e54d2013-01-26 00:58:17 -070054 .voltdm = { .name = "core" },
Paul Walmsley6e014782010-12-21 20:01:20 -070055};
56
57struct powerdomain wkup_omap2_pwrdm = {
58 .name = "wkup_pwrdm",
59 .prcm_offs = WKUP_MOD,
Paul Walmsleycad7a342011-03-07 19:28:15 -070060 .pwrsts = PWRSTS_ON,
Paul Walmsley562e54d2013-01-26 00:58:17 -070061 .voltdm = { .name = "wakeup" },
Paul Walmsley6e014782010-12-21 20:01:20 -070062};