summaryrefslogtreecommitdiff
path: root/src/mainboard/motorola/sandpoint/flash/flash.c
diff options
context:
space:
mode:
authorRonald G. Minnich <rminnich@gmail.com>2009-10-02 03:36:30 +0000
committerRonald G. Minnich <rminnich@gmail.com>2009-10-02 03:36:30 +0000
commit4703bf16190f1a54faa6697b514ae9cce56c19ea (patch)
treed3cf8b7bf86e6c085990081e3a857f33565a684b /src/mainboard/motorola/sandpoint/flash/flash.c
parent5bf864e353036535551f97dbeaf2c069ba60d79d (diff)
downloadcoreboot-4703bf16190f1a54faa6697b514ae9cce56c19ea.tar.xz
Remove motorola PPC boards. These have lain untouched and unused by anyone
for years. Signed-off-by: Ronald G. Minnich <rminnich@gmail.com> Acked-by: Myles Watson <mylesgw@gmail.com> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4708 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/mainboard/motorola/sandpoint/flash/flash.c')
-rw-r--r--src/mainboard/motorola/sandpoint/flash/flash.c62
1 files changed, 0 insertions, 62 deletions
diff --git a/src/mainboard/motorola/sandpoint/flash/flash.c b/src/mainboard/motorola/sandpoint/flash/flash.c
deleted file mode 100644
index 427a107944..0000000000
--- a/src/mainboard/motorola/sandpoint/flash/flash.c
+++ /dev/null
@@ -1,62 +0,0 @@
-/*
- * This file is part of the coreboot project.
- *
- * Copyright (C) 2000 AG Electronics Ltd.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- */
-
-#include <string.h>
-#include <console/console.h>
-#include <stdlib.h>
-#include "../flash.h"
-
-static flash_device *first_flash = 0;
-
-int register_flash_device (const flash_fn * fn, char *tag, void *data)
-{
- flash_device *device = malloc (sizeof (flash_device));
-
- if (device)
- {
- const char *result;
- device->fn = fn;
- device->tag = tag;
- device->data = data;
- if ((result = fn->identify(device)) != 0)
- {
- printk_info("Registered flash %s\n", result);
- device->next = first_flash;
- first_flash = device;
- }
- return result ? 0 : -1;
- }
- return -1;
-}
-
-flash_device *find_flash_device(const char *name)
-{
- int len = strlen(name);
-
- if (first_flash)
- {
- flash_device *flash;
-
- for (flash = first_flash; flash; flash = flash->next)
- if (strlen(flash->tag) == len && memcmp(name, flash->tag, len) == 0)
- return flash;
- }
- printk_info ("No flash %s registered\n", name);
- return 0;
-}