Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 375187
b: refs/heads/master
c: 2aa9fd0
h: refs/heads/master
i:
  375185: 2d7cb6c
  375183: bcf376d
v: v3
  • Loading branch information
Steven J. Hill authored and Steven J. Hill committed May 1, 2013
1 parent 9c6a24f commit 12e4a8d
Show file tree
Hide file tree
Showing 131 changed files with 1,391 additions and 10,353 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5e0e61dd2c89c673f89fb57dcd3cc746dc0c1706
refs/heads/master: 2aa9fd06e221da4e69693dc1b5c6c6bc84c76f32
17 changes: 0 additions & 17 deletions trunk/Documentation/devicetree/bindings/mips/ralink.txt

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ onnn ON Semiconductor Corp.
picochip Picochip Ltd
powervr PowerVR (deprecated, use img)
qcom Qualcomm, Inc.
ralink Mediatek/Ralink Technology Corp.
ramtron Ramtron International
realtek Realtek Semiconductor Corp.
renesas Renesas Electronics Corporation
Expand Down
4 changes: 0 additions & 4 deletions trunk/arch/mips/Kbuild
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,3 @@ obj- := $(platform-)
obj-y += kernel/
obj-y += mm/
obj-y += math-emu/

ifdef CONFIG_KVM
obj-y += kvm/
endif
28 changes: 9 additions & 19 deletions trunk/arch/mips/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,7 @@ config MIPS_MALTA
select HW_HAS_PCI
select I8253
select I8259
select MIPS_BOARDS_GEN
select MIPS_BONITO64
select MIPS_CPU_SCACHE
select PCI_GT64XXX_PCI0
Expand Down Expand Up @@ -341,6 +342,7 @@ config MIPS_SEAD3
select DMA_NONCOHERENT
select IRQ_CPU
select IRQ_GIC
select MIPS_BOARDS_GEN
select MIPS_CPU_SCACHE
select MIPS_MSC
select SYS_HAS_CPU_MIPS32_R1
Expand Down Expand Up @@ -981,6 +983,9 @@ config MIPS_MSC
config MIPS_NILE4
bool

config MIPS_DISABLE_OBSOLETE_IDE
bool

config SYNC_R4K
bool

Expand Down Expand Up @@ -1074,6 +1079,9 @@ config IRQ_GT641XX
config IRQ_GIC
bool

config MIPS_BOARDS_GEN
bool

config PCI_GT64XXX_PCI0
bool

Expand Down Expand Up @@ -1144,7 +1152,7 @@ config BOOT_ELF32

config MIPS_L1_CACHE_SHIFT
int
default "4" if MACH_DECSTATION || MIKROTIK_RB532 || PMC_MSP4200_EVAL || SOC_RT288X
default "4" if MACH_DECSTATION || MIKROTIK_RB532 || PMC_MSP4200_EVAL
default "6" if MIPS_CPU_SCACHE
default "7" if SGI_IP22 || SGI_IP27 || SGI_IP28 || SNI_RM || CPU_CAVIUM_OCTEON
default "5"
Expand Down Expand Up @@ -1234,7 +1242,6 @@ config CPU_MIPS32_R2
select CPU_HAS_PREFETCH
select CPU_SUPPORTS_32BIT_KERNEL
select CPU_SUPPORTS_HIGHMEM
select HAVE_KVM
help
Choose this option to build a kernel for release 2 or later of the
MIPS32 architecture. Most modern embedded systems with a 32-bit
Expand Down Expand Up @@ -1735,20 +1742,6 @@ config 64BIT

endchoice

config KVM_GUEST
bool "KVM Guest Kernel"
help
Select this option if building a guest kernel for KVM (Trap & Emulate) mode

config KVM_HOST_FREQ
int "KVM Host Processor Frequency (MHz)"
depends on KVM_GUEST
default 500
help
Select this option if building a guest kernel for KVM to skip
RTC emulation when determining guest CPU Frequency. Instead, the guest
processor frequency is automatically derived from the host frequency.

choice
prompt "Kernel page size"
default PAGE_SIZE_4KB
Expand Down Expand Up @@ -2029,7 +2022,6 @@ config SB1_PASS_2_1_WORKAROUNDS
depends on CPU_SB1 && CPU_SB1_PASS_2
default y


config 64BIT_PHYS_ADDR
bool

Expand Down Expand Up @@ -2563,5 +2555,3 @@ source "security/Kconfig"
source "crypto/Kconfig"

source "lib/Kconfig"

