raspberrypi2: gpu mem can now be set to a value as high as 960 MB

This commit is contained in:
Calin Crisan 2015-11-01 20:09:52 +02:00
parent b3f331eb89
commit a750f9c4c3
2 changed files with 5 additions and 13 deletions

View File

@ -30,8 +30,7 @@ OVERCLOCK = {
800: '800|250|400|0',
900: '900|250|450|0',
950: '950|250|450|0',
1000: '1000|500|600|6',
1001: '1001|500|500|2'
1000: '1000|500|600|6'
}
def _get_board_settings():
@ -222,8 +221,7 @@ def overclock():
('800|250|400|0', 'modest (800/250/400/0)'),
('900|250|450|0', 'medium (900/250/450/0)'),
('950|250|450|0', 'high (950/250/450/0)'),
('1000|500|600|6', 'turbo (1000/500/600/6)'),
('1001|500|500|2', 'Pi2 (1000/500/500/2)')
('1000|500|600|6', 'turbo (1000/500/600/6)')
],
'section': 'expertSettings',
'advanced': True,

View File

@ -56,7 +56,7 @@ def _get_board_settings():
name = name.strip()
value = value.strip()
if name.startswith('gpu_mem'):
if name == 'gpu_mem':
gpu_mem = int(value)
elif name == 'arm_freq':
@ -115,7 +115,7 @@ def _set_board_settings(s):
seen.add(name)
if name.startswith('gpu_mem'):
if name == 'gpu_mem':
lines[i] = '%s=%s' % (name, s['gpuMem'])
elif name == 'arm_freq':
@ -136,12 +136,6 @@ def _set_board_settings(s):
if 'gpu_mem' not in seen:
lines.append('gpu_mem=%s' % s['gpuMem'])
if 'gpu_mem_256' not in seen:
lines.append('gpu_mem_256=%s' % s['gpuMem'])
if 'gpu_mem_512' not in seen:
lines.append('gpu_mem_512=%s' % s['gpuMem'])
if 'arm_freq' not in seen:
lines.append('arm_freq=%s' % arm_freq)
@ -186,7 +180,7 @@ def gpuMem():
'description': 'set the amount of memory reserved for the GPU (choose at least 96MB if you use the CSI camera board)',
'type': 'number',
'min': '16',
'max': '448',
'max': '960',
'section': 'expertSettings',
'advanced': True,
'reboot': True,