You will have to check the exact register names and compare - I have seen differences between other similar AVR chips. Usually not that hard to fix given a data sheet. Things like timer masks and PWM setup bits are likely to change.