summaryrefslogtreecommitdiffstats
path: root/drivers/firmware
diff options
context:
space:
mode:
authorAisheng Dong <aisheng.dong@nxp.com>2019-02-20 14:38:27 +0000
committerShawn Guo <shawnguo@kernel.org>2019-03-19 21:57:45 +0800
commit9d616d62faefd573f6eaf687f6c83a872708afcf (patch)
tree7723dc6e08df6970decf8e16048575ebf648b42d /drivers/firmware
parent8217a7a2c76259ff1f2623b60c3bcede052cdb49 (diff)
downloadblackbird-op-linux-9d616d62faefd573f6eaf687f6c83a872708afcf.tar.gz
blackbird-op-linux-9d616d62faefd573f6eaf687f6c83a872708afcf.zip
firmware: imx: scu-pd: use bool to set postfix
Using bool instead 0/1 to indicate whether adding a postfix for domain names which can improve the code readability and less confusing. Cc: Ulf Hansson <ulf.hansson@linaro.org> Cc: Shawn Guo <shawnguo@kernel.org> Cc: Sascha Hauer <kernel@pengutronix.de> Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net> Cc: Kevin Hilman <khilman@kernel.org> Cc: linux-pm@vger.kernel.org Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com> Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Diffstat (limited to 'drivers/firmware')
-rw-r--r--drivers/firmware/imx/scu-pd.c102
1 files changed, 51 insertions, 51 deletions
diff --git a/drivers/firmware/imx/scu-pd.c b/drivers/firmware/imx/scu-pd.c
index 39a94c7177fc..e7802ec591c2 100644
--- a/drivers/firmware/imx/scu-pd.c
+++ b/drivers/firmware/imx/scu-pd.c
@@ -84,71 +84,71 @@ struct imx_sc_pd_soc {
static const struct imx_sc_pd_range imx8qxp_scu_pd_ranges[] = {
/* LSIO SS */
- { "lsio-pwm", IMX_SC_R_PWM_0, 8, 1 },
- { "lsio-gpio", IMX_SC_R_GPIO_0, 8, 1 },
- { "lsio-gpt", IMX_SC_R_GPT_0, 5, 1 },
- { "lsio-kpp", IMX_SC_R_KPP, 1, 0 },
- { "lsio-fspi", IMX_SC_R_FSPI_0, 2, 1 },
- { "lsio-mu", IMX_SC_R_MU_0A, 14, 1 },
+ { "lsio-pwm", IMX_SC_R_PWM_0, 8, true },
+ { "lsio-gpio", IMX_SC_R_GPIO_0, 8, true },
+ { "lsio-gpt", IMX_SC_R_GPT_0, 5, true },
+ { "lsio-kpp", IMX_SC_R_KPP, 1, false },
+ { "lsio-fspi", IMX_SC_R_FSPI_0, 2, true },
+ { "lsio-mu", IMX_SC_R_MU_0A, 14, true },
/* CONN SS */
- { "con-usb", IMX_SC_R_USB_0, 2, 1 },
- { "con-usb0phy", IMX_SC_R_USB_0_PHY, 1, 0 },
- { "con-usb2", IMX_SC_R_USB_2, 1, 0 },
- { "con-usb2phy", IMX_SC_R_USB_2_PHY, 1, 0 },
- { "con-sdhc", IMX_SC_R_SDHC_0, 3, 1 },
- { "con-enet", IMX_SC_R_ENET_0, 2, 1 },
- { "con-nand", IMX_SC_R_NAND, 1, 0 },
- { "con-mlb", IMX_SC_R_MLB_0, 1, 1 },
+ { "con-usb", IMX_SC_R_USB_0, 2, true },
+ { "con-usb0phy", IMX_SC_R_USB_0_PHY, 1, false },
+ { "con-usb2", IMX_SC_R_USB_2, 1, false },
+ { "con-usb2phy", IMX_SC_R_USB_2_PHY, 1, false },
+ { "con-sdhc", IMX_SC_R_SDHC_0, 3, true },
+ { "con-enet", IMX_SC_R_ENET_0, 2, true },
+ { "con-nand", IMX_SC_R_NAND, 1, false },
+ { "con-mlb", IMX_SC_R_MLB_0, 1, true },
/* Audio DMA SS */
- { "adma-audio-pll0", IMX_SC_R_AUDIO_PLL_0, 1, 0 },
- { "adma-audio-pll1", IMX_SC_R_AUDIO_PLL_1, 1, 0 },
- { "adma-audio-clk-0", IMX_SC_R_AUDIO_CLK_0, 1, 0 },
- { "adma-dma0-ch", IMX_SC_R_DMA_0_CH0, 16, 1 },
- { "adma-dma1-ch", IMX_SC_R_DMA_1_CH0, 16, 1 },
- { "adma-dma2-ch", IMX_SC_R_DMA_2_CH0, 5, 1 },
- { "adma-asrc0", IMX_SC_R_ASRC_0, 1, 0 },
- { "adma-asrc1", IMX_SC_R_ASRC_1, 1, 0 },
- { "adma-esai0", IMX_SC_R_ESAI_0, 1, 0 },
- { "adma-spdif0", IMX_SC_R_SPDIF_0, 1, 0 },
- { "adma-sai", IMX_SC_R_SAI_0, 3, 1 },
- { "adma-amix", IMX_SC_R_AMIX, 1, 0 },
- { "adma-mqs0", IMX_SC_R_MQS_0, 1, 0 },
- { "adma-dsp", IMX_SC_R_DSP, 1, 0 },
- { "adma-dsp-ram", IMX_SC_R_DSP_RAM, 1, 0 },
- { "adma-can", IMX_SC_R_CAN_0, 3, 1 },
- { "adma-ftm", IMX_SC_R_FTM_0, 2, 1 },
- { "adma-lpi2c", IMX_SC_R_I2C_0, 4, 1 },
- { "adma-adc", IMX_SC_R_ADC_0, 1, 1 },
- { "adma-lcd", IMX_SC_R_LCD_0, 1, 1 },
- { "adma-lcd0-pwm", IMX_SC_R_LCD_0_PWM_0, 1, 1 },
- { "adma-lpuart", IMX_SC_R_UART_0, 4, 1 },
- { "adma-lpspi", IMX_SC_R_SPI_0, 4, 1 },
+ { "adma-audio-pll0", IMX_SC_R_AUDIO_PLL_0, 1, false },
+ { "adma-audio-pll1", IMX_SC_R_AUDIO_PLL_1, 1, false },
+ { "adma-audio-clk-0", IMX_SC_R_AUDIO_CLK_0, 1, false },
+ { "adma-dma0-ch", IMX_SC_R_DMA_0_CH0, 16, true },
+ { "adma-dma1-ch", IMX_SC_R_DMA_1_CH0, 16, true },
+ { "adma-dma2-ch", IMX_SC_R_DMA_2_CH0, 5, true },
+ { "adma-asrc0", IMX_SC_R_ASRC_0, 1, false },
+ { "adma-asrc1", IMX_SC_R_ASRC_1, 1, false },
+ { "adma-esai0", IMX_SC_R_ESAI_0, 1, false },
+ { "adma-spdif0", IMX_SC_R_SPDIF_0, 1, false },
+ { "adma-sai", IMX_SC_R_SAI_0, 3, true },
+ { "adma-amix", IMX_SC_R_AMIX, 1, false },
+ { "adma-mqs0", IMX_SC_R_MQS_0, 1, false },
+ { "adma-dsp", IMX_SC_R_DSP, 1, false },
+ { "adma-dsp-ram", IMX_SC_R_DSP_RAM, 1, false },
+ { "adma-can", IMX_SC_R_CAN_0, 3, true },
+ { "adma-ftm", IMX_SC_R_FTM_0, 2, true },
+ { "adma-lpi2c", IMX_SC_R_I2C_0, 4, true },
+ { "adma-adc", IMX_SC_R_ADC_0, 1, true },
+ { "adma-lcd", IMX_SC_R_LCD_0, 1, true },
+ { "adma-lcd0-pwm", IMX_SC_R_LCD_0_PWM_0, 1, true },
+ { "adma-lpuart", IMX_SC_R_UART_0, 4, true },
+ { "adma-lpspi", IMX_SC_R_SPI_0, 4, true },
/* VPU SS */
- { "vpu", IMX_SC_R_VPU, 1, 0 },
- { "vpu-pid", IMX_SC_R_VPU_PID0, 8, 1 },
- { "vpu-dec0", IMX_SC_R_VPU_DEC_0, 1, 0 },
- { "vpu-enc0", IMX_SC_R_VPU_ENC_0, 1, 0 },
+ { "vpu", IMX_SC_R_VPU, 1, false },
+ { "vpu-pid", IMX_SC_R_VPU_PID0, 8, true },
+ { "vpu-dec0", IMX_SC_R_VPU_DEC_0, 1, false },
+ { "vpu-enc0", IMX_SC_R_VPU_ENC_0, 1, false },
/* GPU SS */
- { "gpu0-pid", IMX_SC_R_GPU_0_PID0, 4, 1 },
+ { "gpu0-pid", IMX_SC_R_GPU_0_PID0, 4, true },
/* HSIO SS */
- { "hsio-pcie-b", IMX_SC_R_PCIE_B, 1, 0 },
- { "hsio-serdes-1", IMX_SC_R_SERDES_1, 1, 0 },
- { "hsio-gpio", IMX_SC_R_HSIO_GPIO, 1, 0 },
+ { "hsio-pcie-b", IMX_SC_R_PCIE_B, 1, false },
+ { "hsio-serdes-1", IMX_SC_R_SERDES_1, 1, false },
+ { "hsio-gpio", IMX_SC_R_HSIO_GPIO, 1, false },
/* MIPI/LVDS SS */
- { "mipi0", IMX_SC_R_MIPI_0, 1, 0 },
- { "mipi0-pwm0", IMX_SC_R_MIPI_0_PWM_0, 1, 0 },
- { "mipi0-i2c", IMX_SC_R_MIPI_0_I2C_0, 2, 1 },
- { "lvds0", IMX_SC_R_LVDS_0, 1, 0 },
+ { "mipi0", IMX_SC_R_MIPI_0, 1, false },
+ { "mipi0-pwm0", IMX_SC_R_MIPI_0_PWM_0, 1, false },
+ { "mipi0-i2c", IMX_SC_R_MIPI_0_I2C_0, 2, true },
+ { "lvds0", IMX_SC_R_LVDS_0, 1, false },
/* DC SS */
- { "dc0", IMX_SC_R_DC_0, 1, 0 },
- { "dc0-pll", IMX_SC_R_DC_0_PLL_0, 2, 1 },
+ { "dc0", IMX_SC_R_DC_0, 1, false },
+ { "dc0-pll", IMX_SC_R_DC_0_PLL_0, 2, true },
};
static const struct imx_sc_pd_soc imx8qxp_scu_pd = {
OpenPOWER on IntegriCloud