Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 118945
b: refs/heads/master
c: 02f5621
h: refs/heads/master
i:
  118943: 2c995d5
v: v3
  • Loading branch information
Simon Arlott authored and Pekka Enberg committed Nov 13, 2008
1 parent 57db449 commit 1a1a17f
Show file tree
Hide file tree
Showing 19 changed files with 108 additions and 62 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: 90aaa53c5a5af33a061313681d8f3234712b866b
refs/heads/master: 02f5621042e3f7e2fb6c741cbe5ee7c1f3caf354
13 changes: 2 additions & 11 deletions trunk/arch/arm/include/asm/dma-mapping.h
Original file line number Diff line number Diff line change
Expand Up @@ -256,17 +256,8 @@ int dmabounce_sync_for_cpu(struct device *, dma_addr_t, unsigned long,
int dmabounce_sync_for_device(struct device *, dma_addr_t, unsigned long,
size_t, enum dma_data_direction);
#else
static inline int dmabounce_sync_for_cpu(struct device *d, dma_addr_t addr,
unsigned long offset, size_t size, enum dma_data_direction dir)
{
return 1;
}

static inline int dmabounce_sync_for_device(struct device *d, dma_addr_t addr,
unsigned long offset, size_t size, enum dma_data_direction dir)
{
return 1;
}
#define dmabounce_sync_for_cpu(dev,dma,off,sz,dir) (1)
#define dmabounce_sync_for_device(dev,dma,off,sz,dir) (1)


/**
Expand Down
13 changes: 6 additions & 7 deletions trunk/arch/arm/include/asm/mach/map.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,12 @@ struct map_desc {
};

/* types 0-3 are defined in asm/io.h */
#define MT_UNCACHED 4
#define MT_CACHECLEAN 5
#define MT_MINICLEAN 6
#define MT_LOW_VECTORS 7
#define MT_HIGH_VECTORS 8
#define MT_MEMORY 9
#define MT_ROM 10
#define MT_CACHECLEAN 4
#define MT_MINICLEAN 5
#define MT_LOW_VECTORS 6
#define MT_HIGH_VECTORS 7
#define MT_MEMORY 8
#define MT_ROM 9

#ifdef CONFIG_MMU
extern void iotable_init(struct map_desc *, int);
Expand Down
22 changes: 22 additions & 0 deletions trunk/arch/arm/mach-clps711x/include/mach/hardware.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,20 @@
#include <asm/hardware/ep7212.h>
#include <asm/hardware/cs89712.h>

/* dynamic ioremap() areas */
#define FLASH_START 0x00000000
#define FLASH_SIZE 0x800000
#define FLASH_WIDTH 4

#define SRAM_START 0x60000000
#define SRAM_SIZE 0xc000
#define SRAM_WIDTH 4

#define BOOTROM_START 0x70000000
#define BOOTROM_SIZE 0x80
#define BOOTROM_WIDTH 4


/* static cdb89712_map_io() areas */
#define REGISTER_START 0x80000000
#define REGISTER_SIZE 0x4000
Expand Down Expand Up @@ -184,6 +198,14 @@
#define CEIVA_FLASH_SIZE 0x100000
#define CEIVA_FLASH_WIDTH 2

#define SRAM_START 0x60000000
#define SRAM_SIZE 0xc000
#define SRAM_WIDTH 4

#define BOOTROM_START 0x70000000
#define BOOTROM_SIZE 0x80
#define BOOTROM_WIDTH 4

/*
* SED1355 LCD controller
*/
Expand Down
6 changes: 3 additions & 3 deletions trunk/arch/arm/mach-clps7500/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -275,9 +275,9 @@ static struct map_desc cl7500_io_desc[] __initdata = {
.length = ISA_SIZE,
.type = MT_DEVICE
}, { /* Flash */
.virtual = CLPS7500_FLASH_BASE,
.pfn = __phys_to_pfn(CLPS7500_FLASH_START),
.length = CLPS7500_FLASH_SIZE,
.virtual = FLASH_BASE,
.pfn = __phys_to_pfn(FLASH_START),
.length = FLASH_SIZE,
.type = MT_DEVICE
}, { /* LED */
.virtual = LED_BASE,
Expand Down
6 changes: 3 additions & 3 deletions trunk/arch/arm/mach-clps7500/include/mach/hardware.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@
#define ISA_SIZE 0x00010000
#define ISA_BASE 0xe1000000

#define CLPS7500_FLASH_START 0x01000000 /* XXX */
#define CLPS7500_FLASH_SIZE 0x01000000
#define CLPS7500_FLASH_BASE 0xe2000000
#define FLASH_START 0x01000000 /* XXX */
#define FLASH_SIZE 0x01000000
#define FLASH_BASE 0xe2000000

#define LED_START 0x0302B000
#define LED_SIZE 0x00001000
Expand Down
6 changes: 3 additions & 3 deletions trunk/arch/arm/mach-h720x/include/mach/boards.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
#ifdef CONFIG_ARCH_H7202

/* FLASH */
#define H720X_FLASH_VIRT 0xd0000000
#define H720X_FLASH_PHYS 0x00000000
#define H720X_FLASH_SIZE 0x02000000
#define FLASH_VIRT 0xd0000000
#define FLASH_PHYS 0x00000000
#define FLASH_SIZE 0x02000000

/* onboard LAN controller */
# define ETH0_PHYS 0x08000000
Expand Down
19 changes: 18 additions & 1 deletion trunk/arch/arm/mach-integrator/include/mach/platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -407,11 +407,28 @@
*/
#define uHAL_MEMORY_SIZE INTEGRATOR_SSRAM_SIZE

/*
* Application Flash
*
*/
#define FLASH_BASE INTEGRATOR_FLASH_BASE
#define FLASH_SIZE INTEGRATOR_FLASH_SIZE
#define FLASH_END (FLASH_BASE + FLASH_SIZE - 1)
#define FLASH_BLOCK_SIZE SZ_128K

/*
* Boot Flash
*
*/
#define EPROM_BASE INTEGRATOR_BOOT_ROM_HI
#define EPROM_SIZE INTEGRATOR_BOOT_ROM_SIZE
#define EPROM_END (EPROM_BASE + EPROM_SIZE - 1)

/*
* Clean base - dummy
*
*/
#define CLEAN_BASE INTEGRATOR_BOOT_ROM_HI
#define CLEAN_BASE EPROM_BASE

/*
* Timer definitions
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-realview/clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ static struct clk uart_clk = {

static struct clk mmci_clk = {
.name = "MCLK",
.rate = 24000000,
.rate = 33000000,
};

int clk_register(struct clk *clk)
Expand Down
19 changes: 18 additions & 1 deletion trunk/arch/arm/mach-realview/include/mach/platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -238,11 +238,28 @@
#define REALVIEW_INTREG_OFFSET 0x8 /* Interrupt control */
#define REALVIEW_DECODE_OFFSET 0xC /* Fitted logic modules */

/*
* Application Flash
*
*/
#define FLASH_BASE REALVIEW_FLASH_BASE
#define FLASH_SIZE REALVIEW_FLASH_SIZE
#define FLASH_END (FLASH_BASE + FLASH_SIZE - 1)
#define FLASH_BLOCK_SIZE SZ_128K

/*
* Boot Flash
*
*/
#define EPROM_BASE REALVIEW_BOOT_ROM_HI
#define EPROM_SIZE REALVIEW_BOOT_ROM_SIZE
#define EPROM_END (EPROM_BASE + EPROM_SIZE - 1)

/*
* Clean base - dummy
*
*/
#define CLEAN_BASE REALVIEW_BOOT_ROM_HI
#define CLEAN_BASE EPROM_BASE

/*
* System controller bit assignment
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-versatile/clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ static struct clk uart_clk = {

static struct clk mmci_clk = {
.name = "MCLK",
.rate = 24000000,
.rate = 33000000,
};

int clk_register(struct clk *clk)
Expand Down
18 changes: 17 additions & 1 deletion trunk/arch/arm/mach-versatile/include/mach/platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -436,12 +436,28 @@
#define SIC_INTMASK_PCI1 (1 << SIC_INT_PCI1)
#define SIC_INTMASK_PCI2 (1 << SIC_INT_PCI2)
#define SIC_INTMASK_PCI3 (1 << SIC_INT_PCI3)
/*
* Application Flash
*
*/
#define FLASH_BASE VERSATILE_FLASH_BASE
#define FLASH_SIZE VERSATILE_FLASH_SIZE
#define FLASH_END (FLASH_BASE + FLASH_SIZE - 1)
#define FLASH_BLOCK_SIZE SZ_128K

/*
* Boot Flash
*
*/
#define EPROM_BASE VERSATILE_BOOT_ROM_HI
#define EPROM_SIZE VERSATILE_BOOT_ROM_SIZE
#define EPROM_END (EPROM_BASE + EPROM_SIZE - 1)

/*
* Clean base - dummy
*
*/
#define CLEAN_BASE VERSATILE_BOOT_ROM_HI
#define CLEAN_BASE EPROM_BASE

/*
* System controller bit assignment
Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/arm/mm/cache-feroceon-l2.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,15 +150,15 @@ static void feroceon_l2_inv_range(unsigned long start, unsigned long end)
/*
* Clean and invalidate partial last cache line.
*/
if (start < end && end & (CACHE_LINE_SIZE - 1)) {
if (end & (CACHE_LINE_SIZE - 1)) {
l2_clean_inv_pa(end & ~(CACHE_LINE_SIZE - 1));
end &= ~(CACHE_LINE_SIZE - 1);
}

/*
* Invalidate all full cache lines between 'start' and 'end'.
*/
while (start < end) {
while (start != end) {
unsigned long range_end = calc_range_end(start, end);
l2_inv_pa_range(start, range_end - CACHE_LINE_SIZE);
start = range_end;
Expand Down
6 changes: 0 additions & 6 deletions trunk/arch/arm/mm/mmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -208,12 +208,6 @@ static struct mem_type mem_types[] = {
.prot_sect = PROT_SECT_DEVICE,
.domain = DOMAIN_IO,
},
[MT_UNCACHED] = {
.prot_pte = PROT_PTE_DEVICE,
.prot_l1 = PMD_TYPE_TABLE,
.prot_sect = PMD_TYPE_SECT | PMD_SECT_XN,
.domain = DOMAIN_IO,
},
[MT_CACHECLEAN] = {
.prot_sect = PMD_TYPE_SECT | PMD_SECT_XN,
.domain = DOMAIN_KERNEL,
Expand Down
5 changes: 2 additions & 3 deletions trunk/arch/arm/plat-iop/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,14 @@
#include <asm/hardware/iop3xx.h>

/*
* Standard IO mapping for all IOP3xx based systems. Note that
* the IOP3xx OCCDR must be mapped uncached and unbuffered.
* Standard IO mapping for all IOP3xx based systems
*/
static struct map_desc iop3xx_std_desc[] __initdata = {
{ /* mem mapped registers */
.virtual = IOP3XX_PERIPHERAL_VIRT_BASE,
.pfn = __phys_to_pfn(IOP3XX_PERIPHERAL_PHYS_BASE),
.length = IOP3XX_PERIPHERAL_SIZE,
.type = MT_UNCACHED,
.type = MT_DEVICE,
}, { /* PCI IO space */
.virtual = IOP3XX_PCI_LOWER_IO_VA,
.pfn = __phys_to_pfn(IOP3XX_PCI_LOWER_IO_PA),
Expand Down
2 changes: 2 additions & 0 deletions trunk/arch/parisc/include/asm/smp.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ extern void arch_send_call_function_ipi(cpumask_t mask);

#define PROC_CHANGE_PENALTY 15 /* Schedule penalty */

extern unsigned long cpu_present_mask;

#define raw_smp_processor_id() (current_thread_info()->cpu)

#else /* CONFIG_SMP */
Expand Down
13 changes: 1 addition & 12 deletions trunk/drivers/mtd/maps/cdb89712.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,7 @@
#include <linux/mtd/map.h>
#include <linux/mtd/partitions.h>

/* dynamic ioremap() areas */
#define FLASH_START 0x00000000
#define FLASH_SIZE 0x800000
#define FLASH_WIDTH 4

#define SRAM_START 0x60000000
#define SRAM_SIZE 0xc000
#define SRAM_WIDTH 4

#define BOOTROM_START 0x70000000
#define BOOTROM_SIZE 0x80
#define BOOTROM_WIDTH 4



static struct mtd_info *flash_mtd;
Expand Down
6 changes: 3 additions & 3 deletions trunk/drivers/mtd/maps/h720x-flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ static struct mtd_info *mymtd;
static struct map_info h720x_map = {
.name = "H720X",
.bankwidth = 4,
.size = H720X_FLASH_SIZE,
.phys = H720X_FLASH_PHYS,
.size = FLASH_SIZE,
.phys = FLASH_PHYS,
};

static struct mtd_partition h720x_partitions[] = {
Expand Down Expand Up @@ -70,7 +70,7 @@ int __init h720x_mtd_init(void)

char *part_type = NULL;

h720x_map.virt = ioremap(h720x_map.phys, h720x_map.size);
h720x_map.virt = ioremap(FLASH_PHYS, FLASH_SIZE);

if (!h720x_map.virt) {
printk(KERN_ERR "H720x-MTD: ioremap failed\n");
Expand Down
6 changes: 3 additions & 3 deletions trunk/init/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -771,8 +771,7 @@ config SLAB
help
The regular slab allocator that is established and known to work
well in all environments. It organizes cache hot objects in
per cpu and per node queues. SLAB is the default choice for
a slab allocator.
per cpu and per node queues.

config SLUB
bool "SLUB (Unqueued Allocator)"
Expand All @@ -781,7 +780,8 @@ config SLUB
instead of managing queues of cached objects (SLAB approach).
Per cpu caching is realized using slabs of objects instead
of queues of objects. SLUB can use memory efficiently
and has enhanced diagnostics.
and has enhanced diagnostics. SLUB is the default choice for
a slab allocator.

config SLOB
depends on EMBEDDED
Expand Down

0 comments on commit 1a1a17f

Please sign in to comment.