remove trailing whitespace
[coreboot.git] / src / mainboard / nvidia / l1_2pvv / mainboard.c
index 5fa84b0daf4d09308fa129b9456b7845ef826be5..b425c3d80fbb00d03e8efd0bc322bf7fb60c9745 100644 (file)
@@ -3,11 +3,11 @@
  *
  * Copyright (C) 2007 AMD
  * Written by Yinghai Lu <yinghailu@amd.com> for AMD.
+ * Copyright (C) 2010 coresystems GmbH
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
+ * the Free Software Foundation; version 2 of the License.
  *
  * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 #include <device/pci.h>
 #include <device/pci_ids.h>
 #include <device/pci_ops.h>
+#include "hda_verb.h"
 #include "chip.h"
 
-#if CONFIG_CHIP_NAME == 1
+static void verb_setup(void)
+{
+       cim_verb_data = mainboard_cim_verb_data;
+       cim_verb_data_size = sizeof(mainboard_cim_verb_data);
+}
+
+static void mainboard_enable(device_t dev)
+{
+       verb_setup();
+}
+
 struct chip_operations mainboard_ops = {
        CHIP_NAME("NVIDIA l1_2pvv Mainboard")
+       .enable_dev = mainboard_enable,
 };
-#endif