[PATCH 5/6] MPC5121 Add PCI support

Scott Wood scottwood at freescale.com
Sat Jun 21 08:17:49 EST 2008


Kumar Gala wrote:
>> diff --git a/arch/powerpc/platforms/512x/pci.c 
>> b/arch/powerpc/platforms/512x/pci.c
>> new file mode 100644
>> index 0000000..7ed9b34
>> --- /dev/null
>> +++ b/arch/powerpc/platforms/512x/pci.c
>> @@ -0,0 +1,84 @@
>> +/*
>> + * Copyright (C) 2008 Freescale Semiconductor, Inc. All rights reserved.
>> + *
>> + * Original copied from 83xx/pci.c:
> 
> Can we not reuse the same code for 83xx/pci.c and 5121/pci?  and move it 
> into sysdev/fsl_pci.c?  (we'd add some ifdefs for 83xx & 5121)

I assume by "ifdefs" you mean "device tree checks", right? :-)

-Scott



More information about the Linuxppc-dev mailing list