Changeset 4aa2a27 in mainline for kernel/arch


Ignore:
Timestamp:
2014-01-07T11:29:16Z (12 years ago)
Author:
Jakub Jermar <jakub@…>
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.
Message:

Merge from lp:~bengal/helenos/raspberrypi.

Location:
kernel/arch/arm32
Files:
2 added
8 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/arm32/Makefile.inc

    rfd07e57b r4aa2a27  
    8989endif
    9090
     91ifeq ($(MACHINE),raspberrypi)
     92        ARCH_SOURCES += arch/$(KARCH)/src/mach/raspberrypi/raspberrypi.c
     93endif
     94
    9195ifeq ($(CONFIG_PL050),y)
    9296        ARCH_SOURCES += genarch/src/drivers/pl050/pl050.c
  • kernel/arch/arm32/_link.ld.in

    rfd07e57b r4aa2a27  
    1313#elif defined MACHINE_beaglebone
    1414#define KERNEL_LOAD_ADDRESS 0x80a00000
     15#elif defined MACHINE_raspberrypi
     16#define KERNEL_LOAD_ADDRESS 0x80a08000
    1517#else
    1618#define KERNEL_LOAD_ADDRESS 0x80a00000
  • kernel/arch/arm32/include/arch/cp15.h

    rfd07e57b r4aa2a27  
    231231        SCTLR_FAST_IRQ_EN_FLAG       = 1 << 21, /* Disable impl. specific feat*/
    232232        SCTLR_UNALIGNED_EN_FLAG      = 1 << 22, /* Must be 1 on armv7 */
     233        SCTLR_EXTENDED_PT_EN_FLAG    = 1 << 23,
    233234        SCTLR_IRQ_VECTORS_EN_FLAG    = 1 << 24,
    234235        SCTLR_BIG_ENDIAN_EXC_FLAG    = 1 << 25,
  • kernel/arch/arm32/include/arch/mach/integratorcp/integratorcp.h

    rfd07e57b r4aa2a27  
    4646#define ICP_IRQC_MAX_IRQ  8
    4747#define ICP_KBD_IRQ       3
    48 #define ICP_TIMER_IRQ    6
     48#define ICP_TIMER_IRQ     6
     49#define ICP_UART0_IRQ     1
    4950
    5051/** Timer frequency */
  • kernel/arch/arm32/include/arch/mm/frame.h

    rfd07e57b r4aa2a27  
    6363#define BOOT_PAGE_TABLE_ADDRESS  0x80008000
    6464
     65#elif defined MACHINE_raspberrypi
     66
     67#define PHYSMEM_START_ADDR       0x00000000
     68#define BOOT_PAGE_TABLE_ADDRESS  0x00010000
     69
    6570#else
    6671
  • kernel/arch/arm32/include/arch/mm/page_armv6.h

    rfd07e57b r4aa2a27  
    278278        }
    279279       
     280#if defined(PROCESSOR_ARCH_armv6)
     281        /* FIXME: this disables caches */
     282        p->shareable = 1;
     283#else
    280284        /* Shareable is ignored for devices (non-cacheable),
    281285         * turn it off for normal memory. */
    282286        p->shareable = 0;
     287#endif
    283288       
    284289        p->non_global = !(flags & PAGE_GLOBAL);
  • kernel/arch/arm32/src/mach/integratorcp/integratorcp.c

    rfd07e57b r4aa2a27  
    3737#include <ipc/irq.h>
    3838#include <console/chardev.h>
     39#include <genarch/drivers/pl011/pl011.h>
    3940#include <genarch/drivers/pl050/pl050.h>
    40 #include <genarch/drivers/arm926_uart/arm926_uart.h>
    4141#include <genarch/kbrd/kbrd.h>
    4242#include <genarch/srln/srln.h>
     
    6161        icp_hw_map_t hw_map;
    6262        irq_t timer_irq;
    63         arm926_uart_t uart;
     63        pl011_uart_t uart;
    6464} icp;
    6565
     
    315315                stdout_wire(fbdev);
    316316#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))
    320319                stdout_wire(&icp.uart.outdev);
    321320#endif
     
    351350            ICP_KBD);
    352351
    353 #ifdef CONFIG_ARM926_UART
     352#ifdef CONFIG_PL011_UART
    354353        srln_instance_t *srln_instance = srln_init();
    355354        if (srln_instance) {
    356355                indev_t *sink = stdin_wire();
    357356                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);
    360359        }
    361360#endif
  • kernel/arch/arm32/src/machine_func.c

    rfd07e57b r4aa2a27  
    4343#include <arch/mach/beagleboardxm/beagleboardxm.h>
    4444#include <arch/mach/beaglebone/beaglebone.h>
     45#include <arch/mach/raspberrypi/raspberrypi.h>
    4546
    4647/** Pointer to machine_ops structure being used. */
     
    5859#elif defined(MACHINE_beaglebone)
    5960        machine_ops = &bbone_machine_ops;
     61#elif defined(MACHINE_raspberrypi)
     62        machine_ops = &raspberrypi_machine_ops;
    6063#else
    6164#error Machine type not defined.
Note: See TracChangeset for help on using the changeset viewer.