1*4882a593Smuzhiyun // SPDX-License-Identifier: GPL-2.0-only 2*4882a593Smuzhiyun /* 3*4882a593Smuzhiyun * OMAP2/3 common powerdomain definitions 4*4882a593Smuzhiyun * 5*4882a593Smuzhiyun * Copyright (C) 2007-2008, 2011 Texas Instruments, Inc. 6*4882a593Smuzhiyun * Copyright (C) 2007-2011 Nokia Corporation 7*4882a593Smuzhiyun * 8*4882a593Smuzhiyun * Paul Walmsley, Jouni Högander 9*4882a593Smuzhiyun */ 10*4882a593Smuzhiyun 11*4882a593Smuzhiyun /* 12*4882a593Smuzhiyun * The names for the DSP/IVA2 powerdomains are confusing. 13*4882a593Smuzhiyun * 14*4882a593Smuzhiyun * Most OMAP chips have an on-board DSP. 15*4882a593Smuzhiyun * 16*4882a593Smuzhiyun * On the 2420, this is a 'C55 DSP called, simply, the DSP. Its 17*4882a593Smuzhiyun * powerdomain is called the "DSP power domain." On the 2430, the 18*4882a593Smuzhiyun * on-board DSP is a 'C64 DSP, now called (along with its hardware 19*4882a593Smuzhiyun * accelerators) the IVA2 or IVA2.1. Its powerdomain is still called 20*4882a593Smuzhiyun * the "DSP power domain." On the 3430, the DSP is a 'C64 DSP like the 21*4882a593Smuzhiyun * 2430, also known as the IVA2; but its powerdomain is now called the 22*4882a593Smuzhiyun * "IVA2 power domain." 23*4882a593Smuzhiyun * 24*4882a593Smuzhiyun * The 2420 also has something called the IVA, which is a separate ARM 25*4882a593Smuzhiyun * core, and has nothing to do with the DSP/IVA2. 26*4882a593Smuzhiyun * 27*4882a593Smuzhiyun * Ideally the DSP/IVA2 could just be the same powerdomain, but the PRCM 28*4882a593Smuzhiyun * address offset is different between the C55 and C64 DSPs. 29*4882a593Smuzhiyun */ 30*4882a593Smuzhiyun 31*4882a593Smuzhiyun #include "powerdomain.h" 32*4882a593Smuzhiyun 33*4882a593Smuzhiyun #include "prcm-common.h" 34*4882a593Smuzhiyun #include "prm.h" 35*4882a593Smuzhiyun 36*4882a593Smuzhiyun /* OMAP2/3-common powerdomains */ 37*4882a593Smuzhiyun 38*4882a593Smuzhiyun /* 39*4882a593Smuzhiyun * The GFX powerdomain is not present on 3430ES2, but currently we do not 40*4882a593Smuzhiyun * have a macro to filter it out at compile-time. 41*4882a593Smuzhiyun */ 42*4882a593Smuzhiyun struct powerdomain gfx_omap2_pwrdm = { 43*4882a593Smuzhiyun .name = "gfx_pwrdm", 44*4882a593Smuzhiyun .prcm_offs = GFX_MOD, 45*4882a593Smuzhiyun .pwrsts = PWRSTS_OFF_RET_ON, 46*4882a593Smuzhiyun .pwrsts_logic_ret = PWRSTS_RET, 47*4882a593Smuzhiyun .banks = 1, 48*4882a593Smuzhiyun .pwrsts_mem_ret = { 49*4882a593Smuzhiyun [0] = PWRSTS_RET, /* MEMRETSTATE */ 50*4882a593Smuzhiyun }, 51*4882a593Smuzhiyun .pwrsts_mem_on = { 52*4882a593Smuzhiyun [0] = PWRSTS_ON, /* MEMONSTATE */ 53*4882a593Smuzhiyun }, 54*4882a593Smuzhiyun .voltdm = { .name = "core" }, 55*4882a593Smuzhiyun }; 56*4882a593Smuzhiyun 57*4882a593Smuzhiyun struct powerdomain wkup_omap2_pwrdm = { 58*4882a593Smuzhiyun .name = "wkup_pwrdm", 59*4882a593Smuzhiyun .prcm_offs = WKUP_MOD, 60*4882a593Smuzhiyun .pwrsts = PWRSTS_ON, 61*4882a593Smuzhiyun .voltdm = { .name = "wakeup" }, 62*4882a593Smuzhiyun }; 63