File tree Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -359,8 +359,6 @@ struct cpuinfo_arc {
359359 struct bcr_mpy extn_mpy ;
360360};
361361
362- extern struct cpuinfo_arc cpuinfo_arc700 [];
363-
364362static inline int is_isa_arcv3 (void )
365363{
366364 return IS_ENABLED (CONFIG_ISA_ARCV3 );
Original file line number Diff line number Diff line change @@ -165,8 +165,6 @@ static void mcip_probe_n_setup(void)
165165 IS_AVAIL1 (mp .idu , "IDU " ),
166166 IS_AVAIL1 (mp .dbg , "DEBUG " ),
167167 IS_AVAIL1 (mp .gfrc , "GFRC" ));
168-
169- cpuinfo_arc700 [0 ].extn .gfrc = mp .gfrc ;
170168}
171169
172170struct plat_smp_ops plat_smp_ops = {
Original file line number Diff line number Diff line change @@ -19,18 +19,24 @@ int arc_hsdk_axi_dmac_coherent __section(.data) = 0;
1919
2020static void __init hsdk_init_per_cpu (unsigned int cpu )
2121{
22+ struct bcr_iccm_arcv2 iccm ;
23+ struct bcr_dccm_arcv2 dccm ;
24+
25+ READ_BCR (ARC_REG_ICCM_BUILD , iccm );
26+ READ_BCR (ARC_REG_DCCM_BUILD , dccm );
27+
2228 /*
2329 * By default ICCM is mapped to 0x7z while this area is used for
2430 * kernel virtual mappings, so move it to currently unused area.
2531 */
26- if (cpuinfo_arc700 [ cpu ]. iccm .sz )
32+ if (iccm .ver )
2733 write_aux_reg (ARC_REG_AUX_ICCM , ARC_CCM_UNUSED_ADDR );
2834
2935 /*
3036 * By default DCCM is mapped to 0x8z while this area is used by kernel,
3137 * so move it to currently unused area.
3238 */
33- if (cpuinfo_arc700 [ cpu ]. dccm .sz )
39+ if (dccm .ver )
3440 write_aux_reg (ARC_REG_AUX_DCCM , ARC_CCM_UNUSED_ADDR );
3541}
3642
You can’t perform that action at this time.
0 commit comments