Changeset 4aa2a27 in mainline for kernel/arch
- Timestamp:
- 2014-01-07T11:29:16Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4edd71f6
- Parents:
- fd07e57b (diff), 226f72e (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - Location:
- kernel/arch/arm32
- Files:
-
- 2 added
- 8 edited
-
Makefile.inc (modified) (1 diff)
-
_link.ld.in (modified) (1 diff)
-
include/arch/cp15.h (modified) (1 diff)
-
include/arch/mach/integratorcp/integratorcp.h (modified) (1 diff)
-
include/arch/mach/raspberrypi/raspberrypi.h (added)
-
include/arch/mm/frame.h (modified) (1 diff)
-
include/arch/mm/page_armv6.h (modified) (1 diff)
-
src/mach/integratorcp/integratorcp.c (modified) (4 diffs)
-
src/mach/raspberrypi/raspberrypi.c (added)
-
src/machine_func.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/arm32/Makefile.inc
rfd07e57b r4aa2a27 89 89 endif 90 90 91 ifeq ($(MACHINE),raspberrypi) 92 ARCH_SOURCES += arch/$(KARCH)/src/mach/raspberrypi/raspberrypi.c 93 endif 94 91 95 ifeq ($(CONFIG_PL050),y) 92 96 ARCH_SOURCES += genarch/src/drivers/pl050/pl050.c -
kernel/arch/arm32/_link.ld.in
rfd07e57b r4aa2a27 13 13 #elif defined MACHINE_beaglebone 14 14 #define KERNEL_LOAD_ADDRESS 0x80a00000 15 #elif defined MACHINE_raspberrypi 16 #define KERNEL_LOAD_ADDRESS 0x80a08000 15 17 #else 16 18 #define KERNEL_LOAD_ADDRESS 0x80a00000 -
kernel/arch/arm32/include/arch/cp15.h
rfd07e57b r4aa2a27 231 231 SCTLR_FAST_IRQ_EN_FLAG = 1 << 21, /* Disable impl. specific feat*/ 232 232 SCTLR_UNALIGNED_EN_FLAG = 1 << 22, /* Must be 1 on armv7 */ 233 SCTLR_EXTENDED_PT_EN_FLAG = 1 << 23, 233 234 SCTLR_IRQ_VECTORS_EN_FLAG = 1 << 24, 234 235 SCTLR_BIG_ENDIAN_EXC_FLAG = 1 << 25, -
kernel/arch/arm32/include/arch/mach/integratorcp/integratorcp.h
rfd07e57b r4aa2a27 46 46 #define ICP_IRQC_MAX_IRQ 8 47 47 #define ICP_KBD_IRQ 3 48 #define ICP_TIMER_IRQ 6 48 #define ICP_TIMER_IRQ 6 49 #define ICP_UART0_IRQ 1 49 50 50 51 /** Timer frequency */ -
kernel/arch/arm32/include/arch/mm/frame.h
rfd07e57b r4aa2a27 63 63 #define BOOT_PAGE_TABLE_ADDRESS 0x80008000 64 64 65 #elif defined MACHINE_raspberrypi 66 67 #define PHYSMEM_START_ADDR 0x00000000 68 #define BOOT_PAGE_TABLE_ADDRESS 0x00010000 69 65 70 #else 66 71 -
kernel/arch/arm32/include/arch/mm/page_armv6.h
rfd07e57b r4aa2a27 278 278 } 279 279 280 #if defined(PROCESSOR_ARCH_armv6) 281 /* FIXME: this disables caches */ 282 p->shareable = 1; 283 #else 280 284 /* Shareable is ignored for devices (non-cacheable), 281 285 * turn it off for normal memory. */ 282 286 p->shareable = 0; 287 #endif 283 288 284 289 p->non_global = !(flags & PAGE_GLOBAL); -
kernel/arch/arm32/src/mach/integratorcp/integratorcp.c
rfd07e57b r4aa2a27 37 37 #include <ipc/irq.h> 38 38 #include <console/chardev.h> 39 #include <genarch/drivers/pl011/pl011.h> 39 40 #include <genarch/drivers/pl050/pl050.h> 40 #include <genarch/drivers/arm926_uart/arm926_uart.h>41 41 #include <genarch/kbrd/kbrd.h> 42 42 #include <genarch/srln/srln.h> … … 61 61 icp_hw_map_t hw_map; 62 62 irq_t timer_irq; 63 arm926_uart_t uart;63 pl011_uart_t uart; 64 64 } icp; 65 65 … … 315 315 stdout_wire(fbdev); 316 316 #endif 317 #ifdef CONFIG_ARM926_UART 318 if (arm926_uart_init(&icp.uart, ARM926_UART0_IRQ, 319 ARM926_UART0_BASE_ADDRESS, sizeof(arm926_uart_regs_t))) 317 #ifdef CONFIG_PL011_UART 318 if (pl011_uart_init(&icp.uart, ICP_UART0_IRQ, ICP_UART)) 320 319 stdout_wire(&icp.uart.outdev); 321 320 #endif … … 351 350 ICP_KBD); 352 351 353 #ifdef CONFIG_ ARM926_UART352 #ifdef CONFIG_PL011_UART 354 353 srln_instance_t *srln_instance = srln_init(); 355 354 if (srln_instance) { 356 355 indev_t *sink = stdin_wire(); 357 356 indev_t *srln = srln_wire(srln_instance, sink); 358 arm926_uart_input_wire(&icp.uart, srln);359 icp_irqc_unmask(ARM926_UART0_IRQ);357 pl011_uart_input_wire(&icp.uart, srln); 358 icp_irqc_unmask(ICP_UART0_IRQ); 360 359 } 361 360 #endif -
kernel/arch/arm32/src/machine_func.c
rfd07e57b r4aa2a27 43 43 #include <arch/mach/beagleboardxm/beagleboardxm.h> 44 44 #include <arch/mach/beaglebone/beaglebone.h> 45 #include <arch/mach/raspberrypi/raspberrypi.h> 45 46 46 47 /** Pointer to machine_ops structure being used. */ … … 58 59 #elif defined(MACHINE_beaglebone) 59 60 machine_ops = &bbone_machine_ops; 61 #elif defined(MACHINE_raspberrypi) 62 machine_ops = &raspberrypi_machine_ops; 60 63 #else 61 64 #error Machine type not defined.
Note:
See TracChangeset
for help on using the changeset viewer.
