/arm-trusted-firmware-2.8.0/drivers/renesas/rcar/pfc/ |
A D | pfc_init.c | 43 reg); \ 50 reg); \ 56 uint32_t reg; in rcar_pfc_init() local 84 PRR_PRODUCT_ERR(reg); in rcar_pfc_init() 92 PRR_PRODUCT_ERR(reg); in rcar_pfc_init() 109 PRR_PRODUCT_ERR(reg); in rcar_pfc_init() 116 PRR_PRODUCT_ERR(reg); in rcar_pfc_init() 123 PRR_PRODUCT_ERR(reg); in rcar_pfc_init() 130 PRR_PRODUCT_ERR(reg); in rcar_pfc_init() 137 PRR_PRODUCT_ERR(reg); in rcar_pfc_init() [all …]
|
/arm-trusted-firmware-2.8.0/drivers/renesas/rzg/pfc/ |
A D | pfc_init.c | 34 reg); \ 41 reg); \ 47 uint32_t reg; in rzg_pfc_init() local 65 PRR_PRODUCT_ERR(reg); in rzg_pfc_init() 73 PRR_PRODUCT_ERR(reg); in rzg_pfc_init() 80 PRR_PRODUCT_ERR(reg); in rzg_pfc_init() 87 PRR_PRODUCT_ERR(reg); in rzg_pfc_init() 94 PRR_PRODUCT_ERR(reg); in rzg_pfc_init() 100 PRR_PRODUCT_ERR(reg); in rzg_pfc_init() 107 PRR_PRODUCT_ERR(reg); in rzg_pfc_init() [all …]
|
/arm-trusted-firmware-2.8.0/drivers/renesas/rcar/qos/ |
A D | qos_init.c | 77 uint32_t reg; in rcar_qos_init() local 118 PRR_PRODUCT_ERR(reg); in rcar_qos_init() 136 PRR_PRODUCT_ERR(reg); in rcar_qos_init() 148 PRR_PRODUCT_ERR(reg); in rcar_qos_init() 161 PRR_PRODUCT_ERR(reg); in rcar_qos_init() 173 PRR_PRODUCT_ERR(reg); in rcar_qos_init() 185 PRR_PRODUCT_ERR(reg); in rcar_qos_init() 189 PRR_PRODUCT_ERR(reg); in rcar_qos_init() 198 PRR_PRODUCT_ERR(reg); in rcar_qos_init() 205 PRR_PRODUCT_ERR(reg); in rcar_qos_init() [all …]
|
/arm-trusted-firmware-2.8.0/drivers/renesas/rzg/qos/ |
A D | qos_init.c | 61 uint32_t reg; in rzg_qos_init() local 92 PRR_PRODUCT_ERR(reg); in rzg_qos_init() 104 PRR_PRODUCT_ERR(reg); in rzg_qos_init() 116 PRR_PRODUCT_ERR(reg); in rzg_qos_init() 128 PRR_PRODUCT_ERR(reg); in rzg_qos_init() 132 PRR_PRODUCT_ERR(reg); in rzg_qos_init() 141 PRR_PRODUCT_ERR(reg); in rzg_qos_init() 148 PRR_PRODUCT_ERR(reg); in rzg_qos_init() 155 PRR_PRODUCT_ERR(reg); in rzg_qos_init() 162 PRR_PRODUCT_ERR(reg); in rzg_qos_init() [all …]
|
/arm-trusted-firmware-2.8.0/lib/extensions/sme/ |
A D | sme.c | 34 u_register_t reg; in sme_enable() local 50 reg |= ESM_BIT; in sme_enable() 55 reg |= SCR_ENTP2_BIT; in sme_enable() 68 reg = SMCR_ELX_LEN_MASK; in sme_enable() 71 reg |= SMCR_ELX_FA64_BIT; in sme_enable() 73 write_smcr_el3(reg); in sme_enable() 85 u_register_t reg; in sme_disable() local 100 reg &= ~ESM_BIT; /* Trap SME */ in sme_disable() 101 reg &= ~CPTR_EZ_BIT; /* Trap SVE */ in sme_disable() 102 reg |= TFP_BIT; /* Trap FPU/SIMD */ in sme_disable() [all …]
|
/arm-trusted-firmware-2.8.0/include/services/ |
A D | drtm_svc.h | 114 reg = (((reg) & ~(ARM_DRTM_TPM_FEATURES_PCR_SCHEMA_MASK \ 122 reg = (((reg) & ~(ARM_DRTM_TPM_FEATURES_TPM_HASH_MASK \ 130 reg = (((reg) & ~(ARM_DRTM_TPM_FEATURES_FW_HASH_MASK \ 138 reg = (((reg) & ~(ARM_DRTM_MIN_MEM_REQ_DCE_SIZE_MASK \ 146 reg = (((reg) & \ 155 reg = (((reg) & \ 164 reg = (((reg) & \ 173 reg = (((reg) & \ 202 reg = (((reg) & \ 212 reg = (((reg) & \ [all …]
|
/arm-trusted-firmware-2.8.0/drivers/marvell/secure_dfx_access/ |
A D | armada_thermal.c | 64 uint32_t reg; in armada_ap806_thermal_read() local 66 reg = mmio_read_32(TSEN_STATUS); in armada_ap806_thermal_read() 68 reg = ((reg & TSEN_STATUS_TEMP_OUT_MASK) >> in armada_ap806_thermal_read() 90 uint32_t reg; in armada_ap806_thermal_overheat_irq_init() local 102 reg |= DFX_SERVER_IRQ_EN; in armada_ap806_thermal_overheat_irq_init() 106 reg = mmio_read_32(TSEN_CTRL1); in armada_ap806_thermal_overheat_irq_init() 107 reg |= TSEN_CTRL1_INT_EN; in armada_ap806_thermal_overheat_irq_init() 108 mmio_write_32(TSEN_CTRL1, reg); in armada_ap806_thermal_overheat_irq_init() 198 uint32_t reg; in armada_ap806_thermal_init() local 201 reg &= ~TSEN_CTRL0_RESET; in armada_ap806_thermal_init() [all …]
|
/arm-trusted-firmware-2.8.0/plat/imx/common/sci/ |
A D | imx8_mu.c | 13 uint32_t reg, i; in MU_Resume() local 15 reg = mmio_read_32(base + MU_ACR_OFFSET1); in MU_Resume() 19 mmio_write_32(base + MU_ACR_OFFSET1, reg); in MU_Resume() 30 reg &= ~(MU_CR_GIRn_MASK1 | MU_CR_NMI_MASK1); in MU_EnableRxFullInt() 31 reg |= MU_CR_RIE0_MASK1 >> index; in MU_EnableRxFullInt() 32 mmio_write_32(base + MU_ACR_OFFSET1, reg); in MU_EnableRxFullInt() 40 reg |= MU_CR_GIE0_MASK1 >> index; in MU_EnableGeneralInt() 41 mmio_write_32(base + MU_ACR_OFFSET1, reg); in MU_EnableGeneralInt() 66 uint32_t reg; in MU_Init() local 68 reg = mmio_read_32(base + MU_ACR_OFFSET1); in MU_Init() [all …]
|
/arm-trusted-firmware-2.8.0/plat/marvell/armada/a8k/common/ |
A D | plat_thermal.c | 45 uint32_t reg, timeout = 0; in ext_tsen_probe() local 57 reg = mmio_read_32((uintptr_t)&base->ext_tsen_ctrl_lsb); in ext_tsen_probe() 63 reg = mmio_read_32((uintptr_t)&base->ext_tsen_status); in ext_tsen_probe() 67 reg = mmio_read_32((uintptr_t)&base->ext_tsen_status); in ext_tsen_probe() 71 if ((reg & THERMAL_SEN_CTRL_STATS_VALID_MASK) == 0) { in ext_tsen_probe() 85 uint32_t reg; in ext_tsen_read() local 94 reg = mmio_read_32((uintptr_t)&base->ext_tsen_status); in ext_tsen_read() 95 reg = ((reg & THERMAL_SEN_CTRL_STATS_TEMP_OUT_MASK) >> in ext_tsen_read() 103 if (reg >= THERMAL_SEN_OUTPUT_MSB) in ext_tsen_read() 104 reg -= THERMAL_SEN_OUTPUT_COMP; in ext_tsen_read() [all …]
|
/arm-trusted-firmware-2.8.0/drivers/allwinner/axp/ |
A D | common.c | 36 ret = axp_read(reg); in axp_clrsetbits() 42 return axp_write(reg, val); in axp_clrsetbits() 78 const struct axp_regulator *reg) in setup_regulator() argument 84 if (mvolt < reg->min_volt || mvolt > reg->max_volt) in setup_regulator() 87 val = (mvolt / reg->step) - (reg->min_volt / reg->step); in setup_regulator() 88 if (val > reg->split) in setup_regulator() 89 val = ((val - reg->split) / 2) + reg->split; in setup_regulator() 91 axp_write(reg->volt_reg, val); in setup_regulator() 92 axp_setbits(reg->switch_reg, BIT(reg->switch_bit)); in setup_regulator() 175 const struct axp_regulator *reg; in axp_setup_regulators() local [all …]
|
/arm-trusted-firmware-2.8.0/drivers/allwinner/ |
A D | sunxi_rsb.c | 39 uint32_t reg, tries = MAX_TRIES; in rsb_wait_bit() local 42 reg = mmio_read_32(SUNXI_R_RSB_BASE + offset); in rsb_wait_bit() 44 if (reg & mask) { in rsb_wait_bit() 54 uint32_t reg; in rsb_wait_stat() local 61 if (reg == 0x01) in rsb_wait_stat() 64 ERROR("%s: 0x%x\n", desc, reg); in rsb_wait_stat() 65 return -reg; in rsb_wait_stat() 113 uint32_t reg; in rsb_set_bus_speed() local 118 reg = source_freq / bus_freq; in rsb_set_bus_speed() 119 if (reg < 2) in rsb_set_bus_speed() [all …]
|
/arm-trusted-firmware-2.8.0/drivers/renesas/rcar/cpld/ |
A D | ulcb_cpld.c | 36 uint32_t reg; in gpio_set_value() local 38 reg = mmio_read_32(addr); in gpio_set_value() 40 reg |= (1 << gpio); in gpio_set_value() 42 reg &= ~(1 << gpio); in gpio_set_value() 43 mmio_write_32(addr, reg); in gpio_set_value() 48 uint32_t reg; in gpio_direction_output() local 50 reg = mmio_read_32(addr); in gpio_direction_output() 51 reg |= (1 << gpio); in gpio_direction_output() 52 mmio_write_32(addr, reg); in gpio_direction_output() 57 uint32_t reg; in gpio_pfc() local [all …]
|
/arm-trusted-firmware-2.8.0/plat/intel/soc/common/drivers/ccu/ |
A D | ncore_ccu.h | 70 #define NCORE_CCU_CSR(reg) (NCORE_CCU_REG(NCORE_CSR_OFFSET)\ argument 71 + (reg)) 72 #define NCORE_CCU_DIR(reg) (NCORE_CCU_REG(NCORE_DIRU_OFFSET)\ argument 73 + (reg)) 74 #define NCORE_CCU_CAI(reg) (NCORE_CCU_REG(NCORE_CAIU_OFFSET)\ argument 75 + (reg)) 77 #define DIRECTORY_UNIT(x, reg) (NCORE_CCU_DIR(reg)\ argument 79 #define COH_AGENT_UNIT(x, reg) (NCORE_CCU_CAI(reg)\ argument 82 #define COH_CPU0_BYPASS_REG(reg) (NCORE_CCU_REG(NCORE_FW_OCRAM_BLK_BASE)\ argument 83 + (reg))
|
/arm-trusted-firmware-2.8.0/plat/hisilicon/hikey/ |
A D | hisi_pwrc.c | 42 unsigned int reg = 0; in hisi_pwrc_set_cluster_wfi() local 45 reg = mmio_read_32(ACPU_SC_SNOOP_PWD); in hisi_pwrc_set_cluster_wfi() 46 reg |= PD_DETECT_START0; in hisi_pwrc_set_cluster_wfi() 47 mmio_write_32(ACPU_SC_SNOOP_PWD, reg); in hisi_pwrc_set_cluster_wfi() 49 reg = mmio_read_32(ACPU_SC_SNOOP_PWD); in hisi_pwrc_set_cluster_wfi() 50 reg |= PD_DETECT_START1; in hisi_pwrc_set_cluster_wfi() 51 mmio_write_32(ACPU_SC_SNOOP_PWD, reg); in hisi_pwrc_set_cluster_wfi() 72 unsigned int reg, sec_entrypoint; in hisi_pwrc_setup() local 93 reg = mmio_read_32(AO_SC_SYS_CTRL1); in hisi_pwrc_setup() 95 reg |= AO_SC_SYS_CTRL1_REMAP_SRAM_AARM | in hisi_pwrc_setup() [all …]
|
/arm-trusted-firmware-2.8.0/include/drivers/allwinner/ |
A D | axp.h | 42 int axp_read(uint8_t reg); 43 int axp_write(uint8_t reg, uint8_t val); 44 int axp_clrsetbits(uint8_t reg, uint8_t clr_mask, uint8_t set_mask); 45 #define axp_clrbits(reg, clr_mask) axp_clrsetbits(reg, clr_mask, 0) argument 46 #define axp_setbits(reg, set_mask) axp_clrsetbits(reg, 0, set_mask) argument
|
/arm-trusted-firmware-2.8.0/drivers/renesas/common/rpc/ |
A D | rpc_driver.c | 32 uint32_t product, cut, reg, phy_strtim; in rpc_setup() local 45 reg = mmio_read_32(RPC_PHYCNT); in rpc_setup() 46 reg &= ~RPC_PHYCNT_STRTIM; in rpc_setup() 47 reg |= phy_strtim; in rpc_setup() 48 mmio_write_32(RPC_PHYCNT, reg); in rpc_setup() 49 reg |= RPC_PHYCNT_CAL; in rpc_setup() 50 mmio_write_32(RPC_PHYCNT, reg); in rpc_setup()
|
/arm-trusted-firmware-2.8.0/plat/mediatek/mt8183/drivers/timer/ |
A D | mt_timer.c | 15 unsigned int reg; in enable_systimer_compensation() local 17 reg = mmio_read_32(CNTCR_REG); in enable_systimer_compensation() 18 reg &= ~COMP_15_EN; in enable_systimer_compensation() 19 reg |= COMP_20_EN; in enable_systimer_compensation() 20 mmio_write_32(CNTCR_REG, reg); in enable_systimer_compensation()
|
/arm-trusted-firmware-2.8.0/drivers/arm/css/sds/ |
A D | sds_private.h | 67 uint32_t reg[2]; member 71 ((((struct_header_t *)(_header))->reg[0]) & SDS_HEADER_ID_MASK) 73 (((((struct_header_t *)(_header))->reg[0]) >> SDS_HEADER_MINOR_VERSION_SHIFT)\ 76 (((((struct_header_t *)(_header))->reg[1]) >> SDS_HEADER_STRUCT_SIZE_SHIFT)\ 79 ((((struct_header_t *)(_header))->reg[1]) & SDS_HEADER_VALID_MASK) 85 uint32_t reg[2]; member 89 (((((region_desc_t *)(region))->reg[0]) & SDS_REGION_SIGNATURE_MASK) == SDS_REGION_SIGNATURE) 91 (((((region_desc_t *)(region))->reg[0]) >> SDS_REGION_STRUCT_COUNT_SHIFT)\ 94 (((((region_desc_t *)(region))->reg[0]) >> SDS_REGION_SCH_MINOR_SHIFT)\ 96 #define GET_SDS_REGION_SIZE(region) ((((region_desc_t *)(region))->reg[1]))
|
/arm-trusted-firmware-2.8.0/drivers/marvell/mochi/ |
A D | apn806_setup.c | 129 uint32_t reg; in setup_smmu() local 132 reg = mmio_read_32(SMMU_sACR); in setup_smmu() 133 reg |= SMMU_sACR_PG_64K; in setup_smmu() 134 mmio_write_32(SMMU_sACR, reg); in setup_smmu() 139 uint32_t reg; in init_aurora2() local 142 reg = mmio_read_32(CCU_GSPMU_CR); in init_aurora2() 143 reg |= GSPMU_CPU_CONTROL; in init_aurora2() 154 reg = mmio_read_32(CCU_HTC_CR); in init_aurora2() 156 mmio_write_32(CCU_HTC_CR, reg); in init_aurora2() 243 uint32_t reg; in misc_soc_configurations() local [all …]
|
/arm-trusted-firmware-2.8.0/plat/marvell/armada/a8k/a80x0_mcbin/board/ |
A D | marvell_plat_config.c | 33 uint32_t reg; in marvell_gpio_config() local 35 reg = mmio_read_32(MPP_CONTROL_REGISTER); in marvell_gpio_config() 36 reg |= MPP_CONTROL_MPP_SEL_52_MASK; in marvell_gpio_config() 37 mmio_write_32(MPP_CONTROL_REGISTER, reg); in marvell_gpio_config() 39 reg = mmio_read_32(GPIO_DATA_OUT1_REGISTER); in marvell_gpio_config() 40 reg |= GPIO52_MASK; in marvell_gpio_config() 41 mmio_write_32(GPIO_DATA_OUT1_REGISTER, reg); in marvell_gpio_config() 43 reg = mmio_read_32(GPIO_DATA_OUT_EN_CTRL1_REGISTER); in marvell_gpio_config() 44 reg &= ~GPIO52_MASK; in marvell_gpio_config() 45 mmio_write_32(GPIO_DATA_OUT_EN_CTRL1_REGISTER, reg); in marvell_gpio_config()
|
/arm-trusted-firmware-2.8.0/fdts/ |
A D | stm32mp131.dtsi | 21 reg = <0>; 400 reg = <0>; 405 reg = <1>; 425 reg = <0x0 0x2>; 428 reg = <0x4 0x2>; 431 reg = <0x10 0x4>; 434 reg = <0x24 0x4>; 437 reg = <0x28 0x4>; 440 reg = <0x34 0xc>; 443 reg = <0x48 0x4>; [all …]
|
A D | stm32mp151.dtsi | 21 reg = <0>; 395 reg = <0>; 400 reg = <1>; 464 reg = <0x0 0x1>; 467 reg = <0x4 0x1>; 470 reg = <0x10 0x4>; 473 reg = <0x24 0x4>; 476 reg = <0x34 0xc>; 479 reg = <0x40 0x4>; 482 reg = <0x48 0x4>; [all …]
|
/arm-trusted-firmware-2.8.0/plat/marvell/armada/a8k/a80x0_puzzle/board/ |
A D | marvell_plat_config.c | 33 uint32_t reg; in marvell_gpio_config() local 35 reg = mmio_read_32(MPP_CONTROL_REGISTER); in marvell_gpio_config() 36 reg |= MPP_CONTROL_MPP_SEL_52_MASK; in marvell_gpio_config() 37 mmio_write_32(MPP_CONTROL_REGISTER, reg); in marvell_gpio_config() 39 reg = mmio_read_32(GPIO_DATA_OUT1_REGISTER); in marvell_gpio_config() 40 reg |= GPIO52_MASK; in marvell_gpio_config() 41 mmio_write_32(GPIO_DATA_OUT1_REGISTER, reg); in marvell_gpio_config() 43 reg = mmio_read_32(GPIO_DATA_OUT_EN_CTRL1_REGISTER); in marvell_gpio_config() 44 reg &= ~GPIO52_MASK; in marvell_gpio_config() 45 mmio_write_32(GPIO_DATA_OUT_EN_CTRL1_REGISTER, reg); in marvell_gpio_config()
|
/arm-trusted-firmware-2.8.0/drivers/renesas/rcar/pfc/H3/ |
A D | pfc_init_h3_v1.c | 900 reg = ((reg & DRVCTRL2_MASK) | DRVCTRL2_AVB_RXC(7) in pfc_init_h3_v1() 910 reg = ((reg & DRVCTRL3_MASK) | DRVCTRL3_AVB_TD1(3) in pfc_init_h3_v1() 920 reg = ((reg & DRVCTRL4_MASK) | DRVCTRL4_AVB_LINK(7) in pfc_init_h3_v1() 930 reg = ((reg & DRVCTRL5_MASK) | DRVCTRL5_IRQ5(7) in pfc_init_h3_v1() 940 reg = ((reg & DRVCTRL6_MASK) | DRVCTRL6_A4(3) in pfc_init_h3_v1() 950 reg = ((reg & DRVCTRL7_MASK) | DRVCTRL7_A12(3) in pfc_init_h3_v1() 960 reg = ((reg & DRVCTRL8_MASK) | DRVCTRL8_CLKOUT(7) in pfc_init_h3_v1() 980 reg = ((reg & DRVCTRL10_MASK) | DRVCTRL10_D6(7) in pfc_init_h3_v1() 990 reg = ((reg & DRVCTRL11_MASK) | DRVCTRL11_D14(3) in pfc_init_h3_v1() 1006 reg = ((reg & DRVCTRL13_MASK) | DRVCTRL13_TDO(3) in pfc_init_h3_v1() [all …]
|
A D | pfc_init_h3_v2.c | 933 reg = ((reg & DRVCTRL2_MASK) | DRVCTRL2_AVB_RXC(7) in pfc_init_h3_v2() 943 reg = ((reg & DRVCTRL3_MASK) | DRVCTRL3_AVB_TD1(3) in pfc_init_h3_v2() 953 reg = ((reg & DRVCTRL4_MASK) | DRVCTRL4_AVB_LINK(7) in pfc_init_h3_v2() 963 reg = ((reg & DRVCTRL5_MASK) | DRVCTRL5_IRQ5(7) in pfc_init_h3_v2() 973 reg = ((reg & DRVCTRL6_MASK) | DRVCTRL6_A4(3) in pfc_init_h3_v2() 983 reg = ((reg & DRVCTRL7_MASK) | DRVCTRL7_A12(3) in pfc_init_h3_v2() 993 reg = ((reg & DRVCTRL8_MASK) | DRVCTRL8_CLKOUT(7) in pfc_init_h3_v2() 1013 reg = ((reg & DRVCTRL10_MASK) | DRVCTRL10_D6(7) in pfc_init_h3_v2() 1023 reg = ((reg & DRVCTRL11_MASK) | DRVCTRL11_D14(3) in pfc_init_h3_v2() 1039 reg = ((reg & DRVCTRL13_MASK) | DRVCTRL13_TDO(3) in pfc_init_h3_v2() [all …]
|