Lines Matching +full:30 +full:- +full:35
1 // SPDX-License-Identifier: GPL-2.0+
3 * (C) Copyright 2000-2003
6 * Copyright (C) 2004-2007, 2012 Freescale Semiconductor, Inc.
7 * TsiChung Liew (Tsi-Chung.Liew@freescale.com)
44 i--; in dram_init()
46 out_8(&gpio->mscr_sdram, CONFIG_SYS_SDRAM_DRV_STRENGTH); in dram_init()
48 out_be32(&sdram->sdcs0, CONFIG_SYS_SDRAM_BASE | i); in dram_init()
49 out_be32(&sdram->sdcs1, CONFIG_SYS_SDRAM_BASE1 | i); in dram_init()
51 out_be32(&sdram->sdcfg1, CONFIG_SYS_SDRAM_CFG1); in dram_init()
52 out_be32(&sdram->sdcfg2, CONFIG_SYS_SDRAM_CFG2); in dram_init()
55 out_be32(&sdram->sdcr, CONFIG_SYS_SDRAM_CTRL | 2); in dram_init()
58 out_be32(&sdram->sdmr, CONFIG_SYS_SDRAM_EMOD | 0x408); in dram_init()
59 out_be32(&sdram->sdmr, CONFIG_SYS_SDRAM_MODE | 0x300); in dram_init()
64 out_be32(&sdram->sdcr, CONFIG_SYS_SDRAM_CTRL | 2); in dram_init()
67 out_be32(&sdram->sdcr, CONFIG_SYS_SDRAM_CTRL | 4); in dram_init()
68 out_be32(&sdram->sdcr, CONFIG_SYS_SDRAM_CTRL | 4); in dram_init()
70 out_be32(&sdram->sdmr, CONFIG_SYS_SDRAM_MODE | 0x200); in dram_init()
72 out_be32(&sdram->sdcr, in dram_init()
77 gd->ram_size = dramsize << 1; in dram_init()
98 tmp = (in_8(&gpio->par_fec) & GPIO_PAR_FEC_FEC1_UNMASK) | 0x10; in ide_preinit()
99 setbits_8(&gpio->par_fec, tmp); in ide_preinit()
100 tmp = ((in_be16(&gpio->par_feci2c) & 0xf0ff) | in ide_preinit()
102 setbits_be16(&gpio->par_feci2c, tmp); in ide_preinit()
104 setbits_be16(&gpio->par_ata, in ide_preinit()
109 setbits_be16(&gpio->par_pci, in ide_preinit()
121 {70, 165, 60, 30, 50, 5, 20, 0, 35}, /* PIO 0 */ in ide_set_reset()
122 {50, 125, 45, 20, 35, 5, 15, 0, 35}, /* PIO 1 */ in ide_set_reset()
123 {30, 100, 30, 15, 20, 5, 10, 0, 35}, /* PIO 2 */ in ide_set_reset()
124 {30, 80, 30, 10, 20, 5, 10, 0, 35}, /* PIO 3 */ in ide_set_reset()
125 {25, 70, 20, 10, 20, 5, 10, 0, 35} in ide_set_reset()
130 out_8(&ata->cr, 0); in ide_set_reset()
133 #define CALC_TIMING(t) (t + period - 1) / period in ide_set_reset()
134 period = 1000000000 / gd->bus_clk; /* period in ns */ in ide_set_reset()
136 /*ata->ton = CALC_TIMING (180); */ in ide_set_reset()
137 out_8(&ata->t1, CALC_TIMING(piotms[2][0])); in ide_set_reset()
138 out_8(&ata->t2w, CALC_TIMING(piotms[2][1])); in ide_set_reset()
139 out_8(&ata->t2r, CALC_TIMING(piotms[2][1])); in ide_set_reset()
140 out_8(&ata->ta, CALC_TIMING(piotms[2][8])); in ide_set_reset()
141 out_8(&ata->trd, CALC_TIMING(piotms[2][7])); in ide_set_reset()
142 out_8(&ata->t4, CALC_TIMING(piotms[2][3])); in ide_set_reset()
143 out_8(&ata->t9, CALC_TIMING(piotms[2][6])); in ide_set_reset()
146 out_8(&ata->cr, 0x40); in ide_set_reset()
149 setbits_8(&ata->cr, 0x01); in ide_set_reset()
178 info->flash_id = 0x01000000; in board_flash_get_legacy()
179 info->portwidth = 1; in board_flash_get_legacy()
180 info->chipwidth = 1; in board_flash_get_legacy()
181 info->buffer_size = 1; in board_flash_get_legacy()
182 info->erase_blk_tout = 16384; in board_flash_get_legacy()
183 info->write_tout = 2; in board_flash_get_legacy()
184 info->buffer_write_tout = 5; in board_flash_get_legacy()
185 info->vendor = 0xFFF0; /* CFI_CMDSET_AMD_LEGACY */ in board_flash_get_legacy()
186 info->cmd_reset = 0x00F0; in board_flash_get_legacy()
187 info->interface = FLASH_CFI_X8; in board_flash_get_legacy()
188 info->legacy_unlock = 0; in board_flash_get_legacy()
189 info->manufacturer_id = (u16) ATM_MANUFACT; in board_flash_get_legacy()
190 info->device_id = ATM_ID_LV040; in board_flash_get_legacy()
191 info->device_id2 = 0; in board_flash_get_legacy()
193 info->ext_addr = 0; in board_flash_get_legacy()
194 info->cfi_version = 0x3133; in board_flash_get_legacy()
195 info->cfi_offset = 0x0000; in board_flash_get_legacy()
196 info->addr_unlock1 = 0x00000555; in board_flash_get_legacy()
197 info->addr_unlock2 = 0x000002AA; in board_flash_get_legacy()
198 info->name = "CFI conformant"; in board_flash_get_legacy()
200 info->size = 0; in board_flash_get_legacy()
201 info->sector_count = CONFIG_SYS_ATMEL_TOTALSECT; in board_flash_get_legacy()
202 info->start[0] = base; in board_flash_get_legacy()
204 info->size += sect[i] * sectsz[i]; in board_flash_get_legacy()
207 info->start[k + 1] = info->start[k] + sectsz[i]; in board_flash_get_legacy()
208 info->protect[k] = 0; in board_flash_get_legacy()