Merge git://git.denx.de/u-boot-marvell
- Enable network interface on clearfog_gt_8k (Baruch) - Fix dreamplug boot by adding an spi0 alias to the DT (Chris) - Fix / enhance Marvell ddr3 setup / parameters (Chris) - Change CONFIG_SYS_MALLOC_F_LEN to 0x2000 on db-88f6820-amc (Chris) - Enable SPL_FLASH_BAR on db-88f6820-amc (Chris) - Use correct pcie controller name in Armada-38x dts files (Chris) - Disable d-cache on Kirkwood platforms as currently needed (Chris) - Add a more descriptive comment to pci_mvebu.c (Stefan) - Update Marvell maintainers entry (Stefan)
This commit is contained in:
@@ -420,13 +420,13 @@ unsigned int mv_ddr_speed_bin_timing_get(enum mv_ddr_speed_bin index, enum mv_dd
|
||||
result = speed_bin_table_t_rcd_t_rp[index];
|
||||
break;
|
||||
case SPEED_BIN_TRAS:
|
||||
if (index < SPEED_BIN_DDR_1066G)
|
||||
if (index <= SPEED_BIN_DDR_1066G)
|
||||
result = 37500;
|
||||
else if (index < SPEED_BIN_DDR_1333J)
|
||||
else if (index <= SPEED_BIN_DDR_1333J)
|
||||
result = 36000;
|
||||
else if (index < SPEED_BIN_DDR_1600K)
|
||||
else if (index <= SPEED_BIN_DDR_1600K)
|
||||
result = 35000;
|
||||
else if (index < SPEED_BIN_DDR_1866M)
|
||||
else if (index <= SPEED_BIN_DDR_1866M)
|
||||
result = 34000;
|
||||
else
|
||||
result = 33000;
|
||||
|
||||
@@ -50,6 +50,7 @@ int ddr3_tip_write_additional_odt_setting(u32 dev_num, u32 if_id)
|
||||
int max_phase = MIN_VALUE, current_phase;
|
||||
enum hws_access_type access_type = ACCESS_TYPE_UNICAST;
|
||||
u32 octets_per_if_num = ddr3_tip_dev_attr_get(dev_num, MV_ATTR_OCTET_PER_INTERFACE);
|
||||
unsigned int max_cs = mv_ddr_cs_num_get();
|
||||
|
||||
CHECK_STATUS(ddr3_tip_if_write(dev_num, access_type, if_id,
|
||||
DUNIT_ODT_CTRL_REG,
|
||||
@@ -59,7 +60,7 @@ int ddr3_tip_write_additional_odt_setting(u32 dev_num, u32 if_id)
|
||||
data_read, MASK_ALL_BITS));
|
||||
val = data_read[if_id];
|
||||
|
||||
for (cs_num = 0; cs_num < MAX_CS_NUM; cs_num++) {
|
||||
for (cs_num = 0; cs_num < max_cs; cs_num++) {
|
||||
read_sample[cs_num] = GET_RD_SAMPLE_DELAY(val, cs_num);
|
||||
|
||||
/* find maximum of read_samples */
|
||||
|
||||
@@ -369,6 +369,12 @@ static int mvebu_get_tgt_attr(ofnode node, int devfn,
|
||||
if (!range)
|
||||
return -EINVAL;
|
||||
|
||||
/*
|
||||
* Linux uses of_n_addr_cells() to get the number of address cells
|
||||
* here. Currently this function is only available in U-Boot when
|
||||
* CONFIG_OF_LIVE is enabled. Until this is enabled for MVEBU in
|
||||
* general, lets't hardcode the "pna" value in the U-Boot code.
|
||||
*/
|
||||
pna = 2; /* hardcoded for now because of lack of of_n_addr_cells() */
|
||||
rangesz = pna + na + ns;
|
||||
nranges = rlen / sizeof(__be32) / rangesz;
|
||||
|
||||
Reference in New Issue
Block a user