1*83d290c5STom Rini // SPDX-License-Identifier: GPL-2.0+ 27ad2a5b8SMichal Simek /* 37ad2a5b8SMichal Simek * (c) Copyright 2010-2014 Xilinx, Inc. All rights reserved. 47ad2a5b8SMichal Simek */ 57ad2a5b8SMichal Simek 67ad2a5b8SMichal Simek #include <asm/arch/ps7_init_gpl.h> 77ad2a5b8SMichal Simek 87ad2a5b8SMichal Simek static unsigned long ps7_pll_init_data_3_0[] = { 97ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000008, 0x0000FFFFU, 0x0000DF0DU), 107ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000110, 0x003FFFF0U, 0x000FA220U), 117ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000100, 0x0007F000U, 0x00028000U), 127ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000100, 0x00000010U, 0x00000010U), 137ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000100, 0x00000001U, 0x00000001U), 147ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000100, 0x00000001U, 0x00000000U), 157ad2a5b8SMichal Simek EMIT_MASKPOLL(0xF800010C, 0x00000001U), 167ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000100, 0x00000010U, 0x00000000U), 177ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000120, 0x1F003F30U, 0x1F000200U), 187ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000114, 0x003FFFF0U, 0x0012C220U), 197ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000104, 0x0007F000U, 0x00020000U), 207ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000104, 0x00000010U, 0x00000010U), 217ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000104, 0x00000001U, 0x00000001U), 227ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000104, 0x00000001U, 0x00000000U), 237ad2a5b8SMichal Simek EMIT_MASKPOLL(0xF800010C, 0x00000002U), 247ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000104, 0x00000010U, 0x00000000U), 257ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000124, 0xFFF00003U, 0x0C200003U), 267ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000118, 0x003FFFF0U, 0x001452C0U), 277ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000108, 0x0007F000U, 0x0001E000U), 287ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000108, 0x00000010U, 0x00000010U), 297ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000108, 0x00000001U, 0x00000001U), 307ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000108, 0x00000001U, 0x00000000U), 317ad2a5b8SMichal Simek EMIT_MASKPOLL(0xF800010C, 0x00000004U), 327ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000108, 0x00000010U, 0x00000000U), 337ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000004, 0x0000FFFFU, 0x0000767BU), 347ad2a5b8SMichal Simek EMIT_EXIT(), 357ad2a5b8SMichal Simek }; 367ad2a5b8SMichal Simek 377ad2a5b8SMichal Simek static unsigned long ps7_clock_init_data_3_0[] = { 387ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000008, 0x0000FFFFU, 0x0000DF0DU), 397ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000128, 0x03F03F01U, 0x00700F01U), 407ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000148, 0x00003F31U, 0x00000A01U), 417ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000154, 0x00003F33U, 0x00001402U), 427ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000158, 0x00003F33U, 0x00000601U), 437ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF800015C, 0x03F03F33U, 0x00600701U), 447ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000160, 0x007F007FU, 0x00000000U), 457ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000168, 0x00003F31U, 0x00000501U), 467ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000170, 0x03F03F30U, 0x00400500U), 477ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80001C4, 0x00000001U, 0x00000001U), 487ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF800012C, 0x01FFCCCDU, 0x016D400DU), 497ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000304, 0x00000001U, 0x00000000U), 507ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000004, 0x0000FFFFU, 0x0000767BU), 517ad2a5b8SMichal Simek EMIT_EXIT(), 527ad2a5b8SMichal Simek }; 537ad2a5b8SMichal Simek 547ad2a5b8SMichal Simek static unsigned long ps7_ddr_init_data_3_0[] = { 557ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006000, 0x0001FFFFU, 0x00000080U), 567ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006004, 0x0007FFFFU, 0x00001081U), 577ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006008, 0x03FFFFFFU, 0x03C0780FU), 587ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF800600C, 0x03FFFFFFU, 0x02001001U), 597ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006010, 0x03FFFFFFU, 0x00014001U), 607ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006014, 0x001FFFFFU, 0x0004159BU), 617ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006018, 0xF7FFFFFFU, 0x44E438D2U), 627ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF800601C, 0xFFFFFFFFU, 0x720238E5U), 637ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006020, 0x7FDFFFFCU, 0x27087290U), 647ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006024, 0x0FFFFFC3U, 0x00000000U), 657ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006028, 0x00003FFFU, 0x00002007U), 667ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF800602C, 0xFFFFFFFFU, 0x00000008U), 677ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006030, 0xFFFFFFFFU, 0x00040930U), 687ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006034, 0x13FF3FFFU, 0x000116D4U), 697ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006038, 0x00000003U, 0x00000000U), 707ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF800603C, 0x000FFFFFU, 0x00000777U), 717ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006040, 0xFFFFFFFFU, 0xFFF00000U), 727ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006044, 0x0FFFFFFFU, 0x0F666666U), 737ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006048, 0x0003F03FU, 0x0003C008U), 747ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006050, 0xFF0F8FFFU, 0x77010800U), 757ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006058, 0x00010000U, 0x00000000U), 767ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF800605C, 0x0000FFFFU, 0x00005003U), 777ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006060, 0x000017FFU, 0x0000003EU), 787ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006064, 0x00021FE0U, 0x00020000U), 797ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006068, 0x03FFFFFFU, 0x00284141U), 807ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF800606C, 0x0000FFFFU, 0x00001610U), 817ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006078, 0x03FFFFFFU, 0x00466111U), 827ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF800607C, 0x000FFFFFU, 0x00032222U), 837ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80060A4, 0xFFFFFFFFU, 0x10200802U), 847ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80060A8, 0x0FFFFFFFU, 0x0690CB73U), 857ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80060AC, 0x000001FFU, 0x000001FEU), 867ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80060B0, 0x1FFFFFFFU, 0x1CFFFFFFU), 877ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80060B4, 0x00000200U, 0x00000200U), 887ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80060B8, 0x01FFFFFFU, 0x00200066U), 897ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80060C4, 0x00000003U, 0x00000003U), 907ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80060C4, 0x00000003U, 0x00000000U), 917ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80060C8, 0x000000FFU, 0x00000000U), 927ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80060DC, 0x00000001U, 0x00000000U), 937ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80060F0, 0x0000FFFFU, 0x00000000U), 947ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80060F4, 0x0000000FU, 0x00000008U), 957ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006114, 0x000000FFU, 0x00000000U), 967ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006118, 0x7FFFFFCFU, 0x40000001U), 977ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF800611C, 0x7FFFFFCFU, 0x40000001U), 987ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006120, 0x7FFFFFCFU, 0x40000001U), 997ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006124, 0x7FFFFFCFU, 0x40000001U), 1007ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF800612C, 0x000FFFFFU, 0x00039C1BU), 1017ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006130, 0x000FFFFFU, 0x00037C35U), 1027ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006134, 0x000FFFFFU, 0x0003942FU), 1037ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006138, 0x000FFFFFU, 0x00038C1FU), 1047ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006140, 0x000FFFFFU, 0x00000035U), 1057ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006144, 0x000FFFFFU, 0x00000035U), 1067ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006148, 0x000FFFFFU, 0x00000035U), 1077ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF800614C, 0x000FFFFFU, 0x00000035U), 1087ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006154, 0x000FFFFFU, 0x0000009BU), 1097ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006158, 0x000FFFFFU, 0x000000B5U), 1107ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF800615C, 0x000FFFFFU, 0x000000AFU), 1117ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006160, 0x000FFFFFU, 0x0000009FU), 1127ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006168, 0x001FFFFFU, 0x0000013CU), 1137ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF800616C, 0x001FFFFFU, 0x00000134U), 1147ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006170, 0x001FFFFFU, 0x0000013AU), 1157ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006174, 0x001FFFFFU, 0x00000138U), 1167ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF800617C, 0x000FFFFFU, 0x000000DBU), 1177ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006180, 0x000FFFFFU, 0x000000F5U), 1187ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006184, 0x000FFFFFU, 0x000000EFU), 1197ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006188, 0x000FFFFFU, 0x000000DFU), 1207ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006190, 0x6FFFFEFEU, 0x00040080U), 1217ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006194, 0x000FFFFFU, 0x0001FC82U), 1227ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006204, 0xFFFFFFFFU, 0x00000000U), 1237ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006208, 0x000703FFU, 0x000003FFU), 1247ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF800620C, 0x000703FFU, 0x000003FFU), 1257ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006210, 0x000703FFU, 0x000003FFU), 1267ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006214, 0x000703FFU, 0x000003FFU), 1277ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006218, 0x000F03FFU, 0x000003FFU), 1287ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF800621C, 0x000F03FFU, 0x000003FFU), 1297ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006220, 0x000F03FFU, 0x000003FFU), 1307ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006224, 0x000F03FFU, 0x000003FFU), 1317ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80062A8, 0x00000FF5U, 0x00000000U), 1327ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80062AC, 0xFFFFFFFFU, 0x00000000U), 1337ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80062B0, 0x003FFFFFU, 0x00005125U), 1347ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80062B4, 0x0003FFFFU, 0x000012A8U), 1357ad2a5b8SMichal Simek EMIT_MASKPOLL(0xF8000B74, 0x00002000U), 1367ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006000, 0x0001FFFFU, 0x00000081U), 1377ad2a5b8SMichal Simek EMIT_MASKPOLL(0xF8006054, 0x00000007U), 1387ad2a5b8SMichal Simek EMIT_EXIT(), 1397ad2a5b8SMichal Simek }; 1407ad2a5b8SMichal Simek 1417ad2a5b8SMichal Simek static unsigned long ps7_mio_init_data_3_0[] = { 1427ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000008, 0x0000FFFFU, 0x0000DF0DU), 1437ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000B40, 0x00000FFFU, 0x00000600U), 1447ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000B44, 0x00000FFFU, 0x00000600U), 1457ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000B48, 0x00000FFFU, 0x00000672U), 1467ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000B4C, 0x00000FFFU, 0x00000672U), 1477ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000B50, 0x00000FFFU, 0x00000674U), 1487ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000B54, 0x00000FFFU, 0x00000674U), 1497ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000B58, 0x00000FFFU, 0x00000600U), 1507ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000B5C, 0xFFFFFFFFU, 0x0018C61CU), 1517ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000B60, 0xFFFFFFFFU, 0x00F9861CU), 1527ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000B64, 0xFFFFFFFFU, 0x00F9861CU), 1537ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000B68, 0xFFFFFFFFU, 0x00F9861CU), 1547ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000B6C, 0x00007FFFU, 0x00000209U), 1557ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000B70, 0x00000001U, 0x00000001U), 1567ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000B70, 0x00000021U, 0x00000020U), 1577ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000B70, 0x07FEFFFFU, 0x00000823U), 1587ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000700, 0x00003FFFU, 0x00001610U), 1597ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000708, 0x00003FFFU, 0x00000610U), 1607ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF800070C, 0x00003FFFU, 0x00000610U), 1617ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000710, 0x00003FFFU, 0x00000610U), 1627ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000714, 0x00003FFFU, 0x00000610U), 1637ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000718, 0x00003FFFU, 0x00000610U), 1647ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF800071C, 0x00003FFFU, 0x00000610U), 1657ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000720, 0x00003FFFU, 0x00000610U), 1667ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000724, 0x00003FFFU, 0x00000610U), 1677ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000728, 0x00003FFFU, 0x00000610U), 1687ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF800072C, 0x00003FFFU, 0x00000610U), 1697ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000730, 0x00003FFFU, 0x00000610U), 1707ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000734, 0x00003FFFU, 0x00000610U), 1717ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000738, 0x00003FFFU, 0x00000611U), 1727ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000760, 0x00003FFFU, 0x000006E0U), 1737ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000764, 0x00003FFFU, 0x000006E1U), 1747ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000768, 0x00003FFFU, 0x00000621U), 1757ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF800076C, 0x00003FFFU, 0x00000620U), 1767ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000770, 0x00003FFFU, 0x000016A0U), 1777ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000774, 0x00003FFFU, 0x000016A0U), 1787ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000778, 0x00003FFFU, 0x000016A0U), 1797ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF800077C, 0x00003FFFU, 0x000016A0U), 1807ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000780, 0x00003FFFU, 0x000016A0U), 1817ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000784, 0x00003FFFU, 0x000016A0U), 1827ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000788, 0x00003FFFU, 0x00001661U), 1837ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF800078C, 0x00003FFFU, 0x00001660U), 1847ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000790, 0x00003FFFU, 0x00001661U), 1857ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000794, 0x00003FFFU, 0x00001661U), 1867ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000798, 0x00003FFFU, 0x00000661U), 1877ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF800079C, 0x00003FFFU, 0x00000660U), 1887ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80007A0, 0x00003FFFU, 0x00000704U), 1897ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80007A4, 0x00003FFFU, 0x00000705U), 1907ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80007A8, 0x00003FFFU, 0x00000704U), 1917ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80007AC, 0x00003FFFU, 0x00000705U), 1927ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80007B0, 0x00003FFFU, 0x00000704U), 1937ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80007B4, 0x00003FFFU, 0x00000704U), 1947ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80007B8, 0x00003FFFU, 0x00000704U), 1957ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80007BC, 0x00003FFFU, 0x00000704U), 1967ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80007C0, 0x00003FFFU, 0x00000705U), 1977ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80007C4, 0x00003FFFU, 0x00000704U), 1987ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80007C8, 0x00003FFFU, 0x00000704U), 1997ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80007CC, 0x00003FFFU, 0x00000704U), 2007ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80007D0, 0x00003FFFU, 0x00000640U), 2017ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80007D4, 0x00003FFFU, 0x00000640U), 2027ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000004, 0x0000FFFFU, 0x0000767BU), 2037ad2a5b8SMichal Simek EMIT_EXIT(), 2047ad2a5b8SMichal Simek }; 2057ad2a5b8SMichal Simek 2067ad2a5b8SMichal Simek static unsigned long ps7_peripherals_init_data_3_0[] = { 2077ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000008, 0x0000FFFFU, 0x0000DF0DU), 2087ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000B48, 0x00000180U, 0x00000180U), 2097ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000B4C, 0x00000180U, 0x00000180U), 2107ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000B50, 0x00000180U, 0x00000180U), 2117ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000B54, 0x00000180U, 0x00000180U), 2127ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000004, 0x0000FFFFU, 0x0000767BU), 2137ad2a5b8SMichal Simek EMIT_MASKWRITE(0xE0001034, 0x000000FFU, 0x00000006U), 2147ad2a5b8SMichal Simek EMIT_MASKWRITE(0xE0001018, 0x0000FFFFU, 0x0000003EU), 2157ad2a5b8SMichal Simek EMIT_MASKWRITE(0xE0001000, 0x000001FFU, 0x00000017U), 2167ad2a5b8SMichal Simek EMIT_MASKWRITE(0xE0001004, 0x000003FFU, 0x00000020U), 2177ad2a5b8SMichal Simek EMIT_MASKWRITE(0xE000D000, 0x00080000U, 0x00080000U), 2187ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8007000, 0x20000000U, 0x00000000U), 2197ad2a5b8SMichal Simek EMIT_MASKWRITE(0xE000E014, 0x00FFFFFFU, 0x00245A55U), 2207ad2a5b8SMichal Simek EMIT_MASKWRITE(0xE000E018, 0x00000003U, 0x00000000U), 2217ad2a5b8SMichal Simek EMIT_MASKWRITE(0xE000E010, 0x03E00000U, 0x02400000U), 2227ad2a5b8SMichal Simek EMIT_MASKDELAY(0xF8F00200, 1), 2237ad2a5b8SMichal Simek EMIT_MASKDELAY(0xF8F00200, 1), 2247ad2a5b8SMichal Simek EMIT_MASKDELAY(0xF8F00200, 1), 2257ad2a5b8SMichal Simek EMIT_MASKDELAY(0xF8F00200, 1), 2267ad2a5b8SMichal Simek EMIT_MASKDELAY(0xF8F00200, 1), 2277ad2a5b8SMichal Simek EMIT_MASKDELAY(0xF8F00200, 1), 2287ad2a5b8SMichal Simek EMIT_EXIT(), 2297ad2a5b8SMichal Simek }; 2307ad2a5b8SMichal Simek 2317ad2a5b8SMichal Simek static unsigned long ps7_post_config_3_0[] = { 2327ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000008, 0x0000FFFFU, 0x0000DF0DU), 2337ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000900, 0x0000000FU, 0x0000000FU), 2347ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000240, 0xFFFFFFFFU, 0x00000000U), 2357ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000004, 0x0000FFFFU, 0x0000767BU), 2367ad2a5b8SMichal Simek EMIT_EXIT(), 2377ad2a5b8SMichal Simek }; 2387ad2a5b8SMichal Simek 2397ad2a5b8SMichal Simek static unsigned long ps7_pll_init_data_2_0[] = { 2407ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000008, 0x0000FFFFU, 0x0000DF0DU), 2417ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000110, 0x003FFFF0U, 0x000FA220U), 2427ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000100, 0x0007F000U, 0x00028000U), 2437ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000100, 0x00000010U, 0x00000010U), 2447ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000100, 0x00000001U, 0x00000001U), 2457ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000100, 0x00000001U, 0x00000000U), 2467ad2a5b8SMichal Simek EMIT_MASKPOLL(0xF800010C, 0x00000001U), 2477ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000100, 0x00000010U, 0x00000000U), 2487ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000120, 0x1F003F30U, 0x1F000200U), 2497ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000114, 0x003FFFF0U, 0x0012C220U), 2507ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000104, 0x0007F000U, 0x00020000U), 2517ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000104, 0x00000010U, 0x00000010U), 2527ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000104, 0x00000001U, 0x00000001U), 2537ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000104, 0x00000001U, 0x00000000U), 2547ad2a5b8SMichal Simek EMIT_MASKPOLL(0xF800010C, 0x00000002U), 2557ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000104, 0x00000010U, 0x00000000U), 2567ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000124, 0xFFF00003U, 0x0C200003U), 2577ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000118, 0x003FFFF0U, 0x001452C0U), 2587ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000108, 0x0007F000U, 0x0001E000U), 2597ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000108, 0x00000010U, 0x00000010U), 2607ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000108, 0x00000001U, 0x00000001U), 2617ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000108, 0x00000001U, 0x00000000U), 2627ad2a5b8SMichal Simek EMIT_MASKPOLL(0xF800010C, 0x00000004U), 2637ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000108, 0x00000010U, 0x00000000U), 2647ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000004, 0x0000FFFFU, 0x0000767BU), 2657ad2a5b8SMichal Simek EMIT_EXIT(), 2667ad2a5b8SMichal Simek }; 2677ad2a5b8SMichal Simek 2687ad2a5b8SMichal Simek static unsigned long ps7_clock_init_data_2_0[] = { 2697ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000008, 0x0000FFFFU, 0x0000DF0DU), 2707ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000128, 0x03F03F01U, 0x00700F01U), 2717ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000148, 0x00003F31U, 0x00000A01U), 2727ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000154, 0x00003F33U, 0x00001402U), 2737ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000158, 0x00003F33U, 0x00000601U), 2747ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF800015C, 0x03F03F33U, 0x00600701U), 2757ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000160, 0x007F007FU, 0x00000000U), 2767ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000168, 0x00003F31U, 0x00000501U), 2777ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000170, 0x03F03F30U, 0x00400500U), 2787ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80001C4, 0x00000001U, 0x00000001U), 2797ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF800012C, 0x01FFCCCDU, 0x016D400DU), 2807ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000304, 0x00000001U, 0x00000000U), 2817ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000004, 0x0000FFFFU, 0x0000767BU), 2827ad2a5b8SMichal Simek EMIT_EXIT(), 2837ad2a5b8SMichal Simek }; 2847ad2a5b8SMichal Simek 2857ad2a5b8SMichal Simek static unsigned long ps7_ddr_init_data_2_0[] = { 2867ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006000, 0x0001FFFFU, 0x00000080U), 2877ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006004, 0x1FFFFFFFU, 0x00081081U), 2887ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006008, 0x03FFFFFFU, 0x03C0780FU), 2897ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF800600C, 0x03FFFFFFU, 0x02001001U), 2907ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006010, 0x03FFFFFFU, 0x00014001U), 2917ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006014, 0x001FFFFFU, 0x0004159BU), 2927ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006018, 0xF7FFFFFFU, 0x44E438D2U), 2937ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF800601C, 0xFFFFFFFFU, 0x720238E5U), 2947ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006020, 0xFFFFFFFCU, 0x27287290U), 2957ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006024, 0x0FFFFFFFU, 0x0000003CU), 2967ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006028, 0x00003FFFU, 0x00002007U), 2977ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF800602C, 0xFFFFFFFFU, 0x00000008U), 2987ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006030, 0xFFFFFFFFU, 0x00040930U), 2997ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006034, 0x13FF3FFFU, 0x000116D4U), 3007ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006038, 0x00001FC3U, 0x00000000U), 3017ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF800603C, 0x000FFFFFU, 0x00000777U), 3027ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006040, 0xFFFFFFFFU, 0xFFF00000U), 3037ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006044, 0x0FFFFFFFU, 0x0F666666U), 3047ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006048, 0x3FFFFFFFU, 0x0003C248U), 3057ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006050, 0xFF0F8FFFU, 0x77010800U), 3067ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006058, 0x0001FFFFU, 0x00000101U), 3077ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF800605C, 0x0000FFFFU, 0x00005003U), 3087ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006060, 0x000017FFU, 0x0000003EU), 3097ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006064, 0x00021FE0U, 0x00020000U), 3107ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006068, 0x03FFFFFFU, 0x00284141U), 3117ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF800606C, 0x0000FFFFU, 0x00001610U), 3127ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006078, 0x03FFFFFFU, 0x00466111U), 3137ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF800607C, 0x000FFFFFU, 0x00032222U), 3147ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80060A0, 0x00FFFFFFU, 0x00008000U), 3157ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80060A4, 0xFFFFFFFFU, 0x10200802U), 3167ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80060A8, 0x0FFFFFFFU, 0x0690CB73U), 3177ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80060AC, 0x000001FFU, 0x000001FEU), 3187ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80060B0, 0x1FFFFFFFU, 0x1CFFFFFFU), 3197ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80060B4, 0x000007FFU, 0x00000200U), 3207ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80060B8, 0x01FFFFFFU, 0x00200066U), 3217ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80060C4, 0x00000003U, 0x00000003U), 3227ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80060C4, 0x00000003U, 0x00000000U), 3237ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80060C8, 0x000000FFU, 0x00000000U), 3247ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80060DC, 0x00000001U, 0x00000000U), 3257ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80060F0, 0x0000FFFFU, 0x00000000U), 3267ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80060F4, 0x0000000FU, 0x00000008U), 3277ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006114, 0x000000FFU, 0x00000000U), 3287ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006118, 0x7FFFFFFFU, 0x40000001U), 3297ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF800611C, 0x7FFFFFFFU, 0x40000001U), 3307ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006120, 0x7FFFFFFFU, 0x40000001U), 3317ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006124, 0x7FFFFFFFU, 0x40000001U), 3327ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF800612C, 0x000FFFFFU, 0x00039C1BU), 3337ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006130, 0x000FFFFFU, 0x00037C35U), 3347ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006134, 0x000FFFFFU, 0x0003942FU), 3357ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006138, 0x000FFFFFU, 0x00038C1FU), 3367ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006140, 0x000FFFFFU, 0x00000035U), 3377ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006144, 0x000FFFFFU, 0x00000035U), 3387ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006148, 0x000FFFFFU, 0x00000035U), 3397ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF800614C, 0x000FFFFFU, 0x00000035U), 3407ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006154, 0x000FFFFFU, 0x0000009BU), 3417ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006158, 0x000FFFFFU, 0x000000B5U), 3427ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF800615C, 0x000FFFFFU, 0x000000AFU), 3437ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006160, 0x000FFFFFU, 0x0000009FU), 3447ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006168, 0x001FFFFFU, 0x0000013CU), 3457ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF800616C, 0x001FFFFFU, 0x00000134U), 3467ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006170, 0x001FFFFFU, 0x0000013AU), 3477ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006174, 0x001FFFFFU, 0x00000138U), 3487ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF800617C, 0x000FFFFFU, 0x000000DBU), 3497ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006180, 0x000FFFFFU, 0x000000F5U), 3507ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006184, 0x000FFFFFU, 0x000000EFU), 3517ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006188, 0x000FFFFFU, 0x000000DFU), 3527ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006190, 0xFFFFFFFFU, 0x10040080U), 3537ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006194, 0x000FFFFFU, 0x0001FC82U), 3547ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006204, 0xFFFFFFFFU, 0x00000000U), 3557ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006208, 0x000F03FFU, 0x000803FFU), 3567ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF800620C, 0x000F03FFU, 0x000803FFU), 3577ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006210, 0x000F03FFU, 0x000803FFU), 3587ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006214, 0x000F03FFU, 0x000803FFU), 3597ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006218, 0x000F03FFU, 0x000003FFU), 3607ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF800621C, 0x000F03FFU, 0x000003FFU), 3617ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006220, 0x000F03FFU, 0x000003FFU), 3627ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006224, 0x000F03FFU, 0x000003FFU), 3637ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80062A8, 0x00000FF7U, 0x00000000U), 3647ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80062AC, 0xFFFFFFFFU, 0x00000000U), 3657ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80062B0, 0x003FFFFFU, 0x00005125U), 3667ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80062B4, 0x0003FFFFU, 0x000012A8U), 3677ad2a5b8SMichal Simek EMIT_MASKPOLL(0xF8000B74, 0x00002000U), 3687ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006000, 0x0001FFFFU, 0x00000081U), 3697ad2a5b8SMichal Simek EMIT_MASKPOLL(0xF8006054, 0x00000007U), 3707ad2a5b8SMichal Simek EMIT_EXIT(), 3717ad2a5b8SMichal Simek }; 3727ad2a5b8SMichal Simek 3737ad2a5b8SMichal Simek static unsigned long ps7_mio_init_data_2_0[] = { 3747ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000008, 0x0000FFFFU, 0x0000DF0DU), 3757ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000B40, 0x00000FFFU, 0x00000600U), 3767ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000B44, 0x00000FFFU, 0x00000600U), 3777ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000B48, 0x00000FFFU, 0x00000672U), 3787ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000B4C, 0x00000FFFU, 0x00000672U), 3797ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000B50, 0x00000FFFU, 0x00000674U), 3807ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000B54, 0x00000FFFU, 0x00000674U), 3817ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000B58, 0x00000FFFU, 0x00000600U), 3827ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000B5C, 0xFFFFFFFFU, 0x0018C61CU), 3837ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000B60, 0xFFFFFFFFU, 0x00F9861CU), 3847ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000B64, 0xFFFFFFFFU, 0x00F9861CU), 3857ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000B68, 0xFFFFFFFFU, 0x00F9861CU), 3867ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000B6C, 0x00007FFFU, 0x00000209U), 3877ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000B70, 0x00000021U, 0x00000021U), 3887ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000B70, 0x00000021U, 0x00000020U), 3897ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000B70, 0x07FFFFFFU, 0x00000823U), 3907ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000700, 0x00003FFFU, 0x00001610U), 3917ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000708, 0x00003FFFU, 0x00000610U), 3927ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF800070C, 0x00003FFFU, 0x00000610U), 3937ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000710, 0x00003FFFU, 0x00000610U), 3947ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000714, 0x00003FFFU, 0x00000610U), 3957ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000718, 0x00003FFFU, 0x00000610U), 3967ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF800071C, 0x00003FFFU, 0x00000610U), 3977ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000720, 0x00003FFFU, 0x00000610U), 3987ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000724, 0x00003FFFU, 0x00000610U), 3997ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000728, 0x00003FFFU, 0x00000610U), 4007ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF800072C, 0x00003FFFU, 0x00000610U), 4017ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000730, 0x00003FFFU, 0x00000610U), 4027ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000734, 0x00003FFFU, 0x00000610U), 4037ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000738, 0x00003FFFU, 0x00000611U), 4047ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000760, 0x00003FFFU, 0x000006E0U), 4057ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000764, 0x00003FFFU, 0x000006E1U), 4067ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000768, 0x00003FFFU, 0x00000621U), 4077ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF800076C, 0x00003FFFU, 0x00000620U), 4087ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000770, 0x00003FFFU, 0x000016A0U), 4097ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000774, 0x00003FFFU, 0x000016A0U), 4107ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000778, 0x00003FFFU, 0x000016A0U), 4117ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF800077C, 0x00003FFFU, 0x000016A0U), 4127ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000780, 0x00003FFFU, 0x000016A0U), 4137ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000784, 0x00003FFFU, 0x000016A0U), 4147ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000788, 0x00003FFFU, 0x00001661U), 4157ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF800078C, 0x00003FFFU, 0x00001660U), 4167ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000790, 0x00003FFFU, 0x00001661U), 4177ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000794, 0x00003FFFU, 0x00001661U), 4187ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000798, 0x00003FFFU, 0x00000661U), 4197ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF800079C, 0x00003FFFU, 0x00000660U), 4207ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80007A0, 0x00003FFFU, 0x00000704U), 4217ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80007A4, 0x00003FFFU, 0x00000705U), 4227ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80007A8, 0x00003FFFU, 0x00000704U), 4237ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80007AC, 0x00003FFFU, 0x00000705U), 4247ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80007B0, 0x00003FFFU, 0x00000704U), 4257ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80007B4, 0x00003FFFU, 0x00000704U), 4267ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80007B8, 0x00003FFFU, 0x00000704U), 4277ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80007BC, 0x00003FFFU, 0x00000704U), 4287ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80007C0, 0x00003FFFU, 0x00000705U), 4297ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80007C4, 0x00003FFFU, 0x00000704U), 4307ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80007C8, 0x00003FFFU, 0x00000704U), 4317ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80007CC, 0x00003FFFU, 0x00000704U), 4327ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80007D0, 0x00003FFFU, 0x00000640U), 4337ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80007D4, 0x00003FFFU, 0x00000640U), 4347ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000004, 0x0000FFFFU, 0x0000767BU), 4357ad2a5b8SMichal Simek EMIT_EXIT(), 4367ad2a5b8SMichal Simek }; 4377ad2a5b8SMichal Simek 4387ad2a5b8SMichal Simek static unsigned long ps7_peripherals_init_data_2_0[] = { 4397ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000008, 0x0000FFFFU, 0x0000DF0DU), 4407ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000B48, 0x00000180U, 0x00000180U), 4417ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000B4C, 0x00000180U, 0x00000180U), 4427ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000B50, 0x00000180U, 0x00000180U), 4437ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000B54, 0x00000180U, 0x00000180U), 4447ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000004, 0x0000FFFFU, 0x0000767BU), 4457ad2a5b8SMichal Simek EMIT_MASKWRITE(0xE0001034, 0x000000FFU, 0x00000006U), 4467ad2a5b8SMichal Simek EMIT_MASKWRITE(0xE0001018, 0x0000FFFFU, 0x0000003EU), 4477ad2a5b8SMichal Simek EMIT_MASKWRITE(0xE0001000, 0x000001FFU, 0x00000017U), 4487ad2a5b8SMichal Simek EMIT_MASKWRITE(0xE0001004, 0x00000FFFU, 0x00000020U), 4497ad2a5b8SMichal Simek EMIT_MASKWRITE(0xE000D000, 0x00080000U, 0x00080000U), 4507ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8007000, 0x20000000U, 0x00000000U), 4517ad2a5b8SMichal Simek EMIT_MASKWRITE(0xE000E014, 0x00FFFFFFU, 0x00245A55U), 4527ad2a5b8SMichal Simek EMIT_MASKWRITE(0xE000E018, 0x00000003U, 0x00000000U), 4537ad2a5b8SMichal Simek EMIT_MASKWRITE(0xE000E010, 0x03E00000U, 0x02400000U), 4547ad2a5b8SMichal Simek EMIT_MASKDELAY(0xF8F00200, 1), 4557ad2a5b8SMichal Simek EMIT_MASKDELAY(0xF8F00200, 1), 4567ad2a5b8SMichal Simek EMIT_MASKDELAY(0xF8F00200, 1), 4577ad2a5b8SMichal Simek EMIT_MASKDELAY(0xF8F00200, 1), 4587ad2a5b8SMichal Simek EMIT_MASKDELAY(0xF8F00200, 1), 4597ad2a5b8SMichal Simek EMIT_MASKDELAY(0xF8F00200, 1), 4607ad2a5b8SMichal Simek EMIT_EXIT(), 4617ad2a5b8SMichal Simek }; 4627ad2a5b8SMichal Simek 4637ad2a5b8SMichal Simek static unsigned long ps7_post_config_2_0[] = { 4647ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000008, 0x0000FFFFU, 0x0000DF0DU), 4657ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000900, 0x0000000FU, 0x0000000FU), 4667ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000240, 0xFFFFFFFFU, 0x00000000U), 4677ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000004, 0x0000FFFFU, 0x0000767BU), 4687ad2a5b8SMichal Simek EMIT_EXIT(), 4697ad2a5b8SMichal Simek }; 4707ad2a5b8SMichal Simek 4717ad2a5b8SMichal Simek static unsigned long ps7_pll_init_data_1_0[] = { 4727ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000008, 0x0000FFFFU, 0x0000DF0DU), 4737ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000110, 0x003FFFF0U, 0x000FA220U), 4747ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000100, 0x0007F000U, 0x00028000U), 4757ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000100, 0x00000010U, 0x00000010U), 4767ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000100, 0x00000001U, 0x00000001U), 4777ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000100, 0x00000001U, 0x00000000U), 4787ad2a5b8SMichal Simek EMIT_MASKPOLL(0xF800010C, 0x00000001U), 4797ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000100, 0x00000010U, 0x00000000U), 4807ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000120, 0x1F003F30U, 0x1F000200U), 4817ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000114, 0x003FFFF0U, 0x0012C220U), 4827ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000104, 0x0007F000U, 0x00020000U), 4837ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000104, 0x00000010U, 0x00000010U), 4847ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000104, 0x00000001U, 0x00000001U), 4857ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000104, 0x00000001U, 0x00000000U), 4867ad2a5b8SMichal Simek EMIT_MASKPOLL(0xF800010C, 0x00000002U), 4877ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000104, 0x00000010U, 0x00000000U), 4887ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000124, 0xFFF00003U, 0x0C200003U), 4897ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000118, 0x003FFFF0U, 0x001452C0U), 4907ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000108, 0x0007F000U, 0x0001E000U), 4917ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000108, 0x00000010U, 0x00000010U), 4927ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000108, 0x00000001U, 0x00000001U), 4937ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000108, 0x00000001U, 0x00000000U), 4947ad2a5b8SMichal Simek EMIT_MASKPOLL(0xF800010C, 0x00000004U), 4957ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000108, 0x00000010U, 0x00000000U), 4967ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000004, 0x0000FFFFU, 0x0000767BU), 4977ad2a5b8SMichal Simek EMIT_EXIT(), 4987ad2a5b8SMichal Simek }; 4997ad2a5b8SMichal Simek 5007ad2a5b8SMichal Simek static unsigned long ps7_clock_init_data_1_0[] = { 5017ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000008, 0x0000FFFFU, 0x0000DF0DU), 5027ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000128, 0x03F03F01U, 0x00700F01U), 5037ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000148, 0x00003F31U, 0x00000A01U), 5047ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000154, 0x00003F33U, 0x00001402U), 5057ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000158, 0x00003F33U, 0x00000601U), 5067ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF800015C, 0x03F03F33U, 0x00600701U), 5077ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000160, 0x007F007FU, 0x00000000U), 5087ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000168, 0x00003F31U, 0x00000501U), 5097ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000170, 0x03F03F30U, 0x00400500U), 5107ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80001C4, 0x00000001U, 0x00000001U), 5117ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF800012C, 0x01FFCCCDU, 0x016D400DU), 5127ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000304, 0x00000001U, 0x00000000U), 5137ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000004, 0x0000FFFFU, 0x0000767BU), 5147ad2a5b8SMichal Simek EMIT_EXIT(), 5157ad2a5b8SMichal Simek }; 5167ad2a5b8SMichal Simek 5177ad2a5b8SMichal Simek static unsigned long ps7_ddr_init_data_1_0[] = { 5187ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006000, 0x0001FFFFU, 0x00000080U), 5197ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006004, 0x1FFFFFFFU, 0x00081081U), 5207ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006008, 0x03FFFFFFU, 0x03C0780FU), 5217ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF800600C, 0x03FFFFFFU, 0x02001001U), 5227ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006010, 0x03FFFFFFU, 0x00014001U), 5237ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006014, 0x001FFFFFU, 0x0004159BU), 5247ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006018, 0xF7FFFFFFU, 0x44E438D2U), 5257ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF800601C, 0xFFFFFFFFU, 0x720238E5U), 5267ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006020, 0xFFFFFFFCU, 0x27287290U), 5277ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006024, 0x0FFFFFFFU, 0x0000003CU), 5287ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006028, 0x00003FFFU, 0x00002007U), 5297ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF800602C, 0xFFFFFFFFU, 0x00000008U), 5307ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006030, 0xFFFFFFFFU, 0x00040930U), 5317ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006034, 0x13FF3FFFU, 0x000116D4U), 5327ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006038, 0x00001FC3U, 0x00000000U), 5337ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF800603C, 0x000FFFFFU, 0x00000777U), 5347ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006040, 0xFFFFFFFFU, 0xFFF00000U), 5357ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006044, 0x0FFFFFFFU, 0x0F666666U), 5367ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006048, 0x3FFFFFFFU, 0x0003C248U), 5377ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006050, 0xFF0F8FFFU, 0x77010800U), 5387ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006058, 0x0001FFFFU, 0x00000101U), 5397ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF800605C, 0x0000FFFFU, 0x00005003U), 5407ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006060, 0x000017FFU, 0x0000003EU), 5417ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006064, 0x00021FE0U, 0x00020000U), 5427ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006068, 0x03FFFFFFU, 0x00284141U), 5437ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF800606C, 0x0000FFFFU, 0x00001610U), 5447ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80060A0, 0x00FFFFFFU, 0x00008000U), 5457ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80060A4, 0xFFFFFFFFU, 0x10200802U), 5467ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80060A8, 0x0FFFFFFFU, 0x0690CB73U), 5477ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80060AC, 0x000001FFU, 0x000001FEU), 5487ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80060B0, 0x1FFFFFFFU, 0x1CFFFFFFU), 5497ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80060B4, 0x000007FFU, 0x00000200U), 5507ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80060B8, 0x01FFFFFFU, 0x00200066U), 5517ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80060C4, 0x00000003U, 0x00000003U), 5527ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80060C4, 0x00000003U, 0x00000000U), 5537ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80060C8, 0x000000FFU, 0x00000000U), 5547ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80060DC, 0x00000001U, 0x00000000U), 5557ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80060F0, 0x0000FFFFU, 0x00000000U), 5567ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80060F4, 0x0000000FU, 0x00000008U), 5577ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006114, 0x000000FFU, 0x00000000U), 5587ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006118, 0x7FFFFFFFU, 0x40000001U), 5597ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF800611C, 0x7FFFFFFFU, 0x40000001U), 5607ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006120, 0x7FFFFFFFU, 0x40000001U), 5617ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006124, 0x7FFFFFFFU, 0x40000001U), 5627ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF800612C, 0x000FFFFFU, 0x00039C1BU), 5637ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006130, 0x000FFFFFU, 0x00037C35U), 5647ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006134, 0x000FFFFFU, 0x0003942FU), 5657ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006138, 0x000FFFFFU, 0x00038C1FU), 5667ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006140, 0x000FFFFFU, 0x00000035U), 5677ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006144, 0x000FFFFFU, 0x00000035U), 5687ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006148, 0x000FFFFFU, 0x00000035U), 5697ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF800614C, 0x000FFFFFU, 0x00000035U), 5707ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006154, 0x000FFFFFU, 0x0000009BU), 5717ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006158, 0x000FFFFFU, 0x000000B5U), 5727ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF800615C, 0x000FFFFFU, 0x000000AFU), 5737ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006160, 0x000FFFFFU, 0x0000009FU), 5747ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006168, 0x001FFFFFU, 0x0000013CU), 5757ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF800616C, 0x001FFFFFU, 0x00000134U), 5767ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006170, 0x001FFFFFU, 0x0000013AU), 5777ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006174, 0x001FFFFFU, 0x00000138U), 5787ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF800617C, 0x000FFFFFU, 0x000000DBU), 5797ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006180, 0x000FFFFFU, 0x000000F5U), 5807ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006184, 0x000FFFFFU, 0x000000EFU), 5817ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006188, 0x000FFFFFU, 0x000000DFU), 5827ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006190, 0xFFFFFFFFU, 0x10040080U), 5837ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006194, 0x000FFFFFU, 0x0001FC82U), 5847ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006204, 0xFFFFFFFFU, 0x00000000U), 5857ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006208, 0x000F03FFU, 0x000803FFU), 5867ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF800620C, 0x000F03FFU, 0x000803FFU), 5877ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006210, 0x000F03FFU, 0x000803FFU), 5887ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006214, 0x000F03FFU, 0x000803FFU), 5897ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006218, 0x000F03FFU, 0x000003FFU), 5907ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF800621C, 0x000F03FFU, 0x000003FFU), 5917ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006220, 0x000F03FFU, 0x000003FFU), 5927ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006224, 0x000F03FFU, 0x000003FFU), 5937ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80062A8, 0x00000FF7U, 0x00000000U), 5947ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80062AC, 0xFFFFFFFFU, 0x00000000U), 5957ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80062B0, 0x003FFFFFU, 0x00005125U), 5967ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80062B4, 0x0003FFFFU, 0x000012A8U), 5977ad2a5b8SMichal Simek EMIT_MASKPOLL(0xF8000B74, 0x00002000U), 5987ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8006000, 0x0001FFFFU, 0x00000081U), 5997ad2a5b8SMichal Simek EMIT_MASKPOLL(0xF8006054, 0x00000007U), 6007ad2a5b8SMichal Simek EMIT_EXIT(), 6017ad2a5b8SMichal Simek }; 6027ad2a5b8SMichal Simek 6037ad2a5b8SMichal Simek static unsigned long ps7_mio_init_data_1_0[] = { 6047ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000008, 0x0000FFFFU, 0x0000DF0DU), 6057ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000B40, 0x00000FFFU, 0x00000600U), 6067ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000B44, 0x00000FFFU, 0x00000600U), 6077ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000B48, 0x00000FFFU, 0x00000672U), 6087ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000B4C, 0x00000FFFU, 0x00000672U), 6097ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000B50, 0x00000FFFU, 0x00000674U), 6107ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000B54, 0x00000FFFU, 0x00000674U), 6117ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000B58, 0x00000FFFU, 0x00000600U), 6127ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000B5C, 0xFFFFFFFFU, 0x0018C61CU), 6137ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000B60, 0xFFFFFFFFU, 0x00F9861CU), 6147ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000B64, 0xFFFFFFFFU, 0x00F9861CU), 6157ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000B68, 0xFFFFFFFFU, 0x00F9861CU), 6167ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000B6C, 0x000073FFU, 0x00000209U), 6177ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000B70, 0x00000021U, 0x00000021U), 6187ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000B70, 0x00000021U, 0x00000020U), 6197ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000B70, 0x07FFFFFFU, 0x00000823U), 6207ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000700, 0x00003FFFU, 0x00001610U), 6217ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000708, 0x00003FFFU, 0x00000610U), 6227ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF800070C, 0x00003FFFU, 0x00000610U), 6237ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000710, 0x00003FFFU, 0x00000610U), 6247ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000714, 0x00003FFFU, 0x00000610U), 6257ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000718, 0x00003FFFU, 0x00000610U), 6267ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF800071C, 0x00003FFFU, 0x00000610U), 6277ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000720, 0x00003FFFU, 0x00000610U), 6287ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000724, 0x00003FFFU, 0x00000610U), 6297ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000728, 0x00003FFFU, 0x00000610U), 6307ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF800072C, 0x00003FFFU, 0x00000610U), 6317ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000730, 0x00003FFFU, 0x00000610U), 6327ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000734, 0x00003FFFU, 0x00000610U), 6337ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000738, 0x00003FFFU, 0x00000611U), 6347ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000760, 0x00003FFFU, 0x000006E0U), 6357ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000764, 0x00003FFFU, 0x000006E1U), 6367ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000768, 0x00003FFFU, 0x00000621U), 6377ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF800076C, 0x00003FFFU, 0x00000620U), 6387ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000770, 0x00003FFFU, 0x000016A0U), 6397ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000774, 0x00003FFFU, 0x000016A0U), 6407ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000778, 0x00003FFFU, 0x000016A0U), 6417ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF800077C, 0x00003FFFU, 0x000016A0U), 6427ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000780, 0x00003FFFU, 0x000016A0U), 6437ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000784, 0x00003FFFU, 0x000016A0U), 6447ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000788, 0x00003FFFU, 0x00001661U), 6457ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF800078C, 0x00003FFFU, 0x00001660U), 6467ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000790, 0x00003FFFU, 0x00001661U), 6477ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000794, 0x00003FFFU, 0x00001661U), 6487ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000798, 0x00003FFFU, 0x00000661U), 6497ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF800079C, 0x00003FFFU, 0x00000660U), 6507ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80007A0, 0x00003FFFU, 0x00000704U), 6517ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80007A4, 0x00003FFFU, 0x00000705U), 6527ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80007A8, 0x00003FFFU, 0x00000704U), 6537ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80007AC, 0x00003FFFU, 0x00000705U), 6547ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80007B0, 0x00003FFFU, 0x00000704U), 6557ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80007B4, 0x00003FFFU, 0x00000704U), 6567ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80007B8, 0x00003FFFU, 0x00000704U), 6577ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80007BC, 0x00003FFFU, 0x00000704U), 6587ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80007C0, 0x00003FFFU, 0x00000705U), 6597ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80007C4, 0x00003FFFU, 0x00000704U), 6607ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80007C8, 0x00003FFFU, 0x00000704U), 6617ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80007CC, 0x00003FFFU, 0x00000704U), 6627ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80007D0, 0x00003FFFU, 0x00000640U), 6637ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF80007D4, 0x00003FFFU, 0x00000640U), 6647ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000004, 0x0000FFFFU, 0x0000767BU), 6657ad2a5b8SMichal Simek EMIT_EXIT(), 6667ad2a5b8SMichal Simek }; 6677ad2a5b8SMichal Simek 6687ad2a5b8SMichal Simek static unsigned long ps7_peripherals_init_data_1_0[] = { 6697ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000008, 0x0000FFFFU, 0x0000DF0DU), 6707ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000B48, 0x00000180U, 0x00000180U), 6717ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000B4C, 0x00000180U, 0x00000180U), 6727ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000B50, 0x00000180U, 0x00000180U), 6737ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000B54, 0x00000180U, 0x00000180U), 6747ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000004, 0x0000FFFFU, 0x0000767BU), 6757ad2a5b8SMichal Simek EMIT_MASKWRITE(0xE0001034, 0x000000FFU, 0x00000006U), 6767ad2a5b8SMichal Simek EMIT_MASKWRITE(0xE0001018, 0x0000FFFFU, 0x0000003EU), 6777ad2a5b8SMichal Simek EMIT_MASKWRITE(0xE0001000, 0x000001FFU, 0x00000017U), 6787ad2a5b8SMichal Simek EMIT_MASKWRITE(0xE0001004, 0x00000FFFU, 0x00000020U), 6797ad2a5b8SMichal Simek EMIT_MASKWRITE(0xE000D000, 0x00080000U, 0x00080000U), 6807ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8007000, 0x20000000U, 0x00000000U), 6817ad2a5b8SMichal Simek EMIT_MASKWRITE(0xE000E014, 0x00FFFFFFU, 0x00245A55U), 6827ad2a5b8SMichal Simek EMIT_MASKWRITE(0xE000E018, 0x00000003U, 0x00000000U), 6837ad2a5b8SMichal Simek EMIT_MASKWRITE(0xE000E010, 0x03E00000U, 0x02400000U), 6847ad2a5b8SMichal Simek EMIT_MASKDELAY(0xF8F00200, 1), 6857ad2a5b8SMichal Simek EMIT_MASKDELAY(0xF8F00200, 1), 6867ad2a5b8SMichal Simek EMIT_MASKDELAY(0xF8F00200, 1), 6877ad2a5b8SMichal Simek EMIT_MASKDELAY(0xF8F00200, 1), 6887ad2a5b8SMichal Simek EMIT_MASKDELAY(0xF8F00200, 1), 6897ad2a5b8SMichal Simek EMIT_MASKDELAY(0xF8F00200, 1), 6907ad2a5b8SMichal Simek EMIT_EXIT(), 6917ad2a5b8SMichal Simek }; 6927ad2a5b8SMichal Simek 6937ad2a5b8SMichal Simek static unsigned long ps7_post_config_1_0[] = { 6947ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000008, 0x0000FFFFU, 0x0000DF0DU), 6957ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000900, 0x0000000FU, 0x0000000FU), 6967ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000240, 0xFFFFFFFFU, 0x00000000U), 6977ad2a5b8SMichal Simek EMIT_MASKWRITE(0xF8000004, 0x0000FFFFU, 0x0000767BU), 6987ad2a5b8SMichal Simek EMIT_EXIT(), 6997ad2a5b8SMichal Simek }; 7007ad2a5b8SMichal Simek 7017ad2a5b8SMichal Simek static unsigned long *ps7_mio_init_data = ps7_mio_init_data_3_0; 7027ad2a5b8SMichal Simek static unsigned long *ps7_pll_init_data = ps7_pll_init_data_3_0; 7037ad2a5b8SMichal Simek static unsigned long *ps7_clock_init_data = ps7_clock_init_data_3_0; 7047ad2a5b8SMichal Simek static unsigned long *ps7_ddr_init_data = ps7_ddr_init_data_3_0; 7057ad2a5b8SMichal Simek static unsigned long *ps7_peripherals_init_data = ps7_peripherals_init_data_3_0; 7067ad2a5b8SMichal Simek 7077ad2a5b8SMichal Simek int ps7_post_config(void) 7087ad2a5b8SMichal Simek { 7097ad2a5b8SMichal Simek unsigned long si_ver = ps7GetSiliconVersion(); 7107ad2a5b8SMichal Simek int ret = -1; 7117ad2a5b8SMichal Simek 7127ad2a5b8SMichal Simek if (si_ver == PCW_SILICON_VERSION_1) { 7137ad2a5b8SMichal Simek ret = ps7_config(ps7_post_config_1_0); 7147ad2a5b8SMichal Simek if (ret != PS7_INIT_SUCCESS) 7157ad2a5b8SMichal Simek return ret; 7167ad2a5b8SMichal Simek } else if (si_ver == PCW_SILICON_VERSION_2) { 7177ad2a5b8SMichal Simek ret = ps7_config(ps7_post_config_2_0); 7187ad2a5b8SMichal Simek if (ret != PS7_INIT_SUCCESS) 7197ad2a5b8SMichal Simek return ret; 7207ad2a5b8SMichal Simek } else { 7217ad2a5b8SMichal Simek ret = ps7_config(ps7_post_config_3_0); 7227ad2a5b8SMichal Simek if (ret != PS7_INIT_SUCCESS) 7237ad2a5b8SMichal Simek return ret; 7247ad2a5b8SMichal Simek } 7257ad2a5b8SMichal Simek return PS7_INIT_SUCCESS; 7267ad2a5b8SMichal Simek } 7277ad2a5b8SMichal Simek 7287ad2a5b8SMichal Simek int ps7_init(void) 7297ad2a5b8SMichal Simek { 7307ad2a5b8SMichal Simek unsigned long si_ver = ps7GetSiliconVersion(); 7317ad2a5b8SMichal Simek int ret; 7327ad2a5b8SMichal Simek 7337ad2a5b8SMichal Simek if (si_ver == PCW_SILICON_VERSION_1) { 7347ad2a5b8SMichal Simek ps7_mio_init_data = ps7_mio_init_data_1_0; 7357ad2a5b8SMichal Simek ps7_pll_init_data = ps7_pll_init_data_1_0; 7367ad2a5b8SMichal Simek ps7_clock_init_data = ps7_clock_init_data_1_0; 7377ad2a5b8SMichal Simek ps7_ddr_init_data = ps7_ddr_init_data_1_0; 7387ad2a5b8SMichal Simek ps7_peripherals_init_data = ps7_peripherals_init_data_1_0; 7397ad2a5b8SMichal Simek 7407ad2a5b8SMichal Simek } else if (si_ver == PCW_SILICON_VERSION_2) { 7417ad2a5b8SMichal Simek ps7_mio_init_data = ps7_mio_init_data_2_0; 7427ad2a5b8SMichal Simek ps7_pll_init_data = ps7_pll_init_data_2_0; 7437ad2a5b8SMichal Simek ps7_clock_init_data = ps7_clock_init_data_2_0; 7447ad2a5b8SMichal Simek ps7_ddr_init_data = ps7_ddr_init_data_2_0; 7457ad2a5b8SMichal Simek ps7_peripherals_init_data = ps7_peripherals_init_data_2_0; 7467ad2a5b8SMichal Simek 7477ad2a5b8SMichal Simek } else { 7487ad2a5b8SMichal Simek ps7_mio_init_data = ps7_mio_init_data_3_0; 7497ad2a5b8SMichal Simek ps7_pll_init_data = ps7_pll_init_data_3_0; 7507ad2a5b8SMichal Simek ps7_clock_init_data = ps7_clock_init_data_3_0; 7517ad2a5b8SMichal Simek ps7_ddr_init_data = ps7_ddr_init_data_3_0; 7527ad2a5b8SMichal Simek ps7_peripherals_init_data = ps7_peripherals_init_data_3_0; 7537ad2a5b8SMichal Simek } 7547ad2a5b8SMichal Simek 7557ad2a5b8SMichal Simek ret = ps7_config(ps7_mio_init_data); 7567ad2a5b8SMichal Simek if (ret != PS7_INIT_SUCCESS) 7577ad2a5b8SMichal Simek return ret; 7587ad2a5b8SMichal Simek 7597ad2a5b8SMichal Simek ret = ps7_config(ps7_pll_init_data); 7607ad2a5b8SMichal Simek if (ret != PS7_INIT_SUCCESS) 7617ad2a5b8SMichal Simek return ret; 7627ad2a5b8SMichal Simek 7637ad2a5b8SMichal Simek ret = ps7_config(ps7_clock_init_data); 7647ad2a5b8SMichal Simek if (ret != PS7_INIT_SUCCESS) 7657ad2a5b8SMichal Simek return ret; 7667ad2a5b8SMichal Simek 7677ad2a5b8SMichal Simek ret = ps7_config(ps7_ddr_init_data); 7687ad2a5b8SMichal Simek if (ret != PS7_INIT_SUCCESS) 7697ad2a5b8SMichal Simek return ret; 7707ad2a5b8SMichal Simek 7717ad2a5b8SMichal Simek ret = ps7_config(ps7_peripherals_init_data); 7727ad2a5b8SMichal Simek if (ret != PS7_INIT_SUCCESS) 7737ad2a5b8SMichal Simek return ret; 7747ad2a5b8SMichal Simek return PS7_INIT_SUCCESS; 7757ad2a5b8SMichal Simek } 776