mirror of
https://github.com/smaeul/u-boot.git
synced 2025-10-14 12:56:00 +01:00
mpc8548cds: Rework CONFIG_LEGACY usage
This CONFIG option is used in one place, so pick a more direct name and migrate to Kconfig. Rework the code slightly. Cc: Priyanka Jain <priyanka.jain@nxp.com> Signed-off-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
parent
7f3092d713
commit
11f077bb20
@ -28,7 +28,11 @@ void mpc85xx_config_via(struct pci_controller *hose,
|
|||||||
* This allows legacy I/O (i8259, etc) on the VIA
|
* This allows legacy I/O (i8259, etc) on the VIA
|
||||||
* southbridge to be accessed.
|
* southbridge to be accessed.
|
||||||
*/
|
*/
|
||||||
bridge = PCI_BDF(0,BRIDGE_ID,0);
|
#ifdef CONFIG_TARGET_MPC8548CDS_LEGACY
|
||||||
|
bridge = PCI_BDF(0, 17, 0);
|
||||||
|
#else
|
||||||
|
bridge = PCI_BDF(0, 28, 0);
|
||||||
|
#endif
|
||||||
pci_hose_write_config_byte(hose, bridge, PCI_IO_BASE, 0);
|
pci_hose_write_config_byte(hose, bridge, PCI_IO_BASE, 0);
|
||||||
pci_hose_write_config_word(hose, bridge, PCI_IO_BASE_UPPER16, 0);
|
pci_hose_write_config_word(hose, bridge, PCI_IO_BASE_UPPER16, 0);
|
||||||
pci_hose_write_config_byte(hose, bridge, PCI_IO_LIMIT, 0x10);
|
pci_hose_write_config_byte(hose, bridge, PCI_IO_LIMIT, 0x10);
|
||||||
|
@ -9,4 +9,7 @@ config SYS_VENDOR
|
|||||||
config SYS_CONFIG_NAME
|
config SYS_CONFIG_NAME
|
||||||
default "MPC8548CDS"
|
default "MPC8548CDS"
|
||||||
|
|
||||||
|
config TARGET_MPC8548CDS_LEGACY
|
||||||
|
bool "Legacy platform support"
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
@ -8,9 +8,9 @@ CONFIG_MPC85xx=y
|
|||||||
# CONFIG_CMD_ERRATA is not set
|
# CONFIG_CMD_ERRATA is not set
|
||||||
CONFIG_TARGET_MPC8548CDS=y
|
CONFIG_TARGET_MPC8548CDS=y
|
||||||
CONFIG_MPC85XX_HAVE_RESET_VECTOR=y
|
CONFIG_MPC85XX_HAVE_RESET_VECTOR=y
|
||||||
|
CONFIG_TARGET_MPC8548CDS_LEGACY=y
|
||||||
CONFIG_OF_BOARD_SETUP=y
|
CONFIG_OF_BOARD_SETUP=y
|
||||||
CONFIG_OF_STDOUT_VIA_ALIAS=y
|
CONFIG_OF_STDOUT_VIA_ALIAS=y
|
||||||
CONFIG_SYS_EXTRA_OPTIONS="LEGACY"
|
|
||||||
CONFIG_DYNAMIC_SYS_CLK_FREQ=y
|
CONFIG_DYNAMIC_SYS_CLK_FREQ=y
|
||||||
CONFIG_BOOTDELAY=10
|
CONFIG_BOOTDELAY=10
|
||||||
CONFIG_USE_BOOTCOMMAND=y
|
CONFIG_USE_BOOTCOMMAND=y
|
||||||
|
@ -324,14 +324,6 @@
|
|||||||
#endif
|
#endif
|
||||||
#define CONFIG_SYS_SRIO1_MEM_SIZE 0x20000000 /* 512M */
|
#define CONFIG_SYS_SRIO1_MEM_SIZE 0x20000000 /* 512M */
|
||||||
|
|
||||||
#ifdef CONFIG_LEGACY
|
|
||||||
#define BRIDGE_ID 17
|
|
||||||
#define VIA_ID 2
|
|
||||||
#else
|
|
||||||
#define BRIDGE_ID 28
|
|
||||||
#define VIA_ID 4
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(CONFIG_PCI)
|
#if defined(CONFIG_PCI)
|
||||||
#define CONFIG_PCI_SCAN_SHOW /* show pci devices on startup */
|
#define CONFIG_PCI_SCAN_SHOW /* show pci devices on startup */
|
||||||
#endif /* CONFIG_PCI */
|
#endif /* CONFIG_PCI */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user