Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 63092
b: refs/heads/master
c: 3bb447f
h: refs/heads/master
v: v3
  • Loading branch information
Heiko Carstens authored and Martin Schwidefsky committed Jul 27, 2007
1 parent 7e2d92f commit cf1c987
Show file tree
Hide file tree
Showing 51 changed files with 155 additions and 263 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: 7b5573769f26a23518b33a64ec129d2833564877
refs/heads/master: 3bb447fc8bb6523cb1cec7a0277d831a2b0462b7
13 changes: 2 additions & 11 deletions trunk/Documentation/DocBook/kernel-api.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -704,23 +704,14 @@ X!Idrivers/video/console/fonts.c

<chapter id="splice">
<title>splice API</title>
<para>
<para>)
splice is a method for moving blocks of data around inside the
kernel, without continually transferring them between the kernel
kernel, without continually transferring it between the kernel
and user space.
</para>
!Iinclude/linux/splice.h
!Ffs/splice.c
</chapter>

<chapter id="pipes">
<title>pipes API</title>
<para>
Pipe interfaces are all for in-kernel (builtin image) use.
They are not exported for use by modules.
</para>
!Iinclude/linux/pipe_fs_i.h
!Ffs/pipe.c
</chapter>

</book>
7 changes: 0 additions & 7 deletions trunk/Documentation/kernel-parameters.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ the beginning of each description states the restrictions within which a
parameter is applicable:

ACPI ACPI support is enabled.
AGP AGP (Accelerated Graphics Port) is enabled.
ALSA ALSA sound support is enabled.
APIC APIC support is enabled.
APM Advanced Power Management support is enabled.
Expand Down Expand Up @@ -228,12 +227,6 @@ and is between 256 and 4096 characters. It is defined in the file
to assume that this machine's pmtimer latches its value
and always returns good values.

agp= [AGP]
{ off | try_unsupported }
off: disable AGP support
try_unsupported: try to drive unsupported chipsets
(may crash computer or cause data corruption)

enable_timer_pin_1 [i386,x86-64]
Enable PIN 1 of APIC timer
Can be useful to work around chipset bugs
Expand Down
1 change: 0 additions & 1 deletion trunk/arch/arm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,6 @@ config ARCH_PXA
select ARCH_MTD_XIP
select GENERIC_GPIO
select GENERIC_TIME
select GENERIC_CLOCKEVENTS
help
Support for Intel's PXA2XX processor line.

Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/arm/kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ void smp_send_stop(void)
/*
* not supported here
*/
int setup_profiling_timer(unsigned int multiplier)
int __init setup_profiling_timer(unsigned int multiplier)
{
return -EINVAL;
}
Expand Down
2 changes: 2 additions & 0 deletions trunk/arch/arm/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -352,8 +352,10 @@ asmlinkage void __exception do_undefinstr(struct pt_regs *regs)

asmlinkage void do_unexp_fiq (struct pt_regs *regs)
{
#ifndef CONFIG_IGNORE_FIQ
printk("Hmm. Unexpected FIQ received, but trying to continue\n");
printk("You may have a hardware problem...\n");
#endif
}

/*
Expand Down
27 changes: 12 additions & 15 deletions trunk/arch/arm/mach-sa1100/jornada720.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
*
* HP Jornada720 init code
*
* Copyright (C) 2007 Kristoffer Ericson <Kristoffer.Ericson@gmail.com>
* Copyright (C) 2006 Filip Zyzniewski <filip.zyzniewski@tefnet.pl>
* Copyright (C) 2005 Michael Gernoth <michael@gernoth.net>
*
Expand Down Expand Up @@ -221,16 +220,14 @@ static struct platform_device sa1111_device = {
.resource = sa1111_resources,
};

static struct platform_device jornada_ssp_device = {
.name = "jornada_ssp",
.id = -1,
static struct platform_device jornada720_mcu_device = {
.name = "jornada720_mcu",
.id = -1,
};

static struct platform_device *devices[] __initdata = {
&sa1111_device,
#ifdef CONFIG_SA1100_JORNADA720_SSP
&jornada_ssp_device,
#endif
&jornada720_mcu_device,
&s1d13xxxfb_device,
};

Expand All @@ -239,19 +236,19 @@ static int __init jornada720_init(void)
int ret = -ENODEV;

if (machine_is_jornada720()) {
/* we want to use gpio20 as input to drive the clock of our uart 3 */
GPDR |= GPIO_GPIO20; /* Clear gpio20 pin as input */
GPDR |= GPIO_GPIO20;
/* oscillator setup (line 116 of HP's doc) */
TUCR = TUCR_VAL;
GPSR = GPIO_GPIO20; /* start gpio20 pin */
/* resetting SA1111 (line 118 of HP's doc) */
GPSR = GPIO_GPIO20;
udelay(1);
GPCR = GPIO_GPIO20; /* stop gpio20 */
GPCR = GPIO_GPIO20;
udelay(1);
GPSR = GPIO_GPIO20; /* restart gpio20 */
udelay(20); /* give it some time to restart */
GPSR = GPIO_GPIO20;
udelay(20);

