Lines Matching refs:i

147     uint32_t i = 0U;  in BOARD_DumpRegs()  local
149 for (i = start_reg_addr; i <= end_reg_addr; i += 4) in BOARD_DumpRegs()
151 PRINTF("Reg 0x%x: Val = 0x%x\r\n", i, *(uint32_t *)i); in BOARD_DumpRegs()
250 int32_t i, word_pos = 0; in BOARD_MapFsbFuseIndex() local
253 for (i = 0; i < size; i++) in BOARD_MapFsbFuseIndex()
255 if (fsb_mapping_table[i].fuse_bank != -1 && fsb_mapping_table[i].fuse_bank == bank && in BOARD_MapFsbFuseIndex()
256 fsb_mapping_table[i].fuse_words > word) in BOARD_MapFsbFuseIndex()
261 word_pos += fsb_mapping_table[i].fuse_words; in BOARD_MapFsbFuseIndex()
264 if (i == size) in BOARD_MapFsbFuseIndex()
267 if (fsb_mapping_table[i].redundancy) in BOARD_MapFsbFuseIndex()
438 uint32_t i = 0, j = 0, m = 0, n = 0; in BOARD_SetTrdcGlobalConfig() local
458 for (i = 0U; i < hwConfig.mbcNumber; i++) in BOARD_SetTrdcGlobalConfig()
462 TRDC_MbcSetMemoryAccessConfig(TRDC, &memAccessConfig, i, j); in BOARD_SetTrdcGlobalConfig()
466 for (i = 0U; i < hwConfig.mrcNumber; i++) in BOARD_SetTrdcGlobalConfig()
470 TRDC_MrcSetMemoryAccessConfig(TRDC, &memAccessConfig, i, j); in BOARD_SetTrdcGlobalConfig()
490 for (i = 0U; i < hwConfig.mrcNumber; i++) in BOARD_SetTrdcGlobalConfig()
492 …TRDC_MrcSetMemoryAccessConfig(TRDC, &memAccessConfig, i, TRDC_MRC_ACCESS_CONTROL_POLICY_ALL_INDEX); in BOARD_SetTrdcGlobalConfig()
495 for (i = 0U; i < hwConfig.mbcNumber && i < TRDC_MBC_INDEX_NUM; i++) in BOARD_SetTrdcGlobalConfig()
497 if ((i == TRDC_MBC3_INDEX) && in BOARD_SetTrdcGlobalConfig()
502 …TRDC_MbcSetMemoryAccessConfig(TRDC, &memAccessConfig, i, TRDC_MBC_ACCESS_CONTROL_POLICY_ALL_INDEX); in BOARD_SetTrdcGlobalConfig()
511 for (i = 0; i < hwConfig.mrcNumber; i++) in BOARD_SetTrdcGlobalConfig()
513 mrcRegionConfig.mrcIdx = i; in BOARD_SetTrdcGlobalConfig()
518 n = TRDC_GetMrcRegionNumber(TRDC, i); in BOARD_SetTrdcGlobalConfig()
529 … mrcRegionConfig.startAddr = mrc_start_addr[i] + (mrc_end_addr[i] - mrc_start_addr[i]) / n * m; in BOARD_SetTrdcGlobalConfig()
530 …mrcRegionConfig.endAddr = mrc_start_addr[i] + (mrc_end_addr[i] - mrc_start_addr[i]) / n * (m + 1U); in BOARD_SetTrdcGlobalConfig()
542 for (i = 0U; i < hwConfig.mbcNumber && i < TRDC_MBC_INDEX_NUM; i++) in BOARD_SetTrdcGlobalConfig()
544 if ((i == TRDC_MBC3_INDEX) && in BOARD_SetTrdcGlobalConfig()
549 mbcBlockConfig.mbcIdx = i; in BOARD_SetTrdcGlobalConfig()
555 TRDC_GetMbcHardwareConfig(TRDC, &mbcHwConfig, i, m); in BOARD_SetTrdcGlobalConfig()
661 for (i = 0; i < hwConfig.mrcNumber; i++) in BOARD_SetTrdcGlobalConfig()
663 if (i == mrcRegionConfig.mrcIdx) in BOARD_SetTrdcGlobalConfig()
676 … mrcRegionConfig.startAddr = mrc_start_addr[i] + (mrc_end_addr[i] - mrc_start_addr[i]) / n * m; in BOARD_SetTrdcGlobalConfig()
677 …mrcRegionConfig.endAddr = mrc_start_addr[i] + (mrc_end_addr[i] - mrc_start_addr[i]) / n * (m + 1U); in BOARD_SetTrdcGlobalConfig()
747 for (i = 0; i < hwConfig.mrcNumber; i++) in BOARD_SetTrdcGlobalConfig()
749 if (i == mrcRegionConfig.mrcIdx) in BOARD_SetTrdcGlobalConfig()
762 … mrcRegionConfig.startAddr = mrc_start_addr[i] + (mrc_end_addr[i] - mrc_start_addr[i]) / n * m; in BOARD_SetTrdcGlobalConfig()
763 …mrcRegionConfig.endAddr = mrc_start_addr[i] + (mrc_end_addr[i] - mrc_start_addr[i]) / n * (m + 1U); in BOARD_SetTrdcGlobalConfig()
785 for (i = 0; i < hwConfig.mrcNumber; i++) in BOARD_SetTrdcGlobalConfig()
787 if (i == mrcRegionConfig.mrcIdx) in BOARD_SetTrdcGlobalConfig()
800 … mrcRegionConfig.startAddr = mrc_start_addr[i] + (mrc_end_addr[i] - mrc_start_addr[i]) / n * m; in BOARD_SetTrdcGlobalConfig()
801 …mrcRegionConfig.endAddr = mrc_start_addr[i] + (mrc_end_addr[i] - mrc_start_addr[i]) / n * (m + 1U); in BOARD_SetTrdcGlobalConfig()
823 for (i = 0; i < hwConfig.mrcNumber; i++) in BOARD_SetTrdcGlobalConfig()
825 if (i == TRDC_MRC1_INDEX) in BOARD_SetTrdcGlobalConfig()
838 … mrcRegionConfig.startAddr = mrc_start_addr[i] + (mrc_end_addr[i] - mrc_start_addr[i]) / n * m; in BOARD_SetTrdcGlobalConfig()
839 …mrcRegionConfig.endAddr = mrc_start_addr[i] + (mrc_end_addr[i] - mrc_start_addr[i]) / n * (m + 1U); in BOARD_SetTrdcGlobalConfig()
1334 for (uint32_t i = 2000000U; i > 0; i--) in flexspi_hyper_ram_reset() local
1420 for (uint8_t i = 1; i < FSL_FEATURE_FLEXSPI_AHB_BUFFER_COUNT - 1; i++) in BOARD_InitPsRam() local
1422 config.ahbConfig.buffer[i].bufferSize = 0; in BOARD_InitPsRam()
1823 int i; in BOARD_LpavInit() local
1826 for (i = 0; i < 9; i++) in BOARD_LpavInit()
1828 W32(pll4[i][0], pll4[i][1]); in BOARD_LpavInit()
1846 for (i = 0; i < ARRAY_SIZE(cgc2); i++) in BOARD_LpavInit()
1848 W32(cgc2[i][0], cgc2[i][1]); in BOARD_LpavInit()
1852 for (i = 0; i < ARRAY_SIZE(pcc5_0); i++) in BOARD_LpavInit()
1854 if (pcc5_0[i][1] & PCC_CLKCFG_PR_MASK) in BOARD_LpavInit()
1856 W32(pcc5_0[i][0], pcc5_0[i][1]); in BOARD_LpavInit()
1860 for (i = 0; i < ARRAY_SIZE(pcc5_1); i++) in BOARD_LpavInit()
1862 if (pcc5_1[i][1] & PCC_CLKCFG_PR_MASK) in BOARD_LpavInit()
1864 W32(pcc5_1[i][0], pcc5_1[i][1]); in BOARD_LpavInit()
1869 for (i = 0; i < ARRAY_SIZE(lpav_sim); i++) in BOARD_LpavInit()
1871 W32(lpav_sim[i][0], lpav_sim[i][1]); in BOARD_LpavInit()
1884 int i; in ddrInit() local
1887 for (i = 0; i < CTL_NUM; i++) in ddrInit()
1889 W32(LPDDR_BASE + i * 4, dram_timing_cfg->ctl_cfg[i]); in ddrInit()
1893 for (i = 0; i < PI_NUM; i++) in ddrInit()
1895 W32(LPDDR_BASE + 0x2000 + i * 4, dram_timing_cfg->pi_cfg[i]); in ddrInit()
1902 for (i = 0; i < PHY_NUM; i++) in ddrInit()
1904 if (i >= 121 && i <= 255) in ddrInit()
1906 if (i >= 377 && i <= 511) in ddrInit()
1908 if (i >= 633 && i <= 767) in ddrInit()
1910 if (i >= 889 && i <= 1023) in ddrInit()
1912 if (i >= 1065 && i <= 1279) in ddrInit()
1914 if (i >= 1321 && i <= 1535) in ddrInit()
1916 W32(LPDDR_BASE + 0x4000 + i * 4, dram_timing_cfg->phy_full[i]); in ddrInit()
1923 for (i = 0; i < PHY_DIFF_NUM; i++) in ddrInit()
1924 W32(LPDDR_BASE + 0x4000 + freq_specific_reg_array[i] * 4, dram_timing_cfg->phy_diff[i]); in ddrInit()
1933 uint32_t i; in BOARD_DdrSave() local
1944 for (i = 0; i < CTL_NUM; i++) in BOARD_DdrSave()
1946 dram_timing_cfg->ctl_cfg[i] = R32(LPDDR_BASE + i * 4); in BOARD_DdrSave()
1951 for (i = 0; i < PI_NUM; i++) in BOARD_DdrSave()
1953 dram_timing_cfg->pi_cfg[i] = R32(LPDDR_BASE + 0x2000 + i * 4); in BOARD_DdrSave()
1960 for (i = 0; i < PHY_NUM; i++) in BOARD_DdrSave()
1963 if (i == 1537) in BOARD_DdrSave()
1965 dram_timing_cfg->phy_full[i] = 0x100; in BOARD_DdrSave()
1969 dram_timing_cfg->phy_full[i] = R32(LPDDR_BASE + 0x4000 + i * 4); in BOARD_DdrSave()
1975 for (i = 0; i < PHY_DIFF_NUM; i++) in BOARD_DdrSave()
1977 … dram_timing_cfg->phy_diff[i] = R32(LPDDR_BASE + 0x4000 + freq_specific_reg_array[i] * 4); in BOARD_DdrSave()
1983 for (i = 0; i < Info->phy_f1_cfg_num; i++) in BOARD_DdrSave()
1985 Info->phy_f1_cfg[i].val = R32(Info->phy_f1_cfg[i].reg); in BOARD_DdrSave()
1993 uint32_t i; in BOARD_LpavSave() local
1997 for (i = 0; i < ARRAY_SIZE(cgc2); i++) in BOARD_LpavSave()
1998 cgc2[i][1] = R32(cgc2[i][0]); in BOARD_LpavSave()
2001 for (i = 0; i < ARRAY_SIZE(pll4); i++) in BOARD_LpavSave()
2002 pll4[i][1] = R32(pll4[i][0]); in BOARD_LpavSave()
2010 for (i = 0; i < ARRAY_SIZE(pcc5_0); i++) in BOARD_LpavSave()
2012 val = R32(pcc5_0[i][0]); in BOARD_LpavSave()
2013 pcc5_0[i][1] = 0U; in BOARD_LpavSave()
2016 pcc5_0[i][1] = val; in BOARD_LpavSave()
2020 for (i = 0; i < ARRAY_SIZE(pcc5_1); i++) in BOARD_LpavSave()
2022 val = R32(pcc5_1[i][0]); in BOARD_LpavSave()
2023 pcc5_1[i][1] = 0U; in BOARD_LpavSave()
2026 pcc5_1[i][1] = val; in BOARD_LpavSave()
2031 for (i = 0; i < ARRAY_SIZE(lpav_sim); i++) in BOARD_LpavSave()
2032 lpav_sim[i][1] = R32(lpav_sim[i][0]); in BOARD_LpavSave()