| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
#include <boot/coreboot_tables.h> |
| 5 |
#include <drivers/option/cfr_frontend.h> |
| 6 |
#include <ec/lenovo/h8/cfr.h> |
| 7 |
#include <ec/lenovo/pmh7/cfr.h> |
| 8 |
#include <northbridge/intel/sandybridge/cfr.h> |
| 9 |
#include <southbridge/intel/bd82x6x/cfr.h> |
| 10 |
|
| 11 |
static struct sm_obj_form ec = { |
| 12 |
.ui_name = "Embedded Controller", |
| 13 |
.obj_list = (const struct sm_object *[]) { |
| 14 |
&bluetooth, |
| 15 |
&usb_always_on, |
| 16 |
&wlan, |
| 17 |
&wwan, |
| 18 |
&pm_beeps, |
| 19 |
&battery_beep, |
| 20 |
&fn_ctrl_swap, |
| 21 |
&sticky_fn, |
| 22 |
&f1_to_f12_as_primary, |
| 23 |
&touchpad, |
| 24 |
&trackpoint, |
| 25 |
NULL |
| 26 |
}, |
| 27 |
}; |
| 28 |
|
| 29 |
static struct sm_obj_form system = { |
| 30 |
.ui_name = "System", |
| 31 |
.obj_list = (const struct sm_object *[]) { |
| 32 |
&gfx_uma_size, |
| 33 |
&me_state, |
| 34 |
&nmi, |
| 35 |
&sata_mode, |
| 36 |
NULL |
| 37 |
}, |
| 38 |
}; |
| 39 |
|
| 40 |
static struct sm_obj_form power = { |
| 41 |
.ui_name = "Power", |
| 42 |
.obj_list = (const struct sm_object *[]) { |
| 43 |
&power_on_after_fail, |
| 44 |
NULL |
| 45 |
}, |
| 46 |
}; |
| 47 |
|
| 48 |
static struct sm_obj_form *sm_root[] = { |
| 49 |
&system, |
| 50 |
&power, |
| 51 |
&ec, |
| 52 |
NULL |
| 53 |
}; |
| 54 |
|
| 55 |
void mb_cfr_setup_menu(struct lb_cfr *cfr_root) |
| 56 |
{ |
| 57 |
cfr_write_setup_menu(cfr_root, sm_root); |
| 58 |
} |