Changeset fcc6224 in mainline
- Timestamp:
- 2012-03-05T21:37:27Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 161fbda
- Parents:
- d2707fc
- Location:
- boot/arch/arm32
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/arch/arm32/include/arch.h
rd2707fc rfcc6224 42 42 #ifdef MACHINE_gta02 43 43 #define BOOT_BASE 0x30008000 44 #elif defined MACHINE_beagleboardxm 45 #define BOOT_BASE 0x80000000 44 46 #else 45 47 #define BOOT_BASE 0x00000000 … … 47 49 48 50 #define BOOT_OFFSET (BOOT_BASE + 0xa00000) 51 52 #ifdef MACHINE_beagleboardxm 53 #define PA2KA(addr) (addr) 54 #else 49 55 50 56 #ifndef __ASM__ … … 56 62 #endif 57 63 64 #endif 65 58 66 /** @} 59 67 */ -
boot/arch/arm32/include/main.h
rd2707fc rfcc6224 40 40 /** Address where characters to be printed are expected. */ 41 41 42 43 /** BeagleBoard-xM UART register address 44 * 45 * This is UART3 of AM/DM37x CPU 46 */ 47 #define BBXM_SCONS_THR 0x49020000 48 #define BBXM_SCONS_SSR 0x49020044 49 50 /* Check this bit before writing (tx fifo full) */ 51 #define BBXM_THR_FULL 0x00000001 52 53 42 54 /** GTA02 serial console UART register addresses. 43 55 * -
boot/arch/arm32/src/mm.c
rd2707fc rfcc6224 67 67 static void init_boot_pt(void) 68 68 { 69 pfn_t split_page = 0x800; 70 69 /* BeagleBoard-xM (MD37x) memory starts at 2GB border, 70 * thus mapping only lower 2GB is not not enough. 71 * Map entire AS 1:1 instead and hope it works. */ 72 #ifdef MACHINE_beagleboardxm 73 const pfn_t split_page = PTL0_ENTRIES; 74 #else 75 const pfn_t split_page = 0x800; 76 #endif 71 77 /* Create 1:1 virtual-physical mapping (in lower 2 GB). */ 72 78 pfn_t page; -
boot/arch/arm32/src/putchar.c
rd2707fc rfcc6224 40 40 #include <putchar.h> 41 41 #include <str.h> 42 43 #ifdef MACHINE_beagleboardxm 44 45 /** Send a byte to the amdm37x serial console. 46 * 47 * @param byte Byte to send. 48 */ 49 static void scons_sendb_bbxm(uint8_t byte) 50 { 51 volatile uint32_t *thr = 52 (volatile uint32_t *)BBXM_SCONS_THR; 53 volatile uint32_t *ssr = 54 (volatile uint32_t *)BBXM_SCONS_SSR; 55 56 /* Wait until transmitter is empty. */ 57 while ((*ssr & BBXM_THR_FULL) == 1) ; 58 59 /* Transmit byte. */ 60 *thr = (uint32_t) byte; 61 } 62 63 #endif 42 64 43 65 #ifdef MACHINE_gta02 … … 97 119 static void scons_sendb(uint8_t byte) 98 120 { 121 #ifdef MACHINE_beagleboardxm 122 scons_sendb_bbxm(byte); 123 #endif 99 124 #ifdef MACHINE_gta02 100 125 scons_sendb_gta02(byte);
Note:
See TracChangeset
for help on using the changeset viewer.