source "arch/mips/kvm/Kconfig"
3 changes: 3 additions & 0 deletions trunk/arch/mips/alchemy/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ config MIPS_DB1000
select ALCHEMY_GPIOINT_AU1000
select DMA_NONCOHERENT
select HW_HAS_PCI
select MIPS_DISABLE_OBSOLETE_IDE
select SYS_SUPPORTS_BIG_ENDIAN
select SYS_SUPPORTS_LITTLE_ENDIAN
select SYS_HAS_EARLY_PRINTK
Expand All @@ -40,6 +41,7 @@ config MIPS_DB1235
select ARCH_REQUIRE_GPIOLIB
select HW_HAS_PCI
select DMA_COHERENT
select MIPS_DISABLE_OBSOLETE_IDE
select SYS_SUPPORTS_LITTLE_ENDIAN
select SYS_HAS_EARLY_PRINTK

Expand All @@ -55,6 +57,7 @@ config MIPS_GPR
select ALCHEMY_GPIOINT_AU1000
select HW_HAS_PCI
select DMA_NONCOHERENT
select MIPS_DISABLE_OBSOLETE_IDE
select SYS_SUPPORTS_LITTLE_ENDIAN
select SYS_HAS_EARLY_PRINTK

Expand Down
22 changes: 20 additions & 2 deletions trunk/arch/mips/alchemy/Platform
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,32 @@ platform-$(CONFIG_MIPS_ALCHEMY) += alchemy/common/


#
# AMD Alchemy Db1000/Db1500/Pb1500/Db1100/Pb1100 eval boards
# AMD Alchemy Pb1100 eval board
#
platform-$(CONFIG_MIPS_PB1100) += alchemy/devboards/
load-$(CONFIG_MIPS_PB1100) += 0xffffffff80100000

#
# AMD Alchemy Pb1500 eval board
#
platform-$(CONFIG_MIPS_PB1500) += alchemy/devboards/
load-$(CONFIG_MIPS_PB1500) += 0xffffffff80100000

#
# AMD Alchemy Pb1550 eval board
#
platform-$(CONFIG_MIPS_PB1550) += alchemy/devboards/
load-$(CONFIG_MIPS_PB1550) += 0xffffffff80100000

#
# AMD Alchemy Db1000/Db1500/Db1100 eval boards
#
platform-$(CONFIG_MIPS_DB1000) += alchemy/devboards/
cflags-$(CONFIG_MIPS_DB1000) += -I$(srctree)/arch/mips/include/asm/mach-db1x00
load-$(CONFIG_MIPS_DB1000) += 0xffffffff80100000

#
# AMD Alchemy Db1200/Pb1200/Db1550/Pb1550/Db1300 eval boards
# AMD Alchemy Db1200/Pb1200/Db1550/Db1300 eval boards
#
platform-$(CONFIG_MIPS_DB1235) += alchemy/devboards/
cflags-$(CONFIG_MIPS_DB1235) += -I$(srctree)/arch/mips/include/asm/mach-db1x00
Expand Down
16 changes: 15 additions & 1 deletion trunk/arch/mips/ath79/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,20 @@ static void ath79_halt(void)
cpu_wait();
}

static void __init ath79_detect_mem_size(void)
{
unsigned long size;

for (size = ATH79_MEM_SIZE_MIN; size < ATH79_MEM_SIZE_MAX;
size <<= 1) {
if (!memcmp(ath79_detect_mem_size,
ath79_detect_mem_size + size, 1024))
break;
}

add_memory_region(0, size, BOOT_MEM_RAM);
}

static void __init ath79_detect_sys_type(void)
{
char *chip = "????";
Expand Down Expand Up @@ -198,7 +212,7 @@ void __init plat_mem_setup(void)
AR71XX_DDR_CTRL_SIZE);

ath79_detect_sys_type();
detect_memory_region(0, ATH79_MEM_SIZE_MIN, ATH79_MEM_SIZE_MAX);
ath79_detect_mem_size();
ath79_clocks_init();

_machine_restart = ath79_restart;
Expand Down
4 changes: 0 additions & 4 deletions trunk/arch/mips/bcm63xx/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@ config BCM63XX_CPU_6358
bool "support 6358 CPU"
select HW_HAS_PCI

config BCM63XX_CPU_6362
bool "support 6362 CPU"
select HW_HAS_PCI

config BCM63XX_CPU_6368
bool "support 6368 CPU"
select HW_HAS_PCI
Expand Down
6 changes: 3 additions & 3 deletions trunk/arch/mips/bcm63xx/boards/board_bcm963xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -726,11 +726,11 @@ void __init board_prom_init(void)
u32 val;

