Merge branch 'u-boot/master' into 'u-boot-arm/master'
Conflicts: drivers/video/exynos_fb.c
This commit is contained in:
@@ -134,6 +134,6 @@ SECTIONS
|
||||
*(.bss)
|
||||
*(COMMON)
|
||||
}
|
||||
__bss_end__ = . ;
|
||||
__bss_end = . ;
|
||||
PROVIDE (end = .);
|
||||
}
|
||||
|
||||
@@ -383,7 +383,7 @@ unsigned int memoryGetDeviceWidth (DEVICE device)
|
||||
* OUTPUT:
|
||||
* None.
|
||||
* RETURN:
|
||||
* False for invalid size, true otherwise.
|
||||
* false for invalid size, true otherwise.
|
||||
*
|
||||
* CAUTION: PCI_functions must be implemented later To_do !!!!!!!!!!!!!!!!!
|
||||
*
|
||||
@@ -509,7 +509,7 @@ bool memoryMapBank (MEMORY_BANK bank, unsigned int bankBase,
|
||||
* None.
|
||||
*
|
||||
* RETURN:
|
||||
* False for invalid size, true otherwise.
|
||||
* false for invalid size, true otherwise.
|
||||
*
|
||||
* CAUTION: PCI_functions must be implemented later To_do !!!!!!!!!!!!!!!!!
|
||||
*
|
||||
@@ -624,7 +624,7 @@ bool memoryMapDeviceSpace (DEVICE device, unsigned int deviceBase,
|
||||
* None.
|
||||
*
|
||||
* RETURN:
|
||||
* False for invalid size, true otherwise.
|
||||
* false for invalid size, true otherwise.
|
||||
*
|
||||
*******************************************************************************/
|
||||
bool memorySetPciWindow (PCI_MEM_WINDOW pciWindow, unsigned int pciWindowBase,
|
||||
@@ -885,7 +885,7 @@ void gtMemorySetInternalSramBaseAddr (unsigned int sramBaseAddress)
|
||||
* None.
|
||||
*
|
||||
* RETURN:
|
||||
* False for invalid size, true otherwise.
|
||||
* false for invalid size, true otherwise.
|
||||
*
|
||||
*******************************************************************************/
|
||||
bool memorySetProtectRegion (MEMORY_PROTECT_WINDOW window,
|
||||
@@ -1380,7 +1380,7 @@ void MemoryEnableWindow (MEMORY_WINDOW window)
|
||||
* OUTPUT:
|
||||
* None.
|
||||
* RETURN:
|
||||
* True for a closed window, false otherwise .
|
||||
* true for a closed window, false otherwise .
|
||||
*******************************************************************************/
|
||||
MEMORY_WINDOW_STATUS MemoryGetMemWindowStatus (MEMORY_WINDOW window)
|
||||
{
|
||||
|
||||
@@ -966,7 +966,7 @@ static int galmpsc_set_snoop (int mpsc, int value)
|
||||
* None.
|
||||
*
|
||||
* RETURN:
|
||||
* True for success, false otherwise.
|
||||
* true for success, false otherwise.
|
||||
*
|
||||
*******************************************************************************/
|
||||
|
||||
|
||||
@@ -46,13 +46,6 @@
|
||||
**************************************************************************
|
||||
**************************************************************************
|
||||
*************************************************************************/
|
||||
#ifndef TRUE
|
||||
#define TRUE 1
|
||||
#endif
|
||||
#ifndef FALSE
|
||||
#define FALSE 0
|
||||
#endif
|
||||
|
||||
/* In case not using SG on Tx, define MAX_SKB_FRAGS as 0 */
|
||||
#ifndef MAX_SKB_FRAGS
|
||||
#define MAX_SKB_FRAGS 0
|
||||
|
||||
@@ -966,7 +966,7 @@ static int galmpsc_set_snoop (int mpsc, int value)
|
||||
* None.
|
||||
*
|
||||
* RETURN:
|
||||
* True for success, false otherwise.
|
||||
* true for success, false otherwise.
|
||||
*
|
||||
*******************************************************************************/
|
||||
|
||||
|
||||
@@ -47,13 +47,6 @@
|
||||
**************************************************************************
|
||||
**************************************************************************
|
||||
*************************************************************************/
|
||||
#ifndef TRUE
|
||||
#define TRUE 1
|
||||
#endif
|
||||
#ifndef FALSE
|
||||
#define FALSE 0
|
||||
#endif
|
||||
|
||||
/* In case not using SG on Tx, define MAX_SKB_FRAGS as 0 */
|
||||
#ifndef MAX_SKB_FRAGS
|
||||
#define MAX_SKB_FRAGS 0
|
||||
|
||||
@@ -91,11 +91,6 @@ extern unsigned int INTERNAL_REG_BASE_ADDR;
|
||||
#define _1G 0x40000000
|
||||
#define _2G 0x80000000
|
||||
|
||||
#ifndef BOOL_WAS_DEFINED
|
||||
#define BOOL_WAS_DEFINED
|
||||
typedef enum _bool{false,true} bool;
|
||||
#endif
|
||||
|
||||
/* Little to Big endian conversion macros */
|
||||
|
||||
#ifdef LE /* Little Endian */
|
||||
|
||||
@@ -132,6 +132,6 @@ SECTIONS
|
||||
*(.bss)
|
||||
*(COMMON)
|
||||
}
|
||||
__bss_end__ = . ;
|
||||
__bss_end = . ;
|
||||
PROVIDE (end = .);
|
||||
}
|
||||
|
||||
@@ -132,6 +132,6 @@ SECTIONS
|
||||
*(.bss)
|
||||
*(COMMON)
|
||||
}
|
||||
__bss_end__ = . ;
|
||||
__bss_end = . ;
|
||||
PROVIDE (end = .);
|
||||
}
|
||||
|
||||
@@ -132,6 +132,6 @@ SECTIONS
|
||||
*(.bss)
|
||||
*(COMMON)
|
||||
}
|
||||
__bss_end__ = . ;
|
||||
__bss_end = . ;
|
||||
PROVIDE (end = .);
|
||||
}
|
||||
|
||||
@@ -561,7 +561,8 @@ static char *menu_handle(struct menu_display *display)
|
||||
char *s;
|
||||
char temp[6][200];
|
||||
|
||||
m = menu_create(display->title, display->timeout, 1, ait_menu_print);
|
||||
m = menu_create(display->title, display->timeout, 1, ait_menu_print,
|
||||
NULL, NULL);
|
||||
|
||||
for (i = 0; display->menulist[i]; i++) {
|
||||
sprintf(key, "%d", i + 1);
|
||||
|
||||
@@ -477,16 +477,16 @@ int is_powerpc440ep_pass1(void)
|
||||
pvr = get_pvr();
|
||||
|
||||
if (pvr == PVR_POWERPC_440EP_PASS1)
|
||||
return TRUE;
|
||||
return true;
|
||||
else if (pvr == PVR_POWERPC_440EP_PASS2)
|
||||
return FALSE;
|
||||
return false;
|
||||
else {
|
||||
printf("brdutil error 3\n");
|
||||
for (;;)
|
||||
;
|
||||
}
|
||||
|
||||
return(FALSE);
|
||||
return false;
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------------------+
|
||||
@@ -495,9 +495,9 @@ int is_powerpc440ep_pass1(void)
|
||||
int is_nand_selected(void)
|
||||
{
|
||||
#ifdef CONFIG_BAMBOO_NAND
|
||||
return TRUE;
|
||||
return true;
|
||||
#else
|
||||
return FALSE;
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -507,7 +507,7 @@ int is_nand_selected(void)
|
||||
unsigned char config_on_ebc_cs4_is_small_flash(void)
|
||||
{
|
||||
/* Not implemented yet => returns constant value */
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------------------+
|
||||
@@ -561,7 +561,7 @@ void ext_bus_cntlr_init(void)
|
||||
/*-------------------------------------------------------------------------+
|
||||
| PPC440EP Pass1
|
||||
+-------------------------------------------------------------------------*/
|
||||
if (is_powerpc440ep_pass1() == TRUE) {
|
||||
if (is_powerpc440ep_pass1() == true) {
|
||||
switch(bootstrap_settings) {
|
||||
case SDR0_PSTRP0_BOOTSTRAP_SETTINGS0:
|
||||
/* Default Strap Settings 0 : CPU 400 - PLB 133 - Boot EBC 8 bit 33MHz */
|
||||
@@ -738,7 +738,7 @@ void ext_bus_cntlr_init(void)
|
||||
/*------------------------------------------------------------------------- */
|
||||
ebc0_cs0_bnap_value = EBC0_BNAP_SMALL_FLASH;
|
||||
ebc0_cs0_bncr_value = EBC0_BNCR_SMALL_FLASH_CS0;
|
||||
if ((is_nand_selected()) == TRUE) {
|
||||
if ((is_nand_selected()) == true) {
|
||||
/* NAND Flash */
|
||||
ebc0_cs1_bnap_value = EBC0_BNAP_NAND_FLASH;
|
||||
ebc0_cs1_bncr_value = EBC0_BNCR_NAND_FLASH_CS1;
|
||||
@@ -765,7 +765,7 @@ void ext_bus_cntlr_init(void)
|
||||
/*------------------------------------------------------------------------- */
|
||||
ebc0_cs0_bnap_value = EBC0_BNAP_LARGE_FLASH_OR_SRAM;
|
||||
ebc0_cs0_bncr_value = EBC0_BNCR_LARGE_FLASH_OR_SRAM_CS0;
|
||||
if ((is_nand_selected()) == TRUE) {
|
||||
if ((is_nand_selected()) == true) {
|
||||
/* NAND Flash */
|
||||
ebc0_cs1_bnap_value = EBC0_BNAP_NAND_FLASH;
|
||||
ebc0_cs1_bncr_value = EBC0_BNCR_NAND_FLASH_CS1;
|
||||
@@ -812,7 +812,7 @@ void ext_bus_cntlr_init(void)
|
||||
ebc0_cs0_bnap_value = 0;
|
||||
ebc0_cs0_bncr_value = 0;
|
||||
|
||||
if ((is_nand_selected()) == TRUE) {
|
||||
if ((is_nand_selected()) == true) {
|
||||
/* NAND Flash */
|
||||
ebc0_cs1_bnap_value = EBC0_BNAP_NAND_FLASH;
|
||||
ebc0_cs1_bncr_value = EBC0_BNCR_NAND_FLASH_CS1;
|
||||
@@ -830,7 +830,7 @@ void ext_bus_cntlr_init(void)
|
||||
ebc0_cs3_bncr_value = 0;
|
||||
}
|
||||
|
||||
if ((config_on_ebc_cs4_is_small_flash()) == TRUE) {
|
||||
if ((config_on_ebc_cs4_is_small_flash()) == true) {
|
||||
/* Small Flash */
|
||||
ebc0_cs4_bnap_value = EBC0_BNAP_SMALL_FLASH;
|
||||
ebc0_cs4_bncr_value = EBC0_BNCR_SMALL_FLASH_CS4;
|
||||
|
||||
@@ -250,9 +250,6 @@
|
||||
#define PVR_POWERPC_440EP_PASS1 0x42221850
|
||||
#define PVR_POWERPC_440EP_PASS2 0x422218D3
|
||||
|
||||
#define TRUE 1
|
||||
#define FALSE 0
|
||||
|
||||
#define GPIO0 0
|
||||
#define GPIO1 1
|
||||
|
||||
|
||||
@@ -47,9 +47,6 @@ void fpga_init (void);
|
||||
#define DEBUGF(fmt,args...)
|
||||
#endif
|
||||
|
||||
#define FALSE 0
|
||||
#define TRUE 1
|
||||
|
||||
int board_early_init_f (void)
|
||||
{
|
||||
/*----------------------------------------------------------------------------+
|
||||
|
||||
@@ -32,8 +32,6 @@
|
||||
|
||||
#define V_ULONG(a) (*(volatile unsigned long *)( a ))
|
||||
#define V_BYTE(a) (*(volatile unsigned char *)( a ))
|
||||
#define TRUE 0x1
|
||||
#define FALSE 0x0
|
||||
#define BUFFER_SIZE 0x80000
|
||||
#define NO_COMMAND 0
|
||||
#define GET_CODES 1
|
||||
|
||||
@@ -309,7 +309,7 @@ int read_flash(long nOffset, int *pnValue)
|
||||
nValue = *(volatile unsigned short *)addr;
|
||||
SSYNC();
|
||||
*pnValue = nValue;
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
int poll_toggle_bit(long lOffset)
|
||||
@@ -398,7 +398,7 @@ int erase_block_flash(int nBlock, unsigned long address)
|
||||
long ulSectorOff = 0x0;
|
||||
|
||||
if ((nBlock < 0) || (nBlock > AFP_NumSectors))
|
||||
return FALSE;
|
||||
return false;
|
||||
|
||||
ulSectorOff = (address - CONFIG_SYS_FLASH_BASE);
|
||||
|
||||
|
||||
@@ -9,9 +9,6 @@
|
||||
#define YELLOW (0xD292D210) /* yellow pixel pattern */
|
||||
#define WHITE (0xFE80FE80) /* white pixel pattern */
|
||||
|
||||
#define true 1
|
||||
#define false 0
|
||||
|
||||
typedef struct {
|
||||
unsigned int sav;
|
||||
unsigned int eav;
|
||||
|
||||
@@ -91,6 +91,7 @@ static int splash_load_from_nand(u32 bmp_load_addr)
|
||||
|
||||
res = nand_read_skip_bad(&nand_info[nand_curr_device],
|
||||
splash_screen_nand_offset, &bmp_header_size,
|
||||
NULL, nand_info[nand_curr_device].size,
|
||||
(u_char *)bmp_load_addr);
|
||||
if (res < 0)
|
||||
return res;
|
||||
@@ -103,6 +104,7 @@ static int splash_load_from_nand(u32 bmp_load_addr)
|
||||
|
||||
return nand_read_skip_bad(&nand_info[nand_curr_device],
|
||||
splash_screen_nand_offset, &bmp_size,
|
||||
NULL, nand_info[nand_curr_device].size,
|
||||
(u_char *)bmp_load_addr);
|
||||
|
||||
splash_address_too_high:
|
||||
|
||||
@@ -381,14 +381,6 @@ static enum display_type env_parse_displaytype(char *displaytype)
|
||||
return NONE;
|
||||
}
|
||||
|
||||
int lcd_line_length;
|
||||
int lcd_color_fg;
|
||||
int lcd_color_bg;
|
||||
void *lcd_base;
|
||||
short console_col;
|
||||
short console_row;
|
||||
void *lcd_console_address;
|
||||
|
||||
void lcd_ctrl_init(void *lcdbase)
|
||||
{
|
||||
struct prcm *prcm = (struct prcm *)PRCM_BASE;
|
||||
|
||||
@@ -132,6 +132,6 @@ SECTIONS
|
||||
*(.bss)
|
||||
*(COMMON)
|
||||
}
|
||||
__bss_end__ = . ;
|
||||
__bss_end = . ;
|
||||
PROVIDE (end = .);
|
||||
}
|
||||
|
||||
@@ -132,6 +132,6 @@ SECTIONS
|
||||
*(.bss)
|
||||
*(COMMON)
|
||||
}
|
||||
__bss_end__ = . ;
|
||||
__bss_end = . ;
|
||||
PROVIDE (end = .);
|
||||
}
|
||||
|
||||
@@ -132,6 +132,6 @@ SECTIONS
|
||||
*(.bss)
|
||||
*(COMMON)
|
||||
}
|
||||
__bss_end__ = . ;
|
||||
__bss_end = . ;
|
||||
PROVIDE (end = .);
|
||||
}
|
||||
|
||||
@@ -126,6 +126,6 @@ SECTIONS
|
||||
*(.bss)
|
||||
*(COMMON)
|
||||
}
|
||||
__bss_end__ = . ;
|
||||
__bss_end = . ;
|
||||
PROVIDE (end = .);
|
||||
}
|
||||
|
||||
@@ -260,7 +260,7 @@ int lcd_init(uchar *lcd_reg, uchar *lcd_mem, S1D_REGS *regs, int reg_count,
|
||||
/*
|
||||
* Big epson detected
|
||||
*/
|
||||
reg_byte_swap = FALSE;
|
||||
reg_byte_swap = false;
|
||||
palette_index = 0x1e2;
|
||||
palette_value = 0x1e4;
|
||||
lcd_depth = 16;
|
||||
@@ -269,7 +269,7 @@ int lcd_init(uchar *lcd_reg, uchar *lcd_mem, S1D_REGS *regs, int reg_count,
|
||||
/*
|
||||
* Big epson detected (with register swap bug)
|
||||
*/
|
||||
reg_byte_swap = TRUE;
|
||||
reg_byte_swap = true;
|
||||
palette_index = 0x1e3;
|
||||
palette_value = 0x1e5;
|
||||
lcd_depth = 16;
|
||||
@@ -278,7 +278,7 @@ int lcd_init(uchar *lcd_reg, uchar *lcd_mem, S1D_REGS *regs, int reg_count,
|
||||
/*
|
||||
* Small epson detected (704)
|
||||
*/
|
||||
reg_byte_swap = FALSE;
|
||||
reg_byte_swap = false;
|
||||
palette_index = 0x15;
|
||||
palette_value = 0x17;
|
||||
lcd_depth = 8;
|
||||
@@ -287,7 +287,7 @@ int lcd_init(uchar *lcd_reg, uchar *lcd_mem, S1D_REGS *regs, int reg_count,
|
||||
/*
|
||||
* Small epson detected (705)
|
||||
*/
|
||||
reg_byte_swap = FALSE;
|
||||
reg_byte_swap = false;
|
||||
palette_index = 0x15;
|
||||
palette_value = 0x17;
|
||||
lcd_depth = 8;
|
||||
@@ -300,7 +300,7 @@ int lcd_init(uchar *lcd_reg, uchar *lcd_mem, S1D_REGS *regs, int reg_count,
|
||||
/*
|
||||
* S1D13505 detected
|
||||
*/
|
||||
reg_byte_swap = TRUE;
|
||||
reg_byte_swap = true;
|
||||
palette_index = 0x25;
|
||||
palette_value = 0x27;
|
||||
lcd_depth = 16;
|
||||
|
||||
@@ -35,11 +35,6 @@
|
||||
#define LOAD_LONG(data) SWAP_LONG(data)
|
||||
#define LOAD_SHORT(data) SWAP_SHORT(data)
|
||||
|
||||
#ifndef FALSE
|
||||
#define FALSE 0
|
||||
#define TRUE (!FALSE)
|
||||
#endif
|
||||
|
||||
#define S1D_WRITE_PALETTE(p,i,r,g,b) \
|
||||
{ \
|
||||
out_8(&((uchar*)(p))[palette_index], (uchar)(i)); \
|
||||
|
||||
@@ -967,7 +967,7 @@ static int galmpsc_set_snoop (int mpsc, int value)
|
||||
* None.
|
||||
*
|
||||
* RETURN:
|
||||
* True for success, false otherwise.
|
||||
* true for success, false otherwise.
|
||||
*
|
||||
*******************************************************************************/
|
||||
|
||||
|
||||
@@ -47,13 +47,6 @@
|
||||
**************************************************************************
|
||||
**************************************************************************
|
||||
*************************************************************************/
|
||||
#ifndef TRUE
|
||||
#define TRUE 1
|
||||
#endif
|
||||
#ifndef FALSE
|
||||
#define FALSE 0
|
||||
#endif
|
||||
|
||||
/* In case not using SG on Tx, define MAX_SKB_FRAGS as 0 */
|
||||
#ifndef MAX_SKB_FRAGS
|
||||
#define MAX_SKB_FRAGS 0
|
||||
|
||||
@@ -30,10 +30,6 @@
|
||||
#define OK 0
|
||||
#define ERROR (-1)
|
||||
|
||||
#define TRUE 1
|
||||
#define FALSE 0
|
||||
|
||||
|
||||
extern u_long pci9054_iobase;
|
||||
|
||||
|
||||
@@ -97,7 +93,7 @@ static int PciEepromWriteLongVPD (int offs, unsigned int value)
|
||||
}
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -113,7 +113,7 @@ void fpga_serialslave_init(void)
|
||||
{
|
||||
debug("%s:%d: Initialize serial slave interface\n", __FUNCTION__,
|
||||
__LINE__);
|
||||
fpga_pgm_fn(FALSE, FALSE, 0); /* make sure program pin is inactive */
|
||||
fpga_pgm_fn(false, false, 0); /* make sure program pin is inactive */
|
||||
}
|
||||
|
||||
|
||||
@@ -188,7 +188,7 @@ int fpga_done_fn(int cookie)
|
||||
int fpga_pre_config_fn(int cookie)
|
||||
{
|
||||
debug("%s:%d: FPGA pre-configuration\n", __FUNCTION__, __LINE__);
|
||||
fpga_reset(TRUE);
|
||||
fpga_reset(true);
|
||||
|
||||
/* release init# */
|
||||
out_be32((void*)GPIO0_OR, in_be32((void*)GPIO0_OR) | GPIO0_FPGA_FORCEINIT);
|
||||
@@ -213,9 +213,9 @@ int fpga_post_config_fn(int cookie)
|
||||
/* enable PLD0..7 pins */
|
||||
out_be32((void*)GPIO1_OR, in_be32((void*)GPIO1_OR) & ~GPIO1_IOEN_N);
|
||||
|
||||
fpga_reset(TRUE);
|
||||
fpga_reset(true);
|
||||
udelay (100);
|
||||
fpga_reset(FALSE);
|
||||
fpga_reset(false);
|
||||
udelay (100);
|
||||
|
||||
FPGA_OUT32(&fpga->status, (gd->board_type << STATUS_HWREV_SHIFT) & STATUS_HWREV_MASK);
|
||||
@@ -296,7 +296,7 @@ void ngcc_fpga_serialslave_init(void)
|
||||
__FUNCTION__, __LINE__);
|
||||
|
||||
/* make sure program pin is inactive */
|
||||
ngcc_fpga_pgm_fn (FALSE, FALSE, 0);
|
||||
ngcc_fpga_pgm_fn(false, false, 0);
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -382,10 +382,10 @@ int ngcc_fpga_pre_config_fn(int cookie)
|
||||
pmc440_fpga_t *fpga = (pmc440_fpga_t *)FPGA_BA;
|
||||
debug("%s:%d: FPGA pre-configuration\n", __FUNCTION__, __LINE__);
|
||||
|
||||
ngcc_fpga_reset(TRUE);
|
||||
ngcc_fpga_reset(true);
|
||||
FPGA_CLRBITS(&fpga->ctrla, 0xfffffe00);
|
||||
|
||||
ngcc_fpga_reset(TRUE);
|
||||
ngcc_fpga_reset(true);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -401,7 +401,7 @@ int ngcc_fpga_post_config_fn(int cookie)
|
||||
debug("%s:%d: NGCC FPGA post configuration\n", __FUNCTION__, __LINE__);
|
||||
|
||||
udelay (100);
|
||||
ngcc_fpga_reset(FALSE);
|
||||
ngcc_fpga_reset(false);
|
||||
|
||||
FPGA_SETBITS(&fpga->ctrla, 0x29f8c000);
|
||||
|
||||
|
||||
@@ -6,9 +6,6 @@
|
||||
#include "eth.h"
|
||||
#include "eth_addrtbl.h"
|
||||
|
||||
#define TRUE 1
|
||||
#define FALSE 0
|
||||
|
||||
#define PRINTF printf
|
||||
|
||||
#ifdef CONFIG_GT_USE_MAC_HASH_TABLE
|
||||
@@ -160,8 +157,8 @@ u32 hashTableFunction (u32 macH, u32 macL, u32 HashSize, u32 hash_mode)
|
||||
* rd - the RD field in the address table.
|
||||
* Outputs
|
||||
* address table entry is added.
|
||||
* TRUE if success.
|
||||
* FALSE if table full
|
||||
* true if success.
|
||||
* false if table full
|
||||
*/
|
||||
int addAddressTableEntry (u32 port, u32 macH, u32 macL, u32 rd, u32 skip)
|
||||
{
|
||||
@@ -206,7 +203,7 @@ int addAddressTableEntry (u32 port, u32 macH, u32 macL, u32 rd, u32 skip)
|
||||
|
||||
if (i == HOP_NUMBER) {
|
||||
PRINTF ("addGT64260addressTableEntry: table section is full\n");
|
||||
return (FALSE);
|
||||
return false;
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -215,7 +212,7 @@ int addAddressTableEntry (u32 port, u32 macH, u32 macL, u32 rd, u32 skip)
|
||||
entry->hi = newHi;
|
||||
entry->lo = newLo;
|
||||
DCACHE_FLUSH_N_SYNC ((u32) entry, MAC_ENTRY_SIZE);
|
||||
return (TRUE);
|
||||
return true;
|
||||
}
|
||||
|
||||
#endif /* CONFIG_GT_USE_MAC_HASH_TABLE */
|
||||
|
||||
@@ -132,6 +132,6 @@ SECTIONS
|
||||
*(.bss)
|
||||
*(COMMON)
|
||||
}
|
||||
__bss_end__ = . ;
|
||||
__bss_end = . ;
|
||||
PROVIDE (end = .);
|
||||
}
|
||||
|
||||
@@ -182,7 +182,7 @@ void fpga_selectmap_init (void)
|
||||
{
|
||||
PRINTF ("%s:%d: Initialize SelectMap interface\n", __FUNCTION__,
|
||||
__LINE__);
|
||||
fpga_pgm_fn (FALSE, FALSE, 0); /* make sure program pin is inactive */
|
||||
fpga_pgm_fn(false, false, 0); /* make sure program pin is inactive */
|
||||
}
|
||||
|
||||
|
||||
@@ -314,7 +314,7 @@ int fpga_abort_fn (int cookie)
|
||||
int fpga_pre_config_fn (int cookie)
|
||||
{
|
||||
PRINTF ("%s:%d: FPGA pre-configuration\n", __FUNCTION__, __LINE__);
|
||||
fpga_reset (TRUE);
|
||||
fpga_reset(true);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -328,9 +328,9 @@ int fpga_post_config_fn (int cookie)
|
||||
int rc;
|
||||
|
||||
PRINTF ("%s:%d: FPGA post configuration\n", __FUNCTION__, __LINE__);
|
||||
fpga_reset (TRUE);
|
||||
fpga_reset(true);
|
||||
udelay (1000);
|
||||
fpga_reset (FALSE);
|
||||
fpga_reset(false);
|
||||
udelay (1000);
|
||||
|
||||
/*
|
||||
|
||||
@@ -138,6 +138,6 @@ SECTIONS
|
||||
{
|
||||
common/env_embedded.o (.ppcenv)
|
||||
}
|
||||
__bss_end__ = . ;
|
||||
__bss_end = . ;
|
||||
PROVIDE (end = .);
|
||||
}
|
||||
|
||||
@@ -132,6 +132,6 @@ SECTIONS
|
||||
*(.bss)
|
||||
*(COMMON)
|
||||
}
|
||||
__bss_end__ = . ;
|
||||
__bss_end = . ;
|
||||
PROVIDE (end = .);
|
||||
}
|
||||
|
||||
@@ -132,6 +132,6 @@ SECTIONS
|
||||
*(.bss)
|
||||
*(COMMON)
|
||||
}
|
||||
__bss_end__ = . ;
|
||||
__bss_end = . ;
|
||||
PROVIDE (end = .);
|
||||
}
|
||||
|
||||
@@ -133,6 +133,6 @@ SECTIONS
|
||||
*(.bss)
|
||||
*(COMMON)
|
||||
}
|
||||
__bss_end__ = . ;
|
||||
__bss_end = . ;
|
||||
PROVIDE (end = .);
|
||||
}
|
||||
|
||||
@@ -133,6 +133,6 @@ SECTIONS
|
||||
*(.bss)
|
||||
*(COMMON)
|
||||
}
|
||||
__bss_end__ = . ;
|
||||
__bss_end = . ;
|
||||
PROVIDE (end = .);
|
||||
}
|
||||
|
||||
@@ -133,6 +133,6 @@ SECTIONS
|
||||
*(.bss)
|
||||
*(COMMON)
|
||||
}
|
||||
__bss_end__ = . ;
|
||||
__bss_end = . ;
|
||||
PROVIDE (end = .);
|
||||
}
|
||||
|
||||
@@ -132,6 +132,6 @@ SECTIONS
|
||||
*(.bss)
|
||||
*(COMMON)
|
||||
}
|
||||
__bss_end__ = . ;
|
||||
__bss_end = . ;
|
||||
PROVIDE (end = .);
|
||||
}
|
||||
|
||||
@@ -132,6 +132,6 @@ SECTIONS
|
||||
*(.bss)
|
||||
*(COMMON)
|
||||
}
|
||||
__bss_end__ = . ;
|
||||
__bss_end = . ;
|
||||
PROVIDE (end = .);
|
||||
}
|
||||
|
||||
@@ -133,6 +133,6 @@ SECTIONS
|
||||
*(.bss)
|
||||
*(COMMON)
|
||||
}
|
||||
__bss_end__ = . ;
|
||||
__bss_end = . ;
|
||||
PROVIDE (end = .);
|
||||
}
|
||||
|
||||
@@ -162,7 +162,7 @@ int board_eth_init(bd_t *bis)
|
||||
|
||||
int overwrite_console(void)
|
||||
{
|
||||
/* return TRUE if console should be overwritten */
|
||||
/* return true if console should be overwritten */
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -133,6 +133,6 @@ SECTIONS
|
||||
*(.bss)
|
||||
*(COMMON)
|
||||
}
|
||||
__bss_end__ = . ;
|
||||
__bss_end = . ;
|
||||
PROVIDE (end = .);
|
||||
}
|
||||
|
||||
@@ -68,32 +68,12 @@ vidinfo_t panel_info = {
|
||||
LCD_WIDTH, LCD_HEIGHT, LCD_BPP
|
||||
};
|
||||
|
||||
int lcd_line_length;
|
||||
|
||||
int lcd_color_fg;
|
||||
int lcd_color_bg;
|
||||
|
||||
/*
|
||||
* Frame buffer memory information
|
||||
*/
|
||||
void *lcd_base; /* Start of framebuffer memory */
|
||||
void *lcd_console_address; /* Start of console buffer */
|
||||
|
||||
short console_col = 0;
|
||||
short console_row = 0;
|
||||
|
||||
/*
|
||||
* The device we use to communicate with PSoC
|
||||
*/
|
||||
int serial_inited = 0;
|
||||
|
||||
/*
|
||||
* Exported functions
|
||||
*/
|
||||
void lcd_initcolregs (void);
|
||||
void lcd_ctrl_init (void *lcdbase);
|
||||
void lcd_enable (void);
|
||||
|
||||
/*
|
||||
* Imported functions to support the PSoC protocol
|
||||
*/
|
||||
@@ -156,12 +136,12 @@ void lcd_enable (void)
|
||||
|
||||
#if !defined(SWAPPED_LCD)
|
||||
for (i=0; i<fb_size; i++) {
|
||||
serial_putc_raw_dev (PSOC_PSC, ((char *)lcd_base)[i]);
|
||||
serial_putc_raw_dev(PSOC_PSC, ((char *)gd->fb_base)[i]);
|
||||
}
|
||||
#else
|
||||
{
|
||||
int x, y, pwidth;
|
||||
char *p = (char *)lcd_base;
|
||||
char *p = (char *)gd->fb_base;
|
||||
|
||||
pwidth = ((panel_info.vl_col+7) >> 3);
|
||||
for (y=0; y<panel_info.vl_row; y++) {
|
||||
|
||||
@@ -450,7 +450,7 @@ STATUS flashWrite (flash_dev_t * dev, int pos, char *buf, int len)
|
||||
}
|
||||
|
||||
/*
|
||||
* flashWritable returns TRUE if a range contains all F's.
|
||||
* flashWritable returns true if a range contains all F's.
|
||||
*/
|
||||
|
||||
STATUS flashWritable (flash_dev_t * dev, int pos, int len)
|
||||
|
||||
@@ -96,6 +96,6 @@ SECTIONS
|
||||
common/env_embedded.o (.ppcenv)
|
||||
} > ram
|
||||
|
||||
__bss_end__ = . ;
|
||||
__bss_end = . ;
|
||||
PROVIDE (end = .);
|
||||
}
|
||||
|
||||
@@ -123,6 +123,6 @@ SECTIONS
|
||||
*(COMMON)
|
||||
}
|
||||
|
||||
__bss_end__ = . ;
|
||||
__bss_end = . ;
|
||||
PROVIDE (end = .);
|
||||
}
|
||||
|
||||
@@ -41,13 +41,6 @@
|
||||
#define PRINTF(fmt,args...)
|
||||
#endif
|
||||
|
||||
#ifndef TRUE
|
||||
#define TRUE 1
|
||||
#endif
|
||||
#ifndef FALSE
|
||||
#define FALSE 0
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_PIP405)
|
||||
|
||||
extern int drv_isa_kbd_init (void);
|
||||
@@ -116,9 +109,9 @@ unsigned char open_cfg_super_IO(int address)
|
||||
out8(CONFIG_SYS_ISA_IO_BASE_ADDRESS | address,0x55); /* open config */
|
||||
out8(CONFIG_SYS_ISA_IO_BASE_ADDRESS | address,0x20); /* set address to DEV ID */
|
||||
if(in8(CONFIG_SYS_ISA_IO_BASE_ADDRESS | address | 0x1)==0x40) /* ok Device ID is correct */
|
||||
return TRUE;
|
||||
return true;
|
||||
else
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
void close_cfg_super_IO(int address)
|
||||
@@ -179,7 +172,7 @@ void isa_sio_loadtable(void)
|
||||
|
||||
void isa_sio_setup(void)
|
||||
{
|
||||
if(open_cfg_super_IO(SIO_CFG_PORT)==TRUE)
|
||||
if (open_cfg_super_IO(SIO_CFG_PORT) == true)
|
||||
{
|
||||
isa_sio_loadtable();
|
||||
close_cfg_super_IO(0x3F0);
|
||||
|
||||
@@ -77,8 +77,6 @@ DECLARE_GLOBAL_DATA_PTR;
|
||||
|
||||
#undef SDRAM_DEBUG
|
||||
#define ENABLE_ECC /* for ecc boards */
|
||||
#define FALSE 0
|
||||
#define TRUE 1
|
||||
|
||||
/* stdlib.h causes some compatibility problems; should fixe these! -- wd */
|
||||
#ifndef __ldiv_t_defined
|
||||
@@ -771,7 +769,8 @@ int last_stage_init (void)
|
||||
|
||||
int overwrite_console (void)
|
||||
{
|
||||
return ((in8 (PLD_EXT_CONF_REG) & 0x1)==0); /* return TRUE if console should be overwritten */
|
||||
/* return true if console should be overwritten */
|
||||
return ((in8(PLD_EXT_CONF_REG) & 0x1) == 0);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -36,9 +36,6 @@ DECLARE_GLOBAL_DATA_PTR;
|
||||
|
||||
#undef SDRAM_DEBUG
|
||||
|
||||
#define FALSE 0
|
||||
#define TRUE 1
|
||||
|
||||
/* stdlib.h causes some compatibility problems; should fixe these! -- wd */
|
||||
#ifndef __ldiv_t_defined
|
||||
typedef struct {
|
||||
@@ -700,7 +697,8 @@ int misc_init_r (void)
|
||||
|
||||
int overwrite_console (void)
|
||||
{
|
||||
return (in8 (CONFIG_PORT_ADDR) & 0x1); /* return TRUE if console should be overwritten */
|
||||
/* return true if console should be overwritten */
|
||||
return in8(CONFIG_PORT_ADDR) & 0x1;
|
||||
}
|
||||
|
||||
|
||||
@@ -945,7 +943,7 @@ void print_pip405_info (void)
|
||||
|
||||
void user_led0 (unsigned char on)
|
||||
{
|
||||
if (on == TRUE)
|
||||
if (on == true)
|
||||
out8 (PLD_LED_USER_REG, (in8 (PLD_LED_USER_REG) | 0x1));
|
||||
else
|
||||
out8 (PLD_LED_USER_REG, (in8 (PLD_LED_USER_REG) & 0xfe));
|
||||
@@ -953,7 +951,7 @@ void user_led0 (unsigned char on)
|
||||
|
||||
void user_led1 (unsigned char on)
|
||||
{
|
||||
if (on == TRUE)
|
||||
if (on == true)
|
||||
out8 (PLD_LED_USER_REG, (in8 (PLD_LED_USER_REG) | 0x2));
|
||||
else
|
||||
out8 (PLD_LED_USER_REG, (in8 (PLD_LED_USER_REG) & 0xfd));
|
||||
|
||||
@@ -132,6 +132,6 @@ SECTIONS
|
||||
*(.bss)
|
||||
*(COMMON)
|
||||
}
|
||||
__bss_end__ = . ;
|
||||
__bss_end = . ;
|
||||
PROVIDE (end = .);
|
||||
}
|
||||
|
||||
@@ -132,6 +132,6 @@ SECTIONS
|
||||
*(.bss)
|
||||
*(COMMON)
|
||||
}
|
||||
__bss_end__ = . ;
|
||||
__bss_end = . ;
|
||||
PROVIDE (end = .);
|
||||
}
|
||||
|
||||
@@ -132,6 +132,6 @@ SECTIONS
|
||||
*(.bss)
|
||||
*(COMMON)
|
||||
}
|
||||
__bss_end__ = . ;
|
||||
__bss_end = . ;
|
||||
PROVIDE (end = .);
|
||||
}
|
||||
|
||||
@@ -132,6 +132,6 @@ SECTIONS
|
||||
*(.bss)
|
||||
*(COMMON)
|
||||
}
|
||||
__bss_end__ = . ;
|
||||
__bss_end = . ;
|
||||
PROVIDE (end = .);
|
||||
}
|
||||
|
||||
@@ -132,6 +132,6 @@ SECTIONS
|
||||
*(.bss)
|
||||
*(COMMON)
|
||||
}
|
||||
__bss_end__ = . ;
|
||||
__bss_end = . ;
|
||||
PROVIDE (end = .);
|
||||
}
|
||||
|
||||
@@ -132,6 +132,6 @@ SECTIONS
|
||||
*(.bss)
|
||||
*(COMMON)
|
||||
}
|
||||
__bss_end__ = . ;
|
||||
__bss_end = . ;
|
||||
PROVIDE (end = .);
|
||||
}
|
||||
|
||||
@@ -962,7 +962,7 @@ static int galmpsc_set_snoop (int mpsc, int value)
|
||||
* None.
|
||||
*
|
||||
* RETURN:
|
||||
* True for success, false otherwise.
|
||||
* true for success, false otherwise.
|
||||
*
|
||||
*******************************************************************************/
|
||||
|
||||
|
||||
@@ -47,13 +47,6 @@
|
||||
**************************************************************************
|
||||
**************************************************************************
|
||||
*************************************************************************/
|
||||
#ifndef TRUE
|
||||
#define TRUE 1
|
||||
#endif
|
||||
#ifndef FALSE
|
||||
#define FALSE 0
|
||||
#endif
|
||||
|
||||
/* In case not using SG on Tx, define MAX_SKB_FRAGS as 0 */
|
||||
#ifndef MAX_SKB_FRAGS
|
||||
#define MAX_SKB_FRAGS 0
|
||||
|
||||
@@ -125,6 +125,6 @@ SECTIONS
|
||||
*(.bss)
|
||||
*(COMMON)
|
||||
}
|
||||
__bss_end__ = . ;
|
||||
__bss_end = . ;
|
||||
PROVIDE (end = .);
|
||||
}
|
||||
|
||||
@@ -94,11 +94,11 @@ uint Daq_BRG_Get_Div16(uint brg)
|
||||
|
||||
if (*brg_ptr & CPM_BRG_DIV16) {
|
||||
/* DIV16 active */
|
||||
return (TRUE);
|
||||
return true;
|
||||
}
|
||||
else {
|
||||
/* DIV16 inactive */
|
||||
return (FALSE);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -22,11 +22,6 @@
|
||||
* MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
#ifndef FALSE
|
||||
#define FALSE 0
|
||||
#define TRUE (!FALSE)
|
||||
#endif
|
||||
|
||||
#define SLRCLK_EN_MASK 0x00040000 /* PA13 - SLRCLK_EN* */
|
||||
|
||||
#define MIN_SAMPLE_RATE 4000 /* Minimum sample rate */
|
||||
|
||||
@@ -141,6 +141,6 @@ SECTIONS
|
||||
*(.bss)
|
||||
*(COMMON)
|
||||
}
|
||||
__bss_end__ = . ;
|
||||
__bss_end = . ;
|
||||
PROVIDE (end = .);
|
||||
}
|
||||
|
||||
@@ -141,6 +141,6 @@ SECTIONS
|
||||
*(.bss)
|
||||
*(COMMON)
|
||||
}
|
||||
__bss_end__ = . ;
|
||||
__bss_end = . ;
|
||||
PROVIDE (end = .);
|
||||
}
|
||||
|
||||
@@ -133,6 +133,6 @@ SECTIONS
|
||||
*(.bss)
|
||||
*(COMMON)
|
||||
}
|
||||
__bss_end__ = . ;
|
||||
__bss_end = . ;
|
||||
PROVIDE (end = .);
|
||||
}
|
||||
|
||||
@@ -113,7 +113,7 @@ static int fpga_done_fn(int cookie)
|
||||
static int fpga_pre_config_fn(int cookie)
|
||||
{
|
||||
debug("%s:%d: FPGA pre-configuration\n", __func__, __LINE__);
|
||||
fpga_reset(TRUE);
|
||||
fpga_reset(true);
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -128,9 +128,9 @@ static int fpga_post_config_fn(int cookie)
|
||||
|
||||
debug("%s:%d: FPGA post configuration\n", __func__, __LINE__);
|
||||
|
||||
fpga_reset(TRUE);
|
||||
fpga_reset(true);
|
||||
udelay(100);
|
||||
fpga_reset(FALSE);
|
||||
fpga_reset(false);
|
||||
udelay(100);
|
||||
|
||||
return rc;
|
||||
@@ -200,7 +200,7 @@ static Xilinx_desc fpga[CONFIG_FPGA_COUNT] = {
|
||||
static void fpga_serialslave_init(void)
|
||||
{
|
||||
debug("%s:%d: Initialize serial slave interface\n", __func__, __LINE__);
|
||||
fpga_pgm_fn(FALSE, FALSE, 0); /* make sure program pin is inactive */
|
||||
fpga_pgm_fn(false, false, 0); /* make sure program pin is inactive */
|
||||
}
|
||||
|
||||
static int expi_setup(int freq)
|
||||
|
||||
@@ -132,6 +132,6 @@ SECTIONS
|
||||
*(.bss)
|
||||
*(COMMON)
|
||||
}
|
||||
__bss_end__ = . ;
|
||||
__bss_end = . ;
|
||||
PROVIDE (end = .);
|
||||
}
|
||||
|
||||
@@ -125,6 +125,6 @@ SECTIONS
|
||||
*(.bss)
|
||||
*(COMMON)
|
||||
}
|
||||
__bss_end__ = . ;
|
||||
__bss_end = . ;
|
||||
PROVIDE (end = .);
|
||||
}
|
||||
|
||||
@@ -179,9 +179,9 @@ int fpga_post_config_fn(int cookie)
|
||||
{
|
||||
debug("%s:%d: FPGA post-configuration\n", __func__, __LINE__);
|
||||
|
||||
fpga_reset(TRUE);
|
||||
fpga_reset(true);
|
||||
udelay(100);
|
||||
fpga_reset(FALSE);
|
||||
fpga_reset(false);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -132,6 +132,6 @@ SECTIONS
|
||||
*(.bss)
|
||||
*(COMMON)
|
||||
}
|
||||
__bss_end__ = . ;
|
||||
__bss_end = . ;
|
||||
PROVIDE (end = .);
|
||||
}
|
||||
|
||||
@@ -137,6 +137,6 @@ SECTIONS
|
||||
*(.bss)
|
||||
*(COMMON)
|
||||
}
|
||||
__bss_end__ = . ;
|
||||
__bss_end = . ;
|
||||
PROVIDE (end = .);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user