提交 fbacc8df 编写于 作者: R Ralf Baechle

MIPS: SEAD3: Use symbolic addresses from sead-addr.h in LED driver.

Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
上级 be2d960e
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
* for more details. * for more details.
* *
* Copyright (C) 2012 MIPS Technologies, Inc. All rights reserved. * Copyright (C) 2012 MIPS Technologies, Inc. All rights reserved.
* Copyright (C) 2015 Imagination Technologies, Inc.
*/ */
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/module.h> #include <linux/module.h>
...@@ -13,16 +14,18 @@ ...@@ -13,16 +14,18 @@
#include <linux/err.h> #include <linux/err.h>
#include <linux/io.h> #include <linux/io.h>
#include <asm/mips-boards/sead3-addr.h>
static void sead3_pled_set(struct led_classdev *led_cdev, static void sead3_pled_set(struct led_classdev *led_cdev,
enum led_brightness value) enum led_brightness value)
{ {
writel(value, (void __iomem *)0xBF000210); /* FIXME */ writel(value, (void __iomem *)SEAD3_CPLD_P_LED);
} }
static void sead3_fled_set(struct led_classdev *led_cdev, static void sead3_fled_set(struct led_classdev *led_cdev,
enum led_brightness value) enum led_brightness value)
{ {
writel(value, (void __iomem *)0xBF000218); /* FIXME */ writel(value, (void __iomem *)SEAD3_CPLD_F_LED);
} }
static struct led_classdev sead3_pled = { static struct led_classdev sead3_pled = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册