mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-30 00:21:06 +00:00
PQ2FADS: Enable PCI.
PCI on PQ2FADS is very similar to PCI on MPC8272ADS. Signed-off-by: Scott Wood <scottwood@freescale.com>
This commit is contained in:
parent
83863df04b
commit
8701eceffd
2 changed files with 15 additions and 4 deletions
|
@ -258,6 +258,8 @@ void pci_mpc8250_init (struct pci_controller *hose)
|
||||||
immap->im_siu_conf.sc_siumcr =
|
immap->im_siu_conf.sc_siumcr =
|
||||||
(immap->im_siu_conf.sc_siumcr & ~SIUMCR_LBPC11)
|
(immap->im_siu_conf.sc_siumcr & ~SIUMCR_LBPC11)
|
||||||
| SIUMCR_LBPC01;
|
| SIUMCR_LBPC01;
|
||||||
|
#elif defined(CONFIG_ADSTYPE) && CONFIG_ADSTYPE == CONFIG_SYS_PQ2FADS
|
||||||
|
/* nothing to do for this board here */
|
||||||
#elif defined CONFIG_MPC8272
|
#elif defined CONFIG_MPC8272
|
||||||
immap->im_siu_conf.sc_siumcr = (immap->im_siu_conf.sc_siumcr &
|
immap->im_siu_conf.sc_siumcr = (immap->im_siu_conf.sc_siumcr &
|
||||||
~SIUMCR_BBD &
|
~SIUMCR_BBD &
|
||||||
|
|
|
@ -67,6 +67,13 @@
|
||||||
|
|
||||||
#if CONFIG_ADSTYPE == CONFIG_SYS_8272ADS
|
#if CONFIG_ADSTYPE == CONFIG_SYS_8272ADS
|
||||||
#define CONFIG_MPC8272 1
|
#define CONFIG_MPC8272 1
|
||||||
|
#elif CONFIG_ADSTYPE == CONFIG_SYS_PQ2FADS
|
||||||
|
/*
|
||||||
|
* Actually MPC8275, but the code is littered with ifdefs that
|
||||||
|
* apply to both, or which use this ifdef to assume board-specific
|
||||||
|
* details. :-(
|
||||||
|
*/
|
||||||
|
#define CONFIG_MPC8272 1
|
||||||
#else
|
#else
|
||||||
#define CONFIG_MPC8260 1
|
#define CONFIG_MPC8260 1
|
||||||
#endif /* CONFIG_ADSTYPE == CONFIG_SYS_8272ADS */
|
#endif /* CONFIG_ADSTYPE == CONFIG_SYS_8272ADS */
|
||||||
|
@ -176,7 +183,7 @@
|
||||||
#endif /* CONFIG_ADSTYPE >= CONFIG_SYS_PQ2FADS */
|
#endif /* CONFIG_ADSTYPE >= CONFIG_SYS_PQ2FADS */
|
||||||
|
|
||||||
/*PCI*/
|
/*PCI*/
|
||||||
#ifdef CONFIG_MPC8272
|
#if CONFIG_ADSTYPE >= CONFIG_SYS_PQ2FADS
|
||||||
#define CONFIG_PCI
|
#define CONFIG_PCI
|
||||||
#define CONFIG_PCI_PNP
|
#define CONFIG_PCI_PNP
|
||||||
#define CONFIG_PCI_BOOTDELAY 0
|
#define CONFIG_PCI_BOOTDELAY 0
|
||||||
|
@ -244,7 +251,6 @@
|
||||||
#elif CONFIG_ADSTYPE >= CONFIG_SYS_PQ2FADS
|
#elif CONFIG_ADSTYPE >= CONFIG_SYS_PQ2FADS
|
||||||
#undef CONFIG_CMD_SDRAM
|
#undef CONFIG_CMD_SDRAM
|
||||||
#undef CONFIG_CMD_I2C
|
#undef CONFIG_CMD_I2C
|
||||||
#undef CONFIG_CMD_PCI
|
|
||||||
|
|
||||||
#else
|
#else
|
||||||
#undef CONFIG_CMD_PCI
|
#undef CONFIG_CMD_PCI
|
||||||
|
@ -318,7 +324,7 @@
|
||||||
|
|
||||||
#define CONFIG_SYS_IMMR 0xF0000000
|
#define CONFIG_SYS_IMMR 0xF0000000
|
||||||
#define CONFIG_SYS_BCSR 0xF4500000
|
#define CONFIG_SYS_BCSR 0xF4500000
|
||||||
#if CONFIG_ADSTYPE == CONFIG_SYS_8272ADS
|
#if CONFIG_ADSTYPE >= CONFIG_SYS_PQ2FADS
|
||||||
#define CONFIG_SYS_PCI_INT 0xF8200000
|
#define CONFIG_SYS_PCI_INT 0xF8200000
|
||||||
#endif
|
#endif
|
||||||
#define CONFIG_SYS_SDRAM_BASE 0x00000000
|
#define CONFIG_SYS_SDRAM_BASE 0x00000000
|
||||||
|
@ -413,6 +419,9 @@
|
||||||
#if CONFIG_ADSTYPE == CONFIG_SYS_8272ADS
|
#if CONFIG_ADSTYPE == CONFIG_SYS_8272ADS
|
||||||
#define CONFIG_SYS_BR3_PRELIM (CONFIG_SYS_PCI_INT | 0x1801) /* PCI interrupt controller */
|
#define CONFIG_SYS_BR3_PRELIM (CONFIG_SYS_PCI_INT | 0x1801) /* PCI interrupt controller */
|
||||||
#define CONFIG_SYS_OR3_PRELIM 0xFFFF8010
|
#define CONFIG_SYS_OR3_PRELIM 0xFFFF8010
|
||||||
|
#elif CONFIG_ADSTYPE == CONFIG_SYS_PQ2FADS
|
||||||
|
#define CONFIG_SYS_BR8_PRELIM (CONFIG_SYS_PCI_INT | 0x1801) /* PCI interrupt controller */
|
||||||
|
#define CONFIG_SYS_OR8_PRELIM 0xFFFF8010
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define CONFIG_SYS_RMR RMR_CSRE
|
#define CONFIG_SYS_RMR RMR_CSRE
|
||||||
|
@ -447,7 +456,7 @@
|
||||||
|
|
||||||
#define CONFIG_SYS_RESET_ADDRESS 0x04400000
|
#define CONFIG_SYS_RESET_ADDRESS 0x04400000
|
||||||
|
|
||||||
#if CONFIG_ADSTYPE == CONFIG_SYS_8272ADS
|
#if CONFIG_ADSTYPE >= CONFIG_SYS_PQ2FADS
|
||||||
|
|
||||||
/* PCI Memory map (if different from default map */
|
/* PCI Memory map (if different from default map */
|
||||||
#define CONFIG_SYS_PCI_SLV_MEM_LOCAL CONFIG_SYS_SDRAM_BASE /* Local base */
|
#define CONFIG_SYS_PCI_SLV_MEM_LOCAL CONFIG_SYS_SDRAM_BASE /* Local base */
|
||||||
|
|
Loading…
Reference in a new issue