external/common: Teach ARM code to erase 'mtd chips'
external/common: Teach ARM code to erase 'mtd chips'

Currently the arch flash code for all architectures can only perform
chip erases if there is a real flash driver attached.

With increasing use of MTD on both host and BMC this code needs to know
how to behave of the backend of blocklevel is MTD.

This patch teaches the ARM specific code to pass an erase for the full
size of the chip down the stack. This can be optimised into a chip erase
within the kernel.

Signed-off-by: Cyril Bur <6ce38dade8c4b52fd55c193fae70fd1d1275c3c3@au1.ibm.com>
Reviewed-by: Joel Stanley <4816dabf8db1bc6cac35b3a24cab2ff844b5b0c7@jms.id.au>
Signed-off-by: Stewart Smith <ec31ab75ddf977353c8f660f92ea8b23f64aef25@linux.vnet.ibm.com>

mikey/skiboot,mikey/skiboot,qemu/skiboot,open-power/skiboot,legoater/skiboot,legoater/skiboot,qemu/skiboot,legoater/skiboot,open-power/skiboot,legoater/skiboot,stewart-ibm/skiboot,stewart-ibm/skiboot,shenki/skiboot,qemu/skiboot,shenki/skiboot,qemu/skiboot,legoater/skiboot,qemu/skiboot,shenki/skiboot,shenki/skiboot,open-power/skiboot,open-power/skiboot,stewart-ibm/skiboot,open-power/skiboot,mikey/skiboot,shenki/skiboot