/* Determine which DMA controllers are present on this CPU  */
void __init frv_dma_init(void)
/* Determine which DMA controllers are present on this CPU  */
void __init frv_dma_init(void)
{
	unsigned long psr = __get_PSR();
	int num_dma, i;
	switch (PSR_IMPLE(psr)) {
	case PSR_IMPLE_FR405:
	case PSR_IMPLE_FR451:
	case PSR_IMPLE_FR501:
	case PSR_IMPLE_FR551:
		num_dma = FRV_DMA_8CHANS;
		break;
	case PSR_IMPLE_FR401:
	default:
		num_dma = FRV_DMA_4CHANS;
		break;
	}
	for(i = num_dma; i < FRV_DMA_NCHANS; i++)
		frv_dma_channels[i].flags = FRV_DMA_FLAGS_RESERVED;
}