Lines Matching +full:sw +full:- +full:dp
2 * Copyright (c) 2016 Open-RnD Sp. z o.o.
6 * SPDX-License-Identifier: Apache-2.0
121 /* ignore swj-cfg reset state (default value) */
130 /* reset state is '000' (Full SWJ, (JTAG-DP + SW-DP)) */ in stm32f1_swj_cfg_init()
133 /* 001: Full SWJ (JTAG-DP + SW-DP) but without NJTRST */ in stm32f1_swj_cfg_init()
137 /* 010: JTAG-DP Disabled and SW-DP Enabled */ in stm32f1_swj_cfg_init()
141 /* 100: JTAG-DP Disabled and SW-DP Disabled */ in stm32f1_swj_cfg_init()
164 * @retval -EINVAL If pins have an incompatible set of remaps.
180 return -EINVAL; in stm32_pins_remap()
189 /* read initial value, ignore write-only SWJ_CFG */ in stm32_pins_remap()
190 reg_val = AFIO->MAPR & ~AFIO_MAPR_SWJ_CFG; in stm32_pins_remap()
194 AFIO->MAPR = reg_val | AFIO_MAPR_SWJ_CFG; in stm32_pins_remap()
196 reg_val = AFIO->MAPR2; in stm32_pins_remap()
198 AFIO->MAPR2 = reg_val; in stm32_pins_remap()
211 return -EINVAL; in stm32_pin_configure()
217 return -ENODEV; in stm32_pin_configure()