Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 339607
b: refs/heads/master
c: 2e61826
h: refs/heads/master
i:
  339605: 7e2e5ee
  339603: 94d1d4c
  339599: 35c0b1a
v: v3
  • Loading branch information
Afzal Mohammed committed Oct 15, 2012
1 parent 1c2f473 commit 77a768a
Show file tree
Hide file tree
Showing 68 changed files with 458 additions and 402 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 94c657853bd228ebbc2c590b7f81efcc1dde3329
refs/heads/master: 2e618261c96d72e5c5409d134d6d93e679683ab8
3 changes: 1 addition & 2 deletions trunk/arch/arm/mach-omap1/board-h2.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
#include <asm/mach/map.h>

#include <mach/mux.h>
#include <plat-omap/dma-omap.h>
#include <plat/dma.h>
#include <plat/tc.h>
#include <mach/irda.h>
#include <linux/platform_data/keypad-omap.h>
Expand All @@ -50,7 +50,6 @@

#include "common.h"
#include "board-h2.h"
#include "dma.h"

/* At OMAP1610 Innovator the Ethernet is directly connected to CS1 */
#define OMAP1610_ETHR_START 0x04000300
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-omap1/board-h3.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
#include <mach/mux.h>
#include <plat/tc.h>
#include <linux/platform_data/keypad-omap.h>
#include <plat-omap/dma-omap.h>
#include <plat/dma.h>
#include <mach/flash.h>

#include <mach/hardware.h>
Expand Down
3 changes: 1 addition & 2 deletions trunk/arch/arm/mach-omap1/board-palmte.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,14 @@
#include <mach/flash.h>
#include <mach/mux.h>
#include <plat/tc.h>
#include <plat-omap/dma-omap.h>
#include <plat/dma.h>
#include <mach/irda.h>
#include <linux/platform_data/keypad-omap.h>

#include <mach/hardware.h>
#include <mach/usb.h>

#include "common.h"
#include "dma.h"

#define PALMTE_USBDETECT_GPIO 0
#define PALMTE_USB_OR_DC_GPIO 1
Expand Down
3 changes: 1 addition & 2 deletions trunk/arch/arm/mach-omap1/board-palmtt.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
#include <plat/led.h>
#include <mach/flash.h>
#include <mach/mux.h>
#include <plat-omap/dma-omap.h>
#include <plat/dma.h>
#include <plat/tc.h>
#include <mach/irda.h>
#include <linux/platform_data/keypad-omap.h>
Expand All @@ -45,7 +45,6 @@
#include <mach/usb.h>

#include "common.h"
#include "dma.h"

#define PALMTT_USBDETECT_GPIO 0
#define PALMTT_CABLE_GPIO 1
Expand Down
3 changes: 1 addition & 2 deletions trunk/arch/arm/mach-omap1/board-palmz71.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

#include <mach/flash.h>
#include <mach/mux.h>
#include <plat-omap/dma-omap.h>
#include <plat/dma.h>
#include <plat/tc.h>
#include <mach/irda.h>
#include <linux/platform_data/keypad-omap.h>
Expand All @@ -47,7 +47,6 @@
#include <mach/usb.h>

#include "common.h"
#include "dma.h"

#define PALMZ71_USBDETECT_GPIO 0
#define PALMZ71_PENIRQ_GPIO 6
Expand Down
3 changes: 1 addition & 2 deletions trunk/arch/arm/mach-omap1/board-sx1.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

#include <mach/flash.h>
#include <mach/mux.h>
#include <plat-omap/dma-omap.h>
#include <plat/dma.h>
#include <mach/irda.h>
#include <plat/tc.h>
#include <mach/board-sx1.h>
Expand All @@ -45,7 +45,6 @@
#include <mach/usb.h>

#include "common.h"
#include "dma.h"

/* Write to I2C device */
int sx1_i2c_write_byte(u8 devaddr, u8 regoffset, u8 value)
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-omap1/devices.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

