From: Kelvin Cheung
This patch adds NAND driver for Loongson1B.
Signed-off-by: Kelvin Cheung
---
v4:
Retrieve the controller from nand_hw_control.
v3:
Replace __raw_readl/__raw_writel with readl/writel.
Split ls1x_nand into two structures: ls1x_nand_chip and
ls1x_nand_controller.
V
From: Kelvin Cheung
Make use of GENMASK instead of open coding the equivalent operation,
and update the PLL formula.
Signed-off-by: Kelvin Cheung
---
drivers/clk/loongson1/clk-loongson1b.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/clk/loongson1/clk-loongson1b.
From: Kelvin Cheung
This patch updates some clock names of Loongson1B,
and adds AC97, DMA and NAND clock.
Signed-off-by: Kelvin Cheung
---
v1:
Rebase the patch on clk: ls1x: Migrate to clk_hw based OF
and registration APIs.
---
drivers/clk/loongson1/clk-loongson1b.c | 23 +--
From: Kelvin Cheung
Factor out the common functions into loongson1/clk.c
to support both Loongson1B and Loongson1C. And, put
the rest into loongson1/clk-loongson1b.c.
Signed-off-by: Kelvin Cheung
---
v1:
Rebase the patch on clk: ls1x: Migrate to clk_hw based OF
and registration APIs.
---
From: Kelvin Cheung
This patchset is to refactor Loongson1 clock,
and update Loongson1B clocks.
This applies on top of clk-next.
Thanks!
Changelog:
v1:
Rebase the patch on clk: ls1x: Migrate to clk_hw based OF
and registration APIs.
Kelvin Cheung (3):
clk: Loongson1: Refactor Loongson
From: Kelvin Cheung
This patch changes the OSC clock name to "osc_clk".
Signed-off-by: Kelvin Cheung
---
arch/mips/loongson32/common/platform.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/mips/loongson32/common/platform.c
b/arch/mips/loongson32/common/platform.c
i
From: Keguang Zhang
This patchset is to refactor Loongson1 clock,
and update Loongson1B clocks.
This applies on top of clk-next.
Thanks!
Kelvin Cheung (3):
clk: Loongson1: Refactor Loongson1 clock
clk: Loongson1: Update clocks of Loongson1B
clk: Loongson1: Make use of GENMASK
drivers
From: Kelvin Cheung
Make use of GENMASK instead of open coding the equivalent operation,
and update the PLL formula.
Signed-off-by: Kelvin Cheung
---
drivers/clk/loongson1/clk-loongson1b.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/clk/loongson1/clk-loongson1b.
From: Kelvin Cheung
This patch updates some clock names of Loongson1B,
and adds AC97, DMA and NAND clock.
Signed-off-by: Kelvin Cheung
---
drivers/clk/loongson1/clk-loongson1b.c | 23 +--
1 file changed, 13 insertions(+), 10 deletions(-)
diff --git a/drivers/clk/loongson1/
From: Kelvin Cheung
Factor out the common functions into loongson1/clk.c
to support both Loongson1B and Loongson1C. And, put
the rest into loongson1/clk-loongson1b.c.
Signed-off-by: Kelvin Cheung
---
drivers/clk/Makefile | 2 +-
drivers/clk/loongson1/Makefile
From: Kelvin Cheung
This patch changes DEFAULT_MEMSIZE to 64MB
which is the memory size of latest EVB.
Signed-off-by: Kelvin Cheung
---
arch/mips/include/asm/mach-loongson32/loongson1.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/mips/include/asm/mach-loongson32/lo
From: Kelvin Cheung
This patch removes ARCH_WANT_OPTIONAL_GPIOLIB due to upstream changes.
Signed-off-by: Kelvin Cheung
---
arch/mips/Kconfig | 1 -
1 file changed, 1 deletion(-)
diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
index 69df280..d0b9ad1 100644
--- a/arch/mips/Kconfig
+++ b/arc
From: Kelvin Cheung
This patch provides DMA filter callbacks via platform data
to make NAND driver independent of single DMA engine driver.
Signed-off-by: Kelvin Cheung
---
v1:
Fix the build error
---
arch/mips/include/asm/mach-loongson32/dma.h | 4
arch/mips/include/asm/mach-loongso
From: Kelvin Cheung
This patch adds NAND driver for Loongson1B.
Signed-off-by: Kelvin Cheung
---
v3:
Replace __raw_readl/__raw_writel with readl/writel.
Split ls1x_nand into two structures: ls1x_nand_chip and ls1x_nand_controller.
V2:
Modify the dependency in Kconfig due to the change
From: Kelvin Cheung
This patch provides DMA filter callbacks via platform data
to make NAND driver independent of single DMA engine driver.
Signed-off-by: Kelvin Cheung
---
arch/mips/include/asm/mach-loongson32/dma.h | 4
arch/mips/include/asm/mach-loongson32/nand.h | 3 +--
arch/mips/lo
From: Kelvin Cheung
This patch removes ARCH_WANT_OPTIONAL_GPIOLIB due to upstream changes.
Signed-off-by: Kelvin Cheung
---
arch/mips/Kconfig | 1 -
1 file changed, 1 deletion(-)
diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
index 5663f41..34ed662 100644
--- a/arch/mips/Kconfig
+++ b/arc
From: Kelvin Cheung
This patch adds DMA Engine driver for Loongson1B.
Signed-off-by: Kelvin Cheung
---
V3:
Rename ls1x_dma_filter_fn to ls1x_dma_filter.
V2:
Change the config from 'DMA_LOONGSON1' to 'LOONGSON1_DMA',
and rearrange it in alphabetical order in Kconfig and Makefile.
Fi
From: Kelvin Cheung
This patch uses dev_get_platdata() to get the platform_data
instead of referencing it directly.
Signed-off-by: Kelvin Cheung
---
drivers/cpufreq/loongson1-cpufreq.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/cpufreq/loongson1-cpufreq.c
b/dr
From: Kelvin Cheung
This patch uses devm_kzalloc() instead of global structure.
Signed-off-by: Kelvin Cheung
---
drivers/cpufreq/loongson1-cpufreq.c | 63 -
1 file changed, 35 insertions(+), 28 deletions(-)
diff --git a/drivers/cpufreq/loongson1-cpufreq.c
From: Kelvin Cheung
This patch replaces goto out with return in ls1x_cpufreq_probe().
Signed-off-by: Kelvin Cheung
---
V1:
Move the minor updates into patch#1.
Fix the brace problem in ls1x_cpufreq_probe().
---
drivers/cpufreq/loongson1-cpufreq.c | 29 +
1 fi
From: Kelvin Cheung
This patch renames the file to loongson1-cpufreq.c,
and also includes some minor updates.
Signed-off-by: Kelvin Cheung
---
V1:
Merge the minor updates into this patch.
---
drivers/cpufreq/Makefile| 2 +-
drivers/cpufreq/{ls1x-cpufreq.c =
From: Kelvin Cheung
This patch replaces kzalloc() with kcalloc() when allocating
frequency table, and remove unnecessary 'out of memory' message.
Signed-off-by: Kelvin Cheung
---
drivers/cpufreq/loongson1-cpufreq.c | 12
1 file changed, 4 insertions(+), 8 deletions(-)
diff --git
From: Kelvin Cheung
This patch replaces goto out with return in ls1x_cpufreq_probe(),
and also includes some minor fixes.
Signed-off-by: Kelvin Cheung
---
drivers/cpufreq/loongson1-cpufreq.c | 37 -
1 file changed, 16 insertions(+), 21 deletions(-)
diff --g
From: Kelvin Cheung
This patch replaces kzalloc() with kcalloc() when allocating
frequency table, and remove unnecessary 'out of memory' message.
Signed-off-by: Kelvin Cheung
---
drivers/cpufreq/loongson1-cpufreq.c | 12
1 file changed, 4 insertions(+), 8 deletions(-)
diff --git
From: Kelvin Cheung
This patch renames the file to loongson1-cpufreq.c
Signed-off-by: Kelvin Cheung
---
drivers/cpufreq/Makefile| 2 +-
drivers/cpufreq/{ls1x-cpufreq.c => loongson1-cpufreq.c} | 0
2 files changed, 1 insertion(+), 1 deletion(-)
rename drivers/cp
From: Kelvin Cheung
This patch uses devm_kzalloc() instead of global structure.
Signed-off-by: Kelvin Cheung
---
drivers/cpufreq/loongson1-cpufreq.c | 63 -
1 file changed, 35 insertions(+), 28 deletions(-)
diff --git a/drivers/cpufreq/loongson1-cpufreq.c
From: Kelvin Cheung
This patch uses dev_get_platdata() to get the platform_data
instead of referencing it directly.
Signed-off-by: Kelvin Cheung
---
drivers/cpufreq/loongson1-cpufreq.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/cpufreq/loongson1-cpufreq.c
b/dr
From: Kelvin Cheung
- Rename the file to loongson1-cpufreq.c
- Use kcalloc() instead of kzalloc()
- Use devm_kzalloc() instead of global structure
- Use dev_get_platdata() to access the platform_data field
instead of referencing it directly
- Remove superfluous error messages
Signed-off-by: Ke
From: Kelvin Cheung
This patch adds GPIO driver for Loongson1B.
Signed-off-by: Kelvin Cheung
---
drivers/gpio/Kconfig | 7 +++
drivers/gpio/Makefile | 1 +
drivers/gpio/gpio-loongson1.c | 102 ++
3 files changed, 110 insertions(+)
c
From: Kelvin Cheung
- Rename the file to clk-loongson1.c
- Add AC97, DMA and NAND clock
- Update clock names
- Remove superfluous error messages
Signed-off-by: Kelvin Cheung
---
drivers/clk/Makefile| 2 +-
drivers/clk/clk-loongson1.c | 163
From: Kelvin Cheung
- Add DMA device
- Add NAND device
- Add GPIO device
- Add LED device
- Update the defconfig and rename it to loongson1b_defconfig
- Fix ioremap size
- Other minor fixes
Signed-off-by: Kelvin Cheung
---
arch/mips/Kconfig | 2 +
arch/mips/co
From: Kelvin Cheung
This patch adds DMA Engine driver for Loongson1B.
Signed-off-by: Kelvin Cheung
---
drivers/dma/Kconfig | 9 +
drivers/dma/Makefile| 1 +
drivers/dma/loongson1-dma.c | 546
3 files changed, 556 insertions(+)
c
From: Kelvin Cheung
This patchset is to add NAND, DMA and GPIO support for Loongson1B,
and moreover, include some updates/fixes.
This applies on top of mips-for-linux-next.
Thanks!
Kelvin Cheung (7):
clk: Loongson1: Update clocks of Loongson1B
cpufreq: Loongson1: Update cpufreq of Loongson
: Documentation/mips/
F: arch/mips/
+MIPS/LOONGSON1 ARCHITECTURE
+M: Keguang Zhang
+L: linux-m...@linux-mips.org
+S: Maintained
+F: arch/mips/loongson32/
+F: arch/mips/include/asm/mach-loongson32/
+F: drivers/*/*loongson1*
+F: drivers/*/*/*loongson1*
+
MIROSOUND PCM20 FM
From: Kelvin Cheung
This patch adds NAND driver for Loongson1B.
Signed-off-by: Kelvin Cheung
---
drivers/mtd/nand/Kconfig | 8 +
drivers/mtd/nand/Makefile | 1 +
drivers/mtd/nand/loongson1_nand.c | 522 ++
3 files changed, 531 insertions
35 matches
Mail list logo