* ========== Copyright Header Begin ==========================================
* OpenSPARC T2 Processor File: mcu_fbdimm_training.s
* Copyright (C) 1995-2007 Sun Microsystems, Inc. All Rights Reserved
* 4150 Network Circle, Santa Clara, California 95054, U.S.A.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
* For the avoidance of doubt, and except that if any non-GPL license
* choice is available it will apply instead, Sun elects to use only
* the General Public License version 2 (GPLv2) at this time for any
* software where a choice of GPL license versions is made
* available with the language indicating that GPLv2 or any later version
* may be used, or where a choice of which version of the GPL is applied is
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
* CA 95054 USA or visit www.sun.com if you need additional information or
* ========== Copyright Header End ============================================
setx 0x8400000000, %l7, %l6
sethi %hi(0x00001000), %g1
sethi %hi(0x00002000), %g2
sethi %hi(0x00003000), %g3
/***added from SAT (NEW) ***/
/***End from SAT (NEW) ***/
Poll_for1st_link_training:
/***!#ifdef FBDIMMS_1***/
set_chnl_reg_2nd_link_train:
load_fbd_chnl_state_reg_2nd_link_train:
Poll_for2nd_link_training_complete:
/***!#ifdef FBDIMMS_1***/
done_mcu_fbdimm_2nd_link_training:
or %g5,%l2,%l3 ! l3 has DCALCSR_REG_ADDR_data 64'h440
or %g6,%l2,%l6 ! l6 has DCALADDR_REG_ADDR_data 64'h444
set 0x8000,%l2 ! l1 has channel b
or %l2,%l3,%g4 ! g4 has DCALCSR_REG_ADDR_data channel b 64'h8440
or %l2,%l6,%g5 ! g5 has DCALADDR_REG_ADDR_data channel b 64'8h444
! setx 0x80600000,%i2,%g6
or %i4,%g7,%g6 ! l3 has DCALCSR_REG_ADDR_data 64'h440
or %i4,%g6,%g6 ! l3 has DCALCSR_REG_ADDR_data 64'h440
/***#ifdef DUAL_CHANNEL ***/
send_all_precharge_2nd_step:
send_all_precharge_3rd_step:
send_all_precharge_4th_step:
send_all_precharge_5th_step:
send_all_precharge_6th_step:
send_all_precharge_7th_step:
send_all_precharge_8th_step:
send_auto_refresh1st_step:
send_auto_refresh2nd_step:
send_auto_refresh3rd_step:
send_auto_refresh4th_step:
send_auto_refresh_again_1st_step:
send_auto_refresh_again_2nd_step:
send_auto_refresh_again_3rd_step:
send_auto_refresh_again_4th_step:
/***#ifdef DUAL_CHANNEL***/