NAND driver for MX51 == Cortex-A8

I see there is a NAND driver for flash programming with a MX31, but not one for the MX51.

could anyone have written one for their own use they would like to share?