Commit 5056c073 authored by Olof Johansson's avatar Olof Johansson

Merge tag 'omap-cleanup-renames-for-v3.5' of...

Merge tag 'omap-cleanup-renames-for-v3.5' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap into next/cleanup2

Simplify some SoC config options before things get too unreadable.

Note that this depends on a fix in omap-fixes-non-critical-for-v3.5,
so it's based on that.

By Kevin Hilman (3) and others
via Tony Lindgren
* tag 'omap-cleanup-renames-for-v3.5' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap:
  ARM: OMAP2+: Kconfig: convert SOC_OMAPAM33XX to SOC_AM33XX
  ARM: OMAP2+: Kconfig: convert SOC_OMAPTI81XX to SOC_TI81XX
  ARM: OMAP: igep0020: Specify the VPLL2 regulator unconditionally
  ARM: OMAP2+: INTC: fix Kconfig option for TI81XX
  ARM: OMAP2+: remove incorrect irq_chip ack field
  ARM: OMAP4: Adding ID for OMAP4460 ES1.1
  ARM: OMAP4: panda: add statics to remove warnings
  ARM: OMAP2+: Incorrect Register Offsets in OMAP Mailbox
  ARM: OMAP: fix trivial warnings for dspbridge
  ARM: OMAP4: hsmmc: check for null pointer
  ARM: OMAP1: fix compilation issue in board-sx1.c