/* read base address of boot chip select (0)
* 6328/6362 do not have MPI but boot from a fixed address
* 6328 does not have MPI but boots from a fixed address
*/
if (BCMCPU_IS_6328() || BCMCPU_IS_6362()) {
if (BCMCPU_IS_6328())
val = 0x18000000;
} else {
else {
val = bcm_mpi_readl(MPI_CSBASE_REG(0));
val &= MPI_CSBASE_BASE_MASK;
}
Expand Down
43 changes: 9 additions & 34 deletions trunk/arch/mips/bcm63xx/clk.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,7 @@
#include <bcm63xx_io.h>
#include <bcm63xx_regs.h>
#include <bcm63xx_reset.h>

struct clk {
void (*set)(struct clk *, int);
unsigned int rate;
unsigned int usage;
int id;
};
#include <bcm63xx_clk.h>

static DEFINE_MUTEX(clocks_mutex);

Expand Down Expand Up @@ -125,18 +119,11 @@ static struct clk clk_ephy = {
*/
static void enetsw_set(struct clk *clk, int enable)
{
if (BCMCPU_IS_6328())
bcm_hwclock_set(CKCTL_6328_ROBOSW_EN, enable);
else if (BCMCPU_IS_6362())
bcm_hwclock_set(CKCTL_6362_ROBOSW_EN, enable);
else if (BCMCPU_IS_6368())
bcm_hwclock_set(CKCTL_6368_ROBOSW_EN |
CKCTL_6368_SWPKT_USB_EN |
CKCTL_6368_SWPKT_SAR_EN,
enable);
else
if (!BCMCPU_IS_6368())
return;

bcm_hwclock_set(CKCTL_6368_ROBOSW_EN |
CKCTL_6368_SWPKT_USB_EN |
CKCTL_6368_SWPKT_SAR_EN, enable);
if (enable) {
/* reset switch core afer clock change */
bcm63xx_core_set_reset(BCM63XX_RESET_ENETSW, 1);
Expand Down Expand Up @@ -173,8 +160,6 @@ static void usbh_set(struct clk *clk, int enable)
bcm_hwclock_set(CKCTL_6328_USBH_EN, enable);
else if (BCMCPU_IS_6348())
bcm_hwclock_set(CKCTL_6348_USBH_EN, enable);
else if (BCMCPU_IS_6362())
bcm_hwclock_set(CKCTL_6362_USBH_EN, enable);
else if (BCMCPU_IS_6368())
bcm_hwclock_set(CKCTL_6368_USBH_EN, enable);
}
Expand All @@ -190,8 +175,6 @@ static void usbd_set(struct clk *clk, int enable)
{
if (BCMCPU_IS_6328())
bcm_hwclock_set(CKCTL_6328_USBD_EN, enable);
else if (BCMCPU_IS_6362())
bcm_hwclock_set(CKCTL_6362_USBD_EN, enable);
else if (BCMCPU_IS_6368())
bcm_hwclock_set(CKCTL_6368_USBD_EN, enable);
}
Expand All @@ -213,8 +196,6 @@ static void spi_set(struct clk *clk, int enable)
mask = CKCTL_6348_SPI_EN;
else if (BCMCPU_IS_6358())
mask = CKCTL_6358_SPI_EN;
else if (BCMCPU_IS_6362())
mask = CKCTL_6362_SPI_EN;
else
/* BCMCPU_IS_6368 */
mask = CKCTL_6368_SPI_EN;
Expand Down Expand Up @@ -255,10 +236,7 @@ static struct clk clk_xtm = {
*/
static void ipsec_set(struct clk *clk, int enable)
{
if (BCMCPU_IS_6362())
bcm_hwclock_set(CKCTL_6362_IPSEC_EN, enable);
else if (BCMCPU_IS_6368())
bcm_hwclock_set(CKCTL_6368_IPSEC_EN, enable);
bcm_hwclock_set(CKCTL_6368_IPSEC_EN, enable);
}

static struct clk clk_ipsec = {
Expand All @@ -271,10 +249,7 @@ static struct clk clk_ipsec = {

static void pcie_set(struct clk *clk, int enable)
{
if (BCMCPU_IS_6328())
bcm_hwclock_set(CKCTL_6328_PCIE_EN, enable);
else if (BCMCPU_IS_6362())
bcm_hwclock_set(CKCTL_6362_PCIE_EN, enable);
bcm_hwclock_set(CKCTL_6328_PCIE_EN, enable);
}

static struct clk clk_pcie = {
Expand Down Expand Up @@ -340,9 +315,9 @@ struct clk *clk_get(struct device *dev, const char *id)
return &clk_periph;
if (BCMCPU_IS_6358() && !strcmp(id, "pcm"))
return &clk_pcm;
if ((BCMCPU_IS_6362() || BCMCPU_IS_6368()) && !strcmp(id, "ipsec"))
if (BCMCPU_IS_6368() && !strcmp(id, "ipsec"))
return &clk_ipsec;
if ((BCMCPU_IS_6328() || BCMCPU_IS_6362()) && !strcmp(id, "pcie"))
if (BCMCPU_IS_6328() && !strcmp(id, "pcie"))
return &clk_pcie;
return ERR_PTR(-ENOENT);
}
Expand Down
Loading

0 comments on commit 12e4a8d

Please sign in to comment.