You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
Merge master.kernel.org:/pub/scm/linux/kernel/git/lethal/sh-2.6
* master.kernel.org:/pub/scm/linux/kernel/git/lethal/sh-2.6: sh: Fix dreamcast build for IRQ changes. sh: Fix clock multiplier on SH7722. sh: Wire up kdump crash kernel exec in die(). sh: sr.bl toggling around idle sleep. sh: disable genrtc support. fs: Kill sh dependency for binfmt_flat. sh: Disable psw support for R7785RP. sh: Fix page size alignment in __copy_user_page(). sh: Fix up various compile warnings for SE boards. sh: Wire up signalfd/timerfd/eventfd syscalls. sh: revert addition of page fault notifiers spelling fixes: arch/sh/ input: hp680_ts compile fixes. sh: landisk: Header cleanups. sh: landisk: rtc-rs5c313 support. sh: Kill off pmb slab cache destructor. sh: Fix up psw build rules for r7780rp. sh: Shut up compiler warnings in __do_page_fault().
This commit is contained in:
@@ -69,7 +69,7 @@ static int gio_ioctl(struct inode *inode, struct file *filp,
|
||||
}
|
||||
|
||||
switch (cmd) {
|
||||
case GIODRV_IOCSGIOSETADDR: /* addres set */
|
||||
case GIODRV_IOCSGIOSETADDR: /* address set */
|
||||
addr = data;
|
||||
break;
|
||||
|
||||
|
||||
@@ -44,8 +44,14 @@ static struct platform_device cf_ide_device = {
|
||||
},
|
||||
};
|
||||
|
||||
static struct platform_device rtc_device = {
|
||||
.name = "rs5c313",
|
||||
.id = -1,
|
||||
};
|
||||
|
||||
static struct platform_device *landisk_devices[] __initdata = {
|
||||
&cf_ide_device,
|
||||
&rtc_device,
|
||||
};
|
||||
|
||||
static int __init landisk_devices_setup(void)
|
||||
|
||||
@@ -3,5 +3,8 @@
|
||||
#
|
||||
irqinit-y := irq-r7780rp.o
|
||||
irqinit-$(CONFIG_SH_R7785RP) := irq-r7785rp.o
|
||||
obj-y := setup.o irq.o $(irqinit-y)
|
||||
|
||||
ifneq ($(CONFIG_SH_R7785RP),y)
|
||||
obj-$(CONFIG_PUSH_SWITCH) += psw.o
|
||||
obj-y := setup.o irq.o $(irqinit-y)
|
||||
endif
|
||||
|
||||
@@ -108,7 +108,7 @@ static void ds1302_writebyte(unsigned int addr, unsigned int val)
|
||||
static void ds1302_reset(void)
|
||||
{
|
||||
unsigned long flags;
|
||||
/* Hardware dependant reset/init */
|
||||
/* Hardware dependent reset/init */
|
||||
local_irq_save(flags);
|
||||
set_dirp(get_dirp() | RTC_RESET | RTC_IODATA | RTC_SCLK);
|
||||
set_dp(get_dp() & ~(RTC_RESET | RTC_IODATA | RTC_SCLK));
|
||||
|
||||
@@ -198,12 +198,12 @@ void microdev_outb(unsigned char b, unsigned long port)
|
||||
/*
|
||||
* There is a board feature with the current SH4-202 MicroDev in
|
||||
* that the 2 byte enables (nBE0 and nBE1) are tied together (and
|
||||
* to the Chip Select Line (Ethernet_CS)). Due to this conectivity,
|
||||
* to the Chip Select Line (Ethernet_CS)). Due to this connectivity,
|
||||
* it is not possible to safely perform 8-bit writes to the
|
||||
* Ethernet registers, as 16-bits will be consumed from the Data
|
||||
* lines (corrupting the other byte). Hence, this function is
|
||||
* written to impliment 16-bit read/modify/write for all byte-wide
|
||||
* acceses.
|
||||
* written to implement 16-bit read/modify/write for all byte-wide
|
||||
* accesses.
|
||||
*
|
||||
* Note: there is no problem with byte READS (even or odd).
|
||||
*
|
||||
|
||||
@@ -100,7 +100,7 @@ static void disable_microdev_irq(unsigned int irq)
|
||||
|
||||
fpgaIrq = fpgaIrqTable[irq].fpgaIrq;
|
||||
|
||||
/* disable interupts on the FPGA INTC register */
|
||||
/* disable interrupts on the FPGA INTC register */
|
||||
ctrl_outl(MICRODEV_FPGA_INTC_MASK(fpgaIrq), MICRODEV_FPGA_INTDSB_REG);
|
||||
}
|
||||
|
||||
@@ -125,7 +125,7 @@ static void enable_microdev_irq(unsigned int irq)
|
||||
priorities |= MICRODEV_FPGA_INTPRI_LEVEL(fpgaIrq, pri);
|
||||
ctrl_outl(priorities, priorityReg);
|
||||
|
||||
/* enable interupts on the FPGA INTC register */
|
||||
/* enable interrupts on the FPGA INTC register */
|
||||
ctrl_outl(MICRODEV_FPGA_INTC_MASK(fpgaIrq), MICRODEV_FPGA_INTENB_REG);
|
||||
}
|
||||
|
||||
@@ -152,7 +152,7 @@ extern void __init init_microdev_irq(void)
|
||||
{
|
||||
int i;
|
||||
|
||||
/* disable interupts on the FPGA INTC register */
|
||||
/* disable interrupts on the FPGA INTC register */
|
||||
ctrl_outl(~0ul, MICRODEV_FPGA_INTDSB_REG);
|
||||
|
||||
for (i = 0; i < NUM_EXTERNAL_IRQS; i++)
|
||||
|
||||
@@ -349,7 +349,7 @@ static int __init smsc_superio_setup(void)
|
||||
SMSC_WRITE_INDEXED(0x00, 0xc7); /* GP47 = nIOWOP */
|
||||
SMSC_WRITE_INDEXED(0x08, 0xe8); /* GP20 = nIDE2_OE */
|
||||
|
||||
/* Exit the configuraton state */
|
||||
/* Exit the configuration state */
|
||||
outb(SMSC_EXIT_CONFIG_KEY, SMSC_CONFIG_PORT_ADDR);
|
||||
|
||||
return 0;
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
* May be copied or modified under the terms of the GNU General Public
|
||||
* License. See linux/COPYING for more information.
|
||||
*
|
||||
* Setup code for an unknown machine (internal peripherials only)
|
||||
* Setup code for an unknown machine (internal peripherals only)
|
||||
*
|
||||
* This is the simplest of all boards, and serves only as a quick and dirty
|
||||
* method to start debugging a new board during bring-up until proper board
|
||||
|
||||
@@ -115,7 +115,7 @@ static int search_cap(const char **haystack, const char *needle)
|
||||
/**
|
||||
* request_dma_bycap - Allocate a DMA channel based on its capabilities
|
||||
* @dmac: List of DMA controllers to search
|
||||
* @caps: List of capabilites
|
||||
* @caps: List of capabilities
|
||||
*
|
||||
* Search all channels of all DMA controllers to find a channel which
|
||||
* matches the requested capabilities. The result is the channel
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
* NOTE: ops->xfer() is the preferred way of doing things. However, there
|
||||
* are some users of the ISA DMA API that exist in common code that we
|
||||
* don't necessarily want to go out of our way to break, so we still
|
||||
* allow for some compatability at that level. Any new code is strongly
|
||||
* allow for some compatibility at that level. Any new code is strongly
|
||||
* advised to run far away from the ISA DMA API and use the SH DMA API
|
||||
* directly.
|
||||
*/
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
* 9 | HAC1/SSI1 | rec | half done | DMABRGI2
|
||||
*
|
||||
* all can be enabled/disabled in the DMABRGCR register,
|
||||
* as well as checked if they occured.
|
||||
* as well as checked if they occurred.
|
||||
*
|
||||
* DMABRGI0 services USB DMA Address errors, but it still must be
|
||||
* enabled/acked in the DMABRGCR register. USB-DMA complete indicator
|
||||
|
||||
@@ -57,7 +57,7 @@ struct pci_channel board_pci_channels[] = {
|
||||
*
|
||||
* Also, we could very easily support both Type 0 and Type 1 configurations
|
||||
* here, but since it doesn't seem that there is any such implementation in
|
||||
* existance, we don't bother.
|
||||
* existence, we don't bother.
|
||||
*
|
||||
* I suppose if someone actually gets around to ripping the chip out of
|
||||
* the BBA and hanging some more devices off of it, then this might be
|
||||
|
||||
@@ -292,7 +292,7 @@ int __init st40pci_init(unsigned memStart, unsigned memSize)
|
||||
PCI_COMMAND_MEMORY | PCI_COMMAND_MASTER |
|
||||
PCI_COMMAND_IO);
|
||||
|
||||
/* Accesse to the 0xb0000000 -> 0xb6000000 area will go through to 0x10000000 -> 0x16000000
|
||||
/* Access to the 0xb0000000 -> 0xb6000000 area will go through to 0x10000000 -> 0x16000000
|
||||
* on the PCI bus. This allows a nice 1-1 bus to phys mapping.
|
||||
*/
|
||||
|
||||
@@ -315,7 +315,7 @@ int __init st40pci_init(unsigned memStart, unsigned memSize)
|
||||
ST40PCI_WRITE(CSR_MBAR0, 0);
|
||||
ST40PCI_WRITE(LSR0, 0x0fff0001);
|
||||
|
||||
/* ... and set up the initial incomming window to expose all of RAM */
|
||||
/* ... and set up the initial incoming window to expose all of RAM */
|
||||
pci_set_rbar_region(7, memStart, memStart, memSize);
|
||||
|
||||
/* Maximise timeout values */
|
||||
@@ -473,7 +473,7 @@ static void pci_set_rbar_region(unsigned int region, unsigned long localAddr
|
||||
|
||||
mask = r2p2(regionSize) - 0x10000;
|
||||
|
||||
/* Diable the region (in case currently in use, should never happen) */
|
||||
/* Disable the region (in case currently in use, should never happen) */
|
||||
ST40PCI_WRITE_INDEXED(RSR, region, 0);
|
||||
|
||||
/* Start of local address space to publish */
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
* May be copied or modified under the terms of the GNU General Public
|
||||
* License. See linux/COPYING for more information.
|
||||
*
|
||||
* Defintions for the ST40 PCI hardware.
|
||||
* Definitions for the ST40 PCI hardware.
|
||||
*/
|
||||
|
||||
#ifndef __PCI_ST40_H__
|
||||
|
||||
@@ -130,7 +130,7 @@ static int sh4202_read_vcr(unsigned long base, struct superhyway_vcr_info *vcr)
|
||||
* Some modules (PBR and ePBR for instance) also appear to have
|
||||
* VCRL/VCRH flipped in the documentation, but on the SH4-202
|
||||
* itself it appears that these are all consistently mapped with
|
||||
* VCRH preceeding VCRL.
|
||||
* VCRH preceding VCRL.
|
||||
*
|
||||
* Do not trust the documentation, for it is evil.
|
||||
*/
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
*/
|
||||
#if defined(CONFIG_CPU_SH4)
|
||||
/* SH4 can't access PCMCIA interface through P2 area.
|
||||
* we must remap it with appropreate attribute bit of the page set.
|
||||
* we must remap it with appropriate attribute bit of the page set.
|
||||
* this part is based on Greg Banks' hd64465_ss.c implementation - Masahiro Abe */
|
||||
|
||||
#if defined(CONFIG_CF_AREA6)
|
||||
|
||||
@@ -278,6 +278,11 @@ arch_init_clk_ops(struct clk_ops **ops, int type)
|
||||
{
|
||||
}
|
||||
|
||||
void __init __attribute__ ((weak))
|
||||
arch_clk_init(void)
|
||||
{
|
||||
}
|
||||
|
||||
static int show_clocks(char *buf, char **start, off_t off,
|
||||
int len, int *eof, void *data)
|
||||
{
|
||||
@@ -314,6 +319,8 @@ int __init clk_init(void)
|
||||
ret |= clk_register(clk);
|
||||
}
|
||||
|
||||
arch_clk_init();
|
||||
|
||||
/* Kick the child clocks.. */
|
||||
propagate_rate(&master_clk);
|
||||
propagate_rate(&bus_clk);
|
||||
|
||||
@@ -38,7 +38,7 @@ static struct hw_interrupt_type maskreg_irq_type = {
|
||||
.end = end_maskreg_irq
|
||||
};
|
||||
|
||||
/* actual implementatin */
|
||||
/* actual implementation */
|
||||
static unsigned int startup_maskreg_irq(unsigned int irq)
|
||||
{
|
||||
enable_maskreg_irq(irq);
|
||||
|
||||
@@ -138,7 +138,7 @@ restore_fpu(struct task_struct *tsk)
|
||||
/*
|
||||
* Load the FPU with signalling NANS. This bit pattern we're using
|
||||
* has the property that no matter wether considered as single or as
|
||||
* double precission represents signaling NANS.
|
||||
* double precision represents signaling NANS.
|
||||
*/
|
||||
|
||||
static void
|
||||
|
||||
@@ -106,6 +106,7 @@ static struct ipr_data sh7750_ipr_map[] = {
|
||||
{ 38, 2, 8, 7 }, /* DMAC DMAE */
|
||||
};
|
||||
|
||||
#ifdef CONFIG_CPU_SUBTYPE_SH7751
|
||||
static struct ipr_data sh7751_ipr_map[] = {
|
||||
{ 44, 2, 8, 7 }, /* DMAC DMTE4 */
|
||||
{ 45, 2, 8, 7 }, /* DMAC DMTE5 */
|
||||
@@ -117,6 +118,7 @@ static struct ipr_data sh7751_ipr_map[] = {
|
||||
/*{ 72, INTPRI00, 8, ? },*/ /* TMU3 TUNI */
|
||||
/*{ 76, INTPRI00, 12, ? },*/ /* TMU4 TUNI */
|
||||
};
|
||||
#endif
|
||||
|
||||
static unsigned long ipr_offsets[] = {
|
||||
0xffd00004UL, /* 0: IPRA */
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user