parents 812655e9 bb6abcf4
...@@ -132,6 +132,7 @@ config MACH_OMAP_PALMTT ...@@ -132,6 +132,7 @@ config MACH_OMAP_PALMTT
config MACH_SX1 config MACH_SX1
bool "Siemens SX1" bool "Siemens SX1"
select I2C
depends on ARCH_OMAP1 && ARCH_OMAP15XX depends on ARCH_OMAP1 && ARCH_OMAP15XX
help help
Support for the Siemens SX1 phone. To boot the kernel, Support for the Siemens SX1 phone. To boot the kernel,
......
...@@ -77,12 +77,12 @@ config SOC_OMAP3430 ...@@ -77,12 +77,12 @@ config SOC_OMAP3430
default y default y
select ARCH_OMAP_OTG select ARCH_OMAP_OTG
config SOC_OMAPTI81XX config SOC_TI81XX
bool "TI81XX support" bool "TI81XX support"
depends on ARCH_OMAP3 depends on ARCH_OMAP3
default y default y
config SOC_OMAPAM33XX config SOC_AM33XX
bool "AM33XX support" bool "AM33XX support"
depends on ARCH_OMAP3 depends on ARCH_OMAP3
default y default y
...@@ -319,12 +319,12 @@ config MACH_OMAP_3630SDP ...@@ -319,12 +319,12 @@ config MACH_OMAP_3630SDP
config MACH_TI8168EVM config MACH_TI8168EVM
bool "TI8168 Evaluation Module" bool "TI8168 Evaluation Module"
depends on SOC_OMAPTI81XX depends on SOC_TI81XX
default y default y
config MACH_TI8148EVM config MACH_TI8148EVM
bool "TI8148 Evaluation Module" bool "TI8148 Evaluation Module"
depends on SOC_OMAPTI81XX depends on SOC_TI81XX
default y default y
config MACH_OMAP_4430SDP config MACH_OMAP_4430SDP
......
...@@ -489,50 +489,6 @@ static struct platform_device omap_vwlan_device = { ...@@ -489,50 +489,6 @@ static struct platform_device omap_vwlan_device = {
}, },
}; };
static int omap4_twl6030_hsmmc_late_init(struct device *dev)
{
int irq = 0;
struct platform_device *pdev = container_of(dev,
struct platform_device, dev);
struct omap_mmc_platform_data *pdata = dev->platform_data;
/* Setting MMC1 Card detect Irq */
if (pdev->id == 0) {
irq = twl6030_mmc_card_detect_config();
if (irq < 0) {
pr_err("Failed configuring MMC1 card detect\n");
return irq;
}
pdata->slots[0].card_detect_irq = irq;
pdata->slots[0].card_detect = twl6030_mmc_card_detect;
}
return 0;
}
static __init void omap4_twl6030_hsmmc_set_late_init(struct device *dev)
{
struct omap_mmc_platform_data *pdata;
/* dev can be null if CONFIG_MMC_OMAP_HS is not set */
if (!dev) {
pr_err("Failed %s\n", __func__);
return;
}
pdata = dev->platform_data;
pdata->init = omap4_twl6030_hsmmc_late_init;
}
static int __init omap4_twl6030_hsmmc_init(struct omap2_hsmmc_info *controllers)
{
struct omap2_hsmmc_info *c;
omap_hsmmc_init(controllers);
for (c = controllers; c->mmc; c++)
omap4_twl6030_hsmmc_set_late_init(&c->pdev->dev);
return 0;
}
static struct regulator_init_data sdp4430_vaux1 = { static struct regulator_init_data sdp4430_vaux1 = {
.constraints = { .constraints = {
.min_uV = 1000000, .min_uV = 1000000,
......
...@@ -540,7 +540,10 @@ static void __init igep_i2c_init(void) ...@@ -540,7 +540,10 @@ static void __init igep_i2c_init(void)
{ {
int ret; int ret;
omap3_pmic_get_config(&igep_twldata, TWL_COMMON_PDATA_USB, 0); omap3_pmic_get_config(&igep_twldata, TWL_COMMON_PDATA_USB,
TWL_COMMON_REGULATOR_VPLL2);
igep_twldata.vpll2->constraints.apply_uV = true;
igep_twldata.vpll2->constraints.name = "VDVI";
if (machine_is_igep0020()) { if (machine_is_igep0020()) {
/* /*
...@@ -554,10 +557,7 @@ static void __init igep_i2c_init(void) ...@@ -554,10 +557,7 @@ static void __init igep_i2c_init(void)
igep_twldata.keypad = &igep2_keypad_pdata; igep_twldata.keypad = &igep2_keypad_pdata;
/* Get common pmic data */ /* Get common pmic data */
omap3_pmic_get_config(&igep_twldata, TWL_COMMON_PDATA_AUDIO, omap3_pmic_get_config(&igep_twldata, TWL_COMMON_PDATA_AUDIO, 0);
TWL_COMMON_REGULATOR_VPLL2);
igep_twldata.vpll2->constraints.apply_uV = true;
igep_twldata.vpll2->constraints.name = "VDVI";
} }
omap3_pmic_init("twl4030", &igep_twldata); omap3_pmic_init("twl4030", &igep_twldata);
......
...@@ -231,60 +231,11 @@ static struct platform_device omap_vwlan_device = { ...@@ -231,60 +231,11 @@ static struct platform_device omap_vwlan_device = {
}, },
}; };
struct wl12xx_platform_data omap_panda_wlan_data __initdata = { static struct wl12xx_platform_data omap_panda_wlan_data __initdata = {
/* PANDA ref clock is 38.4 MHz */ /* PANDA ref clock is 38.4 MHz */
.board_ref_clock = 2, .board_ref_clock = 2,
}; };
static int omap4_twl6030_hsmmc_late_init(struct device *dev)
{
int irq = 0;
struct platform_device *pdev = container_of(dev,
struct platform_device, dev);
struct omap_mmc_platform_data *pdata = dev->platform_data;
if (!pdata) {
dev_err(dev, "%s: NULL platform data\n", __func__);
return -EINVAL;
}
/* Setting MMC1 Card detect Irq */
if (pdev->id == 0) {
irq = twl6030_mmc_card_detect_config();
if (irq < 0) {
dev_err(dev, "%s: Error card detect config(%d)\n",
__func__, irq);
return irq;
}
pdata->slots[0].card_detect = twl6030_mmc_card_detect;
}
return 0;
}
static __init void omap4_twl6030_hsmmc_set_late_init(struct device *dev)
{
struct omap_mmc_platform_data *pdata;
/* dev can be null if CONFIG_MMC_OMAP_HS is not set */
if (!dev) {
pr_err("Failed omap4_twl6030_hsmmc_set_late_init\n");
return;
}
pdata = dev->platform_data;
pdata->init = omap4_twl6030_hsmmc_late_init;
}
static int __init omap4_twl6030_hsmmc_init(struct omap2_hsmmc_info *controllers)
{
struct omap2_hsmmc_info *c;
omap_hsmmc_init(controllers);
for (c = controllers; c->mmc; c++)
omap4_twl6030_hsmmc_set_late_init(&c->pdev->dev);
return 0;
}
static struct twl6040_codec_data twl6040_codec = { static struct twl6040_codec_data twl6040_codec = {
/* single-step ramp for headset and handsfree */ /* single-step ramp for headset and handsfree */
.hs_left_step = 0x0f, .hs_left_step = 0x0f,
...@@ -438,7 +389,7 @@ static struct panel_dvi_platform_data omap4_dvi_panel = { ...@@ -438,7 +389,7 @@ static struct panel_dvi_platform_data omap4_dvi_panel = {
.i2c_bus_num = 3, .i2c_bus_num = 3,
}; };
struct omap_dss_device omap4_panda_dvi_device = { static struct omap_dss_device omap4_panda_dvi_device = {
.type = OMAP_DISPLAY_TYPE_DPI, .type = OMAP_DISPLAY_TYPE_DPI,
.name = "dvi", .name = "dvi",
.driver_name = "dvi", .driver_name = "dvi",
...@@ -448,7 +399,7 @@ struct omap_dss_device omap4_panda_dvi_device = { ...@@ -448,7 +399,7 @@ struct omap_dss_device omap4_panda_dvi_device = {
.channel = OMAP_DSS_CHANNEL_LCD2, .channel = OMAP_DSS_CHANNEL_LCD2,
}; };
int __init omap4_panda_dvi_init(void) static int __init omap4_panda_dvi_init(void)
{ {
int r; int r;
...@@ -509,7 +460,7 @@ static struct omap_dss_board_info omap4_panda_dss_data = { ...@@ -509,7 +460,7 @@ static struct omap_dss_board_info omap4_panda_dss_data = {
.default_device = &omap4_panda_dvi_device, .default_device = &omap4_panda_dvi_device,
}; };
void __init omap4_panda_display_init(void) static void __init omap4_panda_display_init(void)
{ {
int r; int r;
......
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
#ifndef __ASSEMBLER__ #ifndef __ASSEMBLER__
#include <linux/delay.h> #include <linux/delay.h>
#include <linux/i2c/twl.h>
#include <plat/common.h> #include <plat/common.h>
#include <asm/proc-fns.h> #include <asm/proc-fns.h>
...@@ -54,7 +55,7 @@ static inline void omap34xx_map_common_io(void) ...@@ -54,7 +55,7 @@ static inline void omap34xx_map_common_io(void)
} }
#endif #endif
#ifdef CONFIG_SOC_OMAPTI81XX #ifdef CONFIG_SOC_TI81XX
extern void omapti81xx_map_common_io(void); extern void omapti81xx_map_common_io(void);
#else #else
static inline void omapti81xx_map_common_io(void) static inline void omapti81xx_map_common_io(void)
...@@ -62,7 +63,7 @@ static inline void omapti81xx_map_common_io(void) ...@@ -62,7 +63,7 @@ static inline void omapti81xx_map_common_io(void)
} }
#endif #endif
#ifdef CONFIG_SOC_OMAPAM33XX #ifdef CONFIG_SOC_AM33XX
extern void omapam33xx_map_common_io(void); extern void omapam33xx_map_common_io(void);
#else #else
static inline void omapam33xx_map_common_io(void) static inline void omapam33xx_map_common_io(void)
...@@ -254,6 +255,8 @@ static inline u32 omap4_mpuss_read_prev_context_state(void) ...@@ -254,6 +255,8 @@ static inline u32 omap4_mpuss_read_prev_context_state(void)
struct omap_sdrc_params; struct omap_sdrc_params;
extern void omap_sdrc_init(struct omap_sdrc_params *sdrc_cs0, extern void omap_sdrc_init(struct omap_sdrc_params *sdrc_cs0,
struct omap_sdrc_params *sdrc_cs1); struct omap_sdrc_params *sdrc_cs1);
struct omap2_hsmmc_info;
extern int omap4_twl6030_hsmmc_init(struct omap2_hsmmc_info *controllers);
#endif /* __ASSEMBLER__ */ #endif /* __ASSEMBLER__ */
#endif /* __ARCH_ARM_MACH_OMAP2PLUS_COMMON_H */ #endif /* __ARCH_ARM_MACH_OMAP2PLUS_COMMON_H */
...@@ -57,8 +57,9 @@ static int __init omap_dsp_init(void) ...@@ -57,8 +57,9 @@ static int __init omap_dsp_init(void)
if (pdata->phys_mempool_base) { if (pdata->phys_mempool_base) {
pdata->phys_mempool_size = CONFIG_TIDSPBRIDGE_MEMPOOL_SIZE; pdata->phys_mempool_size = CONFIG_TIDSPBRIDGE_MEMPOOL_SIZE;
pr_info("%s: %x bytes @ %x\n", __func__, pr_info("%s: %llx bytes @ %llx\n", __func__,
pdata->phys_mempool_size, pdata->phys_mempool_base); (unsigned long long)pdata->phys_mempool_size,
(unsigned long long)pdata->phys_mempool_base);
} }
pdev = platform_device_alloc("omap-dsp", -1); pdev = platform_device_alloc("omap-dsp", -1);
......
...@@ -477,9 +477,12 @@ void __init omap4xxx_check_revision(void) ...@@ -477,9 +477,12 @@ void __init omap4xxx_check_revision(void)
case 0xb94e: case 0xb94e:
switch (rev) { switch (rev) {
case 0: case 0:
default:
omap_revision = OMAP4460_REV_ES1_0; omap_revision = OMAP4460_REV_ES1_0;
break; break;
case 2:
default:
omap_revision = OMAP4460_REV_ES1_1;
break;
} }
break; break;
case 0xb975: case 0xb975:
......
...@@ -172,7 +172,7 @@ static struct map_desc omap34xx_io_desc[] __initdata = { ...@@ -172,7 +172,7 @@ static struct map_desc omap34xx_io_desc[] __initdata = {
}; };
#endif #endif
#ifdef CONFIG_SOC_OMAPTI81XX #ifdef CONFIG_SOC_TI81XX
static struct map_desc omapti81xx_io_desc[] __initdata = { static struct map_desc omapti81xx_io_desc[] __initdata = {
{ {
.virtual = L4_34XX_VIRT, .virtual = L4_34XX_VIRT,
...@@ -183,7 +183,7 @@ static struct map_desc omapti81xx_io_desc[] __initdata = { ...@@ -183,7 +183,7 @@ static struct map_desc omapti81xx_io_desc[] __initdata = {
}; };
#endif #endif
#ifdef CONFIG_SOC_OMAPAM33XX #ifdef CONFIG_SOC_AM33XX
static struct map_desc omapam33xx_io_desc[] __initdata = { static struct map_desc omapam33xx_io_desc[] __initdata = {
{ {
.virtual = L4_34XX_VIRT, .virtual = L4_34XX_VIRT,
...@@ -255,14 +255,14 @@ void __init omap34xx_map_common_io(void) ...@@ -255,14 +255,14 @@ void __init omap34xx_map_common_io(void)
} }
#endif #endif
#ifdef CONFIG_SOC_OMAPTI81XX #ifdef CONFIG_SOC_TI81XX
void __init omapti81xx_map_common_io(void) void __init omapti81xx_map_common_io(void)
{ {
iotable_init(omapti81xx_io_desc, ARRAY_SIZE(omapti81xx_io_desc)); iotable_init(omapti81xx_io_desc, ARRAY_SIZE(omapti81xx_io_desc));
} }
#endif #endif
#ifdef CONFIG_SOC_OMAPAM33XX #ifdef CONFIG_SOC_AM33XX
void __init omapam33xx_map_common_io(void) void __init omapam33xx_map_common_io(void)
{ {
iotable_init(omapam33xx_io_desc, ARRAY_SIZE(omapam33xx_io_desc)); iotable_init(omapam33xx_io_desc, ARRAY_SIZE(omapam33xx_io_desc));
......
...@@ -149,7 +149,6 @@ omap_alloc_gc(void __iomem *base, unsigned int irq_start, unsigned int num) ...@@ -149,7 +149,6 @@ omap_alloc_gc(void __iomem *base, unsigned int irq_start, unsigned int num)
ct->chip.irq_mask = irq_gc_mask_disable_reg; ct->chip.irq_mask = irq_gc_mask_disable_reg;
ct->chip.irq_unmask = irq_gc_unmask_enable_reg; ct->chip.irq_unmask = irq_gc_unmask_enable_reg;
ct->regs.ack = INTC_CONTROL;
ct->regs.enable = INTC_MIR_CLEAR0; ct->regs.enable = INTC_MIR_CLEAR0;
ct->regs.disable = INTC_MIR_SET0; ct->regs.disable = INTC_MIR_SET0;
irq_setup_generic_chip(gc, IRQ_MSK(num), IRQ_GC_INIT_MASK_CACHE, irq_setup_generic_chip(gc, IRQ_MSK(num), IRQ_GC_INIT_MASK_CACHE,
...@@ -231,7 +230,7 @@ static inline void omap_intc_handle_irq(void __iomem *base_addr, struct pt_regs ...@@ -231,7 +230,7 @@ static inline void omap_intc_handle_irq(void __iomem *base_addr, struct pt_regs
goto out; goto out;
irqnr = readl_relaxed(base_addr + 0xd8); irqnr = readl_relaxed(base_addr + 0xd8);
#ifdef CONFIG_SOC_OMAPTI816X #ifdef CONFIG_SOC_TI81XX
if (irqnr) if (irqnr)
goto out; goto out;
irqnr = readl_relaxed(base_addr + 0xf8); irqnr = readl_relaxed(base_addr + 0xf8);
......
...@@ -26,9 +26,9 @@ ...@@ -26,9 +26,9 @@
#define MAILBOX_IRQSTATUS(u) (0x100 + 8 * (u)) #define MAILBOX_IRQSTATUS(u) (0x100 + 8 * (u))
#define MAILBOX_IRQENABLE(u) (0x104 + 8 * (u)) #define MAILBOX_IRQENABLE(u) (0x104 + 8 * (u))
#define OMAP4_MAILBOX_IRQSTATUS(u) (0x104 + 10 * (u)) #define OMAP4_MAILBOX_IRQSTATUS(u) (0x104 + 0x10 * (u))
#define OMAP4_MAILBOX_IRQENABLE(u) (0x108 + 10 * (u)) #define OMAP4_MAILBOX_IRQENABLE(u) (0x108 + 0x10 * (u))
#define OMAP4_MAILBOX_IRQENABLE_CLR(u) (0x10c + 10 * (u)) #define OMAP4_MAILBOX_IRQENABLE_CLR(u) (0x10c + 0x10 * (u))
#define MAILBOX_IRQ_NEWMSG(m) (1 << (2 * (m))) #define MAILBOX_IRQ_NEWMSG(m) (1 << (2 * (m)))
#define MAILBOX_IRQ_NOTFULL(m) (1 << (2 * (m) + 1)) #define MAILBOX_IRQ_NOTFULL(m) (1 << (2 * (m) + 1))
......
...@@ -25,11 +25,13 @@ ...@@ -25,11 +25,13 @@
#include <plat/irqs.h> #include <plat/irqs.h>
#include <plat/sram.h> #include <plat/sram.h>
#include <plat/omap-secure.h> #include <plat/omap-secure.h>
#include <plat/mmc.h>
#include <mach/hardware.h> #include <mach/hardware.h>
#include <mach/omap-wakeupgen.h> #include <mach/omap-wakeupgen.h>
#include "common.h" #include "common.h"
#include "hsmmc.h"
#include "omap4-sar-layout.h" #include "omap4-sar-layout.h"
#include <linux/export.h> #include <linux/export.h>
...@@ -207,3 +209,59 @@ static int __init omap4_sar_ram_init(void) ...@@ -207,3 +209,59 @@ static int __init omap4_sar_ram_init(void)
return 0; return 0;
} }
early_initcall(omap4_sar_ram_init); early_initcall(omap4_sar_ram_init);
#if defined(CONFIG_MMC_OMAP_HS) || defined(CONFIG_MMC_OMAP_HS_MODULE)
static int omap4_twl6030_hsmmc_late_init(struct device *dev)
{
int irq = 0;
struct platform_device *pdev = container_of(dev,
struct platform_device, dev);
struct omap_mmc_platform_data *pdata = dev->platform_data;
/* Setting MMC1 Card detect Irq */
if (pdev->id == 0) {
irq = twl6030_mmc_card_detect_config();
if (irq < 0) {
dev_err(dev, "%s: Error card detect config(%d)\n",
__func__, irq);
return irq;
}
pdata->slots[0].card_detect_irq = irq;
pdata->slots[0].card_detect = twl6030_mmc_card_detect;
}
return 0;
}
static __init void omap4_twl6030_hsmmc_set_late_init(struct device *dev)
{
struct omap_mmc_platform_data *pdata;
/* dev can be null if CONFIG_MMC_OMAP_HS is not set */
if (!dev) {
pr_err("Failed %s\n", __func__);
return;
}
pdata = dev->platform_data;
pdata->init = omap4_twl6030_hsmmc_late_init;
}
int __init omap4_twl6030_hsmmc_init(struct omap2_hsmmc_info *controllers)
{
struct omap2_hsmmc_info *c;
omap_hsmmc_init(controllers);
for (c = controllers; c->mmc; c++) {
/* pdev can be null if CONFIG_MMC_OMAP_HS is not set */
if (!c->pdev)
continue;
omap4_twl6030_hsmmc_set_late_init(&c->pdev->dev);
}
return 0;
}
#else
int __init omap4_twl6030_hsmmc_init(struct omap2_hsmmc_info *controllers)
{
return 0;
}
#endif
...@@ -167,8 +167,8 @@ void __init omap_dsp_reserve_sdram_memblock(void) ...@@ -167,8 +167,8 @@ void __init omap_dsp_reserve_sdram_memblock(void)
paddr = arm_memblock_steal(size, SZ_1M); paddr = arm_memblock_steal(size, SZ_1M);
if (!paddr) { if (!paddr) {
pr_err("%s: failed to reserve %x bytes\n", pr_err("%s: failed to reserve %llx bytes\n",
__func__, size); __func__, (unsigned long long)size);
return; return;
} }
......
...@@ -453,6 +453,7 @@ IS_OMAP_TYPE(3517, 0x3517) ...@@ -453,6 +453,7 @@ IS_OMAP_TYPE(3517, 0x3517)
#define OMAP446X_CLASS 0x44600044 #define OMAP446X_CLASS 0x44600044
#define OMAP4460_REV_ES1_0 (OMAP446X_CLASS | (0x10 << 8)) #define OMAP4460_REV_ES1_0 (OMAP446X_CLASS | (0x10 << 8))
#define OMAP4460_REV_ES1_1 (OMAP446X_CLASS | (0x11 << 8))
#define OMAP447X_CLASS 0x44700044 #define OMAP447X_CLASS 0x44700044
#define OMAP4470_REV_ES1_0 (OMAP447X_CLASS | (0x10 << 8)) #define OMAP4470_REV_ES1_0 (OMAP447X_CLASS | (0x10 << 8))
......
...@@ -51,7 +51,7 @@ config TI_DAVINCI_CPDMA ...@@ -51,7 +51,7 @@ config TI_DAVINCI_CPDMA
config TI_CPSW config TI_CPSW
tristate "TI CPSW Switch Support" tristate "TI CPSW Switch Support"
depends on ARM && (ARCH_DAVINCI || SOC_OMAPAM33XX) depends on ARM && (ARCH_DAVINCI || SOC_AM33XX)
select TI_DAVINCI_CPDMA select TI_DAVINCI_CPDMA
select TI_DAVINCI_MDIO select TI_DAVINCI_MDIO
---help--- ---help---
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment