Файловый менеджер - Редактировать - /var/www/html/mach-ep93xx.zip
Ðазад
PK ! 0(s� � include/mach/ep93xx-regs.hnu �[��� /* SPDX-License-Identifier: GPL-2.0 */ /* * arch/arm/mach-ep93xx/include/mach/ep93xx-regs.h */ #ifndef __ASM_ARCH_EP93XX_REGS_H #define __ASM_ARCH_EP93XX_REGS_H /* * EP93xx linux memory map: * * virt phys size * fe800000 5M per-platform mappings * fed00000 80800000 2M APB * fef00000 80000000 1M AHB */ #define EP93XX_AHB_PHYS_BASE 0x80000000 #define EP93XX_AHB_VIRT_BASE 0xfef00000 #define EP93XX_AHB_SIZE 0x00100000 #define EP93XX_AHB_PHYS(x) (EP93XX_AHB_PHYS_BASE + (x)) #define EP93XX_AHB_IOMEM(x) IOMEM(EP93XX_AHB_VIRT_BASE + (x)) #define EP93XX_APB_PHYS_BASE 0x80800000 #define EP93XX_APB_VIRT_BASE 0xfed00000 #define EP93XX_APB_SIZE 0x00200000 #define EP93XX_APB_PHYS(x) (EP93XX_APB_PHYS_BASE + (x)) #define EP93XX_APB_IOMEM(x) IOMEM(EP93XX_APB_VIRT_BASE + (x)) /* APB UARTs */ #define EP93XX_UART1_PHYS_BASE EP93XX_APB_PHYS(0x000c0000) #define EP93XX_UART1_BASE EP93XX_APB_IOMEM(0x000c0000) #define EP93XX_UART2_PHYS_BASE EP93XX_APB_PHYS(0x000d0000) #define EP93XX_UART2_BASE EP93XX_APB_IOMEM(0x000d0000) #define EP93XX_UART3_PHYS_BASE EP93XX_APB_PHYS(0x000e0000) #define EP93XX_UART3_BASE EP93XX_APB_IOMEM(0x000e0000) #endif PK ! iZ&8 8 include/mach/uncompress.hnu �[��� /* SPDX-License-Identifier: GPL-2.0-or-later */ /* * arch/arm/mach-ep93xx/include/mach/uncompress.h * * Copyright (C) 2006 Lennert Buytenhek <buytenh@wantstofly.org> */ #include <mach/ep93xx-regs.h> #include <asm/mach-types.h> static unsigned char __raw_readb(unsigned int ptr) { return *((volatile unsigned char *)ptr); } static unsigned int __raw_readl(unsigned int ptr) { return *((volatile unsigned int *)ptr); } static void __raw_writeb(unsigned char value, unsigned int ptr) { *((volatile unsigned char *)ptr) = value; } static void __raw_writel(unsigned int value, unsigned int ptr) { *((volatile unsigned int *)ptr) = value; } #define PHYS_UART_DATA (CONFIG_DEBUG_UART_PHYS + 0x00) #define PHYS_UART_FLAG (CONFIG_DEBUG_UART_PHYS + 0x18) #define UART_FLAG_TXFF 0x20 static inline void putc(int c) { int i; for (i = 0; i < 10000; i++) { /* Transmit fifo not full? */ if (!(__raw_readb(PHYS_UART_FLAG) & UART_FLAG_TXFF)) break; } __raw_writeb(c, PHYS_UART_DATA); } static inline void flush(void) { } /* * Some bootloaders don't turn off DMA from the ethernet MAC before * jumping to linux, which means that we might end up with bits of RX * status and packet data scribbled over the uncompressed kernel image. * Work around this by resetting the ethernet MAC before we uncompress. */ #define PHYS_ETH_SELF_CTL 0x80010020 #define ETH_SELF_CTL_RESET 0x00000001 static void ethernet_reset(void) { unsigned int v; /* Reset the ethernet MAC. */ v = __raw_readl(PHYS_ETH_SELF_CTL); __raw_writel(v | ETH_SELF_CTL_RESET, PHYS_ETH_SELF_CTL); /* Wait for reset to finish. */ while (__raw_readl(PHYS_ETH_SELF_CTL) & ETH_SELF_CTL_RESET) ; } #define TS72XX_WDT_CONTROL_PHYS_BASE 0x23800000 #define TS72XX_WDT_FEED_PHYS_BASE 0x23c00000 #define TS72XX_WDT_FEED_VAL 0x05 static void __maybe_unused ts72xx_watchdog_disable(void) { __raw_writeb(TS72XX_WDT_FEED_VAL, TS72XX_WDT_FEED_PHYS_BASE); __raw_writeb(0, TS72XX_WDT_CONTROL_PHYS_BASE); } static void arch_decomp_setup(void) { if (machine_is_ts72xx()) ts72xx_watchdog_disable(); ethernet_reset(); } PK ! v7iׂ � include/mach/irqs.hnu �[��� /* SPDX-License-Identifier: GPL-2.0 */ /* * arch/arm/mach-ep93xx/include/mach/irqs.h */ #ifndef __ASM_ARCH_IRQS_H #define __ASM_ARCH_IRQS_H #define IRQ_EP93XX_COMMRX 2 #define IRQ_EP93XX_COMMTX 3 #define IRQ_EP93XX_TIMER1 4 #define IRQ_EP93XX_TIMER2 5 #define IRQ_EP93XX_AACINTR 6 #define IRQ_EP93XX_DMAM2P0 7 #define IRQ_EP93XX_DMAM2P1 8 #define IRQ_EP93XX_DMAM2P2 9 #define IRQ_EP93XX_DMAM2P3 10 #define IRQ_EP93XX_DMAM2P4 11 #define IRQ_EP93XX_DMAM2P5 12 #define IRQ_EP93XX_DMAM2P6 13 #define IRQ_EP93XX_DMAM2P7 14 #define IRQ_EP93XX_DMAM2P8 15 #define IRQ_EP93XX_DMAM2P9 16 #define IRQ_EP93XX_DMAM2M0 17 #define IRQ_EP93XX_DMAM2M1 18 #define IRQ_EP93XX_GPIO0MUX 19 #define IRQ_EP93XX_GPIO1MUX 20 #define IRQ_EP93XX_GPIO2MUX 21 #define IRQ_EP93XX_GPIO3MUX 22 #define IRQ_EP93XX_UART1RX 23 #define IRQ_EP93XX_UART1TX 24 #define IRQ_EP93XX_UART2RX 25 #define IRQ_EP93XX_UART2TX 26 #define IRQ_EP93XX_UART3RX 27 #define IRQ_EP93XX_UART3TX 28 #define IRQ_EP93XX_KEY 29 #define IRQ_EP93XX_TOUCH 30 #define EP93XX_VIC1_VALID_IRQ_MASK 0x7ffffffc #define IRQ_EP93XX_EXT0 32 #define IRQ_EP93XX_EXT1 33 #define IRQ_EP93XX_EXT2 34 #define IRQ_EP93XX_64HZ 35 #define IRQ_EP93XX_WATCHDOG 36 #define IRQ_EP93XX_RTC 37 #define IRQ_EP93XX_IRDA 38 #define IRQ_EP93XX_ETHERNET 39 #define IRQ_EP93XX_EXT3 40 #define IRQ_EP93XX_PROG 41 #define IRQ_EP93XX_1HZ 42 #define IRQ_EP93XX_VSYNC 43 #define IRQ_EP93XX_VIDEO_FIFO 44 #define IRQ_EP93XX_SSP1RX 45 #define IRQ_EP93XX_SSP1TX 46 #define IRQ_EP93XX_GPIO4MUX 47 #define IRQ_EP93XX_GPIO5MUX 48 #define IRQ_EP93XX_GPIO6MUX 49 #define IRQ_EP93XX_GPIO7MUX 50 #define IRQ_EP93XX_TIMER3 51 #define IRQ_EP93XX_UART1 52 #define IRQ_EP93XX_SSP 53 #define IRQ_EP93XX_UART2 54 #define IRQ_EP93XX_UART3 55 #define IRQ_EP93XX_USB 56 #define IRQ_EP93XX_ETHERNET_PME 57 #define IRQ_EP93XX_DSP 58 #define IRQ_EP93XX_GPIO_AB 59 #define IRQ_EP93XX_SAI 60 #define EP93XX_VIC2_VALID_IRQ_MASK 0x1fffffff #define NR_EP93XX_IRQS (64 + 24) #define EP93XX_BOARD_IRQ(x) (NR_EP93XX_IRQS + (x)) #define EP93XX_BOARD_IRQS 32 #define NR_IRQS (NR_EP93XX_IRQS + EP93XX_BOARD_IRQS) #endif PK ! �<[� � Kconfignu �[��� # SPDX-License-Identifier: GPL-2.0-only if ARCH_EP93XX menu "Cirrus EP93xx Implementation Options" config EP93XX_SOC_COMMON bool default y select SOC_BUS select LEDS_GPIO_REGISTER comment "EP93xx Platforms" config MACH_ADSSPHERE bool "Support ADS Sphere" help Say 'Y' here if you want your kernel to support the ADS Sphere board. config MACH_BK3 bool "Support Liebherr BK3.1" select MACH_TS72XX help Say 'Y' here if you want your kernel to support the Liebherr controller BK3.1. config MACH_EDB93XX bool config MACH_EDB9301 bool "Support Cirrus Logic EDB9301" select MACH_EDB93XX help Say 'Y' here if you want your kernel to support the Cirrus Logic EDB9301 Evaluation Board. config MACH_EDB9302 bool "Support Cirrus Logic EDB9302" select MACH_EDB93XX help Say 'Y' here if you want your kernel to support the Cirrus Logic EDB9302 Evaluation Board. config MACH_EDB9302A bool "Support Cirrus Logic EDB9302A" select MACH_EDB93XX help Say 'Y' here if you want your kernel to support the Cirrus Logic EDB9302A Evaluation Board. config MACH_EDB9307 bool "Support Cirrus Logic EDB9307" select MACH_EDB93XX help Say 'Y' here if you want your kernel to support the Cirrus Logic EDB9307 Evaluation Board. config MACH_EDB9307A bool "Support Cirrus Logic EDB9307A" select MACH_EDB93XX help Say 'Y' here if you want your kernel to support the Cirrus Logic EDB9307A Evaluation Board. config MACH_EDB9312 bool "Support Cirrus Logic EDB9312" select MACH_EDB93XX help Say 'Y' here if you want your kernel to support the Cirrus Logic EDB9312 Evaluation Board. config MACH_EDB9315 bool "Support Cirrus Logic EDB9315" select MACH_EDB93XX help Say 'Y' here if you want your kernel to support the Cirrus Logic EDB9315 Evaluation Board. config MACH_EDB9315A bool "Support Cirrus Logic EDB9315A" select MACH_EDB93XX help Say 'Y' here if you want your kernel to support the Cirrus Logic EDB9315A Evaluation Board. config MACH_GESBC9312 bool "Support Glomation GESBC-9312-sx" help Say 'Y' here if you want your kernel to support the Glomation GESBC-9312-sx board. config MACH_MICRO9 bool config MACH_MICRO9H bool "Support Contec Micro9-High" select MACH_MICRO9 help Say 'Y' here if you want your kernel to support the Contec Micro9-High board. config MACH_MICRO9M bool "Support Contec Micro9-Mid" select MACH_MICRO9 help Say 'Y' here if you want your kernel to support the Contec Micro9-Mid board. config MACH_MICRO9L bool "Support Contec Micro9-Lite" select MACH_MICRO9 help Say 'Y' here if you want your kernel to support the Contec Micro9-Lite board. config MACH_MICRO9S bool "Support Contec Micro9-Slim" select MACH_MICRO9 help Say 'Y' here if you want your kernel to support the Contec Micro9-Slim board. config MACH_SIM_ONE bool "Support Simplemachines Sim.One board" help Say 'Y' here if you want your kernel to support the Simplemachines Sim.One board. config MACH_SNAPPER_CL15 bool "Support Bluewater Systems Snapper CL15 Module" help Say 'Y' here if you want your kernel to support the Bluewater Systems Snapper CL15 Module. config MACH_TS72XX bool "Support Technologic Systems TS-72xx SBC" help Say 'Y' here if you want your kernel to support the Technologic Systems TS-72xx board. config MACH_VISION_EP9307 bool "Support Vision Engraving Systems EP9307 SoM" help Say 'Y' here if you want your kernel to support the Vision Engraving Systems EP9307 SoM. endmenu endif PK ! ���� � Makefilenu �[��� # SPDX-License-Identifier: GPL-2.0 # # Makefile for the linux kernel. # obj-y := core.o clock.o timer-ep93xx.o obj-$(CONFIG_EP93XX_DMA) += dma.o obj-$(CONFIG_MACH_ADSSPHERE) += adssphere.o obj-$(CONFIG_MACH_EDB93XX) += edb93xx.o obj-$(CONFIG_MACH_GESBC9312) += gesbc9312.o obj-$(CONFIG_MACH_MICRO9) += micro9.o obj-$(CONFIG_MACH_SIM_ONE) += simone.o obj-$(CONFIG_MACH_SNAPPER_CL15) += snappercl15.o obj-$(CONFIG_MACH_TS72XX) += ts72xx.o obj-$(CONFIG_MACH_VISION_EP9307)+= vision_ep9307.o PK ! A[n+t t Makefile.bootnu �[��� # SPDX-License-Identifier: GPL-2.0-only # Empty file waiting for deletion once Makefile.boot isn't needed any more. PK ! 0(s� � include/mach/ep93xx-regs.hnu �[��� PK ! iZ&8 8 � include/mach/uncompress.hnu �[��� PK ! v7iׂ � e include/mach/irqs.hnu �[��� PK ! �<[� � * Kconfignu �[��� PK ! ���� � Z$ Makefilenu �[��� PK ! A[n+t t ~&