diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2015-03-27 23:50:58 +0100 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2015-04-01 17:22:08 +0200 |
commit | fbacc8dfd8bab24d326b3055d38246ca7a2e1da5 (patch) | |
tree | ff9486f40060c9423d05463c85b763e7c5f3ee1b /arch/mips/mti-sead3 | |
parent | be2d960e0017a9a100edaccc18249d29b427b6ec (diff) | |
download | blackbird-op-linux-fbacc8dfd8bab24d326b3055d38246ca7a2e1da5.tar.gz blackbird-op-linux-fbacc8dfd8bab24d326b3055d38246ca7a2e1da5.zip |
MIPS: SEAD3: Use symbolic addresses from sead-addr.h in LED driver.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/mti-sead3')
-rw-r--r-- | arch/mips/mti-sead3/leds-sead3.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/arch/mips/mti-sead3/leds-sead3.c b/arch/mips/mti-sead3/leds-sead3.c index d2159cd72098..c938ceeb8848 100644 --- a/arch/mips/mti-sead3/leds-sead3.c +++ b/arch/mips/mti-sead3/leds-sead3.c @@ -4,6 +4,7 @@ * for more details. * * Copyright (C) 2012 MIPS Technologies, Inc. All rights reserved. + * Copyright (C) 2015 Imagination Technologies, Inc. */ #include <linux/kernel.h> #include <linux/module.h> @@ -13,16 +14,18 @@ #include <linux/err.h> #include <linux/io.h> +#include <asm/mips-boards/sead3-addr.h> + static void sead3_pled_set(struct led_classdev *led_cdev, 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, enum led_brightness value) { - writel(value, (void __iomem *)0xBF000218); /* FIXME */ + writel(value, (void __iomem *)SEAD3_CPLD_F_LED); } static struct led_classdev sead3_pled = { |