genesys: Reduce duplication in low level functions
A lot of decisions in low-level functions are duplicated. This PR reduces the duplication at the expense of chip id checks within the deduplicated functions.
A lot of decisions in low-level functions are duplicated. This PR reduces the duplication at the expense of chip id checks within the deduplicated functions.