Changes in / [eef14771:716357f] in mainline
- Files:
-
- 4 added
- 3 deleted
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
HelenOS.config
reef14771 r716357f 487 487 ! [PLATFORM=arm32&MACHINE=gta02] CONFIG_S3C24XX_IRQC (y) 488 488 489 % Support for TI AM335x on-chip UART 490 ! [(CONFIG_HID_OUT=generic|CONFIG_HID_OUT=serial)&PLATFORM=arm32&MACHINE=beaglebone] CONFIG_AM335X_UART (y/n) 491 489 492 % Support for TI AM335x timers support 490 493 ! [PLATFORM=arm32&MACHINE=beaglebone] CONFIG_AM335X_TIMERS (y) 491 494 492 % Support for OMAPon-chip UART493 ! [(CONFIG_HID_OUT=generic|CONFIG_HID_OUT=serial)&PLATFORM=arm32& (MACHINE=beagleboardxm|MACHINE=beaglebone)] CONFIG_OMAP_UART (y/n)495 % Support for TI AMDM37x on-chip UART 496 ! [(CONFIG_HID_OUT=generic|CONFIG_HID_OUT=serial)&PLATFORM=arm32&MACHINE=beagleboardxm] CONFIG_AMDM37X_UART (y/n) 494 497 495 498 % Support for i8042 controller … … 512 515 513 516 % Serial line input module 514 ! [CONFIG_DSRLNIN=y|(PLATFORM=arm32&MACHINE=gta02)|(PLATFORM=arm32&MACHINE=integratorcp&CONFIG_ARM926_UART=y)|(PLATFORM=arm32&MACHINE=beaglebone&CONFIG_ OMAP_UART=y)|(PLATFORM=arm32&MACHINE=beagleboardxm&CONFIG_OMAP_UART=y)|(PLATFORM=ia64&MACHINE=i460GX&CONFIG_NS16550=y)|(PLATFORM=ia64&MACHINE=ski)|(PLATFORM=sparc64&PROCESSOR=sun4v)] CONFIG_SRLN (y)517 ! [CONFIG_DSRLNIN=y|(PLATFORM=arm32&MACHINE=gta02)|(PLATFORM=arm32&MACHINE=integratorcp&CONFIG_ARM926_UART=y)|(PLATFORM=arm32&MACHINE=beaglebone&CONFIG_AM335X_UART=y)|(PLATFORM=arm32&MACHINE=beagleboardxm&CONFIG_AMDM37X_UART=y)|(PLATFORM=ia64&MACHINE=i460GX&CONFIG_NS16550=y)|(PLATFORM=ia64&MACHINE=ski)|(PLATFORM=sparc64&PROCESSOR=sun4v)] CONFIG_SRLN (y) 515 518 516 519 % EGA support -
kernel/arch/arm32/src/mach/beagleboardxm/beagleboardxm.c
reef14771 r716357f 61 61 static struct beagleboard { 62 62 amdm37x_irc_regs_t *irc_addr; 63 omap_uart_t uart;63 amdm37x_uart_t uart; 64 64 amdm37x_gpt_t timer; 65 65 } beagleboard; … … 167 167 static void bbxm_output_init(void) 168 168 { 169 #ifdef CONFIG_OMAP_UART170 169 /* UART3 is wired to external RS232 connector */ 171 const bool ok = omap_uart_init(&beagleboard.uart,170 const bool ok = amdm37x_uart_init(&beagleboard.uart, 172 171 AMDM37x_UART3_IRQ, AMDM37x_UART3_BASE_ADDRESS, AMDM37x_UART3_SIZE); 173 172 if (ok) { 174 173 stdout_wire(&beagleboard.uart.outdev); 175 174 } 176 #endif177 175 } 178 176 179 177 static void bbxm_input_init(void) 180 178 { 181 #ifdef CONFIG_OMAP_UART182 179 srln_instance_t *srln_instance = srln_init(); 183 180 if (srln_instance) { 184 181 indev_t *sink = stdin_wire(); 185 182 indev_t *srln = srln_wire(srln_instance, sink); 186 omap_uart_input_wire(&beagleboard.uart, srln);183 amdm37x_uart_input_wire(&beagleboard.uart, srln); 187 184 amdm37x_irc_enable(beagleboard.irc_addr, AMDM37x_UART3_IRQ); 188 185 } 189 #endif190 186 } 191 187 -
kernel/arch/arm32/src/mach/beaglebone/beaglebone.c
reef14771 r716357f 68 68 am335x_ctrl_module_t *ctrl_module; 69 69 am335x_timer_t timer; 70 omap_uart_t uart;70 am335x_uart_t uart; 71 71 } bbone; 72 72 … … 195 195 static void bbone_output_init(void) 196 196 { 197 #ifdef CONFIG_OMAP_UART 198 const bool ok = omap_uart_init(&bbone.uart, 197 const bool ok = am335x_uart_init(&bbone.uart, 199 198 AM335x_UART0_IRQ, AM335x_UART0_BASE_ADDRESS, 200 199 AM335x_UART0_SIZE); … … 202 201 if (ok) 203 202 stdout_wire(&bbone.uart.outdev); 204 #endif205 203 } 206 204 207 205 static void bbone_input_init(void) 208 206 { 209 #ifdef CONFIG_OMAP_UART210 207 srln_instance_t *srln_instance = srln_init(); 211 208 if (srln_instance) { 212 209 indev_t *sink = stdin_wire(); 213 210 indev_t *srln = srln_wire(srln_instance, sink); 214 omap_uart_input_wire(&bbone.uart, srln);211 am335x_uart_input_wire(&bbone.uart, srln); 215 212 am335x_irc_enable(bbone.irc_addr, AM335x_UART0_IRQ); 216 213 } 217 #endif218 214 } 219 215 -
kernel/genarch/Makefile.inc
reef14771 r716357f 105 105 endif 106 106 107 ifeq ($(CONFIG_ OMAP_UART),y)107 ifeq ($(CONFIG_AM335X_UART),y) 108 108 GENARCH_SOURCES += \ 109 genarch/src/drivers/ omap/uart.c109 genarch/src/drivers/am335x/uart.c 110 110 endif 111 111 … … 113 113 GENARCH_SOURCES += \ 114 114 genarch/src/drivers/am335x/timer.c 115 endif 116 117 ifeq ($(CONFIG_AMDM37X_UART),y) 118 GENARCH_SOURCES += \ 119 genarch/src/drivers/amdm37x/uart.c 115 120 endif 116 121 -
kernel/genarch/include/genarch/drivers/am335x/uart.h
reef14771 r716357f 37 37 #define _KERN_AM335X_UART_H_ 38 38 39 #include <genarch/drivers/omap/uart.h>39 #include "uart_regs.h" 40 40 41 41 #define AM335x_UART0_BASE_ADDRESS 0x44E09000 … … 63 63 #define AM335x_UART5_IRQ 46 64 64 65 typedef struct { 66 am335x_uart_regs_t *regs; 67 indev_t *indev; 68 outdev_t outdev; 69 irq_t irq; 70 } am335x_uart_t; 71 72 #ifdef CONFIG_AM335X_UART 73 extern bool am335x_uart_init(am335x_uart_t *uart, inr_t interrupt, 74 uintptr_t addr, size_t size); 75 76 extern void am335x_uart_input_wire(am335x_uart_t *uart, indev_t *indev); 77 #else 78 static bool am335x_uart_init(am335x_uart_t *uart, inr_t interrupt, 79 uintptr_t addr, size_t size) 80 { return true; } 81 82 static void am335x_uart_input_wire(am335x_uart_t *uart, indev_t *indev) {} 83 #endif 84 65 85 #endif 66 86 -
kernel/genarch/include/genarch/drivers/amdm37x/uart.h
reef14771 r716357f 37 37 #define _AMDM37x_UART_H_ 38 38 39 #include <genarch/drivers/omap/uart.h>39 #include "uart_regs.h" 40 40 41 41 /* AMDM37x TRM p. 2950 */ … … 56 56 #define AMDM37x_UART4_IRQ 80 /* AMDM37x TRM p. 2418 */ 57 57 58 typedef struct { 59 amdm37x_uart_regs_t *regs; 60 indev_t *indev; 61 outdev_t outdev; 62 irq_t irq; 63 } amdm37x_uart_t; 64 65 66 bool amdm37x_uart_init(amdm37x_uart_t *, inr_t, uintptr_t, size_t); 67 void amdm37x_uart_input_wire(amdm37x_uart_t *, indev_t *); 68 58 69 #endif 59 70
Note:
See TracChangeset
for help on using the changeset viewer.