Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
e21fd7c4
Commit
e21fd7c4
authored
Sep 23, 2014
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau/devinit: allow impl to select its own cold-boot method
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
50e216d6
Changes
14
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
15 additions
and
3 deletions
+15
-3
drivers/gpu/drm/nouveau/core/subdev/devinit/base.c
drivers/gpu/drm/nouveau/core/subdev/devinit/base.c
+1
-3
drivers/gpu/drm/nouveau/core/subdev/devinit/gm107.c
drivers/gpu/drm/nouveau/core/subdev/devinit/gm107.c
+1
-0
drivers/gpu/drm/nouveau/core/subdev/devinit/nv04.c
drivers/gpu/drm/nouveau/core/subdev/devinit/nv04.c
+1
-0
drivers/gpu/drm/nouveau/core/subdev/devinit/nv05.c
drivers/gpu/drm/nouveau/core/subdev/devinit/nv05.c
+1
-0
drivers/gpu/drm/nouveau/core/subdev/devinit/nv10.c
drivers/gpu/drm/nouveau/core/subdev/devinit/nv10.c
+1
-0
drivers/gpu/drm/nouveau/core/subdev/devinit/nv1a.c
drivers/gpu/drm/nouveau/core/subdev/devinit/nv1a.c
+1
-0
drivers/gpu/drm/nouveau/core/subdev/devinit/nv20.c
drivers/gpu/drm/nouveau/core/subdev/devinit/nv20.c
+1
-0
drivers/gpu/drm/nouveau/core/subdev/devinit/nv50.c
drivers/gpu/drm/nouveau/core/subdev/devinit/nv50.c
+1
-0
drivers/gpu/drm/nouveau/core/subdev/devinit/nv84.c
drivers/gpu/drm/nouveau/core/subdev/devinit/nv84.c
+1
-0
drivers/gpu/drm/nouveau/core/subdev/devinit/nv98.c
drivers/gpu/drm/nouveau/core/subdev/devinit/nv98.c
+1
-0
drivers/gpu/drm/nouveau/core/subdev/devinit/nva3.c
drivers/gpu/drm/nouveau/core/subdev/devinit/nva3.c
+1
-0
drivers/gpu/drm/nouveau/core/subdev/devinit/nvaf.c
drivers/gpu/drm/nouveau/core/subdev/devinit/nvaf.c
+1
-0
drivers/gpu/drm/nouveau/core/subdev/devinit/nvc0.c
drivers/gpu/drm/nouveau/core/subdev/devinit/nvc0.c
+1
-0
drivers/gpu/drm/nouveau/core/subdev/devinit/priv.h
drivers/gpu/drm/nouveau/core/subdev/devinit/priv.h
+2
-0
No files found.
drivers/gpu/drm/nouveau/core/subdev/devinit/base.c
View file @
e21fd7c4
...
@@ -24,8 +24,6 @@
...
@@ -24,8 +24,6 @@
#include <core/option.h>
#include <core/option.h>
#include <subdev/bios.h>
#include <subdev/bios/init.h>
#include <subdev/vga.h>
#include <subdev/vga.h>
#include "priv.h"
#include "priv.h"
...
@@ -56,7 +54,7 @@ _nouveau_devinit_init(struct nouveau_object *object)
...
@@ -56,7 +54,7 @@ _nouveau_devinit_init(struct nouveau_object *object)
if
(
ret
)
if
(
ret
)
return
ret
;
return
ret
;
ret
=
nvbios_ini
t
(
&
devinit
->
base
,
devinit
->
post
);
ret
=
impl
->
pos
t
(
&
devinit
->
base
,
devinit
->
post
);
if
(
ret
)
if
(
ret
)
return
ret
;
return
ret
;
...
...
drivers/gpu/drm/nouveau/core/subdev/devinit/gm107.c
View file @
e21fd7c4
...
@@ -53,4 +53,5 @@ gm107_devinit_oclass = &(struct nouveau_devinit_impl) {
...
@@ -53,4 +53,5 @@ gm107_devinit_oclass = &(struct nouveau_devinit_impl) {
},
},
.
pll_set
=
nvc0_devinit_pll_set
,
.
pll_set
=
nvc0_devinit_pll_set
,
.
disable
=
gm107_devinit_disable
,
.
disable
=
gm107_devinit_disable
,
.
post
=
nvbios_init
,
}.
base
;
}.
base
;
drivers/gpu/drm/nouveau/core/subdev/devinit/nv04.c
View file @
e21fd7c4
...
@@ -464,4 +464,5 @@ nv04_devinit_oclass = &(struct nouveau_devinit_impl) {
...
@@ -464,4 +464,5 @@ nv04_devinit_oclass = &(struct nouveau_devinit_impl) {
},
},
.
meminit
=
nv04_devinit_meminit
,
.
meminit
=
nv04_devinit_meminit
,
.
pll_set
=
nv04_devinit_pll_set
,
.
pll_set
=
nv04_devinit_pll_set
,
.
post
=
nvbios_init
,
}.
base
;
}.
base
;
drivers/gpu/drm/nouveau/core/subdev/devinit/nv05.c
View file @
e21fd7c4
...
@@ -136,4 +136,5 @@ nv05_devinit_oclass = &(struct nouveau_devinit_impl) {
...
@@ -136,4 +136,5 @@ nv05_devinit_oclass = &(struct nouveau_devinit_impl) {
},
},
.
meminit
=
nv05_devinit_meminit
,
.
meminit
=
nv05_devinit_meminit
,
.
pll_set
=
nv04_devinit_pll_set
,
.
pll_set
=
nv04_devinit_pll_set
,
.
post
=
nvbios_init
,
}.
base
;
}.
base
;
drivers/gpu/drm/nouveau/core/subdev/devinit/nv10.c
View file @
e21fd7c4
...
@@ -107,4 +107,5 @@ nv10_devinit_oclass = &(struct nouveau_devinit_impl) {
...
@@ -107,4 +107,5 @@ nv10_devinit_oclass = &(struct nouveau_devinit_impl) {
},
},
.
meminit
=
nv10_devinit_meminit
,
.
meminit
=
nv10_devinit_meminit
,
.
pll_set
=
nv04_devinit_pll_set
,
.
pll_set
=
nv04_devinit_pll_set
,
.
post
=
nvbios_init
,
}.
base
;
}.
base
;
drivers/gpu/drm/nouveau/core/subdev/devinit/nv1a.c
View file @
e21fd7c4
...
@@ -34,4 +34,5 @@ nv1a_devinit_oclass = &(struct nouveau_devinit_impl) {
...
@@ -34,4 +34,5 @@ nv1a_devinit_oclass = &(struct nouveau_devinit_impl) {
.
fini
=
nv04_devinit_fini
,
.
fini
=
nv04_devinit_fini
,
},
},
.
pll_set
=
nv04_devinit_pll_set
,
.
pll_set
=
nv04_devinit_pll_set
,
.
post
=
nvbios_init
,
}.
base
;
}.
base
;
drivers/gpu/drm/nouveau/core/subdev/devinit/nv20.c
View file @
e21fd7c4
...
@@ -71,4 +71,5 @@ nv20_devinit_oclass = &(struct nouveau_devinit_impl) {
...
@@ -71,4 +71,5 @@ nv20_devinit_oclass = &(struct nouveau_devinit_impl) {
},
},
.
meminit
=
nv20_devinit_meminit
,
.
meminit
=
nv20_devinit_meminit
,
.
pll_set
=
nv04_devinit_pll_set
,
.
pll_set
=
nv04_devinit_pll_set
,
.
post
=
nvbios_init
,
}.
base
;
}.
base
;
drivers/gpu/drm/nouveau/core/subdev/devinit/nv50.c
View file @
e21fd7c4
...
@@ -160,4 +160,5 @@ nv50_devinit_oclass = &(struct nouveau_devinit_impl) {
...
@@ -160,4 +160,5 @@ nv50_devinit_oclass = &(struct nouveau_devinit_impl) {
},
},
.
pll_set
=
nv50_devinit_pll_set
,
.
pll_set
=
nv50_devinit_pll_set
,
.
disable
=
nv50_devinit_disable
,
.
disable
=
nv50_devinit_disable
,
.
post
=
nvbios_init
,
}.
base
;
}.
base
;
drivers/gpu/drm/nouveau/core/subdev/devinit/nv84.c
View file @
e21fd7c4
...
@@ -60,4 +60,5 @@ nv84_devinit_oclass = &(struct nouveau_devinit_impl) {
...
@@ -60,4 +60,5 @@ nv84_devinit_oclass = &(struct nouveau_devinit_impl) {
},
},
.
pll_set
=
nv50_devinit_pll_set
,
.
pll_set
=
nv50_devinit_pll_set
,
.
disable
=
nv84_devinit_disable
,
.
disable
=
nv84_devinit_disable
,
.
post
=
nvbios_init
,
}.
base
;
}.
base
;
drivers/gpu/drm/nouveau/core/subdev/devinit/nv98.c
View file @
e21fd7c4
...
@@ -59,4 +59,5 @@ nv98_devinit_oclass = &(struct nouveau_devinit_impl) {
...
@@ -59,4 +59,5 @@ nv98_devinit_oclass = &(struct nouveau_devinit_impl) {
},
},
.
pll_set
=
nv50_devinit_pll_set
,
.
pll_set
=
nv50_devinit_pll_set
,
.
disable
=
nv98_devinit_disable
,
.
disable
=
nv98_devinit_disable
,
.
post
=
nvbios_init
,
}.
base
;
}.
base
;
drivers/gpu/drm/nouveau/core/subdev/devinit/nva3.c
View file @
e21fd7c4
...
@@ -142,4 +142,5 @@ nva3_devinit_oclass = &(struct nouveau_devinit_impl) {
...
@@ -142,4 +142,5 @@ nva3_devinit_oclass = &(struct nouveau_devinit_impl) {
.
pll_set
=
nva3_devinit_pll_set
,
.
pll_set
=
nva3_devinit_pll_set
,
.
disable
=
nva3_devinit_disable
,
.
disable
=
nva3_devinit_disable
,
.
mmio
=
nva3_devinit_mmio
,
.
mmio
=
nva3_devinit_mmio
,
.
post
=
nvbios_init
,
}.
base
;
}.
base
;
drivers/gpu/drm/nouveau/core/subdev/devinit/nvaf.c
View file @
e21fd7c4
...
@@ -60,4 +60,5 @@ nvaf_devinit_oclass = &(struct nouveau_devinit_impl) {
...
@@ -60,4 +60,5 @@ nvaf_devinit_oclass = &(struct nouveau_devinit_impl) {
},
},
.
pll_set
=
nva3_devinit_pll_set
,
.
pll_set
=
nva3_devinit_pll_set
,
.
disable
=
nvaf_devinit_disable
,
.
disable
=
nvaf_devinit_disable
,
.
post
=
nvbios_init
,
}.
base
;
}.
base
;
drivers/gpu/drm/nouveau/core/subdev/devinit/nvc0.c
View file @
e21fd7c4
...
@@ -115,4 +115,5 @@ nvc0_devinit_oclass = &(struct nouveau_devinit_impl) {
...
@@ -115,4 +115,5 @@ nvc0_devinit_oclass = &(struct nouveau_devinit_impl) {
},
},
.
pll_set
=
nvc0_devinit_pll_set
,
.
pll_set
=
nvc0_devinit_pll_set
,
.
disable
=
nvc0_devinit_disable
,
.
disable
=
nvc0_devinit_disable
,
.
post
=
nvbios_init
,
}.
base
;
}.
base
;
drivers/gpu/drm/nouveau/core/subdev/devinit/priv.h
View file @
e21fd7c4
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
#include <subdev/bios.h>
#include <subdev/bios.h>
#include <subdev/bios/pll.h>
#include <subdev/bios/pll.h>
#include <subdev/bios/init.h>
#include <subdev/clock/pll.h>
#include <subdev/clock/pll.h>
#include <subdev/devinit.h>
#include <subdev/devinit.h>
...
@@ -12,6 +13,7 @@ struct nouveau_devinit_impl {
...
@@ -12,6 +13,7 @@ struct nouveau_devinit_impl {
int
(
*
pll_set
)(
struct
nouveau_devinit
*
,
u32
type
,
u32
freq
);
int
(
*
pll_set
)(
struct
nouveau_devinit
*
,
u32
type
,
u32
freq
);
u64
(
*
disable
)(
struct
nouveau_devinit
*
);
u64
(
*
disable
)(
struct
nouveau_devinit
*
);
u32
(
*
mmio
)(
struct
nouveau_devinit
*
,
u32
);
u32
(
*
mmio
)(
struct
nouveau_devinit
*
,
u32
);
int
(
*
post
)(
struct
nouveau_subdev
*
,
bool
);
};
};
#define nouveau_devinit_create(p,e,o,d) \
#define nouveau_devinit_create(p,e,o,d) \
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment