MIPS: Loongson: Add the Loongson-1A processor support
Subsystems (3)
v8 cover MIPS: Loongson: Add the Loongson-1A processor support
The Loongson-1A CPU is similar with Loongson-1B/1C, which is a 32-bit SoC.
It is a cost-effective single chip system based on LS232 processor core, and is applicable to fields such as industrial control, and security applications. It implements the MIPS32 release 2 instruction set.
They share the same PRID, so we rewrite them into PRID_REV_LOONGSON1ABC, and use their CPU macros to distinguish.
Due to historic reasons, devicetree is not supported on Loongson1 platform now. Maybe it will have change in the future.
Changes since v1:
1. According commit c908656a7531771ae7642990a7c5f3c7307bd612 (MIPS: Loongson: Naming style cleanup and rework) to fix the naming style.
Changes since v2:
1. Remove __irq_set_handler_locked().
2. Rebases on top of v4.5-rc5.
Changes since v3:
1. Rename the Loongson-1 series's PRID name.
2. Rewite Loongson-1A's clk driver.
3. Rebases on top of v4.10-rc2.
Changes since v4:
1. Fix comment's spelling error.
Changes since v5:
1. Rebases on top of v4.11-rc3.
Changes since v6:
1. Improve comment readability.
2. Rebases on top of v4.12-rc4.
Changes since v7:
1. Rename Loongson1 clk driver's spinlock name.
Binbin Zhou(9):
MIPS: Loongson: Merge PRID macro for Loongson-1A/1B/1C
MIPS: Loongson: Expand Loongson-1's register definition
MIPS: Loongson: Add basic Loongson-1A CPU support
MIPS: Loongson: Add Loongson-1A Kconfig options
MIPS: Loongson: Add platform devices for Loongson-1A
MIPS: Loongson: Add Loongson-1A board support
clk: Loongson: A descriptive spinlock name for Loongson1's clk driver
clk: Loongson: Add Loongson-1A clock support
MIPS: Loongson: Add Loongson-1A default config file
Signature · 30 lines
arch/mips/Kconfig | 12 +++++++++ arch/mips/configs/loongson1a_defconfig | 130 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ arch/mips/include/asm/cpu-type.h | 3 ++- arch/mips/include/asm/cpu.h | 3 +-- arch/mips/include/asm/mach-loongson32/irq.h | 16 ++++++++---- arch/mips/include/asm/mach-loongson32/loongson1.h | 172 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--------------------- arch/mips/include/asm/mach-loongson32/platform.h | 2 ++ arch/mips/include/asm/mach-loongson32/regs-clk.h | 30 ++++++++++++++++++++- arch/mips/include/asm/mach-loongson32/regs-mux.h | 36 ++++++++++++++++++++++++- arch/mips/kernel/cpu-probe.c | 6 ++++- arch/mips/loongson32/Kconfig | 20 ++++++++++++++ arch/mips/loongson32/Makefile | 6 +++++ arch/mips/loongson32/Platform | 1 + arch/mips/loongson32/common/irq.c | 2 +- arch/mips/loongson32/common/platform.c | 83 ++++++++++++++++++++++++++++++++++++++++++++++++---------- arch/mips/loongson32/common/setup.c | 6 +++-- arch/mips/loongson32/ls1a/Makefile | 5 ++++ arch/mips/loongson32/ls1a/board.c | 31 ++++++++++++++++++++++ arch/mips/mm/c-r4k.c | 10 +++++++ drivers/clk/loongson1/Makefile | 1 + drivers/clk/loongson1/clk-loongson1a.c | 73 +++++++++++++++++++++++++++++++++++++++++++++++++++ drivers/clk/loongson1/clk-loongson1b.c | 14 +++++----- drivers/clk/loongson1/clk-loongson1c.c | 8 +++--- 23 files changed, 601 insertions(+), 69 deletions(-) create mode 100644 arch/mips/configs/loongson1a_defconfig create mode 100644 arch/mips/loongson32/ls1a/Makefile create mode 100644 arch/mips/loongson32/ls1a/board.c create mode 100644 drivers/clk/loongson1/clk-loongson1a.c -- 1.9.0
PATCH v8 1/9 MIPS: Loongson: Merge PRID macro for Loongson-1A/1B/1C
The Loongson-1 series CPUs(1A/1B/1C) share the same PRID macro.
--- arch/mips/include/asm/cpu.h | 3 +-- arch/mips/kernel/cpu-probe.c | 4 +++- arch/mips/loongson32/common/setup.c | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-)
arch/mips/include/asm/cpu.h +1 -2
@@ -240,8 +240,7 @@#define PRID_REV_VR4181A 0x0070/* Same as VR4122 */ #define PRID_REV_VR4130 0x0080#define PRID_REV_34K_V1_0_2 0x0022 -#define PRID_REV_LOONGSON1B 0x0020 -#define PRID_REV_LOONGSON1C 0x0020/* Same as Loongson-1B */ +#define PRID_REV_LOONGSON1ABC 0x0020#define PRID_REV_LOONGSON2E 0x0002#define PRID_REV_LOONGSON2F 0x0003#define PRID_REV_LOONGSON3A_R1 0x0005
arch/mips/kernel/cpu-probe.c +3 -1
@@ -1513,8 +1513,10 @@ static inline void cpu_probe_legacy(struct cpuinfo_mips *c, unsigned int cpu) c->cputype =CPU_LOONGSON1 ;switch (c->processor_id &PRID_REV_MASK ) { -case PRID_REV_LOONGSON1B : +case PRID_REV_LOONGSON1ABC : +#ifdef CONFIG_CPU_LOONGSON1B __cpu_name[cpu] ="Loongson 1B" ; +#endif break ; }
arch/mips/loongson32/common/setup.c +1 -1
@@ -21,7 +21,7 @@ const char *get_system_type(void)unsigned int processor_id = (¤t_cpu_data)->processor_id;switch (processor_id &PRID_REV_MASK ) { -case PRID_REV_LOONGSON1B : +case PRID_REV_LOONGSON1ABC :#if defined(CONFIG_LOONGSON1_LS1B )return "LOONGSON LS1B" ;#elif defined(CONFIG_LOONGSON1_LS1C )
Signature · 1 line
2.9.4
PATCH v8 2/9 MIPS: Loongson: Expand Loongson-1's register definition
In reply to Binbin ZhouTo improve the code readability, expand the register definition. Because most registers are generic in Loongson-1 series CPU.
--- arch/mips/include/asm/mach-loongson32/loongson1.h | 170 ++++++++++++++++++---- arch/mips/loongson32/common/platform.c | 16 +- 2 files changed, 149 insertions(+), 37 deletions(-)
arch/mips/include/asm/mach-loongson32/loongson1.h +141 -29
@@ -19,35 +19,147 @@#endif /* Loongson 1 Register Bases */ -#define LS1X_MUX_BASE 0x1fd00420 -#define LS1X_INTC_BASE 0x1fd01040 -#define LS1X_GPIO0_BASE 0x1fd010c0 -#define LS1X_GPIO1_BASE 0x1fd010c4 -#define LS1X_DMAC_BASE 0x1fd01160 -#define LS1X_CBUS_BASE 0x1fd011c0 -#define LS1X_EHCI_BASE 0x1fe00000 -#define LS1X_OHCI_BASE 0x1fe08000 -#define LS1X_GMAC0_BASE 0x1fe10000 -#define LS1X_GMAC1_BASE 0x1fe20000 - -#define LS1X_UART0_BASE 0x1fe40000 -#define LS1X_UART1_BASE 0x1fe44000 -#define LS1X_UART2_BASE 0x1fe48000 -#define LS1X_UART3_BASE 0x1fe4c000 -#define LS1X_CAN0_BASE 0x1fe50000 -#define LS1X_CAN1_BASE 0x1fe54000 -#define LS1X_I2C0_BASE 0x1fe58000 -#define LS1X_I2C1_BASE 0x1fe68000 -#define LS1X_I2C2_BASE 0x1fe70000 -#define LS1X_PWM0_BASE 0x1fe5c000 -#define LS1X_PWM1_BASE 0x1fe5c010 -#define LS1X_PWM2_BASE 0x1fe5c020 -#define LS1X_PWM3_BASE 0x1fe5c030 -#define LS1X_WDT_BASE 0x1fe5c060 -#define LS1X_RTC_BASE 0x1fe64000 -#define LS1X_AC97_BASE 0x1fe74000 -#define LS1X_NAND_BASE 0x1fe78000 -#define LS1X_CLK_BASE 0x1fe78030 +#define LS1X_DC_REG_BASE 0x1c200000 +#define LS1X_MUX_REG_BASE 0x1f000000 + +#define LS1X_CFG_REG_BASE (LS1X_MUX_REG_BASE + 0x00d00000) + +#define LS1X_INTC_BASE (LS1X_CFG_REG_BASE + 0x1040) + +/* GPIO regs */ +#define LS1X_GPIO_REG_BASE (LS1X_CFG_REG_BASE + 0x1000) +#define LS1X_GPIO_CFG0_REG (LS1X_GPIO_REG_BASE + 0xc0) +#define LS1X_GPIO_CFG1_REG (LS1X_GPIO_REG_BASE + 0xc4) +#define LS1X_GPIO_CFG2_REG (LS1X_GPIO_REG_BASE + 0xc8) +#define LS1X_GPIO_OE0_REG (LS1X_GPIO_REG_BASE + 0xd0) +#define LS1X_GPIO_OE1_REG (LS1X_GPIO_REG_BASE + 0xd4) +#define LS1X_GPIO_OE2_REG (LS1X_GPIO_REG_BASE + 0xd8) +#define LS1X_GPIO_IN0_REG (LS1X_GPIO_REG_BASE + 0xe0) +#define LS1X_GPIO_IN1_REG (LS1X_GPIO_REG_BASE + 0xe4) +#define LS1X_GPIO_IN2_REG (LS1X_GPIO_REG_BASE + 0xe8) +#define LS1X_GPIO_OUT0_REG (LS1X_GPIO_REG_BASE + 0xf0) +#define LS1X_GPIO_OUT1_REG (LS1X_GPIO_REG_BASE + 0xf4) +#define LS1X_GPIO_OUT2_REG (LS1X_GPIO_REG_BASE + 0xf8) + +#define LS1X_DMA_ORDER_REG (LS1X_CFG_REG_BASE + 0x1160) + +#define LS1X_MUX_BASE (LS1X_CFG_REG_BASE + 0x0420) + +/* USB regs */ +#define LS1X_EHCI_BASE (LS1X_MUX_REG_BASE + 0x00e00000) +#define LS1X_OHCI_BASE (LS1X_MUX_REG_BASE + 0x00e08000) + +/* GMAC regs */ +#define LS1X_GMAC0_BASE (LS1X_MUX_REG_BASE + 0x00e10000) +#define LS1X_GMAC0_DMA_REG (LS1X_GMAC0_BASE + 0x1000) +#define LS1X_GMAC1_BASE (LS1X_MUX_REG_BASE + 0x00e20000) +#define LS1X_GMAC1_DMA_REG (LS1X_GMAC1_BASE + 0x1000) + +/* SATA regs */ +#define LS1X_AHCI_BASE (LS1X_MUX_REG_BASE + 0x00e30000) + +/* APB regs */ +#define LS1X_APB_REG_BASE (LS1X_MUX_REG_BASE + 0x00e40000) + +/* UART regs */ +#define LS1X_UART0_BASE (LS1X_APB_REG_BASE + 0x0000) +#define LS1X_UART1_BASE (LS1X_APB_REG_BASE + 0x4000) +#define LS1X_UART2_BASE (LS1X_APB_REG_BASE + 0x8000) +#define LS1X_UART3_BASE (LS1X_APB_REG_BASE + 0xc000) + +/* CAN regs */ +#define LS1X_CAN0_BASE (LS1X_APB_REG_BASE + 0x10000) +#define LS1X_CAN1_BASE (LS1X_APB_REG_BASE + 0x14000) + +#define LS1X_I2C0_BASE (LS1X_APB_REG_BASE + 0x18000) +#define LS1X_I2C0_PRER_LO_REG (LS1X_I2C0_BASE + 0x0) +#define LS1X_I2C0_PRER_HI_REG (LS1X_I2C0_BASE + 0x1) +#define LS1X_I2C0_CTR_REG (LS1X_I2C0_BASE + 0x2) +#define LS1X_I2C0_TXR_REG (LS1X_I2C0_BASE + 0x3) +#define LS1X_I2C0_RXR_REG (LS1X_I2C0_BASE + 0x3) +#define LS1X_I2C0_CR_REG (LS1X_I2C0_BASE + 0x4) +#define LS1X_I2C0_SR_REG (LS1X_I2C0_BASE + 0x4) + +#define LS1X_I2C1_BASE (LS1X_APB_REG_BASE + 0x28000) +#define LS1X_I2C1_PRER_LO_REG (LS1X_I2C1_BASE + 0x0) +#define LS1X_I2C1_PRER_HI_REG (LS1X_I2C1_BASE + 0x1) +#define LS1X_I2C1_CTR_REG (LS1X_I2C1_BASE + 0x2) +#define LS1X_I2C1_TXR_REG (LS1X_I2C1_BASE + 0x3) +#define LS1X_I2C1_RXR_REG (LS1X_I2C1_BASE + 0x3) +#define LS1X_I2C1_CR_REG (LS1X_I2C1_BASE + 0x4) +#define LS1X_I2C1_SR_REG (LS1X_I2C1_BASE + 0x4) + +#define LS1X_I2C2_BASE (LS1X_APB_REG_BASE + 0x30000) +#define LS1X_I2C2_PRER_LO_REG (LS1X_I2C2_BASE + 0x0) +#define LS1X_I2C2_PRER_HI_REG (LS1X_I2C2_BASE + 0x1) +#define LS1X_I2C2_CTR_REG (LS1X_I2C2_BASE + 0x2) +#define LS1X_I2C2_TXR_REG (LS1X_I2C2_BASE + 0x3) +#define LS1X_I2C2_RXR_REG (LS1X_I2C2_BASE + 0x3) +#define LS1X_I2C2_CR_REG (LS1X_I2C2_BASE + 0x4) +#define LS1X_I2C2_SR_REG (LS1X_I2C2_BASE + 0x4) + +#define LS1X_PWM_REG_BASE (LS1X_APB_REG_BASE + 0x1c000) +#define LS1X_PWM0_BASE (LS1X_PWM_REG_BASE + 0x00) +#define LS1X_PWM1_BASE (LS1X_PWM_REG_BASE + 0x10) +#define LS1X_PWM2_BASE (LS1X_PWM_REG_BASE + 0x20) +#define LS1X_PWM3_BASE (LS1X_PWM_REG_BASE + 0x30) + +/* RTC regs */ +#define LS1X_RTC_BASE (LS1X_APB_REG_BASE + 0x24000) + +/* AC97 regs */ +#define LS1X_AC97_BASE (LS1X_APB_REG_BASE + 0x34000) + +/* Watchdog regs */ +#ifdef CONFIG_CPU_LOONGSON1A +#define LS1X_WDT_BASE (LS1X_MUX_REG_BASE + 0x00e7c060) +#else +#define LS1X_WDT_BASE (LS1X_MUX_REG_BASE + 0x00e5c060) +#endif + +/* CLK regs */ +#define LS1X_CLK_BASE (LS1X_MUX_REG_BASE + 0x00e78030) + +/* NAND regs */ +#define LS1X_NAND_REG_BASE (LS1X_APB_REG_BASE + 0x38000) +#define LS1X_NAND_CMD_REG (LS1X_NAND_REG_BASE + 0x0000) +#define LS1X_NAND_ADDR_C_REG (LS1X_NAND_REG_BASE + 0x0004) +#define LS1X_NAND_ADDR_R_REG (LS1X_NAND_REG_BASE + 0x0008) +#define LS1X_NAND_TIMING_REG (LS1X_NAND_REG_BASE + 0x000c) +#define LS1X_NAND_IDL_REG (LS1X_NAND_REG_BASE + 0x0010) +#define LS1X_NAND_STA_IDH_REG (LS1X_NAND_REG_BASE + 0x0014) +#define LS1X_NAND_PARAM_REG (LS1X_NAND_REG_BASE + 0x0018) +#define LS1X_NAND_OP_NUM_REG (LS1X_NAND_REG_BASE + 0x001c) +#define LS1X_NAND_CSRDY_MAP_REG (LS1X_NAND_REG_BASE + 0x0020) +#define LS1X_NAND_DMA_ACC_REG (LS1X_NAND_REG_BASE + 0x0040) + +/* ACPI regs for ls1a */ +#define LS1X_ACPI_REG_BASE (LS1X_APB_REG_BASE + 0x3c000) +#define LS1X_PM1_STS_REG (LS1X_ACPI_REG_BASE + 0x0000) +#define LS1X_PM1_EN_REG (LS1X_ACPI_REG_BASE + 0x0004) +#define LS1X_PM1_CNT_REG (LS1X_ACPI_REG_BASE + 0x0008) +#define LS1X_PM1_TMR_REG (LS1X_ACPI_REG_BASE + 0x000c) +#define LS1X_P_CNT_REG (LS1X_ACPI_REG_BASE + 0x0010) +#define LS1X_P_LVL2_REG (LS1X_ACPI_REG_BASE + 0x0014) +#define LS1X_P_LVL3_REG (LS1X_ACPI_REG_BASE + 0x0018) +#define LS1X_GPE0_STS_REG (LS1X_ACPI_REG_BASE + 0x0020) +#define LS1X_GPE0_EN_REG (LS1X_ACPI_REG_BASE + 0x0024) +#define LS1X_PM_CONF1_REG (LS1X_ACPI_REG_BASE + 0x0030) +#define LS1X_PM_CONF2_REG (LS1X_ACPI_REG_BASE + 0x0034) +#define LS1X_PM_CONF3_REG (LS1X_ACPI_REG_BASE + 0x0038) +#define LS1X_RST_CNT_REG (LS1X_ACPI_REG_BASE + 0x0044) +#define LS1X_CPU_INIT_REG (LS1X_ACPI_REG_BASE + 0x0050) + +#define LS1X_SPI0_REG_BASE (LS1X_MUX_REG_BASE + 0x00e80000) +#define LS1X_SPI1_REG_BASE (LS1X_MUX_REG_BASE + 0x00ec0000) + +/* LPC regs */ +#define LS1X_LPC_IO_BASE (LS1X_MUX_REG_BASE + 0x00f00000) +#define LS1X_LPC_REG_BASE (LS1X_MUX_REG_BASE + 0x00f10200) +#define LS1X_LPC_CFG0_REG (LS1X_LPC_REG_BASE + 0x0) +#define LS1X_LPC_CFG1_REG (LS1X_LPC_REG_BASE + 0x4) +#define LS1X_LPC_CFG2_REG (LS1X_LPC_REG_BASE + 0x8) +#define LS1X_LPC_CFG3_REG (LS1X_LPC_REG_BASE + 0xc)#include <regs-clk.h> #include <regs-mux.h>
arch/mips/loongson32/common/platform.c +8 -8
@@ -84,8 +84,8 @@ struct platform_device ls1x_cpufreq_pdev = {/* DMA */ static struct resource ls1x_dma_resources[] = { [0 ] = { - .start =LS1X_DMAC_BASE , - .end =LS1X_DMAC_BASE +SZ_4 -1 , + .start =LS1X_DMA_ORDER_REG , + .end =LS1X_DMA_ORDER_REG +SZ_4 -1 , .flags =IORESOURCE_MEM , }, [1 ] = {
@@ -259,8 +259,8 @@ struct platform_device ls1x_eth1_pdev = {/* GPIO */ static struct resource ls1x_gpio0_resources[] = { [0 ] = { - .start =LS1X_GPIO0_BASE , - .end =LS1X_GPIO0_BASE +SZ_4 -1 , + .start =LS1X_GPIO_CFG0_REG , + .end =LS1X_GPIO_CFG0_REG +SZ_4 -1 , .flags =IORESOURCE_MEM , }, };
@@ -274,8 +274,8 @@ struct platform_device ls1x_gpio0_pdev = {static struct resource ls1x_gpio1_resources[] = { [0 ] = { - .start =LS1X_GPIO1_BASE , - .end =LS1X_GPIO1_BASE +SZ_4 -1 , + .start =LS1X_GPIO_CFG1_REG , + .end =LS1X_GPIO_CFG1_REG +SZ_4 -1 , .flags =IORESOURCE_MEM , }, };
@@ -290,8 +290,8 @@ struct platform_device ls1x_gpio1_pdev = {/* NAND Flash */ static struct resource ls1x_nand_resources[] = { [0 ] = { - .start =LS1X_NAND_BASE , - .end =LS1X_NAND_BASE +SZ_32 -1 , + .start =LS1X_NAND_REG_BASE , + .end =LS1X_NAND_REG_BASE +SZ_32 -1 , .flags =IORESOURCE_MEM , }, [1 ] = {
Signature · 1 line
2.9.4
PATCH v8 3/9 MIPS: Loongson: Add basic Loongson-1A CPU support
In reply to Binbin ZhouThe Loongson-1A CPU is similar with Loongson-1B/1C, which is a 32-bit SoC. It implements the MIPS32 release 2 instruction set.
It's a cost-effective single chip system based on LS232 processor core, and is applicable to fields such as industrial control.
--- arch/mips/include/asm/cpu-type.h | 3 ++- arch/mips/kernel/cpu-probe.c | 4 +++- arch/mips/loongson32/Platform | 1 + arch/mips/loongson32/common/setup.c | 4 +++- arch/mips/mm/c-r4k.c | 10 ++++++++++ 5 files changed, 19 insertions(+), 3 deletions(-)
arch/mips/include/asm/cpu-type.h +2 -1
@@ -24,7 +24,8 @@ static inline int __pure __get_cpu_type(const int cpu_type)case CPU_LOONGSON3 :#endif -#if defined(CONFIG_SYS_HAS_CPU_LOONGSON1B ) || \ +#if defined(CONFIG_SYS_HAS_CPU_LOONGSON1A ) || \ + defined(CONFIG_SYS_HAS_CPU_LOONGSON1B ) || \ defined(CONFIG_SYS_HAS_CPU_LOONGSON1C )case CPU_LOONGSON1 :#endif
arch/mips/kernel/cpu-probe.c +3 -1
@@ -1514,7 +1514,9 @@ static inline void cpu_probe_legacy(struct cpuinfo_mips *c, unsigned int cpu)switch (c->processor_id &PRID_REV_MASK ) {case PRID_REV_LOONGSON1ABC : -#ifdef CONFIG_CPU_LOONGSON1B +#if defined(CONFIG_LOONGSON1_LS1A ) + __cpu_name[cpu] ="Loongson 1A" ; +#elif defined(CONFIG_CPU_LOONGSON1B ) __cpu_name[cpu] ="Loongson 1B" ;#endif break ;
arch/mips/loongson32/Platform +1 -0
@@ -4,5 +4,6 @@ cflags-$(CONFIG_CPU_LOONGSON1) += \ platform-$(CONFIG_MACH_LOONGSON32) += loongson32/ cflags-$(CONFIG_MACH_LOONGSON32) += -I$(srctree)/arch/mips/include/asm/mach-loongson32 +load-$(CONFIG_LOONGSON1_LS1A) += 0xffffffff80200000 load-$(CONFIG_LOONGSON1_LS1B) += 0xffffffff80100000 load-$(CONFIG_LOONGSON1_LS1C) += 0xffffffff80100000
arch/mips/loongson32/common/setup.c +3 -1
@@ -22,7 +22,9 @@ const char *get_system_type(void)switch (processor_id &PRID_REV_MASK ) {case PRID_REV_LOONGSON1ABC : -#if defined(CONFIG_LOONGSON1_LS1B ) +#if defined(CONFIG_LOONGSON1_LS1A ) +return "LOONGSON LS1A" ; +#elif defined(CONFIG_LOONGSON1_LS1B )return "LOONGSON LS1B" ;#elif defined(CONFIG_LOONGSON1_LS1C )return "LOONGSON LS1C" ;
arch/mips/mm/c-r4k.c +10 -0
@@ -1366,6 +1366,16 @@ static void probe_pcache(void) c->options |=MIPS_CPU_PREFETCH ;break ; +case CPU_LOONGSON1 : +if (read_c0_config7 () &MIPS_CONF7_AR ) { +/* +* effectively physically indexed dcache, +* thus no virtual aliases. +*/ + c->dcache.flags |=MIPS_CACHE_PINDEX ; +break ; + } +default :if (!(config &MIPS_CONF_M ))panic ("Don't know how to probe P-caches on this cpu." );
Signature · 1 line
2.9.4
PATCH v8 4/9 MIPS: Loongson: Add Loongson-1A Kconfig options
In reply to Binbin ZhouAdded Kconfig options include: Loongson-1A CPU and machine definition, CPU cache features, 32-bit kernel and early printk support.
--- arch/mips/Kconfig | 12 ++++++++++++ arch/mips/loongson32/Kconfig | 20 ++++++++++++++++++++ 2 files changed, 32 insertions(+)
arch/mips/Kconfig +12 -0
@@ -1424,6 +1424,15 @@ config CPU_LOONGSON2F have a similar programming interface with FPGA northbridge used in Loongson2E. +config CPU_LOONGSON1A + bool "Loongson 1A" + depends on SYS_HAS_CPU_LOONGSON1A + select CPU_LOONGSON1 + select LEDS_GPIO_REGISTER + help + The Loongson 1A is a 32-bit SoC, which implements the MIPS32 + release 2 instruction set. + config CPU_LOONGSON1B bool "Loongson 1B" depends on SYS_HAS_CPU_LOONGSON1B
@@ -1891,6 +1900,9 @@ config SYS_HAS_CPU_LOONGSON2F select CPU_SUPPORTS_ADDRWINCFG if 64BIT select CPU_SUPPORTS_UNCACHED_ACCELERATED +config SYS_HAS_CPU_LOONGSON1A + bool + config SYS_HAS_CPU_LOONGSON1B bool
arch/mips/loongson32/Kconfig +20 -0
@@ -1,8 +1,28 @@ if MACH_LOONGSON32 +config ZONE_DMA + prompt "Zone DMA" + bool + choice prompt "Machine Type" +config LOONGSON1_LS1A + bool "Loongson LS1A board" + select CEVT_R4K if !MIPS_EXTERNAL_TIMER + select CSRC_R4K if !MIPS_EXTERNAL_TIMER + select SYS_HAS_CPU_LOONGSON1A + select DMA_NONCOHERENT + select BOOT_ELF32 + select IRQ_MIPS_CPU + select SYS_SUPPORTS_32BIT_KERNEL + select SYS_SUPPORTS_LITTLE_ENDIAN + select SYS_SUPPORTS_HIGHMEM + select SYS_SUPPORTS_MIPS16 + select SYS_HAS_EARLY_PRINTK + select USE_GENERIC_EARLY_PRINTK_8250 + select COMMON_CLK + config LOONGSON1_LS1B bool "Loongson LS1B board" select CEVT_R4K if !MIPS_EXTERNAL_TIMER
Signature · 1 line
2.9.4
PATCH v8 5/9 MIPS: Loongson: Add platform devices for Loongson-1A
In reply to Binbin ZhouAdded basic platform devices for Loongson-1A, including serial port, ethernet, AHCI, USB and so on.
As we known, Most of them are shared with Loongson-1B/1C, like serial port, ethernet and so on.
But something like AHCI is only supported by Loonson-1A.
--- arch/mips/include/asm/mach-loongson32/irq.h | 16 ++++-- arch/mips/include/asm/mach-loongson32/loongson1.h | 2 +- arch/mips/include/asm/mach-loongson32/platform.h | 2 + arch/mips/include/asm/mach-loongson32/regs-mux.h | 36 +++++++++++- arch/mips/loongson32/common/irq.c | 2 +- arch/mips/loongson32/common/platform.c | 67 +++++++++++++++++++++-- 6 files changed, 111 insertions(+), 14 deletions(-)
arch/mips/include/asm/mach-loongson32/irq.h +11 -5
@@ -36,7 +36,7 @@#define LS1X_IRQ (n, x) (LS1X_IRQ_BASE + (n << 5) + (x))#define LS1X_UART0_IRQ LS1X_IRQ(0, 2) -#if defined(CONFIG_LOONGSON1_LS1B ) +#if defined(CONFIG_LOONGSON1_LS1A ) || defined(CONFIG_LOONGSON1_LS1B )#define LS1X_UART1_IRQ LS1X_IRQ(0, 3)#define LS1X_UART2_IRQ LS1X_IRQ(0, 4)#define LS1X_UART3_IRQ LS1X_IRQ(0, 5)
@@ -52,7 +52,9 @@#define LS1X_DMA0_IRQ LS1X_IRQ(0, 13)#define LS1X_DMA1_IRQ LS1X_IRQ(0, 14)#define LS1X_DMA2_IRQ LS1X_IRQ(0, 15) -#if defined(CONFIG_LOONGSON1_LS1C ) +#if defined(CONFIG_LOONGSON1_LS1A ) +#define LS1X_LPC_IRQ LS1X_IRQ(0, 16) +#elif defined(CONFIG_LOONGSON1_LS1C )#define LS1X_NAND_IRQ LS1X_IRQ(0, 16)#endif #define LS1X_PWM0_IRQ LS1X_IRQ(0, 17)
@@ -62,7 +64,7 @@#define LS1X_RTC_INT0_IRQ LS1X_IRQ(0, 21)#define LS1X_RTC_INT1_IRQ LS1X_IRQ(0, 22)#define LS1X_RTC_INT2_IRQ LS1X_IRQ(0, 23) -#if defined(CONFIG_LOONGSON1_LS1B ) +#if defined(CONFIG_LOONGSON1_LS1A ) || defined(CONFIG_LOONGSON1_LS1B )#define LS1X_TOY_INT0_IRQ LS1X_IRQ(0, 24)#define LS1X_TOY_INT1_IRQ LS1X_IRQ(0, 25)#define LS1X_TOY_INT2_IRQ LS1X_IRQ(0, 26)
@@ -78,7 +80,11 @@#define LS1X_EHCI_IRQ LS1X_IRQ(1, 0)#define LS1X_OHCI_IRQ LS1X_IRQ(1, 1) -#if defined(CONFIG_LOONGSON1_LS1B ) +#if defined(CONFIG_LOONGSON1_LS1A ) +#define LS1X_GMAC0_IRQ LS1X_IRQ(1, 2) +#define LS1X_GMAC1_IRQ LS1X_IRQ(1, 3) +#define LS1X_SATA_IRQ LS1X_IRQ(1, 4) +#elif defined(CONFIG_LOONGSON1_LS1B )#define LS1X_GMAC0_IRQ LS1X_IRQ(1, 2)#define LS1X_GMAC1_IRQ LS1X_IRQ(1, 3)#elif defined(CONFIG_LOONGSON1_LS1C )
@@ -100,7 +106,7 @@#if defined(CONFIG_LOONGSON1_LS1B )#define INTN 4 -#elif defined(CONFIG_LOONGSON1_LS1C ) +#elif defined(CONFIG_LOONGSON1_LS1A ) || defined(CONFIG_LOONGSON1_LS1C )#define INTN 5#endif
arch/mips/include/asm/mach-loongson32/loongson1.h +1 -1
@@ -12,7 +12,7 @@#ifndef __ASM_MACH_LOONGSON32_LOONGSON1_H#define __ASM_MACH_LOONGSON32_LOONGSON1_H -#if defined(CONFIG_LOONGSON1_LS1B ) +#if defined(CONFIG_LOONGSON1_LS1A ) || defined(CONFIG_LOONGSON1_LS1B )#define DEFAULT_MEMSIZE 64/* If no memsize provided */ #elif defined(CONFIG_LOONGSON1_LS1C )#define DEFAULT_MEMSIZE 32
arch/mips/include/asm/mach-loongson32/platform.h +2 -0
@@ -26,6 +26,8 @@ extern struct platform_device ls1x_gpio1_pdev;extern struct platform_device ls1x_nand_pdev;extern struct platform_device ls1x_rtc_pdev;extern struct platform_device ls1x_wdt_pdev; +extern struct platform_device ls1x_ahci_pdev; +extern struct platform_device ls1x_ohci_pdev;void __init ls1x_clk_init (void );void __init ls1x_dma_set_platdata (struct plat_ls1x_dma *pdata);
arch/mips/include/asm/mach-loongson32/regs-mux.h +35 -1
@@ -18,7 +18,41 @@#define LS1X_MUX_CTRL0 LS1X_MUX_REG(0x0)#define LS1X_MUX_CTRL1 LS1X_MUX_REG(0x4) -#if defined(CONFIG_LOONGSON1_LS1B ) +#if defined(CONFIG_LOONGSON1_LS1A ) +/* GPIO CTRL0 Register Bits */ +#define NAND3_USE_CAN1 BIT(31) +#define NAND2_USE_MS BIT(30) +#define NAND1_USE_PWM01 BIT(29) +#define NAND3_D45_USE_PWM23 BIT(28) +#define NAND3_D45_USE_LPC BIT(27) +#define NAND3_D03_USE_SPI1 BIT(26) +#define NAND3_D03_USE_LPC BIT(25) +#define GMAC1_SHUT BIT(24) +#define GMAC0_SHUT BIT(23) +#define SATA_SHUT BIT(22) +#define USB_SHUT BIT(21) +#define GPU_SHUT BIT(20) +#define DDR2_SHUT BIT(19) +#define VGA_USE_PCI BIT(18) +#define I2C3_USE_CAN0 BIT(17) +#define I2C2_USE_CAN1 BIT(16) +#define SPI0_USE_CAN0_TX BIT(15) +#define SPI0_USE_CAN0_RX BIT(14) +#define SPI1_USE_CAN1_TX BIT(13) +#define SPI1_USE_CAN1_RX BIT(12) +#define GMAC1_USE_TXCLK BIT(11) +#define GMAC0_USE_TXCLK BIT(10) +#define GMAC1_USE_PWM23 BIT(9) +#define GMAC0_USE_PWM01 BIT(8) +#define GMAC1_USE_UART1 BIT(7) +#define GMAC1_USE_UART0 BIT(6) +#define GMAC1_USE_SPI1 BIT(5) +#define GMAC1_USE_NAND BIT(4) +#define PCI_REQ2_USE_GMAC1 BIT(2) +#define DISABLE_DDR2_CONFSPACE BIT(1) +#define DDE32TO16EN BIT(0) + +#elif defined(CONFIG_LOONGSON1_LS1B )/* MUX CTRL0 Register Bits */ #define UART0_USE_PWM23 BIT(28)#define UART0_USE_PWM01 BIT(27)
arch/mips/loongson32/common/irq.c +1 -1
@@ -184,7 +184,7 @@ static void __init ls1x_irq_init(int base)setup_irq (INT1_IRQ , &cascade_irqaction);setup_irq (INT2_IRQ , &cascade_irqaction);setup_irq (INT3_IRQ , &cascade_irqaction); -#if defined(CONFIG_LOONGSON1_LS1C ) +#if defined(CONFIG_LOONGSON1_LS1A ) || defined(CONFIG_LOONGSON1_LS1C )setup_irq (INT4_IRQ , &cascade_irqaction);#endif }
arch/mips/loongson32/common/platform.c +61 -6
113 lines not on this page · raw message
Signature · 1 line
2.9.4
PATCH v8 6/9 MIPS: Loongson: Add Loongson-1A board support
In reply to Binbin ZhouRegister basic devices for Loongson-1A, and setup clk for UART.
--- arch/mips/loongson32/Makefile | 6 ++++++ arch/mips/loongson32/ls1a/Makefile | 5 +++++ arch/mips/loongson32/ls1a/board.c | 31 +++++++++++++++++++++++++++++++ 3 files changed, 42 insertions(+) create mode 100644 arch/mips/loongson32/ls1a/Makefile create mode 100644 arch/mips/loongson32/ls1a/board.c
arch/mips/loongson32/Makefile +6 -0
@@ -5,6 +5,12 @@ obj-$(CONFIG_MACH_LOONGSON32) += common/ # +# Loongson LS1A board +# + +obj-$(CONFIG_LOONGSON1_LS1A) += ls1a/ + +# # Loongson LS1B board #
arch/mips/loongson32/ls1a/Makefile new file +5 -0
@@ -0,0 +1,5 @@ +# +# Makefile for loongson1A based machines. +# + +obj-y += board.o
arch/mips/loongson32/ls1a/board.c new file +31 -0
@@ -0,0 +1,31 @@ +/* +* Copyright (c) 2016 Binbin Zhou <[email protected]> +* +* This program is free software; you can redistribute it and/or modify it +* under the terms of the GNU General Public License as published by the +* Free Software Foundation; either version 2 of the License, or (at your +* option) any later version. +*/ + +#include <platform.h> + +static struct platform_device *ls1a_platform_devices[]__initdata = { + &ls1x_uart_pdev, + &ls1x_eth0_pdev, + &ls1x_eth1_pdev, + &ls1x_rtc_pdev, + &ls1x_wdt_pdev, + &ls1x_ahci_pdev, + &ls1x_ohci_pdev, +}; + +static int __init ls1a_platform_init (void ) +{ +ls1x_serial_set_uartclk (&ls1x_uart_pdev); +ls1x_rtc_set_extclk (&ls1x_rtc_pdev); + +return platform_add_devices (ls1a_platform_devices, +ARRAY_SIZE (ls1a_platform_devices)); +} + +arch_initcall (ls1a_platform_init);
Signature · 1 line
2.9.4
PATCH v8 7/9 clk: Loongson: A descriptive spinlock name for Loongson1's clk driver
In reply to Binbin ZhouThe spinlock name in clk-loongson1*.c is "_lock", that's not a very good name for something that may show up in lockdep debugging error messages.
Give it a bit more descriptive name--ls1x_clk_lock.
--- drivers/clk/loongson1/clk-loongson1b.c | 14 +++++++------- drivers/clk/loongson1/clk-loongson1c.c | 8 ++++---- 2 files changed, 11 insertions(+), 11 deletions(-)
drivers/clk/loongson1/clk-loongson1b.c +7 -7
@@ -18,7 +18,7 @@#define OSC (33 * 1000000)#define DIV_APB 2 -static DEFINE_SPINLOCK (_lock); +static DEFINE_SPINLOCK (ls1x_clk_lock);static unsigned long ls1x_pll_recalc_rate (struct clk_hw *hw,unsigned long parent_rate)
@@ -64,12 +64,12 @@ void __init ls1x_clk_init(void)CLK_GET_RATE_NOCACHE ,LS1X_CLK_PLL_DIV ,DIV_CPU_SHIFT ,DIV_CPU_WIDTH ,CLK_DIVIDER_ONE_BASED | - CLK_DIVIDER_ROUND_CLOSEST, &_lock); + CLK_DIVIDER_ROUND_CLOSEST, &ls1x_clk_lock);clk_hw_register_clkdev (hw,"cpu_clk_div" ,NULL ); hw =clk_hw_register_mux (NULL ,"cpu_clk" , cpu_parents,ARRAY_SIZE (cpu_parents),CLK_SET_RATE_NO_REPARENT ,LS1X_CLK_PLL_DIV , -BYPASS_CPU_SHIFT ,BYPASS_CPU_WIDTH ,0 , &_lock); +BYPASS_CPU_SHIFT ,BYPASS_CPU_WIDTH ,0 , &ls1x_clk_lock);clk_hw_register_clkdev (hw,"cpu_clk" ,NULL );/* _____
@@ -80,12 +80,12 @@ void __init ls1x_clk_init(void)*/ hw =clk_hw_register_divider (NULL ,"dc_clk_div" ,"pll_clk" ,0 ,LS1X_CLK_PLL_DIV ,DIV_DC_SHIFT , -DIV_DC_WIDTH ,CLK_DIVIDER_ONE_BASED , &_lock); +DIV_DC_WIDTH ,CLK_DIVIDER_ONE_BASED , &ls1x_clk_lock);clk_hw_register_clkdev (hw,"dc_clk_div" ,NULL ); hw =clk_hw_register_mux (NULL ,"dc_clk" , dc_parents,ARRAY_SIZE (dc_parents),CLK_SET_RATE_NO_REPARENT ,LS1X_CLK_PLL_DIV , -BYPASS_DC_SHIFT ,BYPASS_DC_WIDTH ,0 , &_lock); +BYPASS_DC_SHIFT ,BYPASS_DC_WIDTH ,0 , &ls1x_clk_lock);clk_hw_register_clkdev (hw,"dc_clk" ,NULL );/* _____
@@ -97,12 +97,12 @@ void __init ls1x_clk_init(void) hw =clk_hw_register_divider (NULL ,"ahb_clk_div" ,"pll_clk" ,0 ,LS1X_CLK_PLL_DIV ,DIV_DDR_SHIFT ,DIV_DDR_WIDTH ,CLK_DIVIDER_ONE_BASED , - &_lock); + &ls1x_clk_lock);clk_hw_register_clkdev (hw,"ahb_clk_div" ,NULL ); hw =clk_hw_register_mux (NULL ,"ahb_clk" , ahb_parents,ARRAY_SIZE (ahb_parents),CLK_SET_RATE_NO_REPARENT ,LS1X_CLK_PLL_DIV , -BYPASS_DDR_SHIFT ,BYPASS_DDR_WIDTH ,0 , &_lock); +BYPASS_DDR_SHIFT ,BYPASS_DDR_WIDTH ,0 , &ls1x_clk_lock);clk_hw_register_clkdev (hw,"ahb_clk" ,NULL );clk_hw_register_clkdev (hw,"ls1x-dma" ,NULL );clk_hw_register_clkdev (hw,"stmmaceth" ,NULL );
drivers/clk/loongson1/clk-loongson1c.c +4 -4
@@ -16,7 +16,7 @@#define OSC (24 * 1000000)#define DIV_APB 1 -static DEFINE_SPINLOCK (_lock); +static DEFINE_SPINLOCK (ls1x_clk_lock);static unsigned long ls1x_pll_recalc_rate (struct clk_hw *hw,unsigned long parent_rate)
@@ -58,7 +58,7 @@ void __init ls1x_clk_init(void)CLK_GET_RATE_NOCACHE ,LS1X_CLK_PLL_DIV ,DIV_CPU_SHIFT ,DIV_CPU_WIDTH ,CLK_DIVIDER_ONE_BASED | - CLK_DIVIDER_ROUND_CLOSEST, &_lock); + CLK_DIVIDER_ROUND_CLOSEST, &ls1x_clk_lock);clk_hw_register_clkdev (hw,"cpu_clk_div" ,NULL ); hw =clk_hw_register_fixed_factor (NULL ,"cpu_clk" ,"cpu_clk_div" ,0 ,1 ,1 );
@@ -66,7 +66,7 @@ void __init ls1x_clk_init(void) hw =clk_hw_register_divider (NULL ,"dc_clk_div" ,"pll_clk" ,0 ,LS1X_CLK_PLL_DIV ,DIV_DC_SHIFT , -DIV_DC_WIDTH ,CLK_DIVIDER_ONE_BASED , &_lock); +DIV_DC_WIDTH ,CLK_DIVIDER_ONE_BASED , &ls1x_clk_lock);clk_hw_register_clkdev (hw,"dc_clk_div" ,NULL ); hw =clk_hw_register_fixed_factor (NULL ,"dc_clk" ,"dc_clk_div" ,0 ,1 ,1 );
@@ -75,7 +75,7 @@ void __init ls1x_clk_init(void) hw =clk_hw_register_divider_table (NULL ,"ahb_clk_div" ,"cpu_clk_div" ,0 ,LS1X_CLK_PLL_FREQ ,DIV_DDR_SHIFT ,DIV_DDR_WIDTH ,CLK_DIVIDER_ALLOW_ZERO , - ahb_div_table, &_lock); + ahb_div_table, &ls1x_clk_lock);clk_hw_register_clkdev (hw,"ahb_clk_div" ,NULL ); hw =clk_hw_register_fixed_factor (NULL ,"ahb_clk" ,"ahb_clk_div" ,0 ,1 ,1 );
Signature · 1 line
2.9.4
PATCH v8 8/9 clk: Loongson: Add Loongson-1A clock support
In reply to Binbin ZhouThis patch adds clock support to Loongson-1A SoC.
Unfortunately, The Loongson-1A's PLL register is written only, so we just set it with a fixed value.
--- arch/mips/include/asm/mach-loongson32/regs-clk.h | 30 +++++++++- drivers/clk/loongson1/Makefile | 1 + drivers/clk/loongson1/clk-loongson1a.c | 73 ++++++++++++++++++++++++ 3 files changed, 103 insertions(+), 1 deletion(-) create mode 100644 drivers/clk/loongson1/clk-loongson1a.c
arch/mips/include/asm/mach-loongson32/regs-clk.h +29 -1
@@ -18,7 +18,35 @@#define LS1X_CLK_PLL_FREQ LS1X_CLK_REG(0x0)#define LS1X_CLK_PLL_DIV LS1X_CLK_REG(0x4) -#if defined(CONFIG_LOONGSON1_LS1B ) +#if defined(CONFIG_LOONGSON1_LS1A ) +/* write only */ +#define CORE_PLL_CFG 0x1fe78030 +#define CPU_MUL GENMASK(2, 0) +#define CPU_CFG_EN BIT(3) +#define DDR_MUL GENMASK(6, 4) +#define DDR_CFG_EN BIT(7) +#define CPU_CFG_W_EN BIT(11) +#define DDR_CFG_W_EN BIT(15) + +#define VGA_PLL_CFG 0x1fd00410 +#define VGA_M GENMASK(7, 0) +#define VGA_N GENMASK(11, 8) +#define VGA_OD GENMASK(13, 12) +#define VGA_FRAC GENMASK(31, 14) + +#define LCD_PLL_CFG 0x1fd00410 +#define LCD_M GENMASK(7, 0) +#define LCD_N GENMASK(11, 8) +#define LCD_OD GENMASK(13, 12) +#define LCD_FRAC GENMASK(31, 14) + +#define GPU_PLL_CFG 0x1fd00414 +#define GPU_M GENMASK(7, 0) +#define GPU_N GENMASK(11, 8) +#define GPU_OD GENMASK(13, 12) +#define GPU_FRAC GENMASK(31, 14) + +#elif defined(CONFIG_LOONGSON1_LS1B )/* Clock PLL Divisor Register Bits */ #define DIV_DC_EN BIT(31)#define DIV_DC_RST BIT(30)
drivers/clk/loongson1/Makefile +1 -0
@@ -1,3 +1,4 @@ obj-y += clk.o +obj-$(CONFIG_LOONGSON1_LS1A) += clk-loongson1a.o obj-$(CONFIG_LOONGSON1_LS1B) += clk-loongson1b.o obj-$(CONFIG_LOONGSON1_LS1C) += clk-loongson1c.o
drivers/clk/loongson1/clk-loongson1a.c new file +73 -0
73 lines not on this page · raw message
Signature · 1 line
2.9.4
Re: [PATCH v8 8/9] clk: Loongson: Add Loongson-1A clock support
Quoted 11 lines · Binbin Zhou
This patch adds clock support to Loongson-1A SoC.
Unfortunately, The Loongson-1A's PLL register is written only, so we just set it with a fixed value.
Signed-off-by Binbin Zhou <[email protected]>Signed-off-by HuaCai Chen <[email protected]>Cc Michael Turquette <[email protected]>Cc Stephen Boyd <[email protected]>---
Signature · 2 lines
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project
PATCH v8 9/9 MIPS: Loongson: Add Loongson-1A default config file
In reply to Binbin Zhou--- arch/mips/configs/loongson1a_defconfig | 130 +++++++++++++++++++++++++++++++++ 1 file changed, 130 insertions(+) create mode 100644 arch/mips/configs/loongson1a_defconfig
arch/mips/configs/loongson1a_defconfig new file +130 -0
@@ -0,0 +1,130 @@ +CONFIG_MACH_LOONGSON32=y +CONFIG_ZONE_DMA=y +CONFIG_PAGE_SIZE_16KB=y +CONFIG_HIGHMEM=y +CONFIG_HZ_1000=y +CONFIG_PREEMPT_VOLUNTARY=y +# CONFIG_SECCOMP is not set +# CONFIG_LOCALVERSION_AUTO is not set +CONFIG_SYSVIPC=y +CONFIG_POSIX_MQUEUE=y +CONFIG_HIGH_RES_TIMERS=y +CONFIG_BSD_PROCESS_ACCT=y +CONFIG_BSD_PROCESS_ACCT_V3=y +CONFIG_IKCONFIG=y +CONFIG_IKCONFIG_PROC=y +CONFIG_LOG_BUF_SHIFT=16 +CONFIG_CGROUPS=y +CONFIG_BLK_CGROUP=y +CONFIG_CGROUP_SCHED=y +CONFIG_CGROUP_FREEZER=y +CONFIG_CPUSETS=y +CONFIG_CGROUP_DEVICE=y +CONFIG_EXPERT=y +CONFIG_MODULES=y +CONFIG_MODULE_UNLOAD=y +CONFIG_MODVERSIONS=y +# CONFIG_BLK_DEV_BSG is not set +# CONFIG_IOSCHED_DEADLINE is not set +# CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is not set +# CONFIG_SUSPEND is not set +CONFIG_NET=y +CONFIG_PACKET=y +CONFIG_UNIX=y +CONFIG_INET=y +CONFIG_IP_PNP=y +CONFIG_IP_PNP_DHCP=y +CONFIG_SYN_COOKIES=y +# CONFIG_INET_XFRM_MODE_TRANSPORT is not set +# CONFIG_INET_XFRM_MODE_TUNNEL is not set +# CONFIG_INET_XFRM_MODE_BEET is not set +# CONFIG_INET_DIAG is not set +# CONFIG_IPV6 is not set +CONFIG_BRIDGE=y +# CONFIG_BRIDGE_IGMP_SNOOPING is not set +# CONFIG_WIRELESS is not set +CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug" +CONFIG_DEVTMPFS=y +CONFIG_DEVTMPFS_MOUNT=y +# CONFIG_STANDALONE is not set +CONFIG_MTD=y +CONFIG_MTD_CMDLINE_PARTS=y +CONFIG_MTD_BLOCK=y +CONFIG_NFTL=y +CONFIG_NFTL_RW=y +CONFIG_MTD_NAND=y +CONFIG_MTD_SPI_NOR=y +CONFIG_BLK_DEV_LOOP=y +CONFIG_BLK_DEV_RAM=y +# CONFIG_SCSI_PROC_FS is not set +CONFIG_BLK_DEV_SD=y +# CONFIG_SCSI_LOWLEVEL is not set +CONFIG_ATA=y +# CONFIG_SATA_PMP is not set +CONFIG_SATA_AHCI_PLATFORM=y +# CONFIG_ATA_SFF is not set +CONFIG_NETDEVICES=y +CONFIG_NETCONSOLE=y +# CONFIG_NET_VENDOR_ARC is not set +# CONFIG_NET_VENDOR_BROADCOM is not set +# CONFIG_NET_VENDOR_INTEL is not set +# CONFIG_NET_VENDOR_MARVELL is not set +# CONFIG_NET_VENDOR_MICREL is not set +# CONFIG_NET_VENDOR_NATSEMI is not set +# CONFIG_NET_VENDOR_SAMSUNG is not set +# CONFIG_NET_VENDOR_SEEQ is not set +# CONFIG_NET_VENDOR_SMSC is not set +CONFIG_STMMAC_ETH=y +# CONFIG_NET_VENDOR_VIA is not set +# CONFIG_NET_VENDOR_WIZNET is not set +CONFIG_REALTEK_PHY=y +# CONFIG_USB_NET_DRIVERS is not set +# CONFIG_WLAN is not set +# CONFIG_INPUT_KEYBOARD is not set +# CONFIG_INPUT_MOUSE is not set +# CONFIG_SERIO is not set +CONFIG_VT_HW_CONSOLE_BINDING=y +CONFIG_LEGACY_PTY_COUNT=8 +CONFIG_SERIAL_8250=y +CONFIG_SERIAL_8250_CONSOLE=y +# CONFIG_HW_RANDOM is not set +CONFIG_I2C=y +CONFIG_SPI=y +# CONFIG_HWMON is not set +CONFIG_WATCHDOG=y +# CONFIG_VGA_CONSOLE is not set +CONFIG_USB=y +CONFIG_USB_MON=y +CONFIG_USB_XHCI_HCD=m +CONFIG_USB_EHCI_HCD=y +CONFIG_USB_EHCI_HCD_PLATFORM=y +CONFIG_USB_OHCI_HCD=y +CONFIG_USB_OHCI_HCD_PLATFORM=y +CONFIG_USB_STORAGE=m +CONFIG_USB_GADGET=y +CONFIG_RTC_CLASS=y +CONFIG_RTC_DRV_PCF8563=y +# CONFIG_IOMMU_SUPPORT is not set +CONFIG_EXT2_FS=y +CONFIG_EXT2_FS_XATTR=y +CONFIG_EXT2_FS_POSIX_ACL=y +CONFIG_EXT2_FS_SECURITY=y +CONFIG_EXT3_FS=y +CONFIG_EXT3_FS_POSIX_ACL=y +CONFIG_EXT3_FS_SECURITY=y +# CONFIG_DNOTIFY is not set +CONFIG_VFAT_FS=y +CONFIG_PROC_KCORE=y +CONFIG_TMPFS=y +CONFIG_TMPFS_POSIX_ACL=y +# CONFIG_MISC_FILESYSTEMS is not set +# CONFIG_NETWORK_FILESYSTEMS is not set +CONFIG_NLS_CODEPAGE_437=y +CONFIG_NLS_ISO8859_1=y +CONFIG_PRINTK_TIME=y +# CONFIG_ENABLE_WARN_DEPRECATED is not set +# CONFIG_ENABLE_MUST_CHECK is not set +CONFIG_MAGIC_SYSRQ=y +# CONFIG_SCHED_DEBUG is not set +# CONFIG_FTRACE is not set +CONFIG_XZ_DEC=y
Signature · 1 line
2.9.4