#include <plat/tc.h>
#include <mach/mux.h>
#include <plat/dma.h>
#include <plat/mmc.h>

#include <mach/omap7xx.h>
Expand All @@ -29,7 +30,6 @@

#include "common.h"
#include "clock.h"
#include "dma.h"

#if defined(CONFIG_SND_SOC) || defined(CONFIG_SND_SOC_MODULE)

Expand Down
4 changes: 1 addition & 3 deletions trunk/arch/arm/mach-omap1/dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,11 @@
#include <linux/device.h>
#include <linux/io.h>

#include <plat-omap/dma-omap.h>
#include <plat/dma.h>
#include <plat/tc.h>

#include <mach/irqs.h>

#include "dma.h"

#define OMAP1_DMA_BASE (0xfffed800)
#define OMAP1_LOGICAL_DMA_CH_COUNT 17
#define OMAP1_DMA_STRIDE 0x40
Expand Down
83 changes: 0 additions & 83 deletions trunk/arch/arm/mach-omap1/dma.h

This file was deleted.

2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-omap1/io.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

#include <mach/mux.h>
#include <plat/tc.h>
#include <plat-omap/dma-omap.h>
#include <plat/dma.h>

#include "iomap.h"
#include "common.h"
Expand Down
4 changes: 1 addition & 3 deletions trunk/arch/arm/mach-omap1/lcd_dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,11 @@
#include <linux/interrupt.h>
#include <linux/io.h>

#include <plat-omap/dma-omap.h>
#include <plat/dma.h>

#include <mach/hardware.h>
#include <mach/lcdc.h>

#include "dma.h"

