Hi, Marcin,
I am sorry for the late reply.
On Thu, Feb 16, 2017 at 10:27:15AM +0100, Marcin Nowakowski wrote:
> Hi Yang,
>
> On 15.02.2017 14:09, Yang Ling wrote:
>
> >>>+ tmp = (unsigned long long)clk_get_rate(pc->clk) * period_ns;
> >>>+ do_
currently tested on the Loongson1C development board.
We plan to solve the problem together after the SoCs bootloader supports the
device tree.
Thanks for your friendly reminder.
Yang
On Thu, Apr 06, 2017 at 06:18:35PM +0200, Thierry Reding wrote:
> On Wed, Feb 15, 2017 at 10:45:31PM +0800, Yang L
Add support for the PWM controller present in Loongson1 family of SoCs.
Signed-off-by: Yang Ling
---
V2:
Remove ls1x_pwm_channel.
Remove period_ns/duty_ns check.
Add return values check.
---
drivers/pwm/Kconfig | 9 +++
drivers/pwm/Makefile| 1 +
drivers/pwm/pwm
Hi Marcin,
On Tue, Feb 14, 2017 at 03:54:44PM +0100, Marcin Nowakowski wrote:
> Hi Yang,
>
>
> On 13.02.2017 16:28, Yang Ling wrote:
> >Add support for the PWM controller present in Loongson1 family of SoCs.
> >
> >Signed-off-by: Yang Ling
> >---
&
The patch adds PWM support for Loongson1 board.
Signed-off-by: Yang Ling
---
arch/mips/configs/loongson1b_defconfig | 2 ++
arch/mips/configs/loongson1c_defconfig | 2 ++
arch/mips/include/asm/mach-loongson32/platform.h | 1 +
arch/mips/include/asm/mach-loongson32/regs
Add support for the PWM controller present in Loongson1 family of SoCs.
Signed-off-by: Yang Ling
---
drivers/pwm/Kconfig | 9 +++
drivers/pwm/Makefile| 1 +
drivers/pwm/pwm-loongson1.c | 169
3 files changed, 179 insertions
Add watchdog timer specific driver for Loongson1 SoC.
Signed-off-by: Yang Ling
---
V2.5:
Set DEFAULT_HEARTBEAT to 30.
Set heartbeat to 0.
V2.4:
Set DEFAULT_HEARTBEAT to 0.
V2.3:
Set DEFAULT_HEARTBEAT value to ls1x_wdt->timeout.
V2.2:
Remove the wide character.
Check the return va
On Mon, Dec 05, 2016 at 04:05:01PM -0800, Guenter Roeck wrote:
> On Mon, Dec 05, 2016 at 11:00:53PM +0800, Yang Ling wrote:
> > Add watchdog timer specific driver for Loongson1 SoC.
> >
> > Signed-off-by: Yang Ling
> >
> > ---
> > V2.4:
> > Se
Add watchdog timer specific driver for Loongson1 SoC.
Signed-off-by: Yang Ling
---
V2.4:
Set DEFAULT_HEARTBEAT to 0.
V2.3:
Set DEFAULT_HEARTBEAT value to ls1x_wdt->timeout.
V2.2:
Remove the wide character.
Check the return value for clk_get_rate().
V2.1 from Kelvin Cheung:
Add watchdog timer specific driver for Loongson1 SoC.
Signed-off-by: Yang Ling
---
V2.3:
Set DEFAULT_HEARTBEAT value to ls1x_wdt->timeout.
V2.2:
Remove the wide character.
Check the return value for clk_get_rate().
V2.1 from Kelvin Cheung:
Use max_hw_heartbeat_ms instead of max_time
The patch adds watchdog support for Loongson1 board.
Signed-off-by: Yang Ling
---
V2.3:
No change.
V2.2:
Remove the wide character.
V2.1:
No change.
V2.0:
Add watchdog support for loongson1b_defconfig.
V1.1:
Add watchdog support for Loongson1B.
---
arch/mips/configs
Move the RTC-related macros to regs-rtc.h.
Signed-off-by: Yang Ling
---
V2.3:
Remove the wide character.
V2.1~2.2:
No change.
V2.0:
Add the header file regs-rtc.h in loongson1.h.
---
arch/mips/include/asm/mach-loongson32/loongson1.h | 7 +++---
arch/mips/include/asm/mach-loongson32/regs
On Thu, Nov 24, 2016 at 08:05:58AM -0800, Guenter Roeck wrote:
> On Fri, Oct 21, 2016 at 01:45:39PM +0800, Yang Ling wrote:
> > Add watchdog timer specific driver for Loongson1 SoC.
> >
> > Signed-off-by: Yang Ling
>
> First of all, sorry for the late reply. I
Hi Guenter,
On Fri, Oct 21, 2016 at 07:23:21AM -0700, Guenter Roeck wrote:
> On 10/20/2016 10:45 PM, Yang Ling wrote:
> >Add watchdog timer specific driver for Loongson1 SoC.
> >
> >Signed-off-by: Yang Ling
> >
> >---
> >V2.1 from Kelvin Cheung:
The patch adds watchdog support for Loongson1 board.
Signed-off-by: Yang Ling
---
V2.1:
No change.
V2.0:
Add watchdog support for loongson1b_defconfig.
V1.1:
Add watchdog support for Loongson1B.
---
arch/mips/configs/loongson1b_defconfig | 4
arch/mips/configs
Add watchdog timer specific driver for Loongson1 SoC.
Signed-off-by: Yang Ling
---
V2.1 from Kelvin Cheung:
Use max_hw_heartbeat_ms instead of max_timeout.
V2:
Increase the value of the default heartbeat.
Modify the setup process for register.
Order include files and Makefile
On Tue, Oct 11, 2016 at 07:54:03AM -0700, Guenter Roeck wrote:
> On 10/11/2016 07:10 AM, Yang Ling wrote:
> >Add watchdog timer specific driver for Loongson1 SoC.
> >
> >Signed-off-by: Yang Ling
> >
> >---
> >V1.1:
> > Add a little debugging inf
Add watchdog timer specific driver for Loongson1 SoC.
Signed-off-by: Yang Ling
---
V1.1:
Add a little debugging information.
---
drivers/watchdog/Kconfig | 7 ++
drivers/watchdog/Makefile| 1 +
drivers/watchdog/loongson1_wdt.c | 160
The patch adds watchdog support for Loongson1B/1C board.
Signed-off-by: Yang Ling
---
V1.1:
Add watchdog support for Loongson1B.
---
arch/mips/configs/loongson1c_defconfig | 4
arch/mips/include/asm/mach-loongson32/platform.h | 1 +
arch/mips/loongson32/common/platform.c
The patch adds watchdog support for Loongson1C board.
Signed-off-by: Yang Ling
---
arch/mips/configs/loongson1c_defconfig | 4
arch/mips/include/asm/mach-loongson32/platform.h | 1 +
arch/mips/loongson32/common/platform.c | 16
arch/mips/loongson32
Add watchdog timer specific driver for Loongson1 SoC.
Signed-off-by: Yang Ling
---
drivers/watchdog/Kconfig | 7 ++
drivers/watchdog/Makefile| 1 +
drivers/watchdog/loongson1_wdt.c | 158 +++
3 files changed, 166 insertions(+)
create mode
Add regs-rtc.h to replace the macros of redundancy.
Signed-off-by: Yang Ling
---
V2:
Add the header file regs-rtc.h in loongson1.h.
---
arch/mips/include/asm/mach-loongson32/loongson1.h | 1 +
arch/mips/include/asm/mach-loongson32/regs-rtc.h | 23 +++
arch/mips
Add regs-rtc.h to replace the macros of redundancy.
Signed-off-by: Yang Ling
---
arch/mips/include/asm/mach-loongson32/regs-rtc.h | 23 +++
arch/mips/loongson32/common/platform.c | 23 ++-
2 files changed, 33 insertions(+), 13 deletions
This patch adds clock support to Loongson1C SoC.
Signed-off-by: Yang Ling
---
V3:
clk: loongson1c: Migrate to clk_hw based OF and registration APIs.
---
V2:
Use loongson1 generic clock interface.
---
drivers/clk/loongson1/Makefile | 1 +
drivers/clk/loongson1/clk-loongson1c.c | 97
The patch adds RTC support for Loongson1C board, and enable
the external crystal when the RTC is first powered up.
Signed-off-by: Yang Ling
---
arch/mips/include/asm/mach-loongson32/platform.h | 1 +
arch/mips/loongson32/common/platform.c | 13 +
arch/mips/loongson32/ls1c
On Wed, Aug 31, 2016 at 03:51:13PM -0700, Stephen Boyd wrote:
> On 08/22, Yang Ling wrote:
> > This patch adds clock support to Loongson1C SoC.
> >
> > Signed-off-by: Yang Ling
> >
>
> It would be better to use the new clk_hw_*() and clkdev_hw_*()
> registr
Signed-off-by: Yang Ling
---
arch/mips/include/asm/cpu.h | 3 +--
arch/mips/kernel/cpu-probe.c| 8 +++-
arch/mips/loongson32/common/setup.c | 6 --
3 files changed, 12 insertions(+), 5 deletions(-)
diff --git a/arch/mips/include/asm/cpu.h b/arch/mips/include/asm/cpu.h
This patch adds clock support to Loongson1C SoC.
Signed-off-by: Yang Ling
---
V2:
Use loongson1 generic clock interface.
---
drivers/clk/loongson1/Makefile | 1 +
drivers/clk/loongson1/clk-loongson1c.c | 102 +
2 files changed, 103 insertions
Add defconfig file for Loongson1C
Signed-off-by: Yang Ling
---
arch/mips/configs/loongson1c_defconfig | 126 +
1 file changed, 126 insertions(+)
create mode 100644 arch/mips/configs/loongson1c_defconfig
diff --git a/arch/mips/configs/loongson1c_defconfig
b
Adds basic platform devices for Loongson1C, including serial port
and ethernet.
Signed-off-by: Yang Ling
---
arch/mips/Kconfig | 13 +
arch/mips/include/asm/mach-loongson32/irq.h | 41 ++-
arch/mips/include/asm/mach-loongson32/loongson1.h
Loongson1C is a 32-bit SoC designed by Loongson Technology Co., Ltd,
with many features similar to Loongson1B.
Signed-off-by: Yang Ling
---
arch/mips/include/asm/cpu-type.h | 3 ++-
arch/mips/include/asm/cpu.h | 1 +
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/arch/mips
This adds clock support to Loongson1C SoC.
Signed-off-by: Yang Ling
---
drivers/clk/clk-loongson1.c | 52 +++--
1 file changed, 45 insertions(+), 7 deletions(-)
diff --git a/drivers/clk/clk-loongson1.c b/drivers/clk/clk-loongson1.c
index ce2135c..cc9793a
32 matches
Mail list logo