/* Pointer to image @size: Size of image in bytes @freq: SPI frequency to use  */
static void set_spi_frequency(char *image, int size, enum spi_frequency freq)
/* Pointer to image @size: Size of image in bytes @freq: SPI frequency to use  */
static void set_spi_frequency(char *image, int size, enum spi_frequency freq)
{
	struct fdbar_t *fdb = find_fd(image, size);
	struct fcba_t *fcba;
	fcba = (struct fcba_t *)(image + (((fdb->flmap0) & 0xff) << 4));
	fcba->flcomp &= ~0x3fe00000;
	fcba->flcomp |= freq << 27;
	fcba->flcomp |= freq << 24;
	fcba->flcomp |= freq << 21;
}