Merge branch 'omap4' into for-next
authorTony Lindgren <tony@atomide.com>
Thu, 28 May 2009 22:45:14 +0000 (15:45 -0700)
committerTony Lindgren <tony@atomide.com>
Thu, 28 May 2009 22:45:14 +0000 (15:45 -0700)
1  2 
arch/arm/mach-omap2/Makefile
arch/arm/mach-omap2/serial.c
arch/arm/plat-omap/Kconfig
arch/arm/plat-omap/clock.c
arch/arm/plat-omap/common.c
arch/arm/plat-omap/include/mach/clock.h
arch/arm/plat-omap/include/mach/common.h
arch/arm/plat-omap/include/mach/control.h
arch/arm/plat-omap/include/mach/irqs.h
arch/arm/plat-omap/include/mach/serial.h
arch/arm/plat-omap/sram.c

index c48b12c0fe2d75e33da37629518066f4549e1a8a,09fb3ad52497c2a101416c1020edd6b944d5902b..3a48f2fb0ca0ac336c35e124c149b58f4ed2d0f2
@@@ -60,8 -58,13 +60,11 @@@ obj-$(CONFIG_MACH_NOKIA_RX51)               += board
  obj-$(CONFIG_MACH_OMAP_ZOOM2)         += board-zoom2.o \
                                           mmc-twl4030.o \
                                           board-zoom-debugboard.o
+ obj-$(CONFIG_MACH_OMAP_4430SDP)               += board-4430sdp.o
  # Platform specific device init code
 -ifeq ($(CONFIG_USB_MUSB_SOC),y)
  obj-y                                 += usb-musb.o
 -endif
  
  onenand-$(CONFIG_MTD_ONENAND_OMAP2)   := gpmc-onenand.o
  obj-y                                 += $(onenand-m) $(onenand-y)
index fddbc4e1b2310b5fa35f5bc2709b51f4b54cfbf8,29dc6f529058538291b782e75aa5dddbb754eed5..b094c15bfe471d6ccc47073d891bd4459b432c1a
@@@ -6,10 -6,11 +6,13 @@@
   * Copyright (C) 2005-2008 Nokia Corporation
   * Author: Paul Mundt <paul.mundt@nokia.com>
   *
 + * Major rework for PM support by Kevin Hilman
 + *
   * Based off of arch/arm/mach-omap/omap1/serial.c
   *
+  * Copyright (C) 2009 Texas Instruments
+  * Added OMAP4 support - Santosh Shilimkar <santosh.shilimkar@ti.com
+  *
   * This file is subject to the terms and conditions of the GNU General Public
   * License. See the file "COPYING" in the main directory of this archive
   * for more details.
Simple merge
Simple merge
Simple merge
index fcc5a9b7697391b3afaa1af9da87e128f4835f6d,f45ec621da969ac6784680e57d6da3a028707443..8140dbccb7bc64f3dda2716ebda424666481ecc0
  #define OMAP2_PBIASLITEPWRDNZ0                (1 << 1)
  #define OMAP2_PBIASLITEVMODE0         (1 << 0)
  
 +/* CONTROL_IVA2_BOOTMOD bits */
 +#define OMAP3_IVA2_BOOTMOD_SHIFT      0
 +#define OMAP3_IVA2_BOOTMOD_MASK               (0xf << 0)
 +#define OMAP3_IVA2_BOOTMOD_IDLE               (0x1 << 0)
 +
 +/* CONTROL_PADCONF_X bits */
 +#define OMAP3_PADCONF_WAKEUPEVENT0    (1 << 15)
 +#define OMAP3_PADCONF_WAKEUPENABLE0   (1 << 14)
 +
  #ifndef __ASSEMBLY__
- #if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3)
+ #if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3) || \
+               defined(CONFIG_ARCH_OMAP4)
  extern void __iomem *omap_ctrl_base_get(void);
  extern u8 omap_ctrl_readb(u16 offset);
  extern u16 omap_ctrl_readw(u16 offset);
index bd44d1a9df9c5f453512dbd010fa670b54768a99,67a90708b68210a93fd93fcc4c10021ebbce781f..a5b9bcd6b10821c5ad38166e0600c5ceba924fb5
@@@ -201,17 -214,14 +214,23 @@@ void __init omap_map_sram(void
                base = OMAP3_SRAM_PA;
                base = ROUND_DOWN(base, PAGE_SIZE);
                omap_sram_io_desc[0].pfn = __phys_to_pfn(base);
 +
 +              /*
 +               * SRAM must be marked as non-cached on OMAP3 since the
 +               * CORE DPLL M2 divider change code (in SRAM) runs with the
 +               * SDRAM controller disabled, and if it is marked cached,
 +               * the ARM may attempt to write cache lines back to SDRAM
 +               * which will cause the system to hang.
 +               */
 +              omap_sram_io_desc[0].type = MT_MEMORY_NONCACHED;
        }
  
+       if (cpu_is_omap44xx()) {
+               omap_sram_io_desc[0].virtual = OMAP4_SRAM_VA;
+               base = OMAP4_SRAM_PA;
+               base = ROUND_DOWN(base, PAGE_SIZE);
+               omap_sram_io_desc[0].pfn = __phys_to_pfn(base);
+       }
        omap_sram_io_desc[0].length = 1024 * 1024;      /* Use section desc */
        iotable_init(omap_sram_io_desc, ARRAY_SIZE(omap_sram_io_desc));