* [PATCH 03/33] Removing dead OMAP_MUX_ERRORS
[not found] <cover.1277911345.git.siccegge@cs.fau.de>
@ 2010-06-30 15:54 ` Christoph Egger
2010-06-30 15:55 ` [PATCH 05/33] Removing dead OMAP_IR Christoph Egger
` (14 subsequent siblings)
15 siblings, 0 replies; 32+ messages in thread
From: Christoph Egger @ 2010-06-30 15:54 UTC (permalink / raw)
To: Tony Lindgren, Russell King, Cory Maccarrone, Zebediah C. McClure,
Alistair Buxton <a.j.buxton>
Cc: vamos
OMAP_MUX_ERRORS doesn't exist in Kconfig, therefore removing all
references for it from the source code.
Signed-off-by: Christoph Egger <siccegge@cs.fau.de>
---
arch/arm/mach-omap1/mux.c | 5 -----
1 files changed, 0 insertions(+), 5 deletions(-)
diff --git a/arch/arm/mach-omap1/mux.c b/arch/arm/mach-omap1/mux.c
index 8434137..1ddb02c 100644
--- a/arch/arm/mach-omap1/mux.c
+++ b/arch/arm/mach-omap1/mux.c
@@ -439,12 +439,7 @@ int __init_or_module omap1_cfg_reg(const struct pin_config *cfg)
cfg->pull_name, cfg->pull_reg, pull_orig, pull);
}
#endif
-
-#ifdef CONFIG_OMAP_MUX_ERRORS
- return warn ? -ETXTBSY : 0;
-#else
return 0;
-#endif
}
int __init omap1_mux_init(void)
--
1.7.0.4
^ permalink raw reply related [flat|nested] 32+ messages in thread* [PATCH 05/33] Removing dead OMAP_IR
[not found] <cover.1277911345.git.siccegge@cs.fau.de>
2010-06-30 15:54 ` [PATCH 03/33] Removing dead OMAP_MUX_ERRORS Christoph Egger
@ 2010-06-30 15:55 ` Christoph Egger
2010-06-30 15:57 ` [PATCH 11/33] Removing dead OMAP_DSP Christoph Egger
` (13 subsequent siblings)
15 siblings, 0 replies; 32+ messages in thread
From: Christoph Egger @ 2010-06-30 15:55 UTC (permalink / raw)
To: Tony Lindgren, Russell King, Ladislav Michl, Kalle Valo,
Kevin Hilman; +Cc: vamos
OMAP_IR doesn't exist in Kconfig, therefore removing all references
for it from the source code.
Signed-off-by: Christoph Egger <siccegge@cs.fau.de>
---
arch/arm/mach-omap1/board-h2.c | 18 ------------------
arch/arm/mach-omap2/board-h4.c | 4 ----
2 files changed, 0 insertions(+), 22 deletions(-)
diff --git a/arch/arm/mach-omap1/board-h2.c b/arch/arm/mach-omap1/board-h2.c
index d1100e4..d7640d3 100644
--- a/arch/arm/mach-omap1/board-h2.c
+++ b/arch/arm/mach-omap1/board-h2.c
@@ -292,15 +292,6 @@ static struct platform_device h2_kp_device = {
#define H2_IRDA_FIRSEL_GPIO_PIN 17
-#if defined(CONFIG_OMAP_IR) || defined(CONFIG_OMAP_IR_MODULE)
-static int h2_transceiver_mode(struct device *dev, int state)
-{
- /* SIR when low, else MIR/FIR when HIGH */
- gpio_set_value(H2_IRDA_FIRSEL_GPIO_PIN, !(state & IR_SIRMODE));
- return 0;
-}
-#endif
-
static struct omap_irda_config h2_irda_data = {
.transceiver_cap = IR_SIRMODE | IR_MIRMODE | IR_FIRMODE,
.rx_channel = OMAP_DMA_UART3_RX,
@@ -437,15 +428,6 @@ static void __init h2_init(void)
/* omap_cfg_reg(U19_ARMIO1); */ /* CD */
omap_cfg_reg(BALLOUT_V8_ARMIO3); /* WP */
- /* Irda */
-#if defined(CONFIG_OMAP_IR) || defined(CONFIG_OMAP_IR_MODULE)
- omap_writel(omap_readl(FUNC_MUX_CTRL_A) | 7, FUNC_MUX_CTRL_A);
- if (gpio_request(H2_IRDA_FIRSEL_GPIO_PIN, "IRDA mode") < 0)
- BUG();
- gpio_direction_output(H2_IRDA_FIRSEL_GPIO_PIN, 0);
- h2_irda_data.transceiver_mode = h2_transceiver_mode;
-#endif
-
platform_add_devices(h2_devices, ARRAY_SIZE(h2_devices));
omap_board_config = h2_config;
omap_board_config_size = ARRAY_SIZE(h2_config);
diff --git a/arch/arm/mach-omap2/board-h4.c b/arch/arm/mach-omap2/board-h4.c
index 0665f2c..ce4292b 100644
--- a/arch/arm/mach-omap2/board-h4.c
+++ b/arch/arm/mach-omap2/board-h4.c
@@ -345,10 +345,6 @@ static void __init omap_h4_init(void)
* You have to mux them off in device drivers later on
* if not needed.
*/
-#if defined(CONFIG_OMAP_IR) || defined(CONFIG_OMAP_IR_MODULE)
- omap_cfg_reg(K15_24XX_UART3_TX);
- omap_cfg_reg(K14_24XX_UART3_RX);
-#endif
#if defined(CONFIG_KEYBOARD_OMAP) || defined(CONFIG_KEYBOARD_OMAP_MODULE)
if (omap_has_menelaus()) {
--
1.7.0.4
^ permalink raw reply related [flat|nested] 32+ messages in thread* [PATCH 11/33] Removing dead OMAP_DSP
[not found] <cover.1277911345.git.siccegge@cs.fau.de>
2010-06-30 15:54 ` [PATCH 03/33] Removing dead OMAP_MUX_ERRORS Christoph Egger
2010-06-30 15:55 ` [PATCH 05/33] Removing dead OMAP_IR Christoph Egger
@ 2010-06-30 15:57 ` Christoph Egger
2010-06-30 15:57 ` [PATCH 12/33] Removing dead OMAP_STI Christoph Egger
` (12 subsequent siblings)
15 siblings, 0 replies; 32+ messages in thread
From: Christoph Egger @ 2010-06-30 15:57 UTC (permalink / raw)
To: Tony Lindgren, Russell King, Tomi Valkeinen, Cory Maccarrone,
Felipe Balbi <felipe.bal>
Cc: vamos
OMAP_DSP doesn't exist in Kconfig, therefore removing all
references for it from the source code.
Signed-off-by: Christoph Egger <siccegge@cs.fau.de>
---
arch/arm/mach-omap1/board-nokia770.c | 132 --------------------------
arch/arm/mach-omap1/devices.c | 37 -------
arch/arm/mach-omap1/mcbsp.c | 3 -
arch/arm/plat-omap/devices.c | 62 ------------
arch/arm/plat-omap/include/plat/dsp_common.h | 40 --------
5 files changed, 0 insertions(+), 274 deletions(-)
delete mode 100644 arch/arm/plat-omap/include/plat/dsp_common.h
diff --git a/arch/arm/mach-omap1/board-nokia770.c b/arch/arm/mach-omap1/board-nokia770.c
index 71e1a3f..825b4c8 100644
--- a/arch/arm/mach-omap1/board-nokia770.c
+++ b/arch/arm/mach-omap1/board-nokia770.c
@@ -242,138 +242,6 @@ static inline void nokia770_mmc_init(void)
}
#endif
-#if defined(CONFIG_OMAP_DSP)
-/*
- * audio power control
- */
-#define HEADPHONE_GPIO 14
-#define AMPLIFIER_CTRL_GPIO 58
-
-static struct clk *dspxor_ck;
-static DEFINE_MUTEX(audio_pwr_lock);
-/*
- * audio_pwr_state
- * +--+-------------------------+---------------------------------------+
- * |-1|down |power-up request -> 0 |
- * +--+-------------------------+---------------------------------------+
- * | 0|up |power-down(1) request -> 1 |
- * | | |power-down(2) request -> (ignore) |
- * +--+-------------------------+---------------------------------------+
- * | 1|up, |power-up request -> 0 |
- * | |received down(1) request |power-down(2) request -> -1 |
- * +--+-------------------------+---------------------------------------+
- */
-static int audio_pwr_state = -1;
-
-static inline void aic23_power_up(void)
-{
-}
-static inline void aic23_power_down(void)
-{
-}
-
-/*
- * audio_pwr_up / down should be called under audio_pwr_lock
- */
-static void nokia770_audio_pwr_up(void)
-{
- clk_enable(dspxor_ck);
-
- /* Turn on codec */
- aic23_power_up();
-
- if (gpio_get_value(HEADPHONE_GPIO))
- /* HP not connected, turn on amplifier */
- gpio_set_value(AMPLIFIER_CTRL_GPIO, 1);
- else
- /* HP connected, do not turn on amplifier */
- printk("HP connected\n");
-}
-
-static void codec_delayed_power_down(struct work_struct *work)
-{
- mutex_lock(&audio_pwr_lock);
- if (audio_pwr_state == -1)
- aic23_power_down();
- clk_disable(dspxor_ck);
- mutex_unlock(&audio_pwr_lock);
-}
-
-static DECLARE_DELAYED_WORK(codec_power_down_work, codec_delayed_power_down);
-
-static void nokia770_audio_pwr_down(void)
-{
- /* Turn off amplifier */
- gpio_set_value(AMPLIFIER_CTRL_GPIO, 0);
-
- /* Turn off codec: schedule delayed work */
- schedule_delayed_work(&codec_power_down_work, HZ / 20); /* 50ms */
-}
-
-static int
-nokia770_audio_pwr_up_request(struct dsp_kfunc_device *kdev, int stage)
-{
- mutex_lock(&audio_pwr_lock);
- if (audio_pwr_state == -1)
- nokia770_audio_pwr_up();
- /* force audio_pwr_state = 0, even if it was 1. */
- audio_pwr_state = 0;
- mutex_unlock(&audio_pwr_lock);
- return 0;
-}
-
-static int
-nokia770_audio_pwr_down_request(struct dsp_kfunc_device *kdev, int stage)
-{
- mutex_lock(&audio_pwr_lock);
- switch (stage) {
- case 1:
- if (audio_pwr_state == 0)
- audio_pwr_state = 1;
- break;
- case 2:
- if (audio_pwr_state == 1) {
- nokia770_audio_pwr_down();
- audio_pwr_state = -1;
- }
- break;
- }
- mutex_unlock(&audio_pwr_lock);
- return 0;
-}
-
-static struct dsp_kfunc_device nokia770_audio_device = {
- .name = "audio",
- .type = DSP_KFUNC_DEV_TYPE_AUDIO,
- .enable = nokia770_audio_pwr_up_request,
- .disable = nokia770_audio_pwr_down_request,
-};
-
-static __init int omap_dsp_init(void)
-{
- int ret;
-
- dspxor_ck = clk_get(0, "dspxor_ck");
- if (IS_ERR(dspxor_ck)) {
- printk(KERN_ERR "couldn't acquire dspxor_ck\n");
- return PTR_ERR(dspxor_ck);
- }
-
- ret = dsp_kfunc_device_register(&nokia770_audio_device);
- if (ret) {
- printk(KERN_ERR
- "KFUNC device registration faild: %s\n",
- nokia770_audio_device.name);
- goto out;
- }
- return 0;
- out:
- return ret;
-}
-#else
-#define omap_dsp_init() do {} while (0)
-#endif /* CONFIG_OMAP_DSP */
-
static void __init omap_nokia770_init(void)
{
platform_add_devices(nokia770_devices, ARRAY_SIZE(nokia770_devices));
diff --git a/arch/arm/mach-omap1/devices.c b/arch/arm/mach-omap1/devices.c
index 379100c..c00d602 100644
--- a/arch/arm/mach-omap1/devices.c
+++ b/arch/arm/mach-omap1/devices.c
@@ -63,44 +63,7 @@ static void omap_init_rtc(void)
static inline void omap_init_rtc(void) {}
#endif
-#if defined(CONFIG_OMAP_DSP) || defined(CONFIG_OMAP_DSP_MODULE)
-
-#if defined(CONFIG_ARCH_OMAP15XX)
-# define OMAP1_MBOX_SIZE 0x23
-# define INT_DSP_MAILBOX1 INT_1510_DSP_MAILBOX1
-#elif defined(CONFIG_ARCH_OMAP16XX)
-# define OMAP1_MBOX_SIZE 0x2f
-# define INT_DSP_MAILBOX1 INT_1610_DSP_MAILBOX1
-#endif
-
-#define OMAP1_MBOX_BASE OMAP16XX_MAILBOX_BASE
-
-static struct resource mbox_resources[] = {
- {
- .start = OMAP1_MBOX_BASE,
- .end = OMAP1_MBOX_BASE + OMAP1_MBOX_SIZE,
- .flags = IORESOURCE_MEM,
- },
- {
- .start = INT_DSP_MAILBOX1,
- .flags = IORESOURCE_IRQ,
- },
-};
-
-static struct platform_device mbox_device = {
- .name = "omap1-mailbox",
- .id = -1,
- .num_resources = ARRAY_SIZE(mbox_resources),
- .resource = mbox_resources,
-};
-
-static inline void omap_init_mbox(void)
-{
- platform_device_register(&mbox_device);
-}
-#else
static inline void omap_init_mbox(void) { }
-#endif
/*-------------------------------------------------------------------------*/
diff --git a/arch/arm/mach-omap1/mcbsp.c b/arch/arm/mach-omap1/mcbsp.c
index e9bdff1..b3a796a 100644
--- a/arch/arm/mach-omap1/mcbsp.c
+++ b/arch/arm/mach-omap1/mcbsp.c
@@ -23,7 +23,6 @@
#include <plat/mux.h>
#include <plat/cpu.h>
#include <plat/mcbsp.h>
-#include <plat/dsp_common.h>
#define DPS_RSTCT2_PER_EN (1 << 0)
#define DSP_RSTCT2_WD_PER_EN (1 << 1)
@@ -46,7 +45,6 @@ static void omap1_mcbsp_request(unsigned int id)
clk_enable(api_clk);
clk_enable(dsp_clk);
- omap_dsp_request_mem();
/*
* DSP external peripheral reset
* FIXME: This should be moved to dsp code
@@ -62,7 +60,6 @@ static void omap1_mcbsp_free(unsigned int id)
{
if (id == OMAP_MCBSP1 || id == OMAP_MCBSP3) {
if (--dsp_use == 0) {
- omap_dsp_release_mem();
if (!IS_ERR(api_clk)) {
clk_disable(api_clk);
clk_put(api_clk);
diff --git a/arch/arm/plat-omap/devices.c b/arch/arm/plat-omap/devices.c
index 95677d1..a3997ec 100644
--- a/arch/arm/plat-omap/devices.c
+++ b/arch/arm/plat-omap/devices.c
@@ -31,67 +31,6 @@
#include <plat/dsp_common.h>
#include <plat/omap44xx.h>
-#if defined(CONFIG_OMAP_DSP) || defined(CONFIG_OMAP_DSP_MODULE)
-
-static struct dsp_platform_data dsp_pdata = {
- .kdev_list = LIST_HEAD_INIT(dsp_pdata.kdev_list),
-};
-
-static struct resource omap_dsp_resources[] = {
- {
- .name = "dsp_mmu",
- .start = -1,
- .flags = IORESOURCE_IRQ,
- },
-};
-
-static struct platform_device omap_dsp_device = {
- .name = "dsp",
- .id = -1,
- .num_resources = ARRAY_SIZE(omap_dsp_resources),
- .resource = omap_dsp_resources,
- .dev = {
- .platform_data = &dsp_pdata,
- },
-};
-
-static inline void omap_init_dsp(void)
-{
- struct resource *res;
- int irq;
-
- if (cpu_is_omap15xx())
- irq = INT_1510_DSP_MMU;
- else if (cpu_is_omap16xx())
- irq = INT_1610_DSP_MMU;
- else if (cpu_is_omap24xx())
- irq = INT_24XX_DSP_MMU;
-
- res = platform_get_resource_byname(&omap_dsp_device,
- IORESOURCE_IRQ, "dsp_mmu");
- res->start = irq;
-
- platform_device_register(&omap_dsp_device);
-}
-
-int dsp_kfunc_device_register(struct dsp_kfunc_device *kdev)
-{
- static DEFINE_MUTEX(dsp_pdata_lock);
-
- spin_lock_init(&kdev->lock);
-
- mutex_lock(&dsp_pdata_lock);
- list_add_tail(&kdev->entry, &dsp_pdata.kdev_list);
- mutex_unlock(&dsp_pdata_lock);
-
- return 0;
-}
-EXPORT_SYMBOL(dsp_kfunc_device_register);
-
-#else
-static inline void omap_init_dsp(void) { }
-#endif /* CONFIG_OMAP_DSP */
-
/*-------------------------------------------------------------------------*/
#if defined(CONFIG_KEYBOARD_OMAP) || defined(CONFIG_KEYBOARD_OMAP_MODULE)
@@ -419,7 +358,6 @@ static int __init omap_init_devices(void)
/* please keep these calls, and their implementations above,
* in alphabetical order so they're easier to sort through.
*/
- omap_init_dsp();
omap_init_kp();
omap_init_rng();
omap_init_mcpdm();
diff --git a/arch/arm/plat-omap/include/plat/dsp_common.h b/arch/arm/plat-omap/include/plat/dsp_common.h
deleted file mode 100644
index da97736..0000000
--- a/arch/arm/plat-omap/include/plat/dsp_common.h
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * This file is part of OMAP DSP driver (DSP Gateway version 3.3.1)
- *
- * Copyright (C) 2004-2006 Nokia Corporation. All rights reserved.
- *
- * Contact: Toshihiro Kobayashi <toshihiro.kobayashi@nokia.com>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * version 2 as published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA
- *
- */
-
-#ifndef ASM_ARCH_DSP_COMMON_H
-#define ASM_ARCH_DSP_COMMON_H
-
-#if defined(CONFIG_ARCH_OMAP1) && defined(CONFIG_OMAP_MMU_FWK)
-extern void omap_dsp_request_mpui(void);
-extern void omap_dsp_release_mpui(void);
-extern int omap_dsp_request_mem(void);
-extern int omap_dsp_release_mem(void);
-#else
-static inline int omap_dsp_request_mem(void)
-{
- return 0;
-}
-#define omap_dsp_release_mem() do {} while (0)
-#endif
-
-#endif /* ASM_ARCH_DSP_COMMON_H */
--
1.7.0.4
^ permalink raw reply related [flat|nested] 32+ messages in thread* [PATCH 12/33] Removing dead OMAP_STI
[not found] <cover.1277911345.git.siccegge@cs.fau.de>
` (2 preceding siblings ...)
2010-06-30 15:57 ` [PATCH 11/33] Removing dead OMAP_DSP Christoph Egger
@ 2010-06-30 15:57 ` Christoph Egger
2010-06-30 15:58 ` [PATCH 13/33] Replacing LEDS_OMAP_DEBUG with OMAP_DEBUG_LEDS Christoph Egger
` (11 subsequent siblings)
15 siblings, 0 replies; 32+ messages in thread
From: Christoph Egger @ 2010-06-30 15:57 UTC (permalink / raw)
To: Tony Lindgren, Russell King, Cory Maccarrone, Felipe Balbi,
Madhusudhan Chikkature <madh>
Cc: vamos
OMAP_STI doesn't exist in Kconfig, therefore removing all
references for it from the source code.
Signed-off-by: Christoph Egger <siccegge@cs.fau.de>
---
arch/arm/mach-omap1/devices.c | 35 -------------------------
arch/arm/mach-omap2/devices.c | 57 -----------------------------------------
2 files changed, 0 insertions(+), 92 deletions(-)
diff --git a/arch/arm/mach-omap1/devices.c b/arch/arm/mach-omap1/devices.c
index c00d602..aa07256 100644
--- a/arch/arm/mach-omap1/devices.c
+++ b/arch/arm/mach-omap1/devices.c
@@ -193,42 +193,7 @@ static inline void omap_init_spi100k(void)
/*-------------------------------------------------------------------------*/
-#if defined(CONFIG_OMAP_STI)
-
-#define OMAP1_STI_BASE 0xfffea000
-#define OMAP1_STI_CHANNEL_BASE (OMAP1_STI_BASE + 0x400)
-
-static struct resource sti_resources[] = {
- {
- .start = OMAP1_STI_BASE,
- .end = OMAP1_STI_BASE + SZ_1K - 1,
- .flags = IORESOURCE_MEM,
- },
- {
- .start = OMAP1_STI_CHANNEL_BASE,
- .end = OMAP1_STI_CHANNEL_BASE + SZ_1K - 1,
- .flags = IORESOURCE_MEM,
- },
- {
- .start = INT_1610_STI,
- .flags = IORESOURCE_IRQ,
- }
-};
-
-static struct platform_device sti_device = {
- .name = "sti",
- .id = -1,
- .num_resources = ARRAY_SIZE(sti_resources),
- .resource = sti_resources,
-};
-
-static inline void omap_init_sti(void)
-{
- platform_device_register(&sti_device);
-}
-#else
static inline void omap_init_sti(void) {}
-#endif
/*-------------------------------------------------------------------------*/
diff --git a/arch/arm/mach-omap2/devices.c b/arch/arm/mach-omap2/devices.c
index 03e6c9e..b9c1f98 100644
--- a/arch/arm/mach-omap2/devices.c
+++ b/arch/arm/mach-omap2/devices.c
@@ -230,64 +230,7 @@ static inline void omap_init_mbox(void)
static inline void omap_init_mbox(void) { }
#endif /* CONFIG_OMAP_MBOX_FWK */
-#if defined(CONFIG_OMAP_STI)
-
-#if defined(CONFIG_ARCH_OMAP2)
-
-#define OMAP2_STI_BASE 0x48068000
-#define OMAP2_STI_CHANNEL_BASE 0x54000000
-#define OMAP2_STI_IRQ 4
-
-static struct resource sti_resources[] = {
- {
- .start = OMAP2_STI_BASE,
- .end = OMAP2_STI_BASE + 0x7ff,
- .flags = IORESOURCE_MEM,
- },
- {
- .start = OMAP2_STI_CHANNEL_BASE,
- .end = OMAP2_STI_CHANNEL_BASE + SZ_64K - 1,
- .flags = IORESOURCE_MEM,
- },
- {
- .start = OMAP2_STI_IRQ,
- .flags = IORESOURCE_IRQ,
- }
-};
-#elif defined(CONFIG_ARCH_OMAP3)
-
-#define OMAP3_SDTI_BASE 0x54500000
-#define OMAP3_SDTI_CHANNEL_BASE 0x54600000
-
-static struct resource sti_resources[] = {
- {
- .start = OMAP3_SDTI_BASE,
- .end = OMAP3_SDTI_BASE + 0xFFF,
- .flags = IORESOURCE_MEM,
- },
- {
- .start = OMAP3_SDTI_CHANNEL_BASE,
- .end = OMAP3_SDTI_CHANNEL_BASE + SZ_1M - 1,
- .flags = IORESOURCE_MEM,
- }
-};
-
-#endif
-
-static struct platform_device sti_device = {
- .name = "sti",
- .id = -1,
- .num_resources = ARRAY_SIZE(sti_resources),
- .resource = sti_resources,
-};
-
-static inline void omap_init_sti(void)
-{
- platform_device_register(&sti_device);
-}
-#else
static inline void omap_init_sti(void) {}
-#endif
#if defined(CONFIG_SPI_OMAP24XX) || defined(CONFIG_SPI_OMAP24XX_MODULE)
--
1.7.0.4
^ permalink raw reply related [flat|nested] 32+ messages in thread* [PATCH 13/33] Replacing LEDS_OMAP_DEBUG with OMAP_DEBUG_LEDS
[not found] <cover.1277911345.git.siccegge@cs.fau.de>
` (3 preceding siblings ...)
2010-06-30 15:57 ` [PATCH 12/33] Removing dead OMAP_STI Christoph Egger
@ 2010-06-30 15:58 ` Christoph Egger
2010-07-05 8:28 ` Tony Lindgren
2010-06-30 15:59 ` [PATCH 16/33] Removing dead APM Christoph Egger
` (10 subsequent siblings)
15 siblings, 1 reply; 32+ messages in thread
From: Christoph Egger @ 2010-06-30 15:58 UTC (permalink / raw)
To: Tony Lindgren, Russell King, Paul Walmsley, Kevin Hilman,
Tero Kristo; +Cc: vamos
LEDS_OMAP_DEBUG doesn't exist in Kconfig, therefore replacing all
references for it with OMAP_DEBUG_LEDS from the source code.
Signed-off-by: Christoph Egger <siccegge@cs.fau.de>
---
arch/arm/plat-omap/Kconfig | 2 +-
arch/arm/plat-omap/debug-leds.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm/plat-omap/Kconfig b/arch/arm/plat-omap/Kconfig
index 78b49a6..a5337c8 100644
--- a/arch/arm/plat-omap/Kconfig
+++ b/arch/arm/plat-omap/Kconfig
@@ -51,7 +51,7 @@ config OMAP_DEBUG_DEVICES
config OMAP_DEBUG_LEDS
bool
depends on OMAP_DEBUG_DEVICES
- default y if LEDS || LEDS_OMAP_DEBUG
+ default y if LEDS
config OMAP_RESET_CLOCKS
bool "Reset unused clocks during boot"
diff --git a/arch/arm/plat-omap/debug-leds.c b/arch/arm/plat-omap/debug-leds.c
index 53fcef7..fc05b10 100644
--- a/arch/arm/plat-omap/debug-leds.c
+++ b/arch/arm/plat-omap/debug-leds.c
@@ -39,7 +39,7 @@ static struct h2p2_dbg_fpga __iomem *fpga;
static u16 led_state, hw_led_state;
-#ifdef CONFIG_LEDS_OMAP_DEBUG
+#ifdef CONFIG_OMAP_DEBUG_LEDS
#define new_led_api() 1
#else
#define new_led_api() 0
--
1.7.0.4
^ permalink raw reply related [flat|nested] 32+ messages in thread* Re: [PATCH 13/33] Replacing LEDS_OMAP_DEBUG with OMAP_DEBUG_LEDS
2010-06-30 15:58 ` [PATCH 13/33] Replacing LEDS_OMAP_DEBUG with OMAP_DEBUG_LEDS Christoph Egger
@ 2010-07-05 8:28 ` Tony Lindgren
0 siblings, 0 replies; 32+ messages in thread
From: Tony Lindgren @ 2010-07-05 8:28 UTC (permalink / raw)
To: Christoph Egger
Cc: Russell King, Paul Walmsley, Kevin Hilman, Tero Kristo,
Hiroshi DOYU, Pavel Machek, Andrew Morton, Magnus Damm,
Alexey Dobriyan, linux-omap, linux-arm-kernel, linux-kernel,
vamos
* Christoph Egger <siccegge@cs.fau.de> [100630 18:58]:
> LEDS_OMAP_DEBUG doesn't exist in Kconfig, therefore replacing all
> references for it with OMAP_DEBUG_LEDS from the source code.
Applied.
Tony
^ permalink raw reply [flat|nested] 32+ messages in thread
* [PATCH 16/33] Removing dead APM
[not found] <cover.1277911345.git.siccegge@cs.fau.de>
` (4 preceding siblings ...)
2010-06-30 15:58 ` [PATCH 13/33] Replacing LEDS_OMAP_DEBUG with OMAP_DEBUG_LEDS Christoph Egger
@ 2010-06-30 15:59 ` Christoph Egger
2010-06-30 15:59 ` [PATCH 17/33] Removing dead SX1_OLD_FLASH Christoph Egger
` (9 subsequent siblings)
15 siblings, 0 replies; 32+ messages in thread
From: Christoph Egger @ 2010-06-30 15:59 UTC (permalink / raw)
To: Tony Lindgren, Russell King, Kalle Valo, Ladislav Michl,
Janusz Krzysztofik
Cc: vamos
APM doesn't exist in Kconfig, therefore removing all references for it
from the source code.
Signed-off-by: Christoph Egger <siccegge@cs.fau.de>
---
arch/arm/mach-omap1/board-palmte.c | 84 ------------------------------------
1 files changed, 0 insertions(+), 84 deletions(-)
diff --git a/arch/arm/mach-omap1/board-palmte.c b/arch/arm/mach-omap1/board-palmte.c
index 569b4c9..23bb0c9 100644
--- a/arch/arm/mach-omap1/board-palmte.c
+++ b/arch/arm/mach-omap1/board-palmte.c
@@ -213,90 +213,6 @@ static struct omap_lcd_config palmte_lcd_config __initdata = {
.ctrl_name = "internal",
};
-#ifdef CONFIG_APM
-/*
- * Values measured in 10 minute intervals averaged over 10 samples.
- * May differ slightly from device to device but should be accurate
- * enough to give basic idea of battery life left and trigger
- * potential alerts.
- */
-static const int palmte_battery_sample[] = {
- 2194, 2157, 2138, 2120,
- 2104, 2089, 2075, 2061,
- 2048, 2038, 2026, 2016,
- 2008, 1998, 1989, 1980,
- 1970, 1958, 1945, 1928,
- 1910, 1888, 1860, 1827,
- 1791, 1751, 1709, 1656,
-};
-
-#define INTERVAL 10
-#define BATTERY_HIGH_TRESHOLD 66
-#define BATTERY_LOW_TRESHOLD 33
-
-static void palmte_get_power_status(struct apm_power_info *info, int *battery)
-{
- int charging, batt, hi, lo, mid;
-
- charging = !gpio_get_value(PALMTE_DC_GPIO);
- batt = battery[0];
- if (charging)
- batt -= 60;
-
- hi = ARRAY_SIZE(palmte_battery_sample);
- lo = 0;
-
- info->battery_flag = 0;
- info->units = APM_UNITS_MINS;
-
- if (batt > palmte_battery_sample[lo]) {
- info->battery_life = 100;
- info->time = INTERVAL * ARRAY_SIZE(palmte_battery_sample);
- } else if (batt <= palmte_battery_sample[hi - 1]) {
- info->battery_life = 0;
- info->time = 0;
- } else {
- while (hi > lo + 1) {
- mid = (hi + lo) >> 1;
- if (batt <= palmte_battery_sample[mid])
- lo = mid;
- else
- hi = mid;
- }
-
- mid = palmte_battery_sample[lo] - palmte_battery_sample[hi];
- hi = palmte_battery_sample[lo] - batt;
- info->battery_life = 100 - (100 * lo + 100 * hi / mid) /
- ARRAY_SIZE(palmte_battery_sample);
- info->time = INTERVAL * (ARRAY_SIZE(palmte_battery_sample) -
- lo) - INTERVAL * hi / mid;
- }
-
- if (charging) {
- info->ac_line_status = APM_AC_ONLINE;
- info->battery_status = APM_BATTERY_STATUS_CHARGING;
- info->battery_flag |= APM_BATTERY_FLAG_CHARGING;
- } else {
- info->ac_line_status = APM_AC_OFFLINE;
- if (info->battery_life > BATTERY_HIGH_TRESHOLD)
- info->battery_status = APM_BATTERY_STATUS_HIGH;
- else if (info->battery_life > BATTERY_LOW_TRESHOLD)
- info->battery_status = APM_BATTERY_STATUS_LOW;
- else
- info->battery_status = APM_BATTERY_STATUS_CRITICAL;
- }
-
- if (info->battery_life > BATTERY_HIGH_TRESHOLD)
- info->battery_flag |= APM_BATTERY_FLAG_HIGH;
- else if (info->battery_life > BATTERY_LOW_TRESHOLD)
- info->battery_flag |= APM_BATTERY_FLAG_LOW;
- else
- info->battery_flag |= APM_BATTERY_FLAG_CRITICAL;
-}
-#else
-#define palmte_get_power_status NULL
-#endif
-
static struct omap_board_config_kernel palmte_config[] __initdata = {
{ OMAP_TAG_LCD, &palmte_lcd_config },
};
--
1.7.0.4
^ permalink raw reply related [flat|nested] 32+ messages in thread* [PATCH 17/33] Removing dead SX1_OLD_FLASH
[not found] <cover.1277911345.git.siccegge@cs.fau.de>
` (5 preceding siblings ...)
2010-06-30 15:59 ` [PATCH 16/33] Removing dead APM Christoph Egger
@ 2010-06-30 15:59 ` Christoph Egger
2010-06-30 18:24 ` Marek Vasut
2010-06-30 15:59 ` [PATCH 18/33] Removing dead OMAP_ARM_96MHZ Christoph Egger
` (8 subsequent siblings)
15 siblings, 1 reply; 32+ messages in thread
From: Christoph Egger @ 2010-06-30 15:59 UTC (permalink / raw)
To: Tony Lindgren, Russell King, Kalle Valo, Ladislav Michl,
Janusz Krzysztofik
Cc: vamos
SX1_OLD_FLASH doesn't exist in Kconfig, therefore removing all
references for it from the source code.
Signed-off-by: Christoph Egger <siccegge@cs.fau.de>
---
arch/arm/mach-omap1/board-sx1.c | 26 --------------------------
1 files changed, 0 insertions(+), 26 deletions(-)
diff --git a/arch/arm/mach-omap1/board-sx1.c b/arch/arm/mach-omap1/board-sx1.c
index 2fb1e5f..1de809d 100644
--- a/arch/arm/mach-omap1/board-sx1.c
+++ b/arch/arm/mach-omap1/board-sx1.c
@@ -295,31 +295,6 @@ static struct physmap_flash_data sx1_flash_data = {
.nr_parts = ARRAY_SIZE(sx1_partitions),
};
-#ifdef CONFIG_SX1_OLD_FLASH
-/* MTD Intel StrataFlash - old flashes */
-static struct resource sx1_old_flash_resource[] = {
- [0] = {
- .start = OMAP_CS0_PHYS, /* Physical */
- .end = OMAP_CS0_PHYS + SZ_16M - 1,,
- .flags = IORESOURCE_MEM,
- },
- [1] = {
- .start = OMAP_CS1_PHYS,
- .end = OMAP_CS1_PHYS + SZ_8M - 1,
- .flags = IORESOURCE_MEM,
- },
-};
-
-static struct platform_device sx1_flash_device = {
- .name = "physmap-flash",
- .id = 0,
- .dev = {
- .platform_data = &sx1_flash_data,
- },
- .num_resources = 2,
- .resource = &sx1_old_flash_resource,
-};
-#else
/* MTD Intel 4000 flash - new flashes */
static struct resource sx1_new_flash_resource = {
.start = OMAP_CS0_PHYS,
@@ -336,7 +311,6 @@ static struct platform_device sx1_flash_device = {
.num_resources = 1,
.resource = &sx1_new_flash_resource,
};
-#endif
/*----------- USB -------------------------*/
--
1.7.0.4
^ permalink raw reply related [flat|nested] 32+ messages in thread* Re: [PATCH 17/33] Removing dead SX1_OLD_FLASH
2010-06-30 15:59 ` [PATCH 17/33] Removing dead SX1_OLD_FLASH Christoph Egger
@ 2010-06-30 18:24 ` Marek Vasut
2010-07-05 8:33 ` Tony Lindgren
0 siblings, 1 reply; 32+ messages in thread
From: Marek Vasut @ 2010-06-30 18:24 UTC (permalink / raw)
To: Christoph Egger
Cc: Kalle Valo, Ladislav Michl, Russell King, Janusz Krzysztofik,
Tony Lindgren, vamos, linux-kernel, Kevin Hilman, linux-omap,
linux-arm-kernel
Dne St 30. června 2010 17:59:25 Christoph Egger napsal(a):
> SX1_OLD_FLASH doesn't exist in Kconfig, therefore removing all
> references for it from the source code.
There were two models of the phone made, you can toggle between old and new
version. Maybe better documentation won't hurt.
>
> Signed-off-by: Christoph Egger <siccegge@cs.fau.de>
> ---
> arch/arm/mach-omap1/board-sx1.c | 26 --------------------------
> 1 files changed, 0 insertions(+), 26 deletions(-)
>
> diff --git a/arch/arm/mach-omap1/board-sx1.c
> b/arch/arm/mach-omap1/board-sx1.c index 2fb1e5f..1de809d 100644
> --- a/arch/arm/mach-omap1/board-sx1.c
> +++ b/arch/arm/mach-omap1/board-sx1.c
> @@ -295,31 +295,6 @@ static struct physmap_flash_data sx1_flash_data = {
> .nr_parts = ARRAY_SIZE(sx1_partitions),
> };
>
> -#ifdef CONFIG_SX1_OLD_FLASH
> -/* MTD Intel StrataFlash - old flashes */
> -static struct resource sx1_old_flash_resource[] = {
> - [0] = {
> - .start = OMAP_CS0_PHYS, /* Physical */
> - .end = OMAP_CS0_PHYS + SZ_16M - 1,,
> - .flags = IORESOURCE_MEM,
> - },
> - [1] = {
> - .start = OMAP_CS1_PHYS,
> - .end = OMAP_CS1_PHYS + SZ_8M - 1,
> - .flags = IORESOURCE_MEM,
> - },
> -};
> -
> -static struct platform_device sx1_flash_device = {
> - .name = "physmap-flash",
> - .id = 0,
> - .dev = {
> - .platform_data = &sx1_flash_data,
> - },
> - .num_resources = 2,
> - .resource = &sx1_old_flash_resource,
> -};
> -#else
> /* MTD Intel 4000 flash - new flashes */
> static struct resource sx1_new_flash_resource = {
> .start = OMAP_CS0_PHYS,
> @@ -336,7 +311,6 @@ static struct platform_device sx1_flash_device = {
> .num_resources = 1,
> .resource = &sx1_new_flash_resource,
> };
> -#endif
>
> /*----------- USB -------------------------*/
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 32+ messages in thread* Re: [PATCH 17/33] Removing dead SX1_OLD_FLASH
2010-06-30 18:24 ` Marek Vasut
@ 2010-07-05 8:33 ` Tony Lindgren
2010-07-05 10:31 ` Marek Vasut
0 siblings, 1 reply; 32+ messages in thread
From: Tony Lindgren @ 2010-07-05 8:33 UTC (permalink / raw)
To: Marek Vasut
Cc: Christoph Egger, Russell King, Kalle Valo, Ladislav Michl,
Janusz Krzysztofik, Kevin Hilman, linux-omap, linux-arm-kernel,
linux-kernel, vamos
* Marek Vasut <marek.vasut@gmail.com> [100630 21:21]:
> Dne St 30. června 2010 17:59:25 Christoph Egger napsal(a):
> > SX1_OLD_FLASH doesn't exist in Kconfig, therefore removing all
> > references for it from the source code.
>
> There were two models of the phone made, you can toggle between old and new
> version. Maybe better documentation won't hurt.
Sounds like this should be done dynamically based on omap_rev,
or some cmdline option from the bootloader? Not applying this
one.
Tony
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: [PATCH 17/33] Removing dead SX1_OLD_FLASH
2010-07-05 8:33 ` Tony Lindgren
@ 2010-07-05 10:31 ` Marek Vasut
0 siblings, 0 replies; 32+ messages in thread
From: Marek Vasut @ 2010-07-05 10:31 UTC (permalink / raw)
To: Tony Lindgren
Cc: Christoph Egger, Russell King, Kalle Valo, Ladislav Michl,
Janusz Krzysztofik, Kevin Hilman, linux-omap, linux-arm-kernel,
linux-kernel, vamos
Dne Po 5. července 2010 10:33:48 Tony Lindgren napsal(a):
> * Marek Vasut <marek.vasut@gmail.com> [100630 21:21]:
> > Dne St 30. června 2010 17:59:25 Christoph Egger napsal(a):
> > > SX1_OLD_FLASH doesn't exist in Kconfig, therefore removing all
> > > references for it from the source code.
> >
> > There were two models of the phone made, you can toggle between old and
> > new version. Maybe better documentation won't hurt.
>
> Sounds like this should be done dynamically based on omap_rev,
> or some cmdline option from the bootloader? Not applying this
> one.
>
> Tony
Yea, the russian guy who ported this is gone I guess though. Just maybe I can
get my hands on linux-powered SX1 and try looking into this, but I can't promise
it'll be any soon.
Cheers
^ permalink raw reply [flat|nested] 32+ messages in thread
* [PATCH 18/33] Removing dead OMAP_ARM_96MHZ
[not found] <cover.1277911345.git.siccegge@cs.fau.de>
` (6 preceding siblings ...)
2010-06-30 15:59 ` [PATCH 17/33] Removing dead SX1_OLD_FLASH Christoph Egger
@ 2010-06-30 15:59 ` Christoph Egger
2010-06-30 18:25 ` Marek Vasut
2010-06-30 16:00 ` [PATCH 21/33] Removing dead OMAP2_VENC_OUT_TYPE_SVIDEO, OMAP2_VENC_OUT_TYPE_COMPOSITE Christoph Egger
` (7 subsequent siblings)
15 siblings, 1 reply; 32+ messages in thread
From: Christoph Egger @ 2010-06-30 15:59 UTC (permalink / raw)
To: Tony Lindgren, Russell King, Paul Walmsley, linux-omap,
linux-arm-kernel, linux-kernel
Cc: vamos
OMAP_ARM_96MHZ doesn't exist in Kconfig, therefore removing all
references for it from the source code.
Signed-off-by: Christoph Egger <siccegge@cs.fau.de>
---
arch/arm/mach-omap1/opp_data.c | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
diff --git a/arch/arm/mach-omap1/opp_data.c b/arch/arm/mach-omap1/opp_data.c
index 75a5465..060df86 100644
--- a/arch/arm/mach-omap1/opp_data.c
+++ b/arch/arm/mach-omap1/opp_data.c
@@ -45,9 +45,6 @@ struct mpu_rate omap1_rate_table[] = {
#if defined(CONFIG_OMAP_ARM_120MHZ)
{ 120000000, 12000000, 120000000, 0x010a, 0x2510 }, /* 1/1/1/2/4/4 */
#endif
-#if defined(CONFIG_OMAP_ARM_96MHZ)
- { 96000000, 12000000, 96000000, 0x0005, 0x2410 }, /* 1/1/1/1/2/2 */
-#endif
#if defined(CONFIG_OMAP_ARM_60MHZ)
{ 60000000, 12000000, 60000000, 0x0005, 0x2290 }, /* 1/1/1/1/2/2 */
#endif
--
1.7.0.4
^ permalink raw reply related [flat|nested] 32+ messages in thread* Re: [PATCH 18/33] Removing dead OMAP_ARM_96MHZ
2010-06-30 15:59 ` [PATCH 18/33] Removing dead OMAP_ARM_96MHZ Christoph Egger
@ 2010-06-30 18:25 ` Marek Vasut
2010-07-05 8:44 ` Tony Lindgren
0 siblings, 1 reply; 32+ messages in thread
From: Marek Vasut @ 2010-06-30 18:25 UTC (permalink / raw)
To: Christoph Egger
Cc: Tony Lindgren, Russell King, Paul Walmsley, linux-omap,
linux-arm-kernel, linux-kernel, vamos
Dne St 30. června 2010 17:59:45 Christoph Egger napsal(a):
> OMAP_ARM_96MHZ doesn't exist in Kconfig, therefore removing all
> references for it from the source code.
I'd be for adding it to Kconfig rather than removing from here
>
> Signed-off-by: Christoph Egger <siccegge@cs.fau.de>
> ---
> arch/arm/mach-omap1/opp_data.c | 3 ---
> 1 files changed, 0 insertions(+), 3 deletions(-)
>
> diff --git a/arch/arm/mach-omap1/opp_data.c
> b/arch/arm/mach-omap1/opp_data.c index 75a5465..060df86 100644
> --- a/arch/arm/mach-omap1/opp_data.c
> +++ b/arch/arm/mach-omap1/opp_data.c
> @@ -45,9 +45,6 @@ struct mpu_rate omap1_rate_table[] = {
> #if defined(CONFIG_OMAP_ARM_120MHZ)
> { 120000000, 12000000, 120000000, 0x010a, 0x2510 }, /* 1/1/1/2/4/4 */
> #endif
> -#if defined(CONFIG_OMAP_ARM_96MHZ)
> - { 96000000, 12000000, 96000000, 0x0005, 0x2410 }, /* 1/1/1/1/2/2 */
> -#endif
> #if defined(CONFIG_OMAP_ARM_60MHZ)
> { 60000000, 12000000, 60000000, 0x0005, 0x2290 }, /* 1/1/1/1/2/2 */
> #endif
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 32+ messages in thread
* [PATCH 21/33] Removing dead OMAP2_VENC_OUT_TYPE_SVIDEO, OMAP2_VENC_OUT_TYPE_COMPOSITE
[not found] <cover.1277911345.git.siccegge@cs.fau.de>
` (7 preceding siblings ...)
2010-06-30 15:59 ` [PATCH 18/33] Removing dead OMAP_ARM_96MHZ Christoph Egger
@ 2010-06-30 16:00 ` Christoph Egger
2010-07-05 8:56 ` Tony Lindgren
2010-07-06 5:56 ` Hiremath, Vaibhav
2010-06-30 16:01 ` [PATCH 22/33] Removing dead MPU_{BRIDGE,TESLA}_IOMMU Christoph Egger
` (6 subsequent siblings)
15 siblings, 2 replies; 32+ messages in thread
From: Christoph Egger @ 2010-06-30 16:00 UTC (permalink / raw)
To: Tony Lindgren, Russell King, Jason Lam, linux-omap,
linux-arm-kernel, linux-kernel
Cc: vamos
OMAP2_VENC_OUT_TYPE_SVIDEO, OMAP2_VENC_OUT_TYPE_COMPOSITE doesn't
exist in Kconfig, therefore removing all references for it from the
source code.
Signed-off-by: Christoph Egger <siccegge@cs.fau.de>
---
arch/arm/mach-omap2/board-omap3stalker.c | 5 -----
1 files changed, 0 insertions(+), 5 deletions(-)
diff --git a/arch/arm/mach-omap2/board-omap3stalker.c b/arch/arm/mach-omap2/board-omap3stalker.c
index f848ba8..b38afd5 100644
--- a/arch/arm/mach-omap2/board-omap3stalker.c
+++ b/arch/arm/mach-omap2/board-omap3stalker.c
@@ -181,11 +181,6 @@ static struct omap_dss_device omap3_stalker_tv_device = {
.name = "tv",
.driver_name = "venc",
.type = OMAP_DISPLAY_TYPE_VENC,
-#if defined(CONFIG_OMAP2_VENC_OUT_TYPE_SVIDEO)
- .phy.venc.type = OMAP_DSS_VENC_TYPE_SVIDEO,
-#elif defined(CONFIG_OMAP2_VENC_OUT_TYPE_COMPOSITE)
- .u.venc.type = OMAP_DSS_VENC_TYPE_COMPOSITE,
-#endif
.platform_enable = omap3_stalker_enable_tv,
.platform_disable = omap3_stalker_disable_tv,
};
--
1.7.0.4
^ permalink raw reply related [flat|nested] 32+ messages in thread* Re: [PATCH 21/33] Removing dead OMAP2_VENC_OUT_TYPE_SVIDEO, OMAP2_VENC_OUT_TYPE_COMPOSITE
2010-06-30 16:00 ` [PATCH 21/33] Removing dead OMAP2_VENC_OUT_TYPE_SVIDEO, OMAP2_VENC_OUT_TYPE_COMPOSITE Christoph Egger
@ 2010-07-05 8:56 ` Tony Lindgren
2010-08-03 12:12 ` Tomi Valkeinen
2010-07-06 5:56 ` Hiremath, Vaibhav
1 sibling, 1 reply; 32+ messages in thread
From: Tony Lindgren @ 2010-07-05 8:56 UTC (permalink / raw)
To: Christoph Egger
Cc: Russell King, Jason Lam, linux-omap, linux-arm-kernel,
linux-kernel, vamos, Tomi Valkeinen
* Christoph Egger <siccegge@cs.fau.de> [100630 18:58]:
> OMAP2_VENC_OUT_TYPE_SVIDEO, OMAP2_VENC_OUT_TYPE_COMPOSITE doesn't
> exist in Kconfig, therefore removing all references for it from the
> source code.
Let's let Tomi figure out this one, added him to Cc.
Regards,
Tony
> Signed-off-by: Christoph Egger <siccegge@cs.fau.de>
> ---
> arch/arm/mach-omap2/board-omap3stalker.c | 5 -----
> 1 files changed, 0 insertions(+), 5 deletions(-)
>
> diff --git a/arch/arm/mach-omap2/board-omap3stalker.c b/arch/arm/mach-omap2/board-omap3stalker.c
> index f848ba8..b38afd5 100644
> --- a/arch/arm/mach-omap2/board-omap3stalker.c
> +++ b/arch/arm/mach-omap2/board-omap3stalker.c
> @@ -181,11 +181,6 @@ static struct omap_dss_device omap3_stalker_tv_device = {
> .name = "tv",
> .driver_name = "venc",
> .type = OMAP_DISPLAY_TYPE_VENC,
> -#if defined(CONFIG_OMAP2_VENC_OUT_TYPE_SVIDEO)
> - .phy.venc.type = OMAP_DSS_VENC_TYPE_SVIDEO,
> -#elif defined(CONFIG_OMAP2_VENC_OUT_TYPE_COMPOSITE)
> - .u.venc.type = OMAP_DSS_VENC_TYPE_COMPOSITE,
> -#endif
> .platform_enable = omap3_stalker_enable_tv,
> .platform_disable = omap3_stalker_disable_tv,
> };
> --
> 1.7.0.4
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 32+ messages in thread* Re: [PATCH 21/33] Removing dead OMAP2_VENC_OUT_TYPE_SVIDEO, OMAP2_VENC_OUT_TYPE_COMPOSITE
2010-07-05 8:56 ` Tony Lindgren
@ 2010-08-03 12:12 ` Tomi Valkeinen
0 siblings, 0 replies; 32+ messages in thread
From: Tomi Valkeinen @ 2010-08-03 12:12 UTC (permalink / raw)
To: ext Tony Lindgren
Cc: Christoph Egger, Russell King, Jason Lam,
linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, vamos@i4.informatik.uni-erlangen.de
On Mon, 2010-07-05 at 10:56 +0200, ext Tony Lindgren wrote:
> * Christoph Egger <siccegge@cs.fau.de> [100630 18:58]:
> > OMAP2_VENC_OUT_TYPE_SVIDEO, OMAP2_VENC_OUT_TYPE_COMPOSITE doesn't
> > exist in Kconfig, therefore removing all references for it from the
> > source code.
>
> Let's let Tomi figure out this one, added him to Cc.
The patch doesn't look valid, because either SVIDEO or COMPOSITE should
be set into .phy.venc.type. But then again, the code that's removed
doesn't look valid either, as by default it doesn't do either, and the
COMPOSITE block wouldn't even comile...
Those defines look like some custom defines that have never been in
mainstream linux, so I think the patch can be applied, and the board
file maintainer can fix it with proper code later.
Tomi
>
> Regards,
>
> Tony
>
> > Signed-off-by: Christoph Egger <siccegge@cs.fau.de>
> > ---
> > arch/arm/mach-omap2/board-omap3stalker.c | 5 -----
> > 1 files changed, 0 insertions(+), 5 deletions(-)
> >
> > diff --git a/arch/arm/mach-omap2/board-omap3stalker.c b/arch/arm/mach-omap2/board-omap3stalker.c
> > index f848ba8..b38afd5 100644
> > --- a/arch/arm/mach-omap2/board-omap3stalker.c
> > +++ b/arch/arm/mach-omap2/board-omap3stalker.c
> > @@ -181,11 +181,6 @@ static struct omap_dss_device omap3_stalker_tv_device = {
> > .name = "tv",
> > .driver_name = "venc",
> > .type = OMAP_DISPLAY_TYPE_VENC,
> > -#if defined(CONFIG_OMAP2_VENC_OUT_TYPE_SVIDEO)
> > - .phy.venc.type = OMAP_DSS_VENC_TYPE_SVIDEO,
> > -#elif defined(CONFIG_OMAP2_VENC_OUT_TYPE_COMPOSITE)
> > - .u.venc.type = OMAP_DSS_VENC_TYPE_COMPOSITE,
> > -#endif
> > .platform_enable = omap3_stalker_enable_tv,
> > .platform_disable = omap3_stalker_disable_tv,
> > };
> > --
> > 1.7.0.4
> >
> > --
> > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> > the body of a message to majordomo@vger.kernel.org
> > More majordomo info at http://vger.kernel.org/majordomo-info.html
> > Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 32+ messages in thread
* RE: [PATCH 21/33] Removing dead OMAP2_VENC_OUT_TYPE_SVIDEO, OMAP2_VENC_OUT_TYPE_COMPOSITE
2010-06-30 16:00 ` [PATCH 21/33] Removing dead OMAP2_VENC_OUT_TYPE_SVIDEO, OMAP2_VENC_OUT_TYPE_COMPOSITE Christoph Egger
2010-07-05 8:56 ` Tony Lindgren
@ 2010-07-06 5:56 ` Hiremath, Vaibhav
1 sibling, 0 replies; 32+ messages in thread
From: Hiremath, Vaibhav @ 2010-07-06 5:56 UTC (permalink / raw)
To: Christoph Egger, Tony Lindgren, Russell King, Jason Lam,
"linux-omap@vger.kernel.org" <linux-omap@
Cc: vamos@i4.informatik.uni-erlangen.de
> -----Original Message-----
> From: linux-omap-owner@vger.kernel.org [mailto:linux-omap-
> owner@vger.kernel.org] On Behalf Of Christoph Egger
> Sent: Wednesday, June 30, 2010 9:31 PM
> To: Tony Lindgren; Russell King; Jason Lam; linux-omap@vger.kernel.org;
> linux-arm-kernel@lists.infradead.org; linux-kernel@vger.kernel.org
> Cc: vamos@i4.informatik.uni-erlangen.de
> Subject: [PATCH 21/33] Removing dead OMAP2_VENC_OUT_TYPE_SVIDEO,
> OMAP2_VENC_OUT_TYPE_COMPOSITE
>
> OMAP2_VENC_OUT_TYPE_SVIDEO, OMAP2_VENC_OUT_TYPE_COMPOSITE doesn't
> exist in Kconfig, therefore removing all references for it from the
> source code.
>
> Signed-off-by: Christoph Egger <siccegge@cs.fau.de>
> ---
> arch/arm/mach-omap2/board-omap3stalker.c | 5 -----
> 1 files changed, 0 insertions(+), 5 deletions(-)
>
> diff --git a/arch/arm/mach-omap2/board-omap3stalker.c b/arch/arm/mach-
> omap2/board-omap3stalker.c
> index f848ba8..b38afd5 100644
> --- a/arch/arm/mach-omap2/board-omap3stalker.c
> +++ b/arch/arm/mach-omap2/board-omap3stalker.c
> @@ -181,11 +181,6 @@ static struct omap_dss_device omap3_stalker_tv_device =
> {
> .name = "tv",
> .driver_name = "venc",
> .type = OMAP_DISPLAY_TYPE_VENC,
> -#if defined(CONFIG_OMAP2_VENC_OUT_TYPE_SVIDEO)
> - .phy.venc.type = OMAP_DSS_VENC_TYPE_SVIDEO,
> -#elif defined(CONFIG_OMAP2_VENC_OUT_TYPE_COMPOSITE)
> - .u.venc.type = OMAP_DSS_VENC_TYPE_COMPOSITE,
> -#endif
[Hiremath, Vaibhav] I understand that currently we do not have any mechanism to dynamically change the VENC output type, but I think we should make some default type assumption and keep that initialization here, which is anyway happening to CONFIG_OMAP2_VENC_OUT_TYPE_COMPOSITE. But explicitly initialize it to CONFIG_OMAP2_VENC_OUT_TYPE_COMPOSITE for completeness/readability.
Just wanted to add one more thing here is, in our internal releases we do have config option to choose between this. But ideally it would be configurable dynamically.
Thanks,
Vaibhav
> .platform_enable = omap3_stalker_enable_tv,
> .platform_disable = omap3_stalker_disable_tv,
> };
> --
> 1.7.0.4
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 32+ messages in thread
* [PATCH 22/33] Removing dead MPU_{BRIDGE,TESLA}_IOMMU
[not found] <cover.1277911345.git.siccegge@cs.fau.de>
` (8 preceding siblings ...)
2010-06-30 16:00 ` [PATCH 21/33] Removing dead OMAP2_VENC_OUT_TYPE_SVIDEO, OMAP2_VENC_OUT_TYPE_COMPOSITE Christoph Egger
@ 2010-06-30 16:01 ` Christoph Egger
2010-06-30 18:23 ` Hiroshi DOYU
[not found] ` <51c095a4c49baacbfdd6ed332d1375ab64209753.1277911346.git.siccegge@cs.fau.de>
` (5 subsequent siblings)
15 siblings, 1 reply; 32+ messages in thread
From: Christoph Egger @ 2010-06-30 16:01 UTC (permalink / raw)
To: Tony Lindgren, Russell King, Hari Kanigeri, Hiroshi DOYU,
linux-omap; +Cc: vamos
MPU_{BRIDGE,TESLA}_IOMMU doesn't exist in Kconfig, therefore removing
all references for it from the source code.
Signed-off-by: Christoph Egger <siccegge@cs.fau.de>
---
arch/arm/mach-omap2/omap-iommu.c | 22 ----------------------
1 files changed, 0 insertions(+), 22 deletions(-)
diff --git a/arch/arm/mach-omap2/omap-iommu.c b/arch/arm/mach-omap2/omap-iommu.c
index eb9bee7..3aa3fe9 100644
--- a/arch/arm/mach-omap2/omap-iommu.c
+++ b/arch/arm/mach-omap2/omap-iommu.c
@@ -35,17 +35,6 @@ static struct iommu_device omap3_devices[] = {
.clk_name = "cam_ick",
},
},
-#if defined(CONFIG_MPU_BRIDGE_IOMMU)
- {
- .base = 0x5d000000,
- .irq = 28,
- .pdata = {
- .name = "iva2",
- .nr_tlb_entries = 32,
- .clk_name = "iva2_ck",
- },
- },
-#endif
};
#define NR_OMAP3_IOMMU_DEVICES ARRAY_SIZE(omap3_devices)
static struct platform_device *omap3_iommu_pdev[NR_OMAP3_IOMMU_DEVICES];
@@ -66,17 +55,6 @@ static struct iommu_device omap4_devices[] = {
.clk_name = "ducati_ick",
},
},
-#if defined(CONFIG_MPU_TESLA_IOMMU)
- {
- .base = OMAP4_MMU2_BASE,
- .irq = INT_44XX_DSP_MMU,
- .pdata = {
- .name = "tesla",
- .nr_tlb_entries = 32,
- .clk_name = "tesla_ick",
- },
- },
-#endif
};
#define NR_OMAP4_IOMMU_DEVICES ARRAY_SIZE(omap4_devices)
static struct platform_device *omap4_iommu_pdev[NR_OMAP4_IOMMU_DEVICES];
--
1.7.0.4
^ permalink raw reply related [flat|nested] 32+ messages in thread* Re: [PATCH 22/33] Removing dead MPU_{BRIDGE,TESLA}_IOMMU
2010-06-30 16:01 ` [PATCH 22/33] Removing dead MPU_{BRIDGE,TESLA}_IOMMU Christoph Egger
@ 2010-06-30 18:23 ` Hiroshi DOYU
2010-06-30 18:44 ` Kanigeri, Hari
0 siblings, 1 reply; 32+ messages in thread
From: Hiroshi DOYU @ 2010-06-30 18:23 UTC (permalink / raw)
To: siccegge, h-kanigeri2
Cc: tony, linux, linux-omap, linux-arm-kernel, linux-kernel, vamos
From: ext Christoph Egger <siccegge@cs.fau.de>
Subject: [PATCH 22/33] Removing dead MPU_{BRIDGE,TESLA}_IOMMU
Date: Wed, 30 Jun 2010 18:01:01 +0200
> MPU_{BRIDGE,TESLA}_IOMMU doesn't exist in Kconfig, therefore removing
> all references for it from the source code.
Coming soon, I guess. Hari?
> Signed-off-by: Christoph Egger <siccegge@cs.fau.de>
> ---
> arch/arm/mach-omap2/omap-iommu.c | 22 ----------------------
> 1 files changed, 0 insertions(+), 22 deletions(-)
>
> diff --git a/arch/arm/mach-omap2/omap-iommu.c b/arch/arm/mach-omap2/omap-iommu.c
> index eb9bee7..3aa3fe9 100644
> --- a/arch/arm/mach-omap2/omap-iommu.c
> +++ b/arch/arm/mach-omap2/omap-iommu.c
> @@ -35,17 +35,6 @@ static struct iommu_device omap3_devices[] = {
> .clk_name = "cam_ick",
> },
> },
> -#if defined(CONFIG_MPU_BRIDGE_IOMMU)
> - {
> - .base = 0x5d000000,
> - .irq = 28,
> - .pdata = {
> - .name = "iva2",
> - .nr_tlb_entries = 32,
> - .clk_name = "iva2_ck",
> - },
> - },
> -#endif
> };
> #define NR_OMAP3_IOMMU_DEVICES ARRAY_SIZE(omap3_devices)
> static struct platform_device *omap3_iommu_pdev[NR_OMAP3_IOMMU_DEVICES];
> @@ -66,17 +55,6 @@ static struct iommu_device omap4_devices[] = {
> .clk_name = "ducati_ick",
> },
> },
> -#if defined(CONFIG_MPU_TESLA_IOMMU)
> - {
> - .base = OMAP4_MMU2_BASE,
> - .irq = INT_44XX_DSP_MMU,
> - .pdata = {
> - .name = "tesla",
> - .nr_tlb_entries = 32,
> - .clk_name = "tesla_ick",
> - },
> - },
> -#endif
> };
> #define NR_OMAP4_IOMMU_DEVICES ARRAY_SIZE(omap4_devices)
> static struct platform_device *omap4_iommu_pdev[NR_OMAP4_IOMMU_DEVICES];
> --
> 1.7.0.4
>
^ permalink raw reply [flat|nested] 32+ messages in thread* RE: [PATCH 22/33] Removing dead MPU_{BRIDGE,TESLA}_IOMMU
2010-06-30 18:23 ` Hiroshi DOYU
@ 2010-06-30 18:44 ` Kanigeri, Hari
0 siblings, 0 replies; 32+ messages in thread
From: Kanigeri, Hari @ 2010-06-30 18:44 UTC (permalink / raw)
To: Hiroshi DOYU, siccegge@cs.fau.de
Cc: tony@atomide.com, linux@arm.linux.org.uk,
linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, vamos@i4.informatik.uni-erlangen.de
> -----Original Message-----
> From: Hiroshi DOYU [mailto:Hiroshi.DOYU@nokia.com]
> Sent: Wednesday, June 30, 2010 1:24 PM
> To: siccegge@cs.fau.de; Kanigeri, Hari
> Cc: tony@atomide.com; linux@arm.linux.org.uk; linux-omap@vger.kernel.org;
> linux-arm-kernel@lists.infradead.org; linux-kernel@vger.kernel.org;
> vamos@i4.informatik.uni-erlangen.de
> Subject: Re: [PATCH 22/33] Removing dead MPU_{BRIDGE,TESLA}_IOMMU
>
> From: ext Christoph Egger <siccegge@cs.fau.de>
> Subject: [PATCH 22/33] Removing dead MPU_{BRIDGE,TESLA}_IOMMU
> Date: Wed, 30 Jun 2010 18:01:01 +0200
>
> > MPU_{BRIDGE,TESLA}_IOMMU doesn't exist in Kconfig, therefore removing
> > all references for it from the source code.
>
> Coming soon, I guess. Hari?
Coming soon for both Bridge and Tesla. As I am writing this email, Fernando is preparing the Bridge patches to migrate to iommu.
Thank you,
Best regards,
Hari
^ permalink raw reply [flat|nested] 32+ messages in thread
[parent not found: <51c095a4c49baacbfdd6ed332d1375ab64209753.1277911346.git.siccegge@cs.fau.de>]
* Re: [PATCH 16/33] Removing dead APM
[not found] ` <51c095a4c49baacbfdd6ed332d1375ab64209753.1277911346.git.siccegge@cs.fau.de>
@ 2010-06-30 18:23 ` Marek Vasut
2010-07-05 8:31 ` Tony Lindgren
0 siblings, 1 reply; 32+ messages in thread
From: Marek Vasut @ 2010-06-30 18:23 UTC (permalink / raw)
To: Christoph Egger
Cc: Tony Lindgren, Russell King, Kalle Valo, Ladislav Michl,
Janusz Krzysztofik, Kevin Hilman, linux-omap, linux-arm-kernel,
linux-kernel, vamos
Dne St 30. června 2010 17:59:06 Christoph Egger napsal(a):
> APM doesn't exist in Kconfig, therefore removing all references for it
> from the source code.
Tony, do you know Andrzej Zaborowski's new email address? Maybe he should be
CCed here
>
> Signed-off-by: Christoph Egger <siccegge@cs.fau.de>
> ---
> arch/arm/mach-omap1/board-palmte.c | 84
> ------------------------------------ 1 files changed, 0 insertions(+), 84
> deletions(-)
>
> diff --git a/arch/arm/mach-omap1/board-palmte.c
> b/arch/arm/mach-omap1/board-palmte.c index 569b4c9..23bb0c9 100644
> --- a/arch/arm/mach-omap1/board-palmte.c
> +++ b/arch/arm/mach-omap1/board-palmte.c
> @@ -213,90 +213,6 @@ static struct omap_lcd_config palmte_lcd_config
> __initdata = { .ctrl_name = "internal",
> };
>
> -#ifdef CONFIG_APM
> -/*
> - * Values measured in 10 minute intervals averaged over 10 samples.
> - * May differ slightly from device to device but should be accurate
> - * enough to give basic idea of battery life left and trigger
> - * potential alerts.
> - */
> -static const int palmte_battery_sample[] = {
> - 2194, 2157, 2138, 2120,
> - 2104, 2089, 2075, 2061,
> - 2048, 2038, 2026, 2016,
> - 2008, 1998, 1989, 1980,
> - 1970, 1958, 1945, 1928,
> - 1910, 1888, 1860, 1827,
> - 1791, 1751, 1709, 1656,
> -};
> -
> -#define INTERVAL 10
> -#define BATTERY_HIGH_TRESHOLD 66
> -#define BATTERY_LOW_TRESHOLD 33
> -
> -static void palmte_get_power_status(struct apm_power_info *info, int
> *battery) -{
> - int charging, batt, hi, lo, mid;
> -
> - charging = !gpio_get_value(PALMTE_DC_GPIO);
> - batt = battery[0];
> - if (charging)
> - batt -= 60;
> -
> - hi = ARRAY_SIZE(palmte_battery_sample);
> - lo = 0;
> -
> - info->battery_flag = 0;
> - info->units = APM_UNITS_MINS;
> -
> - if (batt > palmte_battery_sample[lo]) {
> - info->battery_life = 100;
> - info->time = INTERVAL * ARRAY_SIZE(palmte_battery_sample);
> - } else if (batt <= palmte_battery_sample[hi - 1]) {
> - info->battery_life = 0;
> - info->time = 0;
> - } else {
> - while (hi > lo + 1) {
> - mid = (hi + lo) >> 1;
> - if (batt <= palmte_battery_sample[mid])
> - lo = mid;
> - else
> - hi = mid;
> - }
> -
> - mid = palmte_battery_sample[lo] - palmte_battery_sample[hi];
> - hi = palmte_battery_sample[lo] - batt;
> - info->battery_life = 100 - (100 * lo + 100 * hi / mid) /
> - ARRAY_SIZE(palmte_battery_sample);
> - info->time = INTERVAL * (ARRAY_SIZE(palmte_battery_sample) -
> - lo) - INTERVAL * hi / mid;
> - }
> -
> - if (charging) {
> - info->ac_line_status = APM_AC_ONLINE;
> - info->battery_status = APM_BATTERY_STATUS_CHARGING;
> - info->battery_flag |= APM_BATTERY_FLAG_CHARGING;
> - } else {
> - info->ac_line_status = APM_AC_OFFLINE;
> - if (info->battery_life > BATTERY_HIGH_TRESHOLD)
> - info->battery_status = APM_BATTERY_STATUS_HIGH;
> - else if (info->battery_life > BATTERY_LOW_TRESHOLD)
> - info->battery_status = APM_BATTERY_STATUS_LOW;
> - else
> - info->battery_status = APM_BATTERY_STATUS_CRITICAL;
> - }
> -
> - if (info->battery_life > BATTERY_HIGH_TRESHOLD)
> - info->battery_flag |= APM_BATTERY_FLAG_HIGH;
> - else if (info->battery_life > BATTERY_LOW_TRESHOLD)
> - info->battery_flag |= APM_BATTERY_FLAG_LOW;
> - else
> - info->battery_flag |= APM_BATTERY_FLAG_CRITICAL;
> -}
> -#else
> -#define palmte_get_power_status NULL
> -#endif
> -
> static struct omap_board_config_kernel palmte_config[] __initdata = {
> { OMAP_TAG_LCD, &palmte_lcd_config },
> };
^ permalink raw reply [flat|nested] 32+ messages in thread* Re: [PATCH 16/33] Removing dead APM
2010-06-30 18:23 ` [PATCH 16/33] Removing dead APM Marek Vasut
@ 2010-07-05 8:31 ` Tony Lindgren
0 siblings, 0 replies; 32+ messages in thread
From: Tony Lindgren @ 2010-07-05 8:31 UTC (permalink / raw)
To: Marek Vasut
Cc: Christoph Egger, Russell King, Kalle Valo, Ladislav Michl,
Janusz Krzysztofik, Kevin Hilman, linux-omap, linux-arm-kernel,
linux-kernel, vamos
* Marek Vasut <marek.vasut@gmail.com> [100630 21:19]:
> Dne St 30. června 2010 17:59:06 Christoph Egger napsal(a):
> > APM doesn't exist in Kconfig, therefore removing all references for it
> > from the source code.
>
> Tony, do you know Andrzej Zaborowski's new email address? Maybe he should be
> CCed here
Sorry I don't have any other email address for him either. I've applied this.
Tony
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 32+ messages in thread
[parent not found: <b6ca168f9459162f2c96aa8ef999047a3c4f6f9c.1277911346.git.siccegge@cs.fau.de>]
* Re: [PATCH 03/33] Removing dead OMAP_MUX_ERRORS
[not found] ` <b6ca168f9459162f2c96aa8ef999047a3c4f6f9c.1277911346.git.siccegge@cs.fau.de>
@ 2010-06-30 19:54 ` Kirill A. Shutemov
2010-07-01 13:22 ` Christoph Egger
0 siblings, 1 reply; 32+ messages in thread
From: Kirill A. Shutemov @ 2010-06-30 19:54 UTC (permalink / raw)
To: Christoph Egger
Cc: Tony Lindgren, Russell King, Cory Maccarrone, Zebediah C. McClure,
Alistair Buxton, linux-omap, linux-arm-kernel, linux-kernel,
vamos
On Wed, Jun 30, 2010 at 05:54:42PM +0200, Christoph Egger wrote:
> OMAP_MUX_ERRORS doesn't exist in Kconfig, therefore removing all
> references for it from the source code.
IIUC, CONFIG_OMAP_MUX_WARNINGS should be used here instead of it.
> Signed-off-by: Christoph Egger <siccegge@cs.fau.de>
> ---
> arch/arm/mach-omap1/mux.c | 5 -----
> 1 files changed, 0 insertions(+), 5 deletions(-)
>
> diff --git a/arch/arm/mach-omap1/mux.c b/arch/arm/mach-omap1/mux.c
> index 8434137..1ddb02c 100644
> --- a/arch/arm/mach-omap1/mux.c
> +++ b/arch/arm/mach-omap1/mux.c
> @@ -439,12 +439,7 @@ int __init_or_module omap1_cfg_reg(const struct pin_config *cfg)
> cfg->pull_name, cfg->pull_reg, pull_orig, pull);
> }
> #endif
> -
> -#ifdef CONFIG_OMAP_MUX_ERRORS
> - return warn ? -ETXTBSY : 0;
> -#else
> return 0;
> -#endif
> }
>
> int __init omap1_mux_init(void)
> --
> 1.7.0.4
>
>
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
--
Kirill A. Shutemov
^ permalink raw reply [flat|nested] 32+ messages in thread* Re: [PATCH 03/33] Removing dead OMAP_MUX_ERRORS
2010-06-30 19:54 ` [PATCH 03/33] Removing dead OMAP_MUX_ERRORS Kirill A. Shutemov
@ 2010-07-01 13:22 ` Christoph Egger
2010-07-01 15:27 ` Kirill A. Shutemov
0 siblings, 1 reply; 32+ messages in thread
From: Christoph Egger @ 2010-07-01 13:22 UTC (permalink / raw)
To: Kirill A. Shutemov
Cc: Tony Lindgren, Russell King, Cory Maccarrone, Zebediah C. McClure,
Alistair Buxton, linux-omap, linux-arm-kernel, linux-kernel,
vamos
On Wed, Jun 30, 2010 at 10:54:09PM +0300, Kirill A. Shutemov wrote:
> On Wed, Jun 30, 2010 at 05:54:42PM +0200, Christoph Egger wrote:
> > OMAP_MUX_ERRORS doesn't exist in Kconfig, therefore removing all
> > references for it from the source code.
>
> IIUC, CONFIG_OMAP_MUX_WARNINGS should be used here instead of it.
Something like the patch below?
----
From: Christoph Egger <siccegge@cs.fau.de>
Date: Wed, 30 Jun 2010 12:30:36 +0200
Subject: [PATCH 03/33] Replace dead OMAP_MUX_ERRORS with OMAP_MUX_WARNINGS
OMAP_MUX_ERRORS doesn't exist in Kconfig, therefore replacing all
references for it with OMAP_MUX_WARNINGS in the source code.
Signed-off-by: Christoph Egger <siccegge@cs.fau.de>
---
arch/arm/mach-omap1/mux.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/arm/mach-omap1/mux.c b/arch/arm/mach-omap1/mux.c
index 8434137..3e98835 100644
--- a/arch/arm/mach-omap1/mux.c
+++ b/arch/arm/mach-omap1/mux.c
@@ -440,7 +440,7 @@ int __init_or_module omap1_cfg_reg(const struct pin_config *cfg)
}
#endif
-#ifdef CONFIG_OMAP_MUX_ERRORS
+#ifdef CONFIG_OMAP_MUX_WARNINGS
return warn ? -ETXTBSY : 0;
#else
return 0;
--
1.7.0.4
^ permalink raw reply related [flat|nested] 32+ messages in thread
* Re: [PATCH 03/33] Removing dead OMAP_MUX_ERRORS
2010-07-01 13:22 ` Christoph Egger
@ 2010-07-01 15:27 ` Kirill A. Shutemov
2010-07-05 8:07 ` Tony Lindgren
0 siblings, 1 reply; 32+ messages in thread
From: Kirill A. Shutemov @ 2010-07-01 15:27 UTC (permalink / raw)
To: Christoph Egger
Cc: Tony Lindgren, Russell King, Cory Maccarrone, Zebediah C. McClure,
Alistair Buxton, linux-omap, linux-arm-kernel, linux-kernel,
vamos
On Thu, Jul 01, 2010 at 03:22:55PM +0200, Christoph Egger wrote:
> On Wed, Jun 30, 2010 at 10:54:09PM +0300, Kirill A. Shutemov wrote:
> > On Wed, Jun 30, 2010 at 05:54:42PM +0200, Christoph Egger wrote:
> > > OMAP_MUX_ERRORS doesn't exist in Kconfig, therefore removing all
> > > references for it from the source code.
> >
> > IIUC, CONFIG_OMAP_MUX_WARNINGS should be used here instead of it.
>
> Something like the patch below?
Acked-by: Kirill A. Shutemov <kirill@shutemov.name>
>
> ----
> From: Christoph Egger <siccegge@cs.fau.de>
> Date: Wed, 30 Jun 2010 12:30:36 +0200
> Subject: [PATCH 03/33] Replace dead OMAP_MUX_ERRORS with OMAP_MUX_WARNINGS
>
> OMAP_MUX_ERRORS doesn't exist in Kconfig, therefore replacing all
> references for it with OMAP_MUX_WARNINGS in the source code.
>
> Signed-off-by: Christoph Egger <siccegge@cs.fau.de>
> ---
> arch/arm/mach-omap1/mux.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/arch/arm/mach-omap1/mux.c b/arch/arm/mach-omap1/mux.c
> index 8434137..3e98835 100644
> --- a/arch/arm/mach-omap1/mux.c
> +++ b/arch/arm/mach-omap1/mux.c
> @@ -440,7 +440,7 @@ int __init_or_module omap1_cfg_reg(const struct pin_config *cfg)
> }
> #endif
>
> -#ifdef CONFIG_OMAP_MUX_ERRORS
> +#ifdef CONFIG_OMAP_MUX_WARNINGS
> return warn ? -ETXTBSY : 0;
> #else
> return 0;
> --
> 1.7.0.4
>
>
--
Kirill A. Shutemov
^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: [PATCH 03/33] Removing dead OMAP_MUX_ERRORS
2010-07-01 15:27 ` Kirill A. Shutemov
@ 2010-07-05 8:07 ` Tony Lindgren
0 siblings, 0 replies; 32+ messages in thread
From: Tony Lindgren @ 2010-07-05 8:07 UTC (permalink / raw)
To: Kirill A. Shutemov
Cc: Christoph Egger, Russell King, Cory Maccarrone,
Zebediah C. McClure, Alistair Buxton, linux-omap,
linux-arm-kernel, linux-kernel, vamos
* Kirill A. Shutemov <kirill@shutemov.name> [100701 18:21]:
> On Thu, Jul 01, 2010 at 03:22:55PM +0200, Christoph Egger wrote:
> > On Wed, Jun 30, 2010 at 10:54:09PM +0300, Kirill A. Shutemov wrote:
> > > On Wed, Jun 30, 2010 at 05:54:42PM +0200, Christoph Egger wrote:
> > > > OMAP_MUX_ERRORS doesn't exist in Kconfig, therefore removing all
> > > > references for it from the source code.
> > >
> > > IIUC, CONFIG_OMAP_MUX_WARNINGS should be used here instead of it.
> >
> > Something like the patch below?
>
> Acked-by: Kirill A. Shutemov <kirill@shutemov.name>
Thanks, I've queued up this.
Tony
> >
> > ----
> > From: Christoph Egger <siccegge@cs.fau.de>
> > Date: Wed, 30 Jun 2010 12:30:36 +0200
> > Subject: [PATCH 03/33] Replace dead OMAP_MUX_ERRORS with OMAP_MUX_WARNINGS
> >
> > OMAP_MUX_ERRORS doesn't exist in Kconfig, therefore replacing all
> > references for it with OMAP_MUX_WARNINGS in the source code.
> >
> > Signed-off-by: Christoph Egger <siccegge@cs.fau.de>
> > ---
> > arch/arm/mach-omap1/mux.c | 2 +-
> > 1 files changed, 1 insertions(+), 1 deletions(-)
> >
> > diff --git a/arch/arm/mach-omap1/mux.c b/arch/arm/mach-omap1/mux.c
> > index 8434137..3e98835 100644
> > --- a/arch/arm/mach-omap1/mux.c
> > +++ b/arch/arm/mach-omap1/mux.c
> > @@ -440,7 +440,7 @@ int __init_or_module omap1_cfg_reg(const struct pin_config *cfg)
> > }
> > #endif
> >
> > -#ifdef CONFIG_OMAP_MUX_ERRORS
> > +#ifdef CONFIG_OMAP_MUX_WARNINGS
> > return warn ? -ETXTBSY : 0;
> > #else
> > return 0;
> > --
> > 1.7.0.4
> >
> >
>
> --
> Kirill A. Shutemov
^ permalink raw reply [flat|nested] 32+ messages in thread
[parent not found: <24b01f2edebd09e37306c35f14401819d8219549.1277911346.git.siccegge@cs.fau.de>]
* Re: [PATCH 20/33] Removing dead MACH_OMAP2_H4_USB1
[not found] ` <24b01f2edebd09e37306c35f14401819d8219549.1277911346.git.siccegge@cs.fau.de>
@ 2010-07-01 7:35 ` Felipe Balbi
2010-07-05 8:55 ` Tony Lindgren
0 siblings, 1 reply; 32+ messages in thread
From: Felipe Balbi @ 2010-07-01 7:35 UTC (permalink / raw)
To: ext Christoph Egger
Cc: Tony Lindgren, Russell King, Paul Walmsley, Kalle Valo,
Santosh Shilimkar, Ladislav Michl, linux-omap@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, vamos@i4.informatik.uni-erlangen.de
On Wed, Jun 30, 2010 at 06:00:23PM +0200, ext Christoph Egger wrote:
>MACH_OMAP2_H4_USB1 doesn't exist in Kconfig, therefore removing all
>references for it from the source code.
>
>Signed-off-by: Christoph Egger <siccegge@cs.fau.de>
Does this apply on top of Tony's recent patches ??
--
balbi
DefectiveByDesign.org
^ permalink raw reply [flat|nested] 32+ messages in thread* Re: [PATCH 20/33] Removing dead MACH_OMAP2_H4_USB1
2010-07-01 7:35 ` [PATCH 20/33] Removing dead MACH_OMAP2_H4_USB1 Felipe Balbi
@ 2010-07-05 8:55 ` Tony Lindgren
0 siblings, 0 replies; 32+ messages in thread
From: Tony Lindgren @ 2010-07-05 8:55 UTC (permalink / raw)
To: Felipe Balbi
Cc: ext Christoph Egger, Russell King, Paul Walmsley, Kalle Valo,
Santosh Shilimkar, Ladislav Michl, linux-omap@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, vamos@i4.informatik.uni-erlangen.de
* Felipe Balbi <felipe.balbi@nokia.com> [100701 10:32]:
> On Wed, Jun 30, 2010 at 06:00:23PM +0200, ext Christoph Egger wrote:
> >MACH_OMAP2_H4_USB1 doesn't exist in Kconfig, therefore removing all
> >references for it from the source code.
> >
> >Signed-off-by: Christoph Egger <siccegge@cs.fau.de>
>
> Does this apply on top of Tony's recent patches ??
Yes, I've applied both this and the previous patch.
Tony
^ permalink raw reply [flat|nested] 32+ messages in thread
[parent not found: <b7209c2cb666c73a3affbb44c2637a4f2086af08.1277911346.git.siccegge@cs.fau.de>]
* Re: [PATCH 05/33] Removing dead OMAP_IR
[not found] ` <b7209c2cb666c73a3affbb44c2637a4f2086af08.1277911346.git.siccegge@cs.fau.de>
@ 2010-07-05 8:14 ` Tony Lindgren
0 siblings, 0 replies; 32+ messages in thread
From: Tony Lindgren @ 2010-07-05 8:14 UTC (permalink / raw)
To: Christoph Egger
Cc: Russell King, Ladislav Michl, Kalle Valo, Kevin Hilman,
Paul Walmsley, Santosh Shilimkar, linux-omap, linux-arm-kernel,
linux-kernel, vamos
[-- Attachment #1: Type: text/plain, Size: 271 bytes --]
* Christoph Egger <siccegge@cs.fau.de> [100630 18:49]:
> OMAP_IR doesn't exist in Kconfig, therefore removing all references
> for it from the source code.
Thanks I've updated this for the new mux code for board-h4.c and applied it.
Updated patch below.
Regards,
Tony
[-- Attachment #2: irda.patch --]
[-- Type: text/x-diff, Size: 2370 bytes --]
>From e2bed14099b0d15514d3e542742fa9310d9bf52c Mon Sep 17 00:00:00 2001
From: Christoph Egger <siccegge@cs.fau.de>
Date: Wed, 30 Jun 2010 15:55:22 +0000
Subject: [PATCH] Removing dead OMAP_IR
OMAP_IR doesn't exist in Kconfig, therefore removing all references
for it from the source code.
Signed-off-by: Christoph Egger <siccegge@cs.fau.de>
[tony@atomide.com: updated for new mux code]
Signed-off-by: Tony Lindgren <tony@atomide.com>
diff --git a/arch/arm/mach-omap1/board-h2.c b/arch/arm/mach-omap1/board-h2.c
index ee46974..2efa427 100644
--- a/arch/arm/mach-omap1/board-h2.c
+++ b/arch/arm/mach-omap1/board-h2.c
@@ -292,15 +292,6 @@ static struct platform_device h2_kp_device = {
#define H2_IRDA_FIRSEL_GPIO_PIN 17
-#if defined(CONFIG_OMAP_IR) || defined(CONFIG_OMAP_IR_MODULE)
-static int h2_transceiver_mode(struct device *dev, int state)
-{
- /* SIR when low, else MIR/FIR when HIGH */
- gpio_set_value(H2_IRDA_FIRSEL_GPIO_PIN, !(state & IR_SIRMODE));
- return 0;
-}
-#endif
-
static struct omap_irda_config h2_irda_data = {
.transceiver_cap = IR_SIRMODE | IR_MIRMODE | IR_FIRMODE,
.rx_channel = OMAP_DMA_UART3_RX,
@@ -450,15 +441,6 @@ static void __init h2_init(void)
omap_cfg_reg(E19_1610_KBR4);
omap_cfg_reg(N19_1610_KBR5);
- /* Irda */
-#if defined(CONFIG_OMAP_IR) || defined(CONFIG_OMAP_IR_MODULE)
- omap_writel(omap_readl(FUNC_MUX_CTRL_A) | 7, FUNC_MUX_CTRL_A);
- if (gpio_request(H2_IRDA_FIRSEL_GPIO_PIN, "IRDA mode") < 0)
- BUG();
- gpio_direction_output(H2_IRDA_FIRSEL_GPIO_PIN, 0);
- h2_irda_data.transceiver_mode = h2_transceiver_mode;
-#endif
-
platform_add_devices(h2_devices, ARRAY_SIZE(h2_devices));
omap_board_config = h2_config;
omap_board_config_size = ARRAY_SIZE(h2_config);
diff --git a/arch/arm/mach-omap2/board-h4.c b/arch/arm/mach-omap2/board-h4.c
index 2d9ff0f..9044dcf 100644
--- a/arch/arm/mach-omap2/board-h4.c
+++ b/arch/arm/mach-omap2/board-h4.c
@@ -356,10 +356,6 @@ static void __init omap_h4_init(void)
* You have to mux them off in device drivers later on
* if not needed.
*/
-#if defined(CONFIG_OMAP_IR) || defined(CONFIG_OMAP_IR_MODULE)
- omap_mux_init_signal("uart3_tx_irtx.uart3_tx_irtx", 0);
- omap_mux_init_signal("uart3_rx_irrx.uart3_rx_irrx", 0);
-#endif
#if defined(CONFIG_KEYBOARD_OMAP) || defined(CONFIG_KEYBOARD_OMAP_MODULE)
omap_mux_init_gpio(88, OMAP_PULL_ENA | OMAP_PULL_UP);
^ permalink raw reply related [flat|nested] 32+ messages in thread
[parent not found: <fc9feac62dc4eb90e8c3b7039729fa102ad0ac98.1277911346.git.siccegge@cs.fau.de>]
* Re: [PATCH 11/33] Removing dead OMAP_DSP
[not found] ` <fc9feac62dc4eb90e8c3b7039729fa102ad0ac98.1277911346.git.siccegge@cs.fau.de>
@ 2010-07-05 8:20 ` Tony Lindgren
0 siblings, 0 replies; 32+ messages in thread
From: Tony Lindgren @ 2010-07-05 8:20 UTC (permalink / raw)
To: Christoph Egger
Cc: Russell King, Tomi Valkeinen, Cory Maccarrone, Felipe Balbi,
Zebediah C. McClure, Alistair Buxton, Janusz Krzysztofik,
Jorge Eduardo Candelaria, Santosh Shilimkar, linux-omap,
linux-arm-kernel, linux-kernel, vamos
[-- Attachment #1: Type: text/plain, Size: 219 bytes --]
* Christoph Egger <siccegge@cs.fau.de> [100630 18:51]:
> OMAP_DSP doesn't exist in Kconfig, therefore removing all
> references for it from the source code.
I've updated and queued this one. Updated patch below.
Tony
[-- Attachment #2: dead-dsp.patch --]
[-- Type: text/x-diff, Size: 9848 bytes --]
>From 2a65e8217bc6686b409ae19ec79e89421b5e73c1 Mon Sep 17 00:00:00 2001
From: Christoph Egger <siccegge@cs.fau.de>
Date: Wed, 30 Jun 2010 15:57:26 +0000
Subject: [PATCH] Removing dead OMAP_DSP
OMAP_DSP doesn't exist in Kconfig, therefore removing all
references for it from the source code.
Signed-off-by: Christoph Egger <siccegge@cs.fau.de>
[tony@atomide.com: updated to apply on top of already queued patches]
Signed-off-by: Tony Lindgren <tony@atomide.com>
diff --git a/arch/arm/mach-omap1/board-nokia770.c b/arch/arm/mach-omap1/board-nokia770.c
index c9e9e37..5a7b638 100644
--- a/arch/arm/mach-omap1/board-nokia770.c
+++ b/arch/arm/mach-omap1/board-nokia770.c
@@ -242,138 +242,6 @@ static inline void nokia770_mmc_init(void)
}
#endif
-#if defined(CONFIG_OMAP_DSP)
-/*
- * audio power control
- */
-#define HEADPHONE_GPIO 14
-#define AMPLIFIER_CTRL_GPIO 58
-
-static struct clk *dspxor_ck;
-static DEFINE_MUTEX(audio_pwr_lock);
-/*
- * audio_pwr_state
- * +--+-------------------------+---------------------------------------+
- * |-1|down |power-up request -> 0 |
- * +--+-------------------------+---------------------------------------+
- * | 0|up |power-down(1) request -> 1 |
- * | | |power-down(2) request -> (ignore) |
- * +--+-------------------------+---------------------------------------+
- * | 1|up, |power-up request -> 0 |
- * | |received down(1) request |power-down(2) request -> -1 |
- * +--+-------------------------+---------------------------------------+
- */
-static int audio_pwr_state = -1;
-
-static inline void aic23_power_up(void)
-{
-}
-static inline void aic23_power_down(void)
-{
-}
-
-/*
- * audio_pwr_up / down should be called under audio_pwr_lock
- */
-static void nokia770_audio_pwr_up(void)
-{
- clk_enable(dspxor_ck);
-
- /* Turn on codec */
- aic23_power_up();
-
- if (gpio_get_value(HEADPHONE_GPIO))
- /* HP not connected, turn on amplifier */
- gpio_set_value(AMPLIFIER_CTRL_GPIO, 1);
- else
- /* HP connected, do not turn on amplifier */
- printk("HP connected\n");
-}
-
-static void codec_delayed_power_down(struct work_struct *work)
-{
- mutex_lock(&audio_pwr_lock);
- if (audio_pwr_state == -1)
- aic23_power_down();
- clk_disable(dspxor_ck);
- mutex_unlock(&audio_pwr_lock);
-}
-
-static DECLARE_DELAYED_WORK(codec_power_down_work, codec_delayed_power_down);
-
-static void nokia770_audio_pwr_down(void)
-{
- /* Turn off amplifier */
- gpio_set_value(AMPLIFIER_CTRL_GPIO, 0);
-
- /* Turn off codec: schedule delayed work */
- schedule_delayed_work(&codec_power_down_work, HZ / 20); /* 50ms */
-}
-
-static int
-nokia770_audio_pwr_up_request(struct dsp_kfunc_device *kdev, int stage)
-{
- mutex_lock(&audio_pwr_lock);
- if (audio_pwr_state == -1)
- nokia770_audio_pwr_up();
- /* force audio_pwr_state = 0, even if it was 1. */
- audio_pwr_state = 0;
- mutex_unlock(&audio_pwr_lock);
- return 0;
-}
-
-static int
-nokia770_audio_pwr_down_request(struct dsp_kfunc_device *kdev, int stage)
-{
- mutex_lock(&audio_pwr_lock);
- switch (stage) {
- case 1:
- if (audio_pwr_state == 0)
- audio_pwr_state = 1;
- break;
- case 2:
- if (audio_pwr_state == 1) {
- nokia770_audio_pwr_down();
- audio_pwr_state = -1;
- }
- break;
- }
- mutex_unlock(&audio_pwr_lock);
- return 0;
-}
-
-static struct dsp_kfunc_device nokia770_audio_device = {
- .name = "audio",
- .type = DSP_KFUNC_DEV_TYPE_AUDIO,
- .enable = nokia770_audio_pwr_up_request,
- .disable = nokia770_audio_pwr_down_request,
-};
-
-static __init int omap_dsp_init(void)
-{
- int ret;
-
- dspxor_ck = clk_get(0, "dspxor_ck");
- if (IS_ERR(dspxor_ck)) {
- printk(KERN_ERR "couldn't acquire dspxor_ck\n");
- return PTR_ERR(dspxor_ck);
- }
-
- ret = dsp_kfunc_device_register(&nokia770_audio_device);
- if (ret) {
- printk(KERN_ERR
- "KFUNC device registration faild: %s\n",
- nokia770_audio_device.name);
- goto out;
- }
- return 0;
- out:
- return ret;
-}
-#else
-#define omap_dsp_init() do {} while (0)
-#endif /* CONFIG_OMAP_DSP */
-
static void __init omap_nokia770_init(void)
{
platform_add_devices(nokia770_devices, ARRAY_SIZE(nokia770_devices));
diff --git a/arch/arm/mach-omap1/devices.c b/arch/arm/mach-omap1/devices.c
index 379100c..c00d602 100644
--- a/arch/arm/mach-omap1/devices.c
+++ b/arch/arm/mach-omap1/devices.c
@@ -63,44 +63,7 @@ static void omap_init_rtc(void)
static inline void omap_init_rtc(void) {}
#endif
-#if defined(CONFIG_OMAP_DSP) || defined(CONFIG_OMAP_DSP_MODULE)
-
-#if defined(CONFIG_ARCH_OMAP15XX)
-# define OMAP1_MBOX_SIZE 0x23
-# define INT_DSP_MAILBOX1 INT_1510_DSP_MAILBOX1
-#elif defined(CONFIG_ARCH_OMAP16XX)
-# define OMAP1_MBOX_SIZE 0x2f
-# define INT_DSP_MAILBOX1 INT_1610_DSP_MAILBOX1
-#endif
-
-#define OMAP1_MBOX_BASE OMAP16XX_MAILBOX_BASE
-
-static struct resource mbox_resources[] = {
- {
- .start = OMAP1_MBOX_BASE,
- .end = OMAP1_MBOX_BASE + OMAP1_MBOX_SIZE,
- .flags = IORESOURCE_MEM,
- },
- {
- .start = INT_DSP_MAILBOX1,
- .flags = IORESOURCE_IRQ,
- },
-};
-
-static struct platform_device mbox_device = {
- .name = "omap1-mailbox",
- .id = -1,
- .num_resources = ARRAY_SIZE(mbox_resources),
- .resource = mbox_resources,
-};
-
-static inline void omap_init_mbox(void)
-{
- platform_device_register(&mbox_device);
-}
-#else
static inline void omap_init_mbox(void) { }
-#endif
/*-------------------------------------------------------------------------*/
diff --git a/arch/arm/mach-omap1/mcbsp.c b/arch/arm/mach-omap1/mcbsp.c
index e9bdff1..b3a796a 100644
--- a/arch/arm/mach-omap1/mcbsp.c
+++ b/arch/arm/mach-omap1/mcbsp.c
@@ -23,7 +23,6 @@
#include <plat/mux.h>
#include <plat/cpu.h>
#include <plat/mcbsp.h>
-#include <plat/dsp_common.h>
#define DPS_RSTCT2_PER_EN (1 << 0)
#define DSP_RSTCT2_WD_PER_EN (1 << 1)
@@ -46,7 +45,6 @@ static void omap1_mcbsp_request(unsigned int id)
clk_enable(api_clk);
clk_enable(dsp_clk);
- omap_dsp_request_mem();
/*
* DSP external peripheral reset
* FIXME: This should be moved to dsp code
@@ -62,7 +60,6 @@ static void omap1_mcbsp_free(unsigned int id)
{
if (id == OMAP_MCBSP1 || id == OMAP_MCBSP3) {
if (--dsp_use == 0) {
- omap_dsp_release_mem();
if (!IS_ERR(api_clk)) {
clk_disable(api_clk);
clk_put(api_clk);
diff --git a/arch/arm/plat-omap/devices.c b/arch/arm/plat-omap/devices.c
index ca5b229..9d5466d 100644
--- a/arch/arm/plat-omap/devices.c
+++ b/arch/arm/plat-omap/devices.c
@@ -30,67 +30,6 @@
#include <plat/dsp_common.h>
#include <plat/omap44xx.h>
-#if defined(CONFIG_OMAP_DSP) || defined(CONFIG_OMAP_DSP_MODULE)
-
-static struct dsp_platform_data dsp_pdata = {
- .kdev_list = LIST_HEAD_INIT(dsp_pdata.kdev_list),
-};
-
-static struct resource omap_dsp_resources[] = {
- {
- .name = "dsp_mmu",
- .start = -1,
- .flags = IORESOURCE_IRQ,
- },
-};
-
-static struct platform_device omap_dsp_device = {
- .name = "dsp",
- .id = -1,
- .num_resources = ARRAY_SIZE(omap_dsp_resources),
- .resource = omap_dsp_resources,
- .dev = {
- .platform_data = &dsp_pdata,
- },
-};
-
-static inline void omap_init_dsp(void)
-{
- struct resource *res;
- int irq;
-
- if (cpu_is_omap15xx())
- irq = INT_1510_DSP_MMU;
- else if (cpu_is_omap16xx())
- irq = INT_1610_DSP_MMU;
- else if (cpu_is_omap24xx())
- irq = INT_24XX_DSP_MMU;
-
- res = platform_get_resource_byname(&omap_dsp_device,
- IORESOURCE_IRQ, "dsp_mmu");
- res->start = irq;
-
- platform_device_register(&omap_dsp_device);
-}
-
-int dsp_kfunc_device_register(struct dsp_kfunc_device *kdev)
-{
- static DEFINE_MUTEX(dsp_pdata_lock);
-
- spin_lock_init(&kdev->lock);
-
- mutex_lock(&dsp_pdata_lock);
- list_add_tail(&kdev->entry, &dsp_pdata.kdev_list);
- mutex_unlock(&dsp_pdata_lock);
-
- return 0;
-}
-EXPORT_SYMBOL(dsp_kfunc_device_register);
-
-#else
-static inline void omap_init_dsp(void) { }
-#endif /* CONFIG_OMAP_DSP */
-
/*-------------------------------------------------------------------------*/
#if defined(CONFIG_OMAP_MCBSP) || defined(CONFIG_OMAP_MCBSP_MODULE)
@@ -359,7 +298,6 @@ static int __init omap_init_devices(void)
/* please keep these calls, and their implementations above,
* in alphabetical order so they're easier to sort through.
*/
- omap_init_dsp();
omap_init_rng();
omap_init_mcpdm();
omap_init_uwire();
diff --git a/arch/arm/plat-omap/include/plat/dsp_common.h b/arch/arm/plat-omap/include/plat/dsp_common.h
deleted file mode 100644
index da97736..0000000
--- a/arch/arm/plat-omap/include/plat/dsp_common.h
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * This file is part of OMAP DSP driver (DSP Gateway version 3.3.1)
- *
- * Copyright (C) 2004-2006 Nokia Corporation. All rights reserved.
- *
- * Contact: Toshihiro Kobayashi <toshihiro.kobayashi@nokia.com>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * version 2 as published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA
- *
- */
-
-#ifndef ASM_ARCH_DSP_COMMON_H
-#define ASM_ARCH_DSP_COMMON_H
-
-#if defined(CONFIG_ARCH_OMAP1) && defined(CONFIG_OMAP_MMU_FWK)
-extern void omap_dsp_request_mpui(void);
-extern void omap_dsp_release_mpui(void);
-extern int omap_dsp_request_mem(void);
-extern int omap_dsp_release_mem(void);
-#else
-static inline int omap_dsp_request_mem(void)
-{
- return 0;
-}
-#define omap_dsp_release_mem() do {} while (0)
-#endif
-
-#endif /* ASM_ARCH_DSP_COMMON_H */
^ permalink raw reply related [flat|nested] 32+ messages in thread
[parent not found: <35d3c6a25b5cc05a5eee3037075ccede85b1917f.1277911346.git.siccegge@cs.fau.de>]
* Re: [PATCH 12/33] Removing dead OMAP_STI
[not found] ` <35d3c6a25b5cc05a5eee3037075ccede85b1917f.1277911346.git.siccegge@cs.fau.de>
@ 2010-07-05 8:24 ` Tony Lindgren
0 siblings, 0 replies; 32+ messages in thread
From: Tony Lindgren @ 2010-07-05 8:24 UTC (permalink / raw)
To: Christoph Egger
Cc: Russell King, Cory Maccarrone, Felipe Balbi,
Madhusudhan Chikkature, Andrew Morton, Dmitry Kasatkin,
Herbert Xu, linux-omap, linux-arm-kernel, linux-kernel, vamos
* Christoph Egger <siccegge@cs.fau.de> [100630 18:51]:
> OMAP_STI doesn't exist in Kconfig, therefore removing all
> references for it from the source code.
Thanks, applied.
Tony
^ permalink raw reply [flat|nested] 32+ messages in thread