ret = platform_add_devices(devices, ARRAY_SIZE(devices));
}

return ret;
}

Expand Down Expand Up @@ -348,7 +345,7 @@ static void __init jornada720_mach_init(void)
}

MACHINE_START(JORNADA720, "HP Jornada 720")
/* Maintainer: Kristoffer Ericson <Kristoffer.Ericson@gmail.com> */
/* Maintainer: Michael Gernoth <michael@gernoth.net> */
.phys_io = 0x80000000,
.io_pg_offst = ((0xf8000000) >> 18) & 0xfffc,
.boot_params = 0xc0000100,
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-sa1100/jornada720_ssp.c
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ static int __init jornada_ssp_probe(struct platform_device *dev)
ret = jornada_ssp_inout(GETBRIGHTNESS);

/* seems like it worked, just feed it with TxDummy to get rid of data */
if (ret == TXDUMMY)
if (ret == TxDummy)
jornada_ssp_inout(TXDUMMY);

jornada_ssp_end();
Expand Down
4 changes: 0 additions & 4 deletions trunk/arch/blackfin/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ machine-$(CONFIG_BF533) := bf533
machine-$(CONFIG_BF534) := bf537
machine-$(CONFIG_BF536) := bf537
machine-$(CONFIG_BF537) := bf537
machine-$(CONFIG_BF542) := bf548
machine-$(CONFIG_BF544) := bf548
machine-$(CONFIG_BF548) := bf548
machine-$(CONFIG_BF549) := bf548
machine-$(CONFIG_BF561) := bf561
Expand All @@ -38,8 +36,6 @@ cpu-$(CONFIG_BF533) := bf533
cpu-$(CONFIG_BF534) := bf534
cpu-$(CONFIG_BF536) := bf536
cpu-$(CONFIG_BF537) := bf537
cpu-$(CONFIG_BF542) := bf542
cpu-$(CONFIG_BF544) := bf544
cpu-$(CONFIG_BF548) := bf548
cpu-$(CONFIG_BF549) := bf549
cpu-$(CONFIG_BF561) := bf561
Expand Down
3 changes: 1 addition & 2 deletions trunk/arch/blackfin/kernel/dma-mapping.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,7 @@ dma_map_sg(struct device *dev, struct scatterlist *sg, int nents,
BUG_ON(direction == DMA_NONE);

for (i = 0; i < nents; i++, sg++) {
sg->dma_address = (dma_addr_t)(page_address(sg->page) +
sg->offset);
sg->dma_address = page_address(sg->page) + sg->offset;

invalidate_dcache_range(sg_dma_address(sg),
sg_dma_address(sg) +
Expand Down
5 changes: 4 additions & 1 deletion trunk/arch/blackfin/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,11 @@ void __init setup_arch(char **cmdline_p)
if (l1_length > L1_DATA_A_LENGTH)
panic("L1 data memory overflow\n");

#ifdef BF561_FAMILY
_bfin_swrst = bfin_read_SICA_SWRST();
#else
_bfin_swrst = bfin_read_SWRST();
#endif

/* Copy atomic sequences to their fixed location, and sanity check that
these locations are the ones that we advertise to userspace. */
Expand All @@ -425,7 +429,6 @@ void __init setup_arch(char **cmdline_p)
BUG_ON((char *)&atomic_xor32 - (char *)&fixed_code_start
!= ATOMIC_XOR32 - FIXED_CODE_START);

init_exception_vectors();
bf53x_cache_init();
}

Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/blackfin/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ asmlinkage void trap_c(struct pt_regs *fp)
#ifdef CONFIG_KGDB
# define CHK_DEBUGGER_TRAP() \
do { \
CHK_DEBUGGER(trapnr, sig, info.si_code, fp, ); \
CHK_DEBUGGER(trapnr, sig, info.si_code, fp); \
} while (0)
# define CHK_DEBUGGER_TRAP_MAYBE() \
do { \
Expand Down
16 changes: 6 additions & 10 deletions trunk/arch/blackfin/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
#include <asm-generic/vmlinux.lds.h>
#include <asm/mem_map.h>
#include <asm/page.h>
#include <asm/thread_info.h>

OUTPUT_FORMAT("elf32-bfin")
ENTRY(__start)
Expand Down Expand Up @@ -65,27 +64,23 @@ SECTIONS

.data :
{
/* make sure the init_task is aligned to the
* kernel thread size so we can locate the kernel
* stack properly and quickly.
*/
. = ALIGN(PAGE_SIZE);
__sdata = .;
. = ALIGN(THREAD_SIZE);
*(.data.init_task)
DATA_DATA
CONSTRUCTORS

. = ALIGN(32);
*(.data.cacheline_aligned)

. = ALIGN(THREAD_SIZE);
. = ALIGN(PAGE_SIZE);
__edata = .;
}

. = ALIGN(PAGE_SIZE);
___init_begin = .;
.init :
{
. = ALIGN(PAGE_SIZE);
__sinittext = .;
*(.init.text)
__einittext = .;
Expand Down Expand Up @@ -158,9 +153,10 @@ SECTIONS
__ebss_b_l1 = .;
}

___init_end = LOADADDR(.data_b_l1) + SIZEOF(.data_b_l1);
. = LOADADDR(.data_b_l1) + SIZEOF(.data_b_l1);
___init_end = ALIGN(PAGE_SIZE);

.bss LOADADDR(.data_b_l1) + SIZEOF(.data_b_l1) :
.bss ___init_end :
{
. = ALIGN(4);
___bss_start = .;
Expand Down
10 changes: 5 additions & 5 deletions trunk/arch/blackfin/mach-bf561/head.S
Original file line number Diff line number Diff line change
Expand Up @@ -440,15 +440,15 @@ ENTRY(_bfin_reset)
SSYNC;

/* make sure SYSCR is set to use BMODE */
P0.h = hi(SYSCR);
P0.l = lo(SYSCR);
R0.l = 0x20; /* on BF561, disable core b */
P0.h = hi(SICA_SYSCR);
P0.l = lo(SICA_SYSCR);
R0.l = 0x20;
W[P0] = R0.l;
SSYNC;

/* issue a system soft reset */
P1.h = hi(SWRST);
P1.l = lo(SWRST);
P1.h = hi(SICA_SWRST);
P1.l = lo(SICA_SWRST);
R1.l = 0x0007;
W[P1] = R1;
SSYNC;
Expand Down
3 changes: 0 additions & 3 deletions trunk/arch/blackfin/mach-common/cacheinit.S
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,6 @@ ENDPROC(_bfin_write_IMEM_CONTROL)

#if defined(CONFIG_BLKFIN_DCACHE)
ENTRY(_bfin_write_DMEM_CONTROL)
P0.l = (DMEM_CONTROL & 0xFFFF);
P0.h = (DMEM_CONTROL >> 16);

CLI R1;
SSYNC; /* SSYNC required before writing to DMEM_CONTROL. */
.align 8;
Expand Down
39 changes: 17 additions & 22 deletions trunk/arch/blackfin/mach-common/ints-priority-dc.c
Original file line number Diff line number Diff line change
Expand Up @@ -358,10 +358,26 @@ static void bf561_demux_gpio_irq(unsigned int inta_irq,

#endif /* CONFIG_IRQCHIP_DEMUX_GPIO */

void __init init_exception_vectors(void)
/*
* This function should be called during kernel startup to initialize
* the BFin IRQ handling routines.
*/
int __init init_arch_irq(void)
{
int irq;
unsigned long ilat = 0;
/* Disable all the peripheral intrs - page 4-29 HW Ref manual */
bfin_write_SICA_IMASK0(SIC_UNMASK_ALL);
bfin_write_SICA_IMASK1(SIC_UNMASK_ALL);
SSYNC();

bfin_write_SICA_IWR0(IWR_ENABLE_ALL);
bfin_write_SICA_IWR1(IWR_ENABLE_ALL);

local_irq_disable();

init_exception_buff();

#ifndef CONFIG_KGDB
bfin_write_EVT0(evt_emulation);
#endif
Expand All @@ -379,27 +395,6 @@ void __init init_exception_vectors(void)
bfin_write_EVT14(evt14_softirq);
bfin_write_EVT15(evt_system_call);
CSYNC();
}

/*
* This function should be called during kernel startup to initialize
* the BFin IRQ handling routines.
*/
int __init init_arch_irq(void)
{
int irq;
unsigned long ilat = 0;
/* Disable all the peripheral intrs - page 4-29 HW Ref manual */
bfin_write_SICA_IMASK0(SIC_UNMASK_ALL);
bfin_write_SICA_IMASK1(SIC_UNMASK_ALL);
SSYNC();

bfin_write_SICA_IWR0(IWR_ENABLE_ALL);
bfin_write_SICA_IWR1(IWR_ENABLE_ALL);

local_irq_disable();

init_exception_buff();

for (irq = 0; irq <= SYS_IRQS; irq++) {
if (irq <= IRQ_CORETMR)
Expand Down
Loading

0 comments on commit cf1c987

Please sign in to comment.