Changeset 32c8960 in rtems


Ignore:
Timestamp:
May 28, 2014, 12:47:03 PM (5 years ago)
Author:
Ralf Kirchner <ralf.kirchner@…>
Branches:
4.11, master
Children:
bb70bea
Parents:
dda78f43
git-author:
Ralf Kirchner <ralf.kirchner@…> (05/28/14 12:47:03)
git-committer:
Sebastian Huber <sebastian.huber@…> (05/28/14 12:59:01)
Message:

bsp/altera-cyclone-v: Enable L2 cache for network driver

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/altera-cyclone-v/network/network.c

    rdda78f43 r32c8960  
    4141#include <bsp/nocache-heap.h>
    4242#include "socal/alt_rstmgr.h"
     43#include "socal/alt_sysmgr.h"
    4344#include "socal/hps.h"
    4445#include "socal/socal.h"
     
    10811082static int network_if_bus_setup( void *arg )
    10821083{
     1084  volatile uint32_t reg = alt_read_word( ALT_SYSMGR_EMAC_L3MST_ADDR );
     1085
    10831086  (void) arg;
    10841087
    1085   /* Nothing to be done */
     1088  reg &= ALT_SYSMGR_EMAC_L3MST_AWCACHE_1_CLR_MSK;
     1089  reg &= ALT_SYSMGR_EMAC_L3MST_ARCACHE_1_CLR_MSK;
     1090  reg |= ALT_SYSMGR_EMAC_L3MST_AWCACHE_1_SET(
     1091    ALT_SYSMGR_EMAC_L3MST_AWCACHE_1_E_CACHE_WRBACK_ALLOC
     1092  );
     1093  reg |= ALT_SYSMGR_EMAC_L3MST_ARCACHE_1_SET(
     1094    ALT_SYSMGR_EMAC_L3MST_ARCACHE_1_E_CACHE_WRBACK_ALLOC
     1095  );
     1096
     1097  alt_write_word( ALT_SYSMGR_EMAC_L3MST_ADDR, reg );
     1098
    10861099  return 0;
    10871100}
Note: See TracChangeset for help on using the changeset viewer.