Reorganized the auto-generated code for specific chips.