int omap_lcd_dma_running(void)
{
/*
Expand Down
3 changes: 1 addition & 2 deletions trunk/arch/arm/mach-omap1/mcbsp.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,14 @@
#include <linux/platform_device.h>
#include <linux/slab.h>

#include <plat-omap/dma-omap.h>
#include <plat/dma.h>
#include <mach/mux.h>
#include <plat/cpu.h>
#include <linux/platform_data/asoc-ti-mcbsp.h>

#include <mach/irqs.h>

#include "iomap.h"
#include "dma.h"

#define DPS_RSTCT2_PER_EN (1 << 0)
#define DSP_RSTCT2_WD_PER_EN (1 << 1)
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-omap1/pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
#include <plat/sram.h>
#include <plat/tc.h>
#include <mach/mux.h>
#include <plat-omap/dma-omap.h>
#include <plat/dma.h>
#include <plat/dmtimer.h>

#include <mach/irqs.h>
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-omap2/board-3430sdp.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

#include <plat/usb.h>
#include "common.h"
#include <plat-omap/dma-omap.h>
#include <plat/dma.h>
#include <plat/gpmc.h>
#include <video/omapdss.h>
#include <video/omap-panel-tfp410.h>
Expand Down
8 changes: 6 additions & 2 deletions trunk/arch/arm/mach-omap2/board-devkit8000.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,11 @@
#include "sdram-micron-mt46h32m32lf-6.h"
#include "mux.h"
#include "hsmmc.h"
#include "board-flash.h"
#include "common-board-devices.h"

#define NAND_CS 0

#define OMAP_DM9000_GPIO_IRQ 25
#define OMAP3_DEVKIT_TS_GPIO 27

Expand Down Expand Up @@ -621,8 +624,9 @@ static void __init devkit8000_init(void)

usb_musb_init(NULL);
usbhs_init(&usbhs_bdata);
omap_nand_flash_init(NAND_BUSWIDTH_16, devkit8000_nand_partitions,
ARRAY_SIZE(devkit8000_nand_partitions));
board_nand_init(devkit8000_nand_partitions,
ARRAY_SIZE(devkit8000_nand_partitions), NAND_CS,
NAND_BUSWIDTH_16, NULL);
omap_twl4030_audio_init("omap3beagle");

/* Ensure SDRC pins are mux'd for self-refresh */
Expand Down
45 changes: 23 additions & 22 deletions trunk/arch/arm/mach-omap2/board-flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,41 +104,41 @@ __init board_onenand_init(struct mtd_partition *onenand_parts,
defined(CONFIG_MTD_NAND_OMAP2_MODULE)

/* Note that all values in this struct are in nanoseconds */
static struct gpmc_timings nand_timings = {
struct gpmc_timings nand_default_timings[1] = {
{
.sync_clk = 0,

.sync_clk = 0,
.cs_on = 0,
.cs_rd_off = 36,
.cs_wr_off = 36,

.cs_on = 0,
.cs_rd_off = 36,
.cs_wr_off = 36,
.adv_on = 6,
.adv_rd_off = 24,
.adv_wr_off = 36,

.adv_on = 6,
.adv_rd_off = 24,
.adv_wr_off = 36,
.we_off = 30,
.oe_off = 48,

.we_off = 30,
.oe_off = 48,
.access = 54,
.rd_cycle = 72,
.wr_cycle = 72,

.access = 54,
.rd_cycle = 72,
.wr_cycle = 72,

.wr_access = 30,
.wr_data_mux_bus = 0,
.wr_access = 30,
.wr_data_mux_bus = 0,
},
};

static struct omap_nand_platform_data board_nand_data = {
.gpmc_t = &nand_timings,
};
static struct omap_nand_platform_data board_nand_data;

void
__init board_nand_init(struct mtd_partition *nand_parts,
u8 nr_parts, u8 cs, int nand_type)
__init board_nand_init(struct mtd_partition *nand_parts, u8 nr_parts, u8 cs,
int nand_type, struct gpmc_timings *gpmc_t)
{
board_nand_data.cs = cs;
board_nand_data.parts = nand_parts;
board_nand_data.nr_parts = nr_parts;
board_nand_data.devsize = nand_type;
board_nand_data.gpmc_t = gpmc_t;

board_nand_data.ecc_opt = OMAP_ECC_HAMMING_CODE_DEFAULT;
gpmc_nand_init(&board_nand_data);
Expand Down Expand Up @@ -238,5 +238,6 @@ void __init board_flash_init(struct flash_partitions partition_info[],
pr_err("NAND: Unable to find configuration in GPMC\n");
else
board_nand_init(partition_info[2].parts,
partition_info[2].nr_parts, nandcs, nand_type);
partition_info[2].nr_parts, nandcs,
nand_type, nand_default_timings);
}
6 changes: 4 additions & 2 deletions trunk/arch/arm/mach-omap2/board-flash.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,14 @@ static inline void board_flash_init(struct flash_partitions part[],
#if defined(CONFIG_MTD_NAND_OMAP2) || \
defined(CONFIG_MTD_NAND_OMAP2_MODULE)
extern void board_nand_init(struct mtd_partition *nand_parts,
u8 nr_parts, u8 cs, int nand_type);
u8 nr_parts, u8 cs, int nand_type, struct gpmc_timings *gpmc_t);
extern struct gpmc_timings nand_default_timings[];
#else
static inline void board_nand_init(struct mtd_partition *nand_parts,
u8 nr_parts, u8 cs, int nand_type)
u8 nr_parts, u8 cs, int nand_type, struct gpmc_timings *gpmc_t)
{
}
#define nand_default_timings NULL
#endif

#if defined(CONFIG_MTD_ONENAND_OMAP2) || \
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-omap2/board-h4.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#include <asm/mach/map.h>

#include <plat/menelaus.h>
#include <plat-omap/dma-omap.h>
#include <plat/dma.h>
#include <plat/gpmc.h>
#include "debug-devices.h"

Expand Down
Loading

0 comments on commit 77a768a

Please sign in to comment.