blob: 6623bb7d7dacfcde0f74bcfce251937bb221365b [file] [log] [blame]
Carl-Daniel Hailfingerb5b161b2010-06-04 19:05:39 +00001/*
2 * This file is part of the flashrom project.
3 *
4 * Copyright (C) 2010 Carl-Daniel Hailfinger
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 */
19
20/*
21 * Contains the processor specific flash enables and system settings.
22 */
23
24#include "flash.h"
25
26#if defined(__i386__) || defined(__x86_64__)
27
28int processor_flash_enable(void)
29{
30 /* On x86, flash access is not processor specific except on
31 * AMD Elan SC520, AMD Geode and maybe other SoC-style CPUs.
32 * FIXME: Move enable_flash_cs5536 and get_flashbase_sc520 here.
33 */
34 return 0;
35}
36
37#else
38
39int processor_flash_enable(void)
40{
41 /* Not implemented yet. Oh well. */
42 return 1;
43}
44
45#endif