diff options
| -rw-r--r-- | arch/mips/kernel/setup.c | 16 | ||||
| -rw-r--r-- | arch/mips/kernel/smp-bmips.c | 2 | ||||
| -rw-r--r-- | arch/sparc/Kconfig | 2 | ||||
| -rw-r--r-- | drivers/usb/Kconfig | 6 | ||||
| -rw-r--r-- | drivers/usb/host/Kconfig | 8 |
5 files changed, 21 insertions, 13 deletions
diff --git a/arch/mips/kernel/setup.c b/arch/mips/kernel/setup.c index 85bc601e9a0d..5f8b0a9e30b3 100644 --- a/arch/mips/kernel/setup.c +++ b/arch/mips/kernel/setup.c | |||
| @@ -375,6 +375,7 @@ static void __init bootmem_init(void) | |||
| 375 | unsigned long reserved_end; | 375 | unsigned long reserved_end; |
| 376 | unsigned long mapstart = ~0UL; | 376 | unsigned long mapstart = ~0UL; |
| 377 | unsigned long bootmap_size; | 377 | unsigned long bootmap_size; |
| 378 | phys_addr_t ramstart = (phys_addr_t)ULLONG_MAX; | ||
| 378 | bool bootmap_valid = false; | 379 | bool bootmap_valid = false; |
| 379 | int i; | 380 | int i; |
| 380 | 381 | ||
| @@ -395,7 +396,8 @@ static void __init bootmem_init(void) | |||
| 395 | max_low_pfn = 0; | 396 | max_low_pfn = 0; |
| 396 | 397 | ||
| 397 | /* | 398 | /* |
| 398 | * Find the highest page frame number we have available. | 399 | * Find the highest page frame number we have available |
| 400 | * and the lowest used RAM address | ||
| 399 | */ | 401 | */ |
| 400 | for (i = 0; i < boot_mem_map.nr_map; i++) { | 402 | for (i = 0; i < boot_mem_map.nr_map; i++) { |
| 401 | unsigned long start, end; | 403 | unsigned long start, end; |
| @@ -407,6 +409,8 @@ static void __init bootmem_init(void) | |||
| 407 | end = PFN_DOWN(boot_mem_map.map[i].addr | 409 | end = PFN_DOWN(boot_mem_map.map[i].addr |
| 408 | + boot_mem_map.map[i].size); | 410 | + boot_mem_map.map[i].size); |
| 409 | 411 | ||
| 412 | ramstart = min(ramstart, boot_mem_map.map[i].addr); | ||
| 413 | |||
| 410 | #ifndef CONFIG_HIGHMEM | 414 | #ifndef CONFIG_HIGHMEM |
| 411 | /* | 415 | /* |
| 412 | * Skip highmem here so we get an accurate max_low_pfn if low | 416 | * Skip highmem here so we get an accurate max_low_pfn if low |
| @@ -436,6 +440,13 @@ static void __init bootmem_init(void) | |||
| 436 | mapstart = max(reserved_end, start); | 440 | mapstart = max(reserved_end, start); |
| 437 | } | 441 | } |
| 438 | 442 | ||
| 443 | /* | ||
| 444 | * Reserve any memory between the start of RAM and PHYS_OFFSET | ||
| 445 | */ | ||
| 446 | if (ramstart > PHYS_OFFSET) | ||
| 447 | add_memory_region(PHYS_OFFSET, ramstart - PHYS_OFFSET, | ||
| 448 | BOOT_MEM_RESERVED); | ||
| 449 | |||
| 439 | if (min_low_pfn >= max_low_pfn) | 450 | if (min_low_pfn >= max_low_pfn) |
| 440 | panic("Incorrect memory mapping !!!"); | 451 | panic("Incorrect memory mapping !!!"); |
| 441 | if (min_low_pfn > ARCH_PFN_OFFSET) { | 452 | if (min_low_pfn > ARCH_PFN_OFFSET) { |
| @@ -664,9 +675,6 @@ static int __init early_parse_mem(char *p) | |||
| 664 | 675 | ||
| 665 | add_memory_region(start, size, BOOT_MEM_RAM); | 676 | add_memory_region(start, size, BOOT_MEM_RAM); |
| 666 | 677 | ||
| 667 | if (start && start > PHYS_OFFSET) | ||
| 668 | add_memory_region(PHYS_OFFSET, start - PHYS_OFFSET, | ||
| 669 | BOOT_MEM_RESERVED); | ||
| 670 | return 0; | 678 | return 0; |
| 671 | } | 679 | } |
| 672 | early_param("mem", early_parse_mem); | 680 | early_param("mem", early_parse_mem); |
diff --git a/arch/mips/kernel/smp-bmips.c b/arch/mips/kernel/smp-bmips.c index 87dcac2447c8..9d41732a9146 100644 --- a/arch/mips/kernel/smp-bmips.c +++ b/arch/mips/kernel/smp-bmips.c | |||
| @@ -572,7 +572,7 @@ asmlinkage void __weak plat_wired_tlb_setup(void) | |||
| 572 | */ | 572 | */ |
| 573 | } | 573 | } |
| 574 | 574 | ||
| 575 | void __init bmips_cpu_setup(void) | 575 | void bmips_cpu_setup(void) |
| 576 | { | 576 | { |
| 577 | void __iomem __maybe_unused *cbr = BMIPS_GET_CBR(); | 577 | void __iomem __maybe_unused *cbr = BMIPS_GET_CBR(); |
| 578 | u32 __maybe_unused cfg; | 578 | u32 __maybe_unused cfg; |
diff --git a/arch/sparc/Kconfig b/arch/sparc/Kconfig index 6bf594ace663..8767e45f1b2b 100644 --- a/arch/sparc/Kconfig +++ b/arch/sparc/Kconfig | |||
| @@ -430,6 +430,8 @@ config SPARC_LEON | |||
| 430 | depends on SPARC32 | 430 | depends on SPARC32 |
| 431 | select USB_EHCI_BIG_ENDIAN_MMIO | 431 | select USB_EHCI_BIG_ENDIAN_MMIO |
| 432 | select USB_EHCI_BIG_ENDIAN_DESC | 432 | select USB_EHCI_BIG_ENDIAN_DESC |
| 433 | select USB_UHCI_BIG_ENDIAN_MMIO | ||
| 434 | select USB_UHCI_BIG_ENDIAN_DESC | ||
| 433 | ---help--- | 435 | ---help--- |
| 434 | If you say Y here if you are running on a SPARC-LEON processor. | 436 | If you say Y here if you are running on a SPARC-LEON processor. |
| 435 | The LEON processor is a synthesizable VHDL model of the | 437 | The LEON processor is a synthesizable VHDL model of the |
diff --git a/drivers/usb/Kconfig b/drivers/usb/Kconfig index f699abab1787..148f3ee70286 100644 --- a/drivers/usb/Kconfig +++ b/drivers/usb/Kconfig | |||
| @@ -19,6 +19,12 @@ config USB_EHCI_BIG_ENDIAN_MMIO | |||
| 19 | config USB_EHCI_BIG_ENDIAN_DESC | 19 | config USB_EHCI_BIG_ENDIAN_DESC |
| 20 | bool | 20 | bool |
| 21 | 21 | ||
| 22 | config USB_UHCI_BIG_ENDIAN_MMIO | ||
| 23 | bool | ||
| 24 | |||
| 25 | config USB_UHCI_BIG_ENDIAN_DESC | ||
| 26 | bool | ||
| 27 | |||
| 22 | menuconfig USB_SUPPORT | 28 | menuconfig USB_SUPPORT |
| 23 | bool "USB support" | 29 | bool "USB support" |
| 24 | depends on HAS_IOMEM | 30 | depends on HAS_IOMEM |
diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig index 6150bed7cfa8..4fcfb3084b36 100644 --- a/drivers/usb/host/Kconfig +++ b/drivers/usb/host/Kconfig | |||
| @@ -633,14 +633,6 @@ config USB_UHCI_ASPEED | |||
| 633 | bool | 633 | bool |
| 634 | default y if ARCH_ASPEED | 634 | default y if ARCH_ASPEED |
| 635 | 635 | ||
| 636 | config USB_UHCI_BIG_ENDIAN_MMIO | ||
| 637 | bool | ||
| 638 | default y if SPARC_LEON | ||
| 639 | |||
| 640 | config USB_UHCI_BIG_ENDIAN_DESC | ||
| 641 | bool | ||
| 642 | default y if SPARC_LEON | ||
| 643 | |||
| 644 | config USB_FHCI_HCD | 636 | config USB_FHCI_HCD |
| 645 | tristate "Freescale QE USB Host Controller support" | 637 | tristate "Freescale QE USB Host Controller support" |
| 646 | depends on OF_GPIO && QE_GPIO && QUICC_ENGINE | 638 | depends on OF_GPIO && QE_GPIO && QUICC_ENGINE |
