From my copy of avrdude.conf, here is how it wants to see the part id and desc names:
#------------------------------------------------------------
ATmega1284P
#------------------------------------------------------------
similar to ATmega164p
part
id = "m1284p";
desc = "ATMEGA1284P";