void __init orion_xor1_init(unsigned long mapbase_low, unsigned long mapbase_high, unsigned long irq_0, unsigned long irq_1) { orion_xor1_shared_resources[0].start = mapbase_low; orion_xor1_shared_resources[0].end = mapbase_low + 0xff; orion_xor1_shared_resources[1].start = mapbase_high; orion_xor1_shared_resources[1].end = mapbase_high + 0xff; orion_xor10_resources[0].start = irq_0; orion_xor10_resources[0].end = irq_0; orion_xor11_resources[0].start = irq_1; orion_xor11_resources[0].end = irq_1; platform_device_register(&orion_xor1_shared); orion_xor_init_channels(&orion_xor10_data, &orion_xor10_channel, &orion_xor11_data, &orion_xor11_channel); }
void __init orion_xor0_init(struct mbus_dram_target_info *mbus_dram_info, unsigned long mapbase_low, unsigned long mapbase_high, unsigned long irq_0, unsigned long irq_1) { orion_xor_shared_data.dram = mbus_dram_info; orion_xor0_shared_resources[0].start = mapbase_low; orion_xor0_shared_resources[0].end = mapbase_low + 0xff; orion_xor0_shared_resources[1].start = mapbase_high; orion_xor0_shared_resources[1].end = mapbase_high + 0xff; orion_xor00_resources[0].start = irq_0; orion_xor00_resources[0].end = irq_0; orion_xor01_resources[0].start = irq_1; orion_xor01_resources[0].end = irq_1; platform_device_register(&orion_xor0_shared); orion_xor_init_channels(&orion_xor00_data, &orion_xor00_channel, &orion_xor01_data, &orion_xor01_channel); }