1bb12ac9b85adae96cbd38b2220c5da9a9d80bc54Lu, Hongjiu/* 2bb12ac9b85adae96cbd38b2220c5da9a9d80bc54Lu, Hongjiu * Copyright (C) 2010 The Android Open Source Project 3bb12ac9b85adae96cbd38b2220c5da9a9d80bc54Lu, Hongjiu * 4bb12ac9b85adae96cbd38b2220c5da9a9d80bc54Lu, Hongjiu * Licensed under the Apache License, Version 2.0 (the "License"); 5bb12ac9b85adae96cbd38b2220c5da9a9d80bc54Lu, Hongjiu * you may not use this file except in compliance with the License. 6bb12ac9b85adae96cbd38b2220c5da9a9d80bc54Lu, Hongjiu * You may obtain a copy of the License at 7bb12ac9b85adae96cbd38b2220c5da9a9d80bc54Lu, Hongjiu * 8bb12ac9b85adae96cbd38b2220c5da9a9d80bc54Lu, Hongjiu * http://www.apache.org/licenses/LICENSE-2.0 9bb12ac9b85adae96cbd38b2220c5da9a9d80bc54Lu, Hongjiu * 10bb12ac9b85adae96cbd38b2220c5da9a9d80bc54Lu, Hongjiu * Unless required by applicable law or agreed to in writing, software 11bb12ac9b85adae96cbd38b2220c5da9a9d80bc54Lu, Hongjiu * distributed under the License is distributed on an "AS IS" BASIS, 12bb12ac9b85adae96cbd38b2220c5da9a9d80bc54Lu, Hongjiu * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13bb12ac9b85adae96cbd38b2220c5da9a9d80bc54Lu, Hongjiu * See the License for the specific language governing permissions and 14bb12ac9b85adae96cbd38b2220c5da9a9d80bc54Lu, Hongjiu * limitations under the License. 15bb12ac9b85adae96cbd38b2220c5da9a9d80bc54Lu, Hongjiu */ 16bb12ac9b85adae96cbd38b2220c5da9a9d80bc54Lu, Hongjiu/* 17bb12ac9b85adae96cbd38b2220c5da9a9d80bc54Lu, Hongjiu * Contributed by: Intel Corporation 18bb12ac9b85adae96cbd38b2220c5da9a9d80bc54Lu, Hongjiu */ 19bb12ac9b85adae96cbd38b2220c5da9a9d80bc54Lu, Hongjiu 20c27a444e54d531f8a0cd33e67dc46ff7c763cc4bHenrik Smiding#if defined(__slm__) 21c27a444e54d531f8a0cd33e67dc46ff7c763cc4bHenrik Smiding/* Values are optimized for Silvermont */ 22c27a444e54d531f8a0cd33e67dc46ff7c763cc4bHenrik Smiding#define SHARED_CACHE_SIZE (1024*1024) /* Silvermont L2 Cache */ 23c27a444e54d531f8a0cd33e67dc46ff7c763cc4bHenrik Smiding#define DATA_CACHE_SIZE (24*1024) /* Silvermont L1 Data Cache */ 24c27a444e54d531f8a0cd33e67dc46ff7c763cc4bHenrik Smiding#else 25bb12ac9b85adae96cbd38b2220c5da9a9d80bc54Lu, Hongjiu/* Values are optimized for Atom */ 26c27a444e54d531f8a0cd33e67dc46ff7c763cc4bHenrik Smiding#define SHARED_CACHE_SIZE (512*1024) /* Atom L2 Cache */ 27c27a444e54d531f8a0cd33e67dc46ff7c763cc4bHenrik Smiding#define DATA_CACHE_SIZE (24*1024) /* Atom L1 Data Cache */ 28c27a444e54d531f8a0cd33e67dc46ff7c763cc4bHenrik Smiding#endif 29c27a444e54d531f8a0cd33e67dc46ff7c763cc4bHenrik Smiding 30bb12ac9b85adae96cbd38b2220c5da9a9d80bc54Lu, Hongjiu#define SHARED_CACHE_SIZE_HALF (SHARED_CACHE_SIZE / 2) 31bb12ac9b85adae96cbd38b2220c5da9a9d80bc54Lu, Hongjiu#define DATA_CACHE_SIZE_HALF (DATA_CACHE_SIZE / 2) 32