* [PATCH v2 1/2] ARM: shmobile: Armadillo800EVA-reference: Remove usage of shmobile_timer
@ 2013-02-28 17:00 Bastian Hecht
2013-03-01 1:13 ` Simon Horman
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Bastian Hecht @ 2013-02-28 17:00 UTC (permalink / raw)
To: linux-sh
The struct sys_timer is gone since the patch "ARM: delete struct
sys_timer". Since then we can't use shmobile_timer any longer. Setting
.init_time directly to eva_earlytimer_init fixes the resulting compile
error and makes the code shorter as well.
Signed-off-by: Bastian Hecht <hechtb+renesas@gmail.com>
---
v2: same. Just integrated into a 2 pieces patchset.
.../board-armadillo800eva-reference.c | 15 +++------------
1 file changed, 3 insertions(+), 12 deletions(-)
diff --git a/arch/arm/mach-shmobile/board-armadillo800eva-reference.c b/arch/arm/mach-shmobile/board-armadillo800eva-reference.c
index 623754d..6991fb1 100644
--- a/arch/arm/mach-shmobile/board-armadillo800eva-reference.c
+++ b/arch/arm/mach-shmobile/board-armadillo800eva-reference.c
@@ -210,23 +210,14 @@ static void __init eva_init(void)
#endif
}
-static void __init eva_earlytimer_init(void)
+static void __init eva_timer_init(void)
{
r8a7740_clock_init(MD_CK0 | MD_CK2);
- shmobile_earlytimer_init();
/* the rate of extal1 clock must be set before late_time_init */
eva_clock_init();
}
-static void __init eva_add_early_devices(void)
-{
- r8a7740_add_early_devices_dt();
-
- /* override timer setup with board-specific code */
- shmobile_timer.init = eva_earlytimer_init;
-}
-
#define RESCNT2 IOMEM(0xe6188020)
static void eva_restart(char mode, const char *cmd)
{
@@ -241,13 +232,13 @@ static const char *eva_boards_compat_dt[] __initdata = {
DT_MACHINE_START(ARMADILLO800EVA_DT, "armadillo800eva-reference")
.map_io = r8a7740_map_io,
- .init_early = eva_add_early_devices,
+ .init_early = r8a7740_add_early_devices_dt,
.init_irq = r8a7740_init_irq_of,
.nr_irqs = NR_IRQS_LEGACY,
.handle_irq = shmobile_handle_irq_intc,
.init_machine = eva_init,
.init_late = shmobile_init_late,
- .init_time = shmobile_timer_init,
+ .init_time = eva_timer_init,
.dt_compat = eva_boards_compat_dt,
.restart = eva_restart,
MACHINE_END
--
1.7.9.5
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH v2 1/2] ARM: shmobile: Armadillo800EVA-reference: Remove usage of shmobile_timer
2013-02-28 17:00 [PATCH v2 1/2] ARM: shmobile: Armadillo800EVA-reference: Remove usage of shmobile_timer Bastian Hecht
@ 2013-03-01 1:13 ` Simon Horman
2014-04-25 16:18 ` [PATCH v2 1/2] ARM: shmobile: armadillo800eva: Add LED support Geert Uytterhoeven
2014-04-28 0:06 ` Simon Horman
2 siblings, 0 replies; 4+ messages in thread
From: Simon Horman @ 2013-03-01 1:13 UTC (permalink / raw)
To: linux-sh
On Thu, Feb 28, 2013 at 12:00:09PM -0600, Bastian Hecht wrote:
> The struct sys_timer is gone since the patch "ARM: delete struct
> sys_timer". Since then we can't use shmobile_timer any longer. Setting
> .init_time directly to eva_earlytimer_init fixes the resulting compile
> error and makes the code shorter as well.
Thanks. I have added this to the topic/intc-of intc branch.
The reason that I have added this it and the other Armadillo800EVA-reference
patches there is that I believe that they depend on the INTC DT bindings
which currently live in that topic branch.
If there is a way to remove that dependency please let me know.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH v2 1/2] ARM: shmobile: armadillo800eva: Add LED support
2013-02-28 17:00 [PATCH v2 1/2] ARM: shmobile: Armadillo800EVA-reference: Remove usage of shmobile_timer Bastian Hecht
2013-03-01 1:13 ` Simon Horman
@ 2014-04-25 16:18 ` Geert Uytterhoeven
2014-04-28 0:06 ` Simon Horman
2 siblings, 0 replies; 4+ messages in thread
From: Geert Uytterhoeven @ 2014-04-25 16:18 UTC (permalink / raw)
To: linux-sh
Cfr. r8a7740-armadillo800eva-reference.dts
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
v2:
- No changes
arch/arm/mach-shmobile/board-armadillo800eva.c | 35 ++++++++++++++++++++++++
1 file changed, 35 insertions(+)
diff --git a/arch/arm/mach-shmobile/board-armadillo800eva.c b/arch/arm/mach-shmobile/board-armadillo800eva.c
index 276d713f0ee9..688a69c7e5fc 100644
--- a/arch/arm/mach-shmobile/board-armadillo800eva.c
+++ b/arch/arm/mach-shmobile/board-armadillo800eva.c
@@ -586,6 +586,40 @@ static struct platform_device hdmi_lcdc_device = {
},
};
+/* LEDS */
+static struct gpio_led gpio_leds[] = {
+ {
+ .name = "led1",
+ .gpio = 102,
+ .default_state = LEDS_GPIO_DEFSTATE_ON,
+ }, {
+ .name = "led2",
+ .gpio = 111,
+ .default_state = LEDS_GPIO_DEFSTATE_ON,
+ }, {
+ .name = "led3",
+ .gpio = 110,
+ .default_state = LEDS_GPIO_DEFSTATE_ON,
+ }, {
+ .name = "led4",
+ .gpio = 177,
+ .default_state = LEDS_GPIO_DEFSTATE_ON,
+ },
+};
+
+static struct gpio_led_platform_data leds_gpio_info = {
+ .leds = gpio_leds,
+ .num_leds = ARRAY_SIZE(gpio_leds),
+};
+
+static struct platform_device leds_gpio_device = {
+ .name = "leds-gpio",
+ .id = -1,
+ .dev = {
+ .platform_data = &leds_gpio_info,
+ },
+};
+
/* GPIO KEY */
#define GPIO_KEY(c, g, d, ...) \
{ .code = c, .gpio = g, .desc = d, .active_low = 1, __VA_ARGS__ }
@@ -1077,6 +1111,7 @@ static struct platform_device *eva_devices[] __initdata = {
&lcdc0_device,
&pwm_device,
&pwm_backlight_device,
+ &leds_gpio_device,
&gpio_keys_device,
&sh_eth_device,
&vcc_sdhi0,
--
1.7.9.5
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH v2 1/2] ARM: shmobile: armadillo800eva: Add LED support
2013-02-28 17:00 [PATCH v2 1/2] ARM: shmobile: Armadillo800EVA-reference: Remove usage of shmobile_timer Bastian Hecht
2013-03-01 1:13 ` Simon Horman
2014-04-25 16:18 ` [PATCH v2 1/2] ARM: shmobile: armadillo800eva: Add LED support Geert Uytterhoeven
@ 2014-04-28 0:06 ` Simon Horman
2 siblings, 0 replies; 4+ messages in thread
From: Simon Horman @ 2014-04-28 0:06 UTC (permalink / raw)
To: linux-sh
At this point I am not planning to merge this
as it adds new platform device code and the arm-soc
people have asked for restraint in that area.
On Fri, Apr 25, 2014 at 06:18:37PM +0200, Geert Uytterhoeven wrote:
> Cfr. r8a7740-armadillo800eva-reference.dts
>
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> ---
> v2:
> - No changes
>
> arch/arm/mach-shmobile/board-armadillo800eva.c | 35 ++++++++++++++++++++++++
> 1 file changed, 35 insertions(+)
>
> diff --git a/arch/arm/mach-shmobile/board-armadillo800eva.c b/arch/arm/mach-shmobile/board-armadillo800eva.c
> index 276d713f0ee9..688a69c7e5fc 100644
> --- a/arch/arm/mach-shmobile/board-armadillo800eva.c
> +++ b/arch/arm/mach-shmobile/board-armadillo800eva.c
> @@ -586,6 +586,40 @@ static struct platform_device hdmi_lcdc_device = {
> },
> };
>
> +/* LEDS */
> +static struct gpio_led gpio_leds[] = {
> + {
> + .name = "led1",
> + .gpio = 102,
> + .default_state = LEDS_GPIO_DEFSTATE_ON,
> + }, {
> + .name = "led2",
> + .gpio = 111,
> + .default_state = LEDS_GPIO_DEFSTATE_ON,
> + }, {
> + .name = "led3",
> + .gpio = 110,
> + .default_state = LEDS_GPIO_DEFSTATE_ON,
> + }, {
> + .name = "led4",
> + .gpio = 177,
> + .default_state = LEDS_GPIO_DEFSTATE_ON,
> + },
> +};
> +
> +static struct gpio_led_platform_data leds_gpio_info = {
> + .leds = gpio_leds,
> + .num_leds = ARRAY_SIZE(gpio_leds),
> +};
> +
> +static struct platform_device leds_gpio_device = {
> + .name = "leds-gpio",
> + .id = -1,
> + .dev = {
> + .platform_data = &leds_gpio_info,
> + },
> +};
> +
> /* GPIO KEY */
> #define GPIO_KEY(c, g, d, ...) \
> { .code = c, .gpio = g, .desc = d, .active_low = 1, __VA_ARGS__ }
> @@ -1077,6 +1111,7 @@ static struct platform_device *eva_devices[] __initdata = {
> &lcdc0_device,
> &pwm_device,
> &pwm_backlight_device,
> + &leds_gpio_device,
> &gpio_keys_device,
> &sh_eth_device,
> &vcc_sdhi0,
> --
> 1.7.9.5
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-04-28 0:06 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-28 17:00 [PATCH v2 1/2] ARM: shmobile: Armadillo800EVA-reference: Remove usage of shmobile_timer Bastian Hecht
2013-03-01 1:13 ` Simon Horman
2014-04-25 16:18 ` [PATCH v2 1/2] ARM: shmobile: armadillo800eva: Add LED support Geert Uytterhoeven
2014-04-28 0:06 ` Simon Horman
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.