Re: [DNX#2006040142001203] [U-Boot-Users] [PATCH 5/7] Flat device tree suppor [...]

Hello list,
inside the automatic U-Boot patch tracking system a new ticket [DNX#2006040142001203] was created:
<snip>
- Added PCI and I2C support to 8540 ADS flat device tree
- Fixed PCI memory definitions Patch by Andy Fleming 17-Mar-2006
Signed-off-by: Andy Fleming afleming@freescale.com
board/mpc8540ads/mpc8540ads.c | 21 ++------- board/mpc8540ads/oftree.dts | 98 +++++++++++++++++++++++++++++++++++++++++ include/configs/MPC8540ADS.h | 9 ++--
78e133998e9e91efcd43bf476681aad123c25aaa diff --git a/board/mpc8540ads/mpc8540ads.c b/board/mpc8540ads/mpc8540ads.c index 1252d2a..e7db14b 100644 --- a/board/mpc8540ads/mpc8540ads.c +++ b/board/mpc8540ads/mpc8540ads.c @@ -317,24 +317,8 @@ long int fixed_sdram (void)
- Initialize PCI Devices, report devices found.
*/
-#ifndef CONFIG_PCI_PNP -static struct pci_config_table pci_mpc85xxads_config_table[] = {
- { PCI_ANY_ID, PCI_ANY_ID, PCI_ANY_ID, PCI_ANY_ID,
PCI_IDSEL_NUMBER, PCI_ANY_ID,
pci_cfgfunc_config_device, { PCI_ENET0_IOADDR,
PCI_ENET0_MEMADDR,
PCI_COMMAND_MEMORY | PCI_COMMAND_MASTER
} },
- { }
-}; -#endif
-static struct pci_controller hose = { -#ifndef CONFIG_PCI_PNP
- config_table: pci_mpc85xxads_config_table,
-#endif -}; +static struct pci_controller hose;
#endif /* CONFIG_PCI */
@@ -354,6 +338,9 @@ pci_init_board(void) void ft_board_setup(void *blob, bd_t *bd) { +#ifdef CONFIG_PCI
- ft_pci_setup(blob, bd);
+#endif ft_cpu_setup(blob, bd); } #endif diff --git a/board/mpc8540ads/oftree.dts b/board/mpc8540ads/oftree.dts index 290e80e..a505f48 100644 --- a/board/mpc8540ads/oftree.dts +++ b/board/mpc8540ads/oftree.dts @@ -54,6 +54,15 @@ reg = <e0000000 00100000>; // CCSRBAR 1M bus-frequency = <0>;
i2c@3000 {
device_type = "i2c";
compatible = "fsl-i2c";
reg = <3000 100>;
interrupts = <1b 0>;
interrupt-parent = <40000>;
dfsrr;
};
- mdio@24520 { #address-cells = <1>; #size-cells = <0>;
@@ -120,6 +129,95 @@ interrupts = <1a 3>; interrupt-parent = <40000>; };
pci@8000 {
linux,phandle = <8000>;
interrupt-map-mask = <f800 0 0 7>;
interrupt-map = <
/* IDSEL 0x02 */
1000 0 0 1 40000 31 0
1000 0 0 2 40000 32 0
1000 0 0 3 40000 33 0
1000 0 0 4 40000 34 0
/* IDSEL 0x03 */
1800 0 0 1 40000 34 0
1800 0 0 2 40000 31 0
1800 0 0 3 40000 32 0
1800 0 0 4 40000 33 0
/* IDSEL 0x04 */
2000 0 0 1 40000 33 0
2000 0 0 2 40000 34 0
2000 0 0 3 40000 31 0
</snip>
Your U-Boot support team
participants (1)
-
DENX Support System