/u-boot/arch/arm/mach-uniphier/clk/ |
A D | pll-ld4.c | 25 tmp &= ~0x18000000; in upll_init() 33 tmp |= 0x0228f5c0; in upll_init() 37 tmp |= 0x02328000; in upll_init() 44 tmp |= 0x08000000; in upll_init() 51 tmp |= 0x10000000; in upll_init() 64 tmp |= 0x00000001; in vpll_init() 67 tmp |= 0x00000001; in vpll_init() 72 tmp &= ~0x10000000; in vpll_init() 75 tmp &= ~0x10000000; in vpll_init() 89 tmp |= 0x00000020; in vpll_init() [all …]
|
A D | pll-pro4.c | 30 tmp |= 0x00000001; in vpll_init() 33 tmp |= 0x00000001; in vpll_init() 38 tmp &= ~0x10000000; in vpll_init() 41 tmp &= ~0x10000000; in vpll_init() 46 tmp &= ~0x0000007f; in vpll_init() 47 tmp |= 0x00000020; in vpll_init() 50 tmp &= ~0x0000007f; in vpll_init() 51 tmp |= 0x00000020; in vpll_init() 82 tmp |= 0x10000000; in vpll_init() 85 tmp |= 0x10000000; in vpll_init() [all …]
|
A D | pll-base-ld20.c | 36 u32 tmp; in uniphier_ld20_sscpll_init() local 44 writel(tmp, base); in uniphier_ld20_sscpll_init() 46 tmp = readl(base + 4); in uniphier_ld20_sscpll_init() 58 writel(tmp, base + 4); in uniphier_ld20_sscpll_init() 66 u32 tmp; in uniphier_ld20_sscpll_ssc_en() local 70 writel(tmp, base); in uniphier_ld20_sscpll_ssc_en() 78 u32 tmp; in uniphier_ld20_sscpll_set_regi() local 91 u32 tmp; in uniphier_ld20_vpll27_init() local 95 writel(tmp, base); in uniphier_ld20_vpll27_init() 103 writel(tmp, base); in uniphier_ld20_vpll27_init() [all …]
|
A D | dpll-sld8.c | 15 u32 tmp; in uniphier_sld8_dpll_init() local 25 tmp = readl(sc_base + SC_DPLLCTRL3); in uniphier_sld8_dpll_init() 26 tmp &= ~0x00ff0717; in uniphier_sld8_dpll_init() 27 tmp |= 0x00d0061b; in uniphier_sld8_dpll_init() 28 writel(tmp, sc_base + SC_DPLLCTRL3); in uniphier_sld8_dpll_init() 36 tmp = readl(sc_base + SC_DPLLCTRL); in uniphier_sld8_dpll_init() 37 tmp &= ~0x3ff07fff; in uniphier_sld8_dpll_init() 39 tmp |= 0x084018bf; in uniphier_sld8_dpll_init() 41 tmp |= 0x084031a6; in uniphier_sld8_dpll_init() 53 tmp &= ~0xefffffff; in uniphier_sld8_dpll_init() [all …]
|
/u-boot/arch/powerpc/cpu/mpc85xx/ |
A D | mpc8536_serdes.c | 96 u32 tmp; in fsl_serdes_init() local 118 tmp |= FSL_SRDSCR0_TXEQA_SATA; in fsl_serdes_init() 120 tmp |= FSL_SRDSCR0_TXEQE_SATA; in fsl_serdes_init() 129 tmp &= ~FSL_SRDSCR2_EICA_MASK; in fsl_serdes_init() 130 tmp |= FSL_SRDSCR2_EICA_SATA; in fsl_serdes_init() 131 tmp &= ~FSL_SRDSCR2_EICE_MASK; in fsl_serdes_init() 132 tmp |= FSL_SRDSCR2_EICE_SATA; in fsl_serdes_init() 151 tmp |= FSL_SRDSCR1_LANEE_OFF; in fsl_serdes_init() 156 tmp |= FSL_SRDSCR2_EICA_SATA; in fsl_serdes_init() 201 tmp |= FSL_SRDSCR1_LANEE_OFF; in fsl_serdes_init() [all …]
|
/u-boot/arch/powerpc/cpu/mpc83xx/ |
A D | serdes.c | 51 u32 tmp; in fsl_setup_serdes() local 57 tmp &= ~FSL_SRDSCR0_DPP_1V2; in fsl_setup_serdes() 62 tmp &= ~FSL_SRDSCR2_VDD_1V2; in fsl_setup_serdes() 84 tmp &= ~FSL_SRDSCR1_PLLBW; in fsl_setup_serdes() 89 tmp &= ~FSL_SRDSCR2_SEIC_MASK; in fsl_setup_serdes() 90 tmp |= FSL_SRDSCR2_SEIC_SATA; in fsl_setup_serdes() 107 tmp |= FSL_SRDSCR1_PLLBW; in fsl_setup_serdes() 113 tmp |= FSL_SRDSCR2_SEIC_PEX; in fsl_setup_serdes() 123 tmp |= FSL_SRDSCR4_PLANE_X2; in fsl_setup_serdes() 129 tmp &= ~FSL_SRDSCR1_PLLBW; in fsl_setup_serdes() [all …]
|
/u-boot/arch/arm/lib/ |
A D | psci-dt.c | 23 int tmp; in fdt_psci() local 34 tmp = fdt_next_subnode(fdt, tmp)) { in fdt_psci() 77 if (tmp) in fdt_psci() 84 if (tmp) in fdt_psci() 95 if (tmp) in fdt_psci() 99 if (tmp) in fdt_psci() 103 if (tmp) in fdt_psci() 107 if (tmp) in fdt_psci() 111 if (tmp) in fdt_psci() 117 if (tmp) in fdt_psci() [all …]
|
/u-boot/drivers/rtc/ |
A D | pcf8563.c | 61 tmp->tm_yday = 0; in rtc_get() 62 tmp->tm_isdst= 0; in rtc_get() 65 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_get() 66 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get() 76 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_set() 77 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set() 157 tmp->tm_yday = 0; in pcf8563_rtc_get() 161 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in pcf8563_rtc_get() 162 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in pcf8563_rtc_get() 172 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in pcf8563_rtc_set() [all …]
|
A D | max6900.c | 38 int rtc_get (struct rtc_time *tmp) in rtc_get() argument 65 tmp->tm_sec = bcd2bin (sec & 0x7F); in rtc_get() 66 tmp->tm_min = bcd2bin (min & 0x7F); in rtc_get() 69 tmp->tm_mon = bcd2bin (mon & 0x1F); in rtc_get() 72 tmp->tm_yday = 0; in rtc_get() 73 tmp->tm_isdst= 0; in rtc_get() 76 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_get() 77 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get() 82 int rtc_set (struct rtc_time *tmp) in rtc_set() argument 86 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_set() [all …]
|
A D | pt7c4338.c | 99 tmp->tm_yday = 0; in rtc_get() 100 tmp->tm_isdst = 0; in rtc_get() 102 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_get() 103 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get() 112 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_set() 113 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set() 178 tmp->tm_yday = 0; in pt7c4338_rtc_get() 181 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in pt7c4338_rtc_get() 182 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in pt7c4338_rtc_get() 190 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in pt7c4338_rtc_set() [all …]
|
A D | ds3231.c | 100 tmp->tm_yday = 0; in rtc_get() 101 tmp->tm_isdst= 0; in rtc_get() 104 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_get() 105 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get() 119 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_set() 120 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set() 205 tmp->tm_yday = 0; in ds3231_rtc_get() 209 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in ds3231_rtc_get() 210 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in ds3231_rtc_get() 220 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in ds3231_rtc_set() [all …]
|
A D | davinci.c | 14 int rtc_get(struct rtc_time *tmp) in rtc_get() argument 41 tmp->tm_sec = bcd2bin(sec & 0x7F); in rtc_get() 42 tmp->tm_min = bcd2bin(min & 0x7F); in rtc_get() 43 tmp->tm_hour = bcd2bin(hour & 0x3F); in rtc_get() 48 tmp->tm_yday = 0; in rtc_get() 49 tmp->tm_isdst = 0; in rtc_get() 52 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_get() 53 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get() 58 int rtc_set(struct rtc_time *tmp) in rtc_set() argument 63 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_set() [all …]
|
A D | m41t11.c | 73 int rtc_get (struct rtc_time *tmp) in rtc_get() argument 90 tmp->tm_year = CONFIG_SYS_M41T11_BASE_YEAR in rtc_get() 110 tmp->tm_yday = 0; in rtc_get() 111 tmp->tm_isdst= 0; in rtc_get() 114 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_get() 115 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get() 120 int rtc_set (struct rtc_time *tmp) in rtc_set() argument 125 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_set() 126 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set() 129 data[RTC_MIN_ADDR] = bin2bcd(tmp->tm_min); in rtc_set() [all …]
|
A D | m48t35ax.c | 24 int rtc_get (struct rtc_time *tmp) in rtc_get() argument 52 tmp->tm_sec = bcd2bin (sec & 0x7F); in rtc_get() 53 tmp->tm_min = bcd2bin (min & 0x7F); in rtc_get() 54 tmp->tm_hour = bcd2bin (hour & 0x3F); in rtc_get() 59 tmp->tm_yday = 0; in rtc_get() 60 tmp->tm_isdst= 0; in rtc_get() 63 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_get() 64 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get() 69 int rtc_set (struct rtc_time *tmp) in rtc_set() argument 75 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_set() [all …]
|
A D | ds1337.c | 112 tmp->tm_yday = 0; in rtc_get() 113 tmp->tm_isdst= 0; in rtc_get() 116 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_get() 117 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get() 131 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_set() 132 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set() 246 tmp->tm_yday = 0; in ds1337_rtc_get() 250 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in ds1337_rtc_get() 251 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in ds1337_rtc_get() 261 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in ds1337_rtc_set() [all …]
|
A D | mcfrtc.c | 38 rtc_to_tm(tim, tmp); in rtc_get() 40 tmp->tm_yday = 0; in rtc_get() 41 tmp->tm_isdst = 0; in rtc_get() 45 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_get() 46 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get() 63 tmp->tm_year = 2027; in rtc_set() 67 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_set() 68 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set() 77 months = tmp->tm_mon - 1; in rtc_set() 85 days += tmp->tm_mday - 1; in rtc_set() [all …]
|
A D | ds1306.c | 114 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_get() 115 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get() 149 bin2bcd (tmp->tm_sec); in rtc_set() 188 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_set() 189 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set() 341 tmp->tm_yday = 0; in rtc_get() 342 tmp->tm_isdst = 0; in rtc_get() 345 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_get() 346 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get() 368 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_set() [all …]
|
A D | isl1208.c | 104 tmp->tm_yday = 0; in isl1208_rtc_get() 105 tmp->tm_isdst= 0; in isl1208_rtc_get() 108 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in isl1208_rtc_get() 109 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in isl1208_rtc_get() 123 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in isl1208_rtc_set() 124 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in isl1208_rtc_set() 126 if (tmp->tm_year < 2000 || tmp->tm_year > 2099) in isl1208_rtc_set() 141 buf[RTC_MON_REG_ADDR] = bin2bcd(tmp->tm_mon); in isl1208_rtc_set() 142 buf[RTC_DAY_REG_ADDR] = bin2bcd(tmp->tm_wday); in isl1208_rtc_set() 145 buf[RTC_MIN_REG_ADDR] = bin2bcd(tmp->tm_min); in isl1208_rtc_set() [all …]
|
A D | mk48t59.c | 75 int rtc_get (struct rtc_time *tmp) in rtc_get() argument 110 tmp->tm_year = bcd2bin (year); in rtc_get() 112 if(tmp->tm_year<70) in rtc_get() 113 tmp->tm_year+=2000; in rtc_get() 115 tmp->tm_year+=1900; in rtc_get() 116 tmp->tm_yday = 0; in rtc_get() 117 tmp->tm_isdst= 0; in rtc_get() 120 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_get() 121 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get() 133 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_set() [all …]
|
A D | s3c24x0_rtc.c | 92 if (tmp->tm_year < 70) in rtc_get() 93 tmp->tm_year += 2000; in rtc_get() 95 tmp->tm_year += 1900; in rtc_get() 96 tmp->tm_yday = 0; in rtc_get() 97 tmp->tm_isdst = 0; in rtc_get() 100 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_get() 101 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get() 114 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_set() 115 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set() 118 mon = bin2bcd(tmp->tm_mon); in rtc_set() [all …]
|
A D | ds164x.c | 52 int rtc_get( struct rtc_time *tmp ) in rtc_get() argument 80 tmp->tm_sec = bcd2bin( sec & 0x7F ); in rtc_get() 81 tmp->tm_min = bcd2bin( min & 0x7F ); in rtc_get() 82 tmp->tm_hour = bcd2bin( hour & 0x3F ); in rtc_get() 90 tmp->tm_yday = 0; in rtc_get() 91 tmp->tm_isdst= 0; in rtc_get() 94 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_get() 95 tmp->tm_hour, tmp->tm_min, tmp->tm_sec ); in rtc_get() 101 int rtc_set( struct rtc_time *tmp ) in rtc_set() argument 107 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_set() [all …]
|
/u-boot/arch/arm/mach-at91/ |
A D | spl_atmel.c | 23 u32 tmp; in switch_to_main_crystal_osc() local 25 tmp = readl(&pmc->mor); in switch_to_main_crystal_osc() 31 writel(tmp, &pmc->mor); in switch_to_main_crystal_osc() 37 tmp = readl(&pmc->mcfr); in switch_to_main_crystal_osc() 40 writel(tmp, &pmc->mcfr); in switch_to_main_crystal_osc() 49 tmp = readl(&pmc->mor); in switch_to_main_crystal_osc() 61 writel(tmp, &pmc->mor); in switch_to_main_crystal_osc() 63 tmp = readl(&pmc->mor); in switch_to_main_crystal_osc() 67 writel(tmp, &pmc->mor); in switch_to_main_crystal_osc() 79 tmp = readl(&pmc->mor); in switch_to_main_crystal_osc() [all …]
|
/u-boot/arch/arm/mach-versal/ |
A D | mp.c | 31 u32 tmp; in set_r5_halt_mode() local 33 tmp = readl(&rpu_base->rpu0_cfg); in set_r5_halt_mode() 35 tmp &= ~VERSAL_RPU_CFG_CPU_HALT_MASK; in set_r5_halt_mode() 37 tmp |= VERSAL_RPU_CFG_CPU_HALT_MASK; in set_r5_halt_mode() 38 writel(tmp, &rpu_base->rpu0_cfg); in set_r5_halt_mode() 41 tmp = readl(&rpu_base->rpu1_cfg); in set_r5_halt_mode() 45 tmp |= VERSAL_RPU_CFG_CPU_HALT_MASK; in set_r5_halt_mode() 46 writel(tmp, &rpu_base->rpu1_cfg); in set_r5_halt_mode() 52 u32 tmp; in set_r5_tcm_mode() local 70 u32 tmp; in release_r5_reset() local [all …]
|
/u-boot/board/freescale/p1010rdb/ |
A D | p1010rdb.c | 142 u8 tmp; in config_board_mux() local 159 tmp = 0xf0; in config_board_mux() 161 tmp = 0x01; in config_board_mux() 167 tmp = 0xf0; in config_board_mux() 169 tmp = 0x05; in config_board_mux() 199 clrbits_8(&tmp, 0x04); in config_board_mux() 202 clrbits_8(&tmp, 0x04); in config_board_mux() 269 tmp = 0xf0; in config_board_mux() 271 tmp = 0x01; in config_board_mux() 278 tmp = 0xf0; in config_board_mux() [all …]
|
/u-boot/drivers/ddr/imx/imx8m/ |
A D | ddrphy_utils.c | 162 unsigned int tmp; in lpddr4_mr_write() local 197 tmp = tmp & 0xff; in lpddr4_mr_read() 200 return tmp; in lpddr4_mr_read() 288 ddrc_w2r = (tmp > 0x3f) ? 0x3f : tmp; in update_umctl2_rank_space_setting() 295 ddrc_r2w = (tmp > 0x3f) ? 0x3f : tmp; in update_umctl2_rank_space_setting() 307 ddrc_w2r = (tmp > 0x3f) ? 0x3f : tmp; in update_umctl2_rank_space_setting() 318 ddrc_r2w = (tmp > 0x3f) ? 0x3f : tmp; in update_umctl2_rank_space_setting() 332 ddrc_wr_gap = (tmp > 0xf) ? 0xf : tmp; in update_umctl2_rank_space_setting() 339 ddrc_rd_gap = (tmp > 0xf) ? 0xf : tmp; in update_umctl2_rank_space_setting() 351 ddrc_wr_gap = (tmp > 0xf) ? 0xf : tmp; in update_umctl2_rank_space_setting() [all …]
|