Squash commits for public release
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
#ifndef _KERNEL_PLATFORM_ARM32_TARGET_CORTEX_A15_DEVICE_SETTINGS_H
|
||||
#define _KERNEL_PLATFORM_ARM32_TARGET_CORTEX_A15_DEVICE_SETTINGS_H
|
||||
|
||||
/**
|
||||
* Used devices:
|
||||
* uart
|
||||
* gicv2
|
||||
* sp804
|
||||
* pl181
|
||||
* pl111
|
||||
* pl050
|
||||
* pl031
|
||||
*/
|
||||
|
||||
/* Base is read from CBAR */
|
||||
#define GICv2_DISTRIBUTOR_OFFSET 0x1000
|
||||
#define GICv2_CPU_INTERFACE_OFFSET 0x2000
|
||||
|
||||
#define UART_BASE 0x1c090000
|
||||
|
||||
#define SP804_BASE 0x1c110000
|
||||
|
||||
#define PL181_BASE 0x1c050000
|
||||
|
||||
#define PL111_BASE 0x1c1f0000
|
||||
|
||||
#define PL050_KEYBOARD_BASE 0x1c060000
|
||||
|
||||
#define PL050_MOUSE_BASE 0x1c070000
|
||||
|
||||
#define PL031_BASE 0x1c170000
|
||||
|
||||
/**
|
||||
* Interrupt lines:
|
||||
* SP804 TIMER1: 2nd line in SPI (32+2)
|
||||
*/
|
||||
|
||||
#define SP804_TIMER1_IRQ_LINE (32 + 2)
|
||||
|
||||
#define PL050_KEYBOARD_IRQ_LINE (32 + 12)
|
||||
#define PL050_MOUSE_IRQ_LINE (32 + 13)
|
||||
|
||||
#endif /* _KERNEL_PLATFORM_ARM32_TARGET_CORTEX_A15_DEVICE_SETTINGS_H */
|
||||
8
kernel/include/platform/arm32/target/cortex-a15/memmap.h
Normal file
8
kernel/include/platform/arm32/target/cortex-a15/memmap.h
Normal file
@@ -0,0 +1,8 @@
|
||||
#ifndef _KERNEL_PLATFORM_ARM32_TARGET_CORTEX_A15_MEMMAP_H
|
||||
#define _KERNEL_PLATFORM_ARM32_TARGET_CORTEX_A15_MEMMAP_H
|
||||
|
||||
#define KMALLOC_BASE (KERNEL_BASE + 0x400000)
|
||||
|
||||
extern struct memory_map* arm_memmap;
|
||||
|
||||
#endif /* _KERNEL_PLATFORM_ARM32_TARGET_CORTEX_A15_MEMMAP_H */
|
||||
6
kernel/include/platform/arm32/target/cpu_part_numbers.h
Normal file
6
kernel/include/platform/arm32/target/cpu_part_numbers.h
Normal file
@@ -0,0 +1,6 @@
|
||||
#ifndef _KERNEL_PLATFORM_ARM32_TARGET_CPU_PART_NUMBERS_H
|
||||
#define _KERNEL_PLATFORM_ARM32_TARGET_CPU_PART_NUMBERS_H
|
||||
|
||||
#define PART_NUMBER_CORTEX_A15 (0xC0F)
|
||||
|
||||
#endif // _KERNEL_PLATFORM_ARM32_TARGET_CPU_PART_NUMBERS_H
|
||||
@@ -0,0 +1,6 @@
|
||||
#ifndef _KERNEL_PLATFORM_ARM32_TARGET_GENERAL_CORE_SETUP_H
|
||||
#define _KERNEL_PLATFORM_ARM32_TARGET_GENERAL_CORE_SETUP_H
|
||||
|
||||
int cortex_a15_setup();
|
||||
|
||||
#endif // _KERNEL_PLATFORM_ARM32_TARGET_GENERAL_CORE_SETUP_H
|
||||
Reference in New Issue
Block a user