Changeset c2bb3add in rtems


Ignore:
Timestamp:
Jul 4, 2008, 4:09:07 PM (12 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, master
Children:
88fe62b
Parents:
692e5ba
Message:

2008-07-04 Matthew Riek <matthew.riek@…>

  • Makefile.am, mcf532x/include/mcf532x.h, shared/cache/cache_.h: Add cache support for 5329. Enable the cache in copyback and write-through so we can assume that in BSP.
  • mcf532x/cache/cachepd.c: New file.
Location:
c/src/lib/libcpu/m68k
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libcpu/m68k/ChangeLog

    r692e5ba rc2bb3add  
     12008-07-04      Matthew Riek <matthew.riek@ibiscomputer.com.au>
     2
     3        * Makefile.am, mcf532x/include/mcf532x.h, shared/cache/cache_.h: Add
     4        cache support for 5329. Enable the cache in copyback and
     5        write-through so we can assume that in BSP.
     6        * mcf532x/cache/cachepd.c: New file.
     7
    182008-06-20      Matthew Riek <matthew.riek@ibiscomputer.com.au>
    29
  • c/src/lib/libcpu/m68k/Makefile.am

    r692e5ba rc2bb3add  
    110110include_mcf532xdir = $(includedir)/mcf532x
    111111include_mcf532x_HEADERS = mcf532x/include/mcf532x.h
     112
     113## mcf532x/cache
     114noinst_PROGRAMS += mcf532x/cachepd.rel
     115mcf532x_cachepd_rel_SOURCES = mcf532x/cache/cachepd.c
     116mcf532x_cachepd_rel_CPPFLAGS = $(AM_CPPFLAGS)
     117mcf532x_cachepd_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
    112118endif
    113119
  • c/src/lib/libcpu/m68k/mcf532x/include/mcf532x.h

    r692e5ba rc2bb3add  
    66#ifndef __MCF532X_H__
    77#define __MCF532X_H__
     8
     9/*********************************************************************
     10*
     11* Cache
     12*
     13*********************************************************************/
     14
     15#define MCF_CACR_CENB                     (1 << 31)
     16#define MCF_CACR_ESB                      (1 << 29)
     17#define MCF_CACR_DPI                      (1 << 28)
     18#define MCF_CACR_HLCK                     (1 << 27)
     19#define MCF_CACR_CINVA                    (1 << 24)
     20#define MCF_CACR_DNFB                     (1 << 10)
     21#define MCF_CACR_DCM(A)                   (((A) & 0x3) << 8)
     22#define MCF_CACR_DW                       (1 << 5)
     23#define MCF_CACR_EUSP                     (1 << 4)
     24
     25#define MCF_ACR_ADDR_BASE(A)              (((A) & 0xFF) << 24)
     26#define MCF_ACR_ADDR_MASK(A)              (((A) & 0xFF) << 16)
     27#define MCF_ACR_E                         (1 << 15)
     28#define MCF_ACR_S(A)                      (((A) & 0x3) << 13)
     29#define MCF_ACR_CM(A)                     (((A) & 0x3) << 5)
     30#define MCF_ACR_W                         (1 << 2)
    831
    932/*********************************************************************
     
    12441267#define MCF_EDMA_TCD14_CSR                   (*(vuint16*)(0xFC0451DE))
    12451268#define MCF_EDMA_TCD15_CSR                   (*(vuint16*)(0xFC0451FE))
    1246 #define MCF_EDMA_TCD_CSR(x)                  (*(vuint16*)(0xFC04501E+((x)*0x020)))
     1269#define MCF_EDMA_TCD_CSR(x)                  (*(vuint16*)(0xFC04501E +((x)*0x020)))
    12471270
    12481271/* Bit definitions and macros for MCF_EDMA_CR */
  • c/src/lib/libcpu/m68k/shared/cache/cache_.h

    r692e5ba rc2bb3add  
    1919#  define M68K_DATA_CACHE_ALIGNMENT 16
    2020# endif
     21#elif ( defined(__mcf5300__) )
     22# define M68K_INSTRUCTION_CACHE_ALIGNMENT 16
     23# define M68K_DATA_CACHE_ALIGNMENT 16
    2124#endif
    2225
Note: See TracChangeset for help on using the changeset viewer.