-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 43418 b: refs/heads/master c: 285f5fa h: refs/heads/master v: v3
- Loading branch information
Dan Williams
authored and
Russell King
committed
Dec 7, 2006
1 parent
2f948c5
commit f7465db
Showing
29 changed files
with
3,325 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: 4dbda6a50ae34d853353f15d30a166c87143408f | ||
refs/heads/master: 285f5fa7e9a35e75d9022f9b036ed709721c5cdf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
if ARCH_IOP13XX | ||
|
||
menu "IOP13XX Implementation Options" | ||
|
||
comment "IOP13XX Platform Support" | ||
|
||
config MACH_IQ81340SC | ||
bool "Enable IQ81340SC Hardware Support" | ||
help | ||
Say Y here if you want to support running on the Intel IQ81340SC | ||
evaluation kit. | ||
|
||
config MACH_IQ81340MC | ||
bool "Enable IQ81340MC Hardware Support" | ||
help | ||
Say Y here if you want to support running on the Intel IQ81340MC | ||
evaluation kit. | ||
|
||
endmenu | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
obj-y := | ||
obj-m := | ||
obj-n := | ||
obj- := | ||
|
||
obj-$(CONFIG_ARCH_IOP13XX) += setup.o | ||
obj-$(CONFIG_ARCH_IOP13XX) += irq.o | ||
obj-$(CONFIG_ARCH_IOP13XX) += time.o | ||
obj-$(CONFIG_ARCH_IOP13XX) += pci.o | ||
obj-$(CONFIG_ARCH_IOP13XX) += io.o | ||
obj-$(CONFIG_MACH_IQ81340SC) += iq81340sc.o | ||
obj-$(CONFIG_MACH_IQ81340MC) += iq81340mc.o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
zreladdr-y := 0x00008000 | ||
params_phys-y := 0x00000100 | ||
initrd_phys-y := 0x00800000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
/* | ||
* iop13xx custom ioremap implementation | ||
* Copyright (c) 2005-2006, Intel Corporation. | ||
* | ||
* This program is free software; you can redistribute it and/or modify it | ||
* under the terms and conditions of the GNU General Public License, | ||
* version 2, as published by the Free Software Foundation. | ||
* | ||
* This program is distributed in the hope 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. | ||
* | ||
* You should have received a copy of the GNU General Public License along with | ||
* this program; if not, write to the Free Software Foundation, Inc., 59 Temple | ||
* Place - Suite 330, Boston, MA 02111-1307 USA. | ||
* | ||
*/ | ||
#include <linux/kernel.h> | ||
#include <linux/module.h> | ||
#include <asm/hardware.h> | ||
#include <asm/io.h> | ||
|
||
void * __iomem __iop13xx_ioremap(unsigned long cookie, size_t size, | ||
unsigned long flags) | ||
{ | ||
void __iomem * retval; | ||
|
||
switch (cookie) { | ||
case IOP13XX_PCIX_LOWER_MEM_RA ... IOP13XX_PCIX_UPPER_MEM_RA: | ||
if (unlikely(!iop13xx_atux_mem_base)) | ||
retval = NULL; | ||
else | ||
retval = (void *)(iop13xx_atux_mem_base + | ||
(cookie - IOP13XX_PCIX_LOWER_MEM_RA)); | ||
break; | ||
case IOP13XX_PCIE_LOWER_MEM_RA ... IOP13XX_PCIE_UPPER_MEM_RA: | ||
if (unlikely(!iop13xx_atue_mem_base)) | ||
retval = NULL; | ||
else | ||
retval = (void *)(iop13xx_atue_mem_base + | ||
(cookie - IOP13XX_PCIE_LOWER_MEM_RA)); | ||
break; | ||
case IOP13XX_PBI_LOWER_MEM_RA ... IOP13XX_PBI_UPPER_MEM_RA: | ||
retval = __ioremap(IOP13XX_PBI_LOWER_MEM_PA + | ||
(cookie - IOP13XX_PBI_LOWER_MEM_RA), | ||
size, flags); | ||
break; | ||
case IOP13XX_PCIE_LOWER_IO_PA ... IOP13XX_PCIE_UPPER_IO_PA: | ||
retval = (void *) IOP13XX_PCIE_IO_PHYS_TO_VIRT(cookie); | ||
break; | ||
case IOP13XX_PCIX_LOWER_IO_PA ... IOP13XX_PCIX_UPPER_IO_PA: | ||
retval = (void *) IOP13XX_PCIX_IO_PHYS_TO_VIRT(cookie); | ||
break; | ||
case IOP13XX_PMMR_PHYS_MEM_BASE ... IOP13XX_PMMR_UPPER_MEM_PA: | ||
retval = (void *) IOP13XX_PMMR_PHYS_TO_VIRT(cookie); | ||
break; | ||
default: | ||
retval = __ioremap(cookie, size, flags); | ||
} | ||
|
||
return retval; | ||
} | ||
EXPORT_SYMBOL(__iop13xx_ioremap); | ||
|
||
void __iop13xx_iounmap(void __iomem *addr) | ||
{ | ||
extern void __iounmap(volatile void __iomem *addr); | ||
|
||
if (iop13xx_atue_mem_base) | ||
if (addr >= (void __iomem *) iop13xx_atue_mem_base && | ||
addr < (void __iomem *) (iop13xx_atue_mem_base + | ||
iop13xx_atue_mem_size)) | ||
goto skip; | ||
|
||
if (iop13xx_atux_mem_base) | ||
if (addr >= (void __iomem *) iop13xx_atux_mem_base && | ||
addr < (void __iomem *) (iop13xx_atux_mem_base + | ||
iop13xx_atux_mem_size)) | ||
goto skip; | ||
|
||
switch ((u32) addr) { | ||
case IOP13XX_PCIE_LOWER_IO_VA ... IOP13XX_PCIE_UPPER_IO_VA: | ||
case IOP13XX_PCIX_LOWER_IO_VA ... IOP13XX_PCIX_UPPER_IO_VA: | ||
case IOP13XX_PMMR_VIRT_MEM_BASE ... IOP13XX_PMMR_UPPER_MEM_VA: | ||
goto skip; | ||
} | ||
__iounmap(addr); | ||
|
||
skip: | ||
return; | ||
} | ||
EXPORT_SYMBOL(__iop13xx_iounmap); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
/* | ||
* iq81340mc board support | ||
* Copyright (c) 2005-2006, Intel Corporation. | ||
* | ||
* This program is free software; you can redistribute it and/or modify it | ||
* under the terms and conditions of the GNU General Public License, | ||
* version 2, as published by the Free Software Foundation. | ||
* | ||
* This program is distributed in the hope 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. | ||
* | ||
* You should have received a copy of the GNU General Public License along with | ||
* this program; if not, write to the Free Software Foundation, Inc., 59 Temple | ||
* Place - Suite 330, Boston, MA 02111-1307 USA. | ||
* | ||
*/ | ||
#include <linux/pci.h> | ||
|
||
#include <asm/hardware.h> | ||
#include <asm/irq.h> | ||
#include <asm/mach/pci.h> | ||
#include <asm/mach-types.h> | ||
#include <asm/mach/arch.h> | ||
#include <asm/arch/pci.h> | ||
#include <asm/mach/time.h> | ||
|
||
extern int init_atu; /* Flag to select which ATU(s) to initialize / disable */ | ||
|
||
static int __init | ||
iq81340mc_pcix_map_irq(struct pci_dev *dev, u8 idsel, u8 pin) | ||
{ | ||
switch (idsel) { | ||
case 1: | ||
switch (pin) { | ||
case 1: return ATUX_INTB; | ||
case 2: return ATUX_INTC; | ||
case 3: return ATUX_INTD; | ||
case 4: return ATUX_INTA; | ||
default: return -1; | ||
} | ||
case 2: | ||
switch (pin) { | ||
case 1: return ATUX_INTC; | ||
case 2: return ATUX_INTD; | ||
case 3: return ATUX_INTC; | ||
case 4: return ATUX_INTD; | ||
default: return -1; | ||
} | ||
default: return -1; | ||
} | ||
} | ||
|
||
static struct hw_pci iq81340mc_pci __initdata = { | ||
.swizzle = pci_std_swizzle, | ||
.nr_controllers = 0, | ||
.setup = iop13xx_pci_setup, | ||
.map_irq = iq81340mc_pcix_map_irq, | ||
.scan = iop13xx_scan_bus, | ||
.preinit = iop13xx_pci_init, | ||
}; | ||
|
||
static int __init iq81340mc_pci_init(void) | ||
{ | ||
iop13xx_atu_select(&iq81340mc_pci); | ||
pci_common_init(&iq81340mc_pci); | ||
iop13xx_map_pci_memory(); | ||
|
||
return 0; | ||
} | ||
|
||
static void __init iq81340mc_init(void) | ||
{ | ||
iop13xx_platform_init(); | ||
iq81340mc_pci_init(); | ||
} | ||
|
||
static void __init iq81340mc_timer_init(void) | ||
{ | ||
iop13xx_init_time(400000000); | ||
} | ||
|
||
static struct sys_timer iq81340mc_timer = { | ||
.init = iq81340mc_timer_init, | ||
.offset = iop13xx_gettimeoffset, | ||
}; | ||
|
||
MACHINE_START(IQ81340MC, "Intel IQ81340MC") | ||
/* Maintainer: Dan Williams <dan.j.williams@intel.com> */ | ||
.phys_io = PHYS_IO, | ||
.io_pg_offst = IO_PG_OFFSET, | ||
.map_io = iop13xx_map_io, | ||
.init_irq = iop13xx_init_irq, | ||
.timer = &iq81340mc_timer, | ||
.boot_params = BOOT_PARAM_OFFSET, | ||
.init_machine = iq81340mc_init, | ||
MACHINE_END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
/* | ||
* iq81340sc board support | ||
* Copyright (c) 2005-2006, Intel Corporation. | ||
* | ||
* This program is free software; you can redistribute it and/or modify it | ||
* under the terms and conditions of the GNU General Public License, | ||
* version 2, as published by the Free Software Foundation. | ||
* | ||
* This program is distributed in the hope 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. | ||
* | ||
* You should have received a copy of the GNU General Public License along with | ||
* this program; if not, write to the Free Software Foundation, Inc., 59 Temple | ||
* Place - Suite 330, Boston, MA 02111-1307 USA. | ||
* | ||
*/ | ||
#include <linux/pci.h> | ||
|
||
#include <asm/hardware.h> | ||
#include <asm/irq.h> | ||
#include <asm/mach/pci.h> | ||
#include <asm/mach-types.h> | ||
#include <asm/mach/arch.h> | ||
#include <asm/arch/pci.h> | ||
#include <asm/mach/time.h> | ||
|
||
extern int init_atu; | ||
|
||
static int __init | ||
iq81340sc_atux_map_irq(struct pci_dev *dev, u8 idsel, u8 pin) | ||
{ | ||
WARN_ON(idsel < 1 || idsel > 2); | ||
|
||
switch (idsel) { | ||
case 1: | ||
switch (pin) { | ||
case 1: return ATUX_INTB; | ||
case 2: return ATUX_INTC; | ||
case 3: return ATUX_INTD; | ||
case 4: return ATUX_INTA; | ||
default: return -1; | ||
} | ||
case 2: | ||
switch (pin) { | ||
case 1: return ATUX_INTC; | ||
case 2: return ATUX_INTC; | ||
case 3: return ATUX_INTC; | ||
case 4: return ATUX_INTC; | ||
default: return -1; | ||
} | ||
default: return -1; | ||
} | ||
} | ||
|
||
static struct hw_pci iq81340sc_pci __initdata = { | ||
.swizzle = pci_std_swizzle, | ||
.nr_controllers = 0, | ||
.setup = iop13xx_pci_setup, | ||
.scan = iop13xx_scan_bus, | ||
.map_irq = iq81340sc_atux_map_irq, | ||
.preinit = iop13xx_pci_init | ||
}; | ||
|
||
static int __init iq81340sc_pci_init(void) | ||
{ | ||
iop13xx_atu_select(&iq81340sc_pci); | ||
pci_common_init(&iq81340sc_pci); | ||
iop13xx_map_pci_memory(); | ||
|
||
return 0; | ||
} | ||
|
||
static void __init iq81340sc_init(void) | ||
{ | ||
iop13xx_platform_init(); | ||
iq81340sc_pci_init(); | ||
} | ||
|
||
static void __init iq81340sc_timer_init(void) | ||
{ | ||
iop13xx_init_time(400000000); | ||
} | ||
|
||
static struct sys_timer iq81340sc_timer = { | ||
.init = iq81340sc_timer_init, | ||
.offset = iop13xx_gettimeoffset, | ||
}; | ||
|
||
MACHINE_START(IQ81340SC, "Intel IQ81340SC") | ||
/* Maintainer: Dan Williams <dan.j.williams@intel.com> */ | ||
.phys_io = PHYS_IO, | ||
.io_pg_offst = IO_PG_OFFSET, | ||
.map_io = iop13xx_map_io, | ||
.init_irq = iop13xx_init_irq, | ||
.timer = &iq81340sc_timer, | ||
.boot_params = BOOT_PARAM_OFFSET, | ||
.init_machine = iq81340sc_init, | ||
MACHINE_END |
Oops, something went wrong.