Marek Vasut 
							
						 
					 
					
						
						
						
						
							
						
						
							c76976d98f 
							
						 
					 
					
						
						
							
							ddr: altera: Implement universal scc manager config function  
						
						 
						
						... 
						
						
						
						Implement unified scc_mgr_set() function and convert all those
9 scc_mgr_set_*() ad-hoc functions to call this one function.
Signed-off-by: Marek Vasut <marex@denx.de> 
						
						
					 
					
						2015-08-08 14:14:12 +02:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Marek Vasut 
							
						 
					 
					
						
						
						
						
							
						
						
							5ff825b853 
							
						 
					 
					
						
						
							
							ddr: altera: Reorder scc manager functions  
						
						 
						
						... 
						
						
						
						This patch just puts functions which look similar next to each
other, so they can be sorted out. No functional change.
Signed-off-by: Marek Vasut <marex@denx.de> 
						
						
					 
					
						2015-08-08 14:14:12 +02:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Marek Vasut 
							
						 
					 
					
						
						
						
						
							
						
						
							07aee5bd98 
							
						 
					 
					
						
						
							
							ddr: altera: Clean up scc manager function args  
						
						 
						
						... 
						
						
						
						Clean up the unused args of the functions used to configure the
SCC manager.
Signed-off-by: Marek Vasut <marex@denx.de> 
						
						
					 
					
						2015-08-08 14:14:11 +02:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Marek Vasut 
							
						 
					 
					
						
						
						
						
							
						
						
							2c0d2d9c40 
							
						 
					 
					
						
						
							
							ddr: altera: Clean up reg_file_set*()  
						
						 
						
						... 
						
						
						
						Turn the insides of these functions into trivial clrsetbits_le32()
and fix the data type of their argument to reflect it's actual size.
Signed-off-by: Marek Vasut <marex@denx.de> 
						
						
					 
					
						2015-08-08 14:14:11 +02:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Marek Vasut 
							
						 
					 
					
						
						
						
						
							
						
						
							2ca151f86c 
							
						 
					 
					
						
						
							
							ddr: altera: Clean up initialize_hps_phy()  
						
						 
						
						... 
						
						
						
						Add brief kerneldoc.
Signed-off-by: Marek Vasut <marex@denx.de> 
						
						
					 
					
						2015-08-08 14:14:11 +02:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Marek Vasut 
							
						 
					 
					
						
						
						
						
							
						
						
							9c1ab2ca19 
							
						 
					 
					
						
						
							
							ddr: altera: Clean up initialize_reg_file()  
						
						 
						
						... 
						
						
						
						Add brief kerneldoc.
Signed-off-by: Marek Vasut <marex@denx.de> 
						
						
					 
					
						2015-08-08 14:14:11 +02:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Marek Vasut 
							
						 
					 
					
						
						
						
						
							
						
						
							bb06434bb2 
							
						 
					 
					
						
						
							
							ddr: altera: Clean up hc_initialize_rom_data()  
						
						 
						
						... 
						
						
						
						Clean the function up, fix data types, add kerneldoc.
Signed-off-by: Marek Vasut <marex@denx.de> 
						
						
					 
					
						2015-08-08 14:14:11 +02:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Marek Vasut 
							
						 
					 
					
						
						
						
						
							
						
						
							1273dd9ea3 
							
						 
					 
					
						
						
							
							ddr: altera: Massage addr into I/O accessors  
						
						 
						
						... 
						
						
						
						Get rid of invocations of this sort:
  addr = (u32)&base->reg;
  writel(val, addr);
Signed-off-by: Marek Vasut <marex@denx.de> 
						
						
					 
					
						2015-08-08 14:14:11 +02:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Marek Vasut 
							
						 
					 
					
						
						
						
						
							
						
						
							6cb9f16781 
							
						 
					 
					
						
						
							
							ddr: altera: Stop using SDR_CTRLGRP_ADDRESS directly  
						
						 
						
						... 
						
						
						
						Use the proper structure which describes these registers,
especially since this is already in place.
Signed-off-by: Marek Vasut <marex@denx.de> 
						
						
					 
					
						2015-08-08 14:14:11 +02:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Marek Vasut 
							
						 
					 
					
						
						
						
						
							
						
						
							17fdc9167f 
							
						 
					 
					
						
						
							
							ddr: altera: Wrap SOCFPGA_SDR_ADDRESS into SDR_PHYGRP.*ADDRESS  
						
						 
						
						... 
						
						
						
						Just trim down the constant SOCFPGA_SDR_ADDRESS + SDR_PHYGRP.*ADDRESS
in the code.
Signed-off-by: Marek Vasut <marex@denx.de> 
						
						
					 
					
						2015-08-08 14:14:11 +02:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Marek Vasut 
							
						 
					 
					
						
						
						
						
							
						
						
							c4815f7671 
							
						 
					 
					
						
						
							
							ddr: altera: Pluck out remaining sdr_get_addr() calls  
						
						 
						
						... 
						
						
						
						Remove the remaining invocations of sdr_get_addr() and the function
itself. This makes the code a bit less cryptic.
Signed-off-by: Marek Vasut <marex@denx.de> 
						
						
					 
					
						2015-08-08 14:14:11 +02:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Marek Vasut 
							
						 
					 
					
						
						
						
						
							
						
						
							1bc6f14a61 
							
						 
					 
					
						
						
							
							ddr: altera: Dissolve invocation of sdr_get_addr(&sdr_mgr_.*->.*)  
						
						 
						
						... 
						
						
						
						Instead of this indirection, just adjust the register pointer and
directly use the register base address.
Signed-off-by: Marek Vasut <marex@denx.de> 
						
						
					 
					
						2015-08-08 14:14:10 +02:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Marek Vasut 
							
						 
					 
					
						
						
						
						
							
						
						
							6afb4fe2a0 
							
						 
					 
					
						
						
							
							ddr: altera: Dissolve invocation of sdr_get_addr(&sdr_rw_load.*->.*)  
						
						 
						
						... 
						
						
						
						Instead of this indirection, just adjust the register pointer and
directly use the register base address.
Signed-off-by: Marek Vasut <marex@denx.de> 
						
						
					 
					
						2015-08-08 14:14:10 +02:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Marek Vasut 
							
						 
					 
					
						
						
						
						
							
						
						
							e79025a774 
							
						 
					 
					
						
						
							
							ddr: altera: Dissolve invocation of sdr_get_addr(&sdr_scc_mgr->.*)  
						
						 
						
						... 
						
						
						
						Instead of this indirection, just adjust the register pointer and
directly use the register base address.
Signed-off-by: Marek Vasut <marex@denx.de> 
						
						
					 
					
						2015-08-08 14:14:10 +02:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Marek Vasut 
							
						 
					 
					
						
						
						
						
							
						
						
							a1c654a893 
							
						 
					 
					
						
						
							
							ddr: altera: Dissolve invocation of sdr_get_addr(&sdr_reg_file->.*)  
						
						 
						
						... 
						
						
						
						Instead of this indirection, just adjust the register pointer and
directly use the register base address.
Signed-off-by: Marek Vasut <marex@denx.de> 
						
						
					 
					
						2015-08-08 14:14:10 +02:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Marek Vasut 
							
						 
					 
					
						
						
						
						
							
						
						
							a4bfa463e0 
							
						 
					 
					
						
						
							
							ddr: altera: Zap invocation of sdr_get_addr((u32 *)BASE_RW_MGR)"  
						
						 
						
						... 
						
						
						
						Instead of this indirection, just adjust the register pointer and
directly use the register base address.
Signed-off-by: Marek Vasut <marex@denx.de> 
						
						
					 
					
						2015-08-08 14:14:10 +02:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Marek Vasut 
							
						 
					 
					
						
						
						
						
							
						
						
							23f62b36da 
							
						 
					 
					
						
						
							
							ddr: altera: Clean up ugly casts in sdram_calibration_full()  
						
						 
						
						... 
						
						
						
						Use the correct formating string in those debug_cond() invocations
and zap those unnecessary ugly casts.
Signed-off-by: Marek Vasut <marex@denx.de> 
						
						
					 
					
						2015-08-08 14:14:10 +02:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Marek Vasut 
							
						 
					 
					
						
						
						
						
							
						
						
							963bca63b6 
							
						 
					 
					
						
						
							
							ddr: altera: Minor indent fix in set_rank_and_odt_mask()  
						
						 
						
						... 
						
						
						
						Fix the position of the } else { statement to make it correctly
indented.
Signed-off-by: Marek Vasut <marex@denx.de> 
						
						
					 
					
						2015-08-08 14:14:10 +02:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Marek Vasut 
							
						 
					 
					
						
						
						
						
							
						
						
							7ac40d25cf 
							
						 
					 
					
						
						
							
							ddr: altera: Fix debug message format in sequencer  
						
						 
						
						... 
						
						
						
						The debug messages missed proper newlines and/or spaces in them.
Fix the formatting.
Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Chin Liang See <clsee@altera.com>
Cc: Dinh Nguyen <dinguyen@altera.com>
Cc: Tom Rini <trini@konsulko.com> 
						
						
					 
					
						2015-08-08 14:14:06 +02:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Dinh Nguyen 
							
						 
					 
					
						
						
						
						
							
						
						
							3da428595e 
							
						 
					 
					
						
						
							
							driver/ddr/altera: Add the sdram calibration portion  
						
						 
						
						... 
						
						
						
						This patch adds the DDR calibration portion of the Altera SDRAM driver.
Signed-off-by: Dinh Nguyen <dinguyen@opensource.altera.com> 
						
						
					 
					
						2015-08-08 14:14:05 +02:00