Skip to content

Commit

Permalink
Merge branch 'master' of github.com:freexperia/semc-kernel-msm7x27-ics
Browse files Browse the repository at this point in the history
  • Loading branch information
freexperia committed Feb 15, 2012
2 parents 6535d06 + 8032172 commit fd1fc1f
Show file tree
Hide file tree
Showing 8 changed files with 520 additions and 21 deletions.
29 changes: 12 additions & 17 deletions arch/arm/configs/fxp_es209ra_defconfig
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# Automatically generated make config: don't edit
# Linux kernel version: 2.6.29
# Thu Jan 19 09:01:57 2012
# Sun Feb 5 23:00:10 2012
#
CONFIG_ARM=y
CONFIG_SYS_SUPPORTS_APM_EMULATION=y
Expand Down Expand Up @@ -56,7 +56,7 @@ CONFIG_LOG_BUF_SHIFT=17
# CONFIG_GROUP_SCHED is not set
# CONFIG_CGROUPS is not set
# CONFIG_SYSFS_DEPRECATED_V2 is not set
# CONFIG_RELAY is not set
CONFIG_RELAY=y
# CONFIG_NAMESPACES is not set
CONFIG_BLK_DEV_INITRD=y
CONFIG_INITRAMFS_SOURCE=""
Expand Down Expand Up @@ -731,6 +731,8 @@ CONFIG_FW_LOADER=y
CONFIG_FIRMWARE_IN_KERNEL=y
CONFIG_EXTRA_FIRMWARE=""
# CONFIG_SYS_HYPERVISOR is not set
CONFIG_GENLOCK=y
CONFIG_GENLOCK_MISCDEVICE=y
# CONFIG_CONNECTOR is not set
CONFIG_MTD=y
# CONFIG_MTD_DEBUG is not set
Expand Down Expand Up @@ -939,7 +941,6 @@ CONFIG_NET_ETHERNET=y
CONFIG_MII=y
# CONFIG_AX88796 is not set
# CONFIG_SMC91X is not set
# CONFIG_SMC91X_POLL is not set
# CONFIG_DM9000 is not set
# CONFIG_ENC28J60 is not set
# CONFIG_SMC911X is not set
Expand Down Expand Up @@ -1103,7 +1104,6 @@ CONFIG_SERIAL_MSM_HS=y
#
# Diag Support
#
CONFIG_DIAG_CHAR=y
CONFIG_UNIX98_PTYS=y
# CONFIG_DEVPTS_MULTIPLE_INSTANCES is not set
# CONFIG_LEGACY_PTYS is not set
Expand All @@ -1114,11 +1114,17 @@ CONFIG_UNIX98_PTYS=y
# CONFIG_TCG_TPM is not set
# CONFIG_DCC_TTY is not set
CONFIG_MSM_KGSL=y
# CONFIG_MSM_KGSL_CFF_DUMP is not set
# CONFIG_MSM_KGSL_PSTMRTMDMP_CP_STAT_NO_DETAIL is not set
# CONFIG_MSM_KGSL_PSTMRTMDMP_NO_IB_DUMP is not set
# CONFIG_MSM_KGSL_PSTMRTMDMP_RB_HEX is not set
# CONFIG_MSM_KGSL_2D is not set
# CONFIG_MSM_KGSL_DRM is not set
CONFIG_MSM_KGSL_MMU=y
# CONFIG_KGSL_PER_PROCESS_PAGE_TABLE is not set
CONFIG_MSM_KGSL_PAGE_TABLE_SIZE=0xFFF0000
# CONFIG_MSM_KGSL_MMU_PAGE_FAULT is not set
# CONFIG_MSM_KGSL_DISABLE_SHADOW_WRITES is not set
CONFIG_I2C=y
CONFIG_I2C_BOARDINFO=y
CONFIG_I2C_CHARDEV=y
Expand Down Expand Up @@ -1561,16 +1567,10 @@ CONFIG_USB_GADGET_DUALSPEED=y
# CONFIG_USB_G_SERIAL is not set
# CONFIG_USB_MIDI_GADGET is not set
# CONFIG_USB_G_PRINTER is not set
CONFIG_USB_ANDROID=y
CONFIG_USB_ANDROID_DIAG=y
CONFIG_USB_G_ANDROID=y
# CONFIG_USB_ANDROID_DIAG is not set
# CONFIG_USB_ANDROID_CDC_ECM is not set
CONFIG_USB_ANDROID_RNDIS=y
CONFIG_USB_ANDROID_RNDIS_WCEIS=y
# CONFIG_USB_ANDROID_RMNET is not set
CONFIG_USB_F_SERIAL=y
CONFIG_MODEM_SUPPORT=y
CONFIG_USB_CSW_HACK=y
CONFIG_USB_POWER_REENUMERATION=y
# CONFIG_USB_GADGET_REMOTE_WAKEUP is not set
# CONFIG_USB_CDC_COMPOSITE is not set

Expand Down Expand Up @@ -1835,11 +1835,6 @@ CONFIG_NETWORK_FILESYSTEMS=y
# CONFIG_NFSD is not set
# CONFIG_SMB_FS is not set
# CONFIG_CIFS is not set
# CONFIG_CIFS_STATS is not set
# CONFIG_CIFS_WEAK_PW_HASH is not set
# CONFIG_CIFS_XATTR is not set
# CONFIG_CIFS_DEBUG2 is not set
# CONFIG_CIFS_EXPERIMENTAL is not set
# CONFIG_NCP_FS is not set
# CONFIG_CODA_FS is not set
# CONFIG_AFS_FS is not set
Expand Down
1 change: 1 addition & 0 deletions arch/arm/mach-msm/include/mach/memory.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

