AW: [U-Boot-Users] u-boot for MPC8266-PCI board

Georg Klug gklug at giga-stream.de
Mon Jul 28 23:34:46 CEST 2003


Hi all,

actually I traced down this problem. It has something to do with the setting of
the address multiplexing bits in the PSDMR register.

As stated in chapter 10.4.5.1 of the "MPC8260 PowerQUICC Users's Manual" the
SDAM setting has to equal to the shift count of the address lines lowered by 8
(sdma = <address_shift> - 8)
In chapter 10.4.12.1 there is a example of the page based interleaving
configuration. From tbale 10-22 you get that the shift count to multiplex the
address for row and column is  (rows + banks) where banks is the number of
address lines used to address the internal banks. This would conclude to a
setting of the SDAM bits to
	sdam = cols + banks - 8;

Would you agree? In that case line 430 of board/mpc8266ads/mpc8266ads.c (sdam =
cols - 6) would need to be corrected. That line failed in our case because we
have only 2 banks (which makes the banks setting to 1). I assume you only tested
with a 4 bank SDRAM.

Any comment would be apreciated.
Georg


> Rune and Yuli,
>
> thank you for your replies. I tried out Rune's hints and found the board
> resetting continously after initialization of the SDRAM. I enabled the debug
> messages in the SDRAM initialization sequence and found the following memory
> controller settings:
>
> 	U-Boot 0.4.5 (Jul 28 2003 - 14:18:33)
>
> 	MPC8260 Reset Status: External Soft, External Hard
>
> 	MPC8260 Clock Configuration
> 	 - Bus-to-Core Mult 3x, VCO Div 2, 60x Bus Freq  33-100, Core
> Freq 100-300
> 	 - dfbrg 0, corecnf 0x08, busdf 3, cpmdf 1, plldf 0, pllmf 1
> 	 - vco_out  264000000, scc_clk   66000000, brg_clk   66000000
> 	 - cpu_clk  198000000, cpm_clk  132000000, bus_clk   66000000
>
> 	CPU:   MPC8260 (HiP4 Rev 14, Mask A.0(A) 2K25A) at 198 MHz
> 	Board: Motorola MPC8266ADS
> 	I2C:   ready
> 	DRAM:
> 	memctl->memc_mptpr = 0x00001900
> 	memctl->memc_psrt  = 0x00000021
> 	memctl->memc_br2 = 0x00000041
> 	memctl->memc_or2  = 0xff001080
> 	memctl->memc_psdmr = 0xeb6eb493
> 	ramaddr = 0x00000008
> 	memctl->memc_psdmr = 0xcb6eb493
> 	memctl->memc_psdmr = 0xdb6eb493
> 	memctl->memc_psdmr = 0xc36eb493
> 	SDRAM configuration read from SPD
> 	        Size per side = 16MB
> 	        Organization: 1 sides, 2 banks, 9 Columns, 11 Rows,
> Data width = 64
> bits
> 	        Refresh rate = 33, CAS latency = 3
> 	        Total size: 16 MB
>
> In the u-boot-0.3.0 source tree I found that the memory controller was
> programmed with hard-set values. Trying these values I found that u-boot
> started to the prompt without problems. The settings are listed below:
>
> 	U-Boot 0.4.5 (Jul 28 2003 - 16:44:07)
>
> 	MPC8260 Reset Status: Software Watchdog, External Soft, External Hard
>
> 	MPC8260 Clock Configuration
> 	 - Bus-to-Core Mult 3x, VCO Div 2, 60x Bus Freq  33-100, Core
> Freq 100-300
> 	 - dfbrg 0, corecnf 0x08, busdf 3, cpmdf 1, plldf 0, pllmf 1
> 	 - vco_out  264000000, scc_clk   66000000, brg_clk   66000000
> 	 - cpu_clk  198000000, cpm_clk  132000000, bus_clk   66000000
>
> 	CPU:   MPC8260 (HiP4 Rev 14, Mask A.0(A) 2K25A) at 198 MHz
> 	Board: Motorola MPC8266ADS
> 	I2C:   ready
> 	DRAM:
> 	memctl->memc_mptpr = 0x00001900
> 	memctl->memc_psrt  = 0x00000021
> 	memctl->memc_br2 = 0x00000041
> 	memctl->memc_or2  = 0xff001080
> 	memctl->memc_psdmr = 0x296eb452     <=>    0xeb6eb493
> 	ramaddr = 0x00000008
> 	memctl->memc_psdmr = 0x096eb452     <=>    0xcb6eb493
> 	memctl->memc_psdmr = 0x196eb452     <=>    0xdb6eb493
> 	memctl->memc_psdmr = 0x416eb452     <=>    0xc36eb493
> 	SDRAM configuration read from SPD
> 	        Size per side = 16MB
> 	        Organization: 1 sides, 2 banks, 9 Columns, 11 Rows,
> Data width = 64
> bits
> 	        Refresh rate = 33, CAS latency = 3
> 	        Total size: 16 MB
> 	FLASH:  8 MB
> 	*** Warning - bad CRC, using default environment
>
> 	In:    serial
> 	Out:   serial
> 	Err:   serial
> 	Net:   FCC2 ETHERNET
> 	Hit any key to stop autoboot
> 	=>
>
> Playing with the parameters I found that the problem is located in the SDAM
> bits of the PSDMR register which have to be programmed for my board as shown
> in the second setting. Any ideas?
>
> I have another question according the CIP and BMS settings of the HRCW. They
> are both set to '1' which means that exceptions are vectored to 0x000n_nnnn
> and boot memory region is located at 0x0000_0000. I tried out to set those
> bits to '0', it didn't work. Why?
>
> Best regards,
>
> Thomas Schäfer
>
> ____________________________________
>
> GIGA STREAM GmbH
>
> Konrad-Zuse-Str. 7
> 66115 Saarbrücken
>
> Tel.: + 49 (0)681 / 95916 - 203
> Fax:  + 49 (0)681 / 95916 - 100
> E-mail: tschaefer at giga-stream.de
>
>
>
>
> -------------------------------------------------------
> This SF.Net email sponsored by: Free pre-built ASP.NET sites including
> Data Reports, E-commerce, Portals, and Forums are available now.
> Download today and enter to win an XBOX or Visual Studio .NET.
> http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
> _______________________________________________
> U-Boot-Users mailing list
> U-Boot-Users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/u-boot-users
>
>






More information about the U-Boot mailing list