> > -   reg = in_be32(csu_csl2);
> > -   out_be32(csu_csl2, reg | CSU_CSL2x_NS_SUP_READ_ACCESS |
> > -           CSU_CSL2x_NS_USER_READ_ACCESS);
> > +void enable_devices_ns_access(void)
> 
> This function is identical for twr and qds? Can't be just one in a
> common file?
> 

Sure, I will follow your advice.

Thanks,

BRs
Xiubo



> > +{
> > +   uint32_t *csu_csl;
> > +   uint32_t reg;
> > +   int i;
> > +
> > +   for (i = 0; i < ARRAY_SIZE(ns_dev); i++) {
> > +           csu_csl = CONFIG_SYS_FSL_CSU_ADDR + ns_dev[i].ind / 2 * 4;
> > +           reg = in_be32(csu_csl);
> > +           if (ns_dev[i].ind % 2 == 0)
> > +                   reg |= ns_dev[i].val << 16;
> > +           else
> > +                   reg |= ns_dev[i].val;
> > +           out_be32(csu_csl, reg);
> > +   }
> >   }
> >
> >   int board_late_init(void)
> > @@ -483,7 +580,7 @@ int board_late_init(void)
> >
> >     ahci_init(AHCI_BASE_ADDR);
> >     scsi_scan(1);
> > -   enable_ifc_ns_read_access();
> > +   enable_devices_ns_access();
> >     return 0;
> >   }
> 
> Diana Craciun
> 
> >
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to