Lines Matching refs:f
62 print(f"Generate clock control binding for {device}")
65 with bits_file.open() as f:
66 for line in f:
73 with node_file.open() as f:
74 for line in f:
77 nodes.append(f"#define {m.group(1)}"
78 f"{' ' * (20 - len(m.group(1)))}"
79 f"(FIELD_PREP(CLOCK_REG_MASK, {clocks[m.group(2)]}) | "
80 f"FIELD_PREP(CLOCK_BIT_MASK, {bits[m.group(3)]}))"
83 print(f"WARN: Failed to emit clock node: {e}")
94 f" * This file was generated by the script {Path(__file__).name} in the hal_silabs module.",
98 f"#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_CLOCK_SILABS_{device.upper()}_CLOCK_H_",
99 f"#define ZEPHYR_INCLUDE_DT_BINDINGS_CLOCK_SILABS_{device.upper()}_CLOCK_H_",
114 f"#endif /* ZEPHYR_INCLUDE_DT_BINDINGS_CLOCK_SILABS_{device.upper()}_CLOCK_H_ */",
118 outfile = args.out / f"{device}-clock.h"