#ifndef __ASSEMBLY__
void *alloc_bootmem_aligned(unsigned long size, unsigned long alignment);
unsigned long allocate_contiguous_ebi_nomap(unsigned long, unsigned long);
void clean_and_invalidate_caches(unsigned long, unsigned long, unsigned long);
void clean_caches(unsigned long, unsigned long, unsigned long);
void invalidate_caches(unsigned long, unsigned long, unsigned long);
Expand Down
65 changes: 65 additions & 0 deletions arch/arm/mach-msm/include/mach/msm_memtypes.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
/* Copyright (c) 2010-2011, Code Aurora Forum. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only 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.
*/

/* The MSM Hardware supports multiple flavors of physical memory.
* This file captures hardware specific information of these types.
*/

#ifndef __ASM_ARCH_MSM_MEMTYPES_H
#define __ASM_ARCH_MSM_MEMTYPES_H

#include <mach/memory.h>
#include <linux/init.h>

int __init meminfo_init(unsigned int, unsigned int);
/* Redundant check to prevent this from being included outside of 7x30 */
#if defined(CONFIG_ARCH_MSM7X30)
unsigned int get_num_populated_chipselects(void);
#endif

unsigned int get_num_memory_banks(void);
unsigned int get_memory_bank_size(unsigned int);
unsigned int get_memory_bank_start(unsigned int);
int soc_change_memory_power(u64, u64, int);

enum {
MEMTYPE_NONE = -1,
MEMTYPE_SMI_KERNEL = 0,
MEMTYPE_SMI,
MEMTYPE_EBI0,
MEMTYPE_EBI1,
MEMTYPE_MAX,
};

void msm_reserve(void);

#define MEMTYPE_FLAGS_FIXED 0x1
#define MEMTYPE_FLAGS_1M_ALIGN 0x2

struct memtype_reserve {
unsigned long start;
unsigned long size;
unsigned long limit;
int flags;
};

struct reserve_info {
struct memtype_reserve *memtype_reserve_table;
void (*calculate_reserve_sizes)(void);
int (*paddr_to_memtype)(unsigned int);
unsigned long low_unstable_address;
unsigned long max_unstable_size;
unsigned long bank_size;
};

extern struct reserve_info *reserve_info;
#endif
10 changes: 10 additions & 0 deletions arch/arm/mach-msm/memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include <linux/mm.h>
#include <linux/mm_types.h>
#include <linux/bootmem.h>
#include <linux/memory_alloc.h>
#include <linux/module.h>
#include <asm/pgtable.h>
#include <asm/io.h>
Expand All @@ -28,6 +29,7 @@
#include <linux/completion.h>
#include <linux/err.h>
#endif
#include <mach/msm_memtypes.h>

int arch_io_remap_pfn_range(struct vm_area_struct *vma, unsigned long addr,
unsigned long pfn, unsigned long size, pgprot_t prot)
Expand Down Expand Up @@ -224,3 +226,11 @@ int platform_physical_low_power_pages(unsigned long start_pfn,
return change_memory_power_state(start_pfn, nr_pages,
MEMORY_SELF_REFRESH);
}

unsigned long allocate_contiguous_ebi_nomap(unsigned long size,
unsigned long align)
{
return _allocate_contiguous_memory_nomap(size, MEMTYPE_EBI0,
align, __builtin_return_address(0));
}
EXPORT_SYMBOL(allocate_contiguous_ebi_nomap);
4 changes: 2 additions & 2 deletions include/linux/autoconf.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Automatically generated C config: don't edit
* Linux kernel version: 2.6.29
* Thu Feb 2 15:25:47 2012
* Sun Feb 5 23:21:39 2012
*/
#define AUTOCONF_INCLUDED
#define CONFIG_VIDEO_V4L1_COMPAT 1
Expand Down Expand Up @@ -386,7 +386,7 @@
#define CONFIG_VIRT_TO_BUS 1
#define CONFIG_MSM_SMD_TTY 1
#define CONFIG_MD 1
#define CONFIG_LOCALVERSION "$(KERNEL_LOCAL_VERSION)-FXP_"
#define CONFIG_LOCALVERSION "$(KERNEL_LOCAL_VERSION)-FXP"
#define CONFIG_USB_MSM_OTG_72K 1
#define CONFIG_SCSI_SCAN_ASYNC 1
#define CONFIG_ZLIB_INFLATE 1
Expand Down
2 changes: 1 addition & 1 deletion include/linux/utsrelease.h
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#define UTS_RELEASE "2.6.29-FXP_"
#define UTS_RELEASE "2.6.29-FXP"
4 changes: 3 additions & 1 deletion lib/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ lib-y := ctype.o string.o vsprintf.o cmdline.o \
rbtree.o radix-tree.o dump_stack.o \
idr.o int_sqrt.o extable.o prio_tree.o \
sha1.o irq_regs.o reciprocal_div.o argv_split.o \
proportions.o prio_heap.o ratelimit.o show_mem.o is_single_threaded.o
proportions.o prio_heap.o ratelimit.o show_mem.o is_single_threaded.o \
memory_alloc.o

obj-y += kstrtox.o

lib-$(CONFIG_MMU) += ioremap.o
Expand Down
Loading

0 comments on commit fd1fc1f

Please sign in to comment.