board_tsc4370.c (173361) | board_tsc4370.c (174880) |
---|---|
1/*- 2 * Copyright (c) 1994-1998 Mark Brinicombe. 3 * Copyright (c) 1994 Brini. 4 * All rights reserved. 5 * 6 * This code is derived from software written for Brini by Mark Brinicombe 7 * 8 * Redistribution and use in source and binary forms, with or without --- 34 unchanged lines hidden (view full) --- 43 * Created : 17/09/94 44 */ 45 46#include "opt_msgbuf.h" 47#include "opt_ddb.h" 48#include "opt_at91.h" 49 50#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1994-1998 Mark Brinicombe. 3 * Copyright (c) 1994 Brini. 4 * All rights reserved. 5 * 6 * This code is derived from software written for Brini by Mark Brinicombe 7 * 8 * Redistribution and use in source and binary forms, with or without --- 34 unchanged lines hidden (view full) --- 43 * Created : 17/09/94 44 */ 45 46#include "opt_msgbuf.h" 47#include "opt_ddb.h" 48#include "opt_at91.h" 49 50#include <sys/cdefs.h> |
51__FBSDID("$FreeBSD: head/sys/arm/at91/kb920x_machdep.c 173361 2007-11-05 11:36:16Z kib $"); | 51__FBSDID("$FreeBSD: head/sys/arm/at91/kb920x_machdep.c 174880 2007-12-23 23:31:27Z stas $"); |
52 53#define _ARM32_BUS_DMA_PRIVATE 54#include <sys/param.h> 55#include <sys/systm.h> 56#include <sys/sysproto.h> 57#include <sys/signalvar.h> 58#include <sys/imgact.h> 59#include <sys/kernel.h> --- 148 unchanged lines hidden (view full) --- 208 cols = (cr & AT91RM92_SDRAMC_CR_NC_MASK) + 8; 209 return (1 << (cols + rows + banks + bw)); 210} 211 212static long 213board_init(void) 214{ 215 /* | 52 53#define _ARM32_BUS_DMA_PRIVATE 54#include <sys/param.h> 55#include <sys/systm.h> 56#include <sys/sysproto.h> 57#include <sys/signalvar.h> 58#include <sys/imgact.h> 59#include <sys/kernel.h> --- 148 unchanged lines hidden (view full) --- 208 cols = (cr & AT91RM92_SDRAMC_CR_NC_MASK) + 8; 209 return (1 << (cols + rows + banks + bw)); 210} 211 212static long 213board_init(void) 214{ 215 /* |
216 * Since the USART supprots RS-485 multidrop mode, it allows the | 216 * Since the USART supports RS-485 multidrop mode, it allows the |
217 * TX pins to float. However, for RS-232 operations, we don't want 218 * these pins to float. Instead, they should be pulled up to avoid 219 * mismatches. Linux does something similar when it configures the 220 * TX lines. This implies that we also allow the RX lines to float 221 * rather than be in the state they are left in by the boot loader. 222 * Since they are input pins, I think that this is the right thing 223 * to do. 224 */ --- 271 unchanged lines hidden --- | 217 * TX pins to float. However, for RS-232 operations, we don't want 218 * these pins to float. Instead, they should be pulled up to avoid 219 * mismatches. Linux does something similar when it configures the 220 * TX lines. This implies that we also allow the RX lines to float 221 * rather than be in the state they are left in by the boot loader. 222 * Since they are input pins, I think that this is the right thing 223 * to do. 224 */ --- 271 unchanged lines hidden --- |