Commit 90c97429 authored by Ye Li's avatar Ye Li Committed by Jason Liu
Browse files

MLK-16002 iMX8QM/QXP: Modify coding style for android tool chain



The android tool chain forces to use C89 standard, and give a build
warning:

board/freescale/imx8qxp_arm2/imx8qxp_arm2.c:635:2: error: 'for' loop
initial declarations are only allowed in C99 or C11 mode
  for (int i = 0; i < 8; i++)
  ^
Signed-off-by: default avatarYe Li <ye.li@nxp.com>
parent c3ede2d5
......@@ -715,8 +715,9 @@ void board_quiesce_devices()
sc_pm_set_resource_power_mode(ipcHndl, SC_R_SATA_0, SC_PM_PW_MODE_OFF);
#endif
#ifdef CONFIG_MXC_GPIO
/* Power up all GPIOs */
for (int i = 0; i < 8; i++)
/* Power up all GPIOs */
int i;
for (i = 0; i < 8; i++)
sc_pm_set_resource_power_mode(ipcHndl, SC_R_GPIO_0 + i, SC_PM_PW_MODE_OFF);
#endif
#ifdef CONFIG_FSL_FSPI
......
......@@ -631,8 +631,9 @@ void board_quiesce_devices()
sc_pm_set_resource_power_mode(ipcHndl, SC_R_SERDES_1, SC_PM_PW_MODE_OFF);
#endif
#ifdef CONFIG_MXC_GPIO
/* Power up all GPIOs */
for (int i = 0; i < 8; i++)
/* Power up all GPIOs */
int i;
for (i = 0; i < 8; i++)
sc_pm_set_resource_power_mode(ipcHndl, SC_R_GPIO_0 + i, SC_PM_PW_MODE_OFF);
#endif
#ifdef CONFIG_FSL_FSPI
......@@ -647,9 +648,8 @@ void board_quiesce_devices()
sc_pm_set_resource_power_mode(ipcHndl, SC_R_SDHC_1, SC_PM_PW_MODE_OFF);
#endif
#ifdef CONFIG_USB_EHCI_MX6
sc_pm_set_resource_power_mode(ipcHndl, SC_R_USB_0, SC_PM_PW_MODE_OFF);
sc_pm_set_resource_power_mode(ipcHndl, SC_R_USB_0_PHY, SC_PM_PW_MODE_OFF);
sc_pm_set_resource_power_mode(ipcHndl, SC_R_USB_0, SC_PM_PW_MODE_OFF);
sc_pm_set_resource_power_mode(ipcHndl, SC_R_USB_0_PHY, SC_PM_PW_MODE_OFF);
#endif
sc_pm_set_resource_power_mode(ipcHndl, SC_R_I2C_1, SC_PM_PW_MODE_OFF);
sc_pm_set_resource_power_mode(ipcHndl, SC_R_I2C_2, SC_PM_PW_MODE_